Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR containerregistry/resource-manager] Renamed BuildTask to FileTask and RunTask to EncodedTask in Azure Container registry Build GA swagger #3442

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ export default class ContainerRegistryManagementClient extends AzureServiceClien
operations: operations.Operations;
replications: operations.Replications;
webhooks: operations.Webhooks;
builds: operations.Builds;
buildSteps: operations.BuildSteps;
buildTasks: operations.BuildTasks;
runs: operations.Runs;
tasks: operations.Tasks;
}

export { ContainerRegistryManagementClient, models as ContainerRegistryManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ class ContainerRegistryManagementClient extends ServiceClient {
this.operations = new operations.Operations(this);
this.replications = new operations.Replications(this);
this.webhooks = new operations.Webhooks(this);
this.builds = new operations.Builds(this);
this.buildSteps = new operations.BuildSteps(this);
this.buildTasks = new operations.BuildTasks(this);
this.runs = new operations.Runs(this);
this.tasks = new operations.Tasks(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The properties that determine the run agent configuration.
*
*/
class AgentProperties {
/**
* Create a AgentProperties.
* @member {number} [cpu] The CPU configuration in terms of number of cores
* required for the run.
*/
constructor() {
}

/**
* Defines the metadata of AgentProperties
*
* @returns {object} metadata of AgentProperties
*
*/
mapper() {
return {
required: false,
serializedName: 'AgentProperties',
type: {
name: 'Composite',
className: 'AgentProperties',
modelProperties: {
cpu: {
required: false,
serializedName: 'cpu',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = AgentProperties;
71 changes: 71 additions & 0 deletions lib/services/containerRegistryManagement/lib/models/argument.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The properties of a run argument.
*
*/
class Argument {
/**
* Create a Argument.
* @member {string} name The name of the argument.
* @member {string} value The value of the argument.
* @member {boolean} [isSecret] Flag to indicate whether the argument
* represents a secret and want to be removed from build logs. Default value:
* false .
*/
constructor() {
}

/**
* Defines the metadata of Argument
*
* @returns {object} metadata of Argument
*
*/
mapper() {
return {
required: false,
serializedName: 'Argument',
type: {
name: 'Composite',
className: 'Argument',
modelProperties: {
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
value: {
required: true,
serializedName: 'value',
type: {
name: 'String'
}
},
isSecret: {
required: false,
serializedName: 'isSecret',
defaultValue: false,
type: {
name: 'Boolean'
}
}
}
}
};
}
}

module.exports = Argument;
87 changes: 87 additions & 0 deletions lib/services/containerRegistryManagement/lib/models/authInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The authorization properties for accessing the source code repository.
*
*/
class AuthInfo {
/**
* Create a AuthInfo.
* @member {string} tokenType The type of Auth token. Possible values
* include: 'PAT', 'OAuth'
* @member {string} token The access token used to access the source control
* provider.
* @member {string} [refreshToken] The refresh token used to refresh the
* access token.
* @member {string} [scope] The scope of the access token.
* @member {number} [expiresIn] Time in seconds that the token remains valid
*/
constructor() {
}

/**
* Defines the metadata of AuthInfo
*
* @returns {object} metadata of AuthInfo
*
*/
mapper() {
return {
required: false,
serializedName: 'AuthInfo',
type: {
name: 'Composite',
className: 'AuthInfo',
modelProperties: {
tokenType: {
required: true,
serializedName: 'tokenType',
type: {
name: 'String'
}
},
token: {
required: true,
serializedName: 'token',
type: {
name: 'String'
}
},
refreshToken: {
required: false,
serializedName: 'refreshToken',
type: {
name: 'String'
}
},
scope: {
required: false,
serializedName: 'scope',
type: {
name: 'String'
}
},
expiresIn: {
required: false,
serializedName: 'expiresIn',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = AuthInfo;
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The authorization properties for accessing the source code repository.
*
*/
class AuthInfoUpdateParameters {
/**
* Create a AuthInfoUpdateParameters.
* @member {string} [tokenType] The type of Auth token. Possible values
* include: 'PAT', 'OAuth'
* @member {string} [token] The access token used to access the source
* control provider.
* @member {string} [refreshToken] The refresh token used to refresh the
* access token.
* @member {string} [scope] The scope of the access token.
* @member {number} [expiresIn] Time in seconds that the token remains valid
*/
constructor() {
}

/**
* Defines the metadata of AuthInfoUpdateParameters
*
* @returns {object} metadata of AuthInfoUpdateParameters
*
*/
mapper() {
return {
required: false,
serializedName: 'AuthInfoUpdateParameters',
type: {
name: 'Composite',
className: 'AuthInfoUpdateParameters',
modelProperties: {
tokenType: {
required: false,
serializedName: 'tokenType',
type: {
name: 'String'
}
},
token: {
required: false,
serializedName: 'token',
type: {
name: 'String'
}
},
refreshToken: {
required: false,
serializedName: 'refreshToken',
type: {
name: 'String'
}
},
scope: {
required: false,
serializedName: 'scope',
type: {
name: 'String'
}
},
expiresIn: {
required: false,
serializedName: 'expiresIn',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = AuthInfoUpdateParameters;
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The trigger based on base image dependency.
*
*/
class BaseImageTrigger {
/**
* Create a BaseImageTrigger.
* @member {string} baseImageTriggerType The type of the auto trigger for
* base image dependency updates. Possible values include: 'All', 'Runtime'
* @member {string} [status] The current status of build trigger. Possible
* values include: 'Disabled', 'Enabled'
* @member {string} name The name of the trigger.
*/
constructor() {
}

/**
* Defines the metadata of BaseImageTrigger
*
* @returns {object} metadata of BaseImageTrigger
*
*/
mapper() {
return {
required: false,
serializedName: 'BaseImageTrigger',
type: {
name: 'Composite',
className: 'BaseImageTrigger',
modelProperties: {
baseImageTriggerType: {
required: true,
serializedName: 'baseImageTriggerType',
type: {
name: 'String'
}
},
status: {
required: false,
serializedName: 'status',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = BaseImageTrigger;
Loading