diff --git a/lib/services/containerRegistryManagement/lib/models/credentials.js b/lib/services/containerRegistryManagement/lib/models/credentials.js new file mode 100644 index 0000000000..3cc0783d0f --- /dev/null +++ b/lib/services/containerRegistryManagement/lib/models/credentials.js @@ -0,0 +1,83 @@ +/* + * 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 parameters that describes a set of credentials that will be used when a + * run is invoked. + * + */ +class Credentials { + /** + * Create a Credentials. + * @property {object} [sourceRegistry] Describes the credential parameters + * for accessing the source registry. + * @property {string} [sourceRegistry.loginMode] The authentication mode + * which determines the source registry login scope. The credentials for the + * source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * @property {object} [customRegistries] Describes the credential parameters + * for accessing other custom registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + */ + constructor() { + } + + /** + * Defines the metadata of Credentials + * + * @returns {object} metadata of Credentials + * + */ + mapper() { + return { + required: false, + serializedName: 'Credentials', + type: { + name: 'Composite', + className: 'Credentials', + modelProperties: { + sourceRegistry: { + required: false, + serializedName: 'sourceRegistry', + type: { + name: 'Composite', + className: 'SourceRegistryCredentials' + } + }, + customRegistries: { + required: false, + serializedName: 'customRegistries', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'CustomRegistryCredentialsElementType', + type: { + name: 'Composite', + className: 'CustomRegistryCredentials' + } + } + } + } + } + } + }; + } +} + +module.exports = Credentials; diff --git a/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js b/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js new file mode 100644 index 0000000000..bb68b71ed4 --- /dev/null +++ b/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js @@ -0,0 +1,82 @@ +/* + * 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'; + +/** + * Describes the credentials that will be used to access a custom registry + * during a run. + * + */ +class CustomRegistryCredentials { + /** + * Create a CustomRegistryCredentials. + * @property {object} [userName] The username for logging into the custom + * registry. + * @property {string} [userName.value] The value of the secret. The format of + * this value will be determined + * based on the type of the secret object. If the type is Opaque, the value + * will be + * used as is without any modification. + * @property {string} [userName.type] The type of the secret object which + * determines how the value of the secret object has to be + * interpreted. Possible values include: 'Opaque' + * @property {object} [password] The password for logging into the custom + * registry. The password is a secret + * object that allows multiple ways of providing the value for it. + * @property {string} [password.value] The value of the secret. The format of + * this value will be determined + * based on the type of the secret object. If the type is Opaque, the value + * will be + * used as is without any modification. + * @property {string} [password.type] The type of the secret object which + * determines how the value of the secret object has to be + * interpreted. Possible values include: 'Opaque' + */ + constructor() { + } + + /** + * Defines the metadata of CustomRegistryCredentials + * + * @returns {object} metadata of CustomRegistryCredentials + * + */ + mapper() { + return { + required: false, + serializedName: 'CustomRegistryCredentials', + type: { + name: 'Composite', + className: 'CustomRegistryCredentials', + modelProperties: { + userName: { + required: false, + serializedName: 'userName', + type: { + name: 'Composite', + className: 'SecretObject' + } + }, + password: { + required: false, + serializedName: 'password', + type: { + name: 'Composite', + className: 'SecretObject' + } + } + } + } + }; + } +} + +module.exports = CustomRegistryCredentials; diff --git a/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js b/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js index 36ec1a8208..5fb2affdba 100644 --- a/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js @@ -29,6 +29,8 @@ class DockerBuildRequest extends models['RunRequest'] { * the image cache is enabled or not. Default value: false . * @property {string} dockerFilePath The Docker file path relative to the * source location. + * @property {string} [target] The name of the target build stage for the + * docker build. * @property {array} [argumentsProperty] The collection of override arguments * to be used when executing the run. * @property {number} [timeout] Run timeout in seconds. Default value: 3600 . @@ -48,6 +50,23 @@ class DockerBuildRequest extends models['RunRequest'] { * source context. It can be an URL to a tar or git repository. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. + * @property {object} [credentials] The properties that describes a set of + * credentials that will be used when this run is invoked. + * @property {object} [credentials.sourceRegistry] Describes the credential + * parameters for accessing the source registry. + * @property {string} [credentials.sourceRegistry.loginMode] The + * authentication mode which determines the source registry login scope. The + * credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * @property {object} [credentials.customRegistries] Describes the credential + * parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. */ constructor() { super(); @@ -125,6 +144,13 @@ class DockerBuildRequest extends models['RunRequest'] { name: 'String' } }, + target: { + required: false, + serializedName: 'target', + type: { + name: 'String' + } + }, argumentsProperty: { required: false, serializedName: 'arguments', @@ -174,6 +200,14 @@ class DockerBuildRequest extends models['RunRequest'] { type: { name: 'String' } + }, + credentials: { + required: false, + serializedName: 'credentials', + type: { + name: 'Composite', + className: 'Credentials' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/dockerBuildStep.js b/lib/services/containerRegistryManagement/lib/models/dockerBuildStep.js index 1ca836d3d5..157e65ebd2 100644 --- a/lib/services/containerRegistryManagement/lib/models/dockerBuildStep.js +++ b/lib/services/containerRegistryManagement/lib/models/dockerBuildStep.js @@ -29,6 +29,8 @@ class DockerBuildStep extends models['TaskStepProperties'] { * the image cache is enabled or not. Default value: false . * @property {string} dockerFilePath The Docker file path relative to the * source context. + * @property {string} [target] The name of the target build stage for the + * docker build. * @property {array} [argumentsProperty] The collection of override arguments * to be used when executing this build step. */ @@ -130,6 +132,13 @@ class DockerBuildStep extends models['TaskStepProperties'] { name: 'String' } }, + target: { + required: false, + serializedName: 'target', + type: { + name: 'String' + } + }, argumentsProperty: { required: false, serializedName: 'arguments', diff --git a/lib/services/containerRegistryManagement/lib/models/dockerBuildStepUpdateParameters.js b/lib/services/containerRegistryManagement/lib/models/dockerBuildStepUpdateParameters.js index 8d9e573bc6..473a2c9ff8 100644 --- a/lib/services/containerRegistryManagement/lib/models/dockerBuildStepUpdateParameters.js +++ b/lib/services/containerRegistryManagement/lib/models/dockerBuildStepUpdateParameters.js @@ -30,6 +30,8 @@ class DockerBuildStepUpdateParameters extends models['TaskStepUpdateParameters'] * source context. * @property {array} [argumentsProperty] The collection of override arguments * to be used when executing this build step. + * @property {string} [target] The name of the target build stage for the + * docker build. */ constructor() { super(); @@ -125,6 +127,13 @@ class DockerBuildStepUpdateParameters extends models['TaskStepUpdateParameters'] } } } + }, + target: { + required: false, + serializedName: 'target', + type: { + name: 'String' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js b/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js index 1838f046fa..e21b5d20ff 100644 --- a/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js @@ -43,6 +43,23 @@ class EncodedTaskRunRequest extends models['RunRequest'] { * source context. It can be an URL to a tar or git repository. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. + * @property {object} [credentials] The properties that describes a set of + * credentials that will be used when this run is invoked. + * @property {object} [credentials.sourceRegistry] Describes the credential + * parameters for accessing the source registry. + * @property {string} [credentials.sourceRegistry.loginMode] The + * authentication mode which determines the source registry login scope. The + * credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * @property {object} [credentials.customRegistries] Describes the credential + * parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. */ constructor() { super(); @@ -146,6 +163,14 @@ class EncodedTaskRunRequest extends models['RunRequest'] { type: { name: 'String' } + }, + credentials: { + required: false, + serializedName: 'credentials', + type: { + name: 'Composite', + className: 'Credentials' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/event.js b/lib/services/containerRegistryManagement/lib/models/event.js index 6e2508c4df..86647b8514 100644 --- a/lib/services/containerRegistryManagement/lib/models/event.js +++ b/lib/services/containerRegistryManagement/lib/models/event.js @@ -44,6 +44,10 @@ class Event extends models['EventInfo'] { * @property {string} [eventRequestMessage.content.target.url] The direct URL * to the content. * @property {string} [eventRequestMessage.content.target.tag] The tag name. + * @property {string} [eventRequestMessage.content.target.name] The name of + * the artifact. + * @property {string} [eventRequestMessage.content.target.version] The + * version of the artifact. * @property {object} [eventRequestMessage.content.request] The request that * generated the event. * @property {string} [eventRequestMessage.content.request.id] The ID of the diff --git a/lib/services/containerRegistryManagement/lib/models/eventContent.js b/lib/services/containerRegistryManagement/lib/models/eventContent.js index f2d1c80665..631005bc47 100644 --- a/lib/services/containerRegistryManagement/lib/models/eventContent.js +++ b/lib/services/containerRegistryManagement/lib/models/eventContent.js @@ -33,6 +33,8 @@ class EventContent { * @property {string} [target.repository] The repository name. * @property {string} [target.url] The direct URL to the content. * @property {string} [target.tag] The tag name. + * @property {string} [target.name] The name of the artifact. + * @property {string} [target.version] The version of the artifact. * @property {object} [request] The request that generated the event. * @property {string} [request.id] The ID of the request that initiated the * event. diff --git a/lib/services/containerRegistryManagement/lib/models/eventRequestMessage.js b/lib/services/containerRegistryManagement/lib/models/eventRequestMessage.js index b5cc1ba4a6..be448468fd 100644 --- a/lib/services/containerRegistryManagement/lib/models/eventRequestMessage.js +++ b/lib/services/containerRegistryManagement/lib/models/eventRequestMessage.js @@ -34,6 +34,8 @@ class EventRequestMessage { * @property {string} [content.target.repository] The repository name. * @property {string} [content.target.url] The direct URL to the content. * @property {string} [content.target.tag] The tag name. + * @property {string} [content.target.name] The name of the artifact. + * @property {string} [content.target.version] The version of the artifact. * @property {object} [content.request] The request that generated the event. * @property {string} [content.request.id] The ID of the request that * initiated the event. diff --git a/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js b/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js index 4f91bc3c70..8a6a29729b 100644 --- a/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js @@ -43,6 +43,23 @@ class FileTaskRunRequest extends models['RunRequest'] { * source context. It can be an URL to a tar or git repository. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. + * @property {object} [credentials] The properties that describes a set of + * credentials that will be used when this run is invoked. + * @property {object} [credentials.sourceRegistry] Describes the credential + * parameters for accessing the source registry. + * @property {string} [credentials.sourceRegistry.loginMode] The + * authentication mode which determines the source registry login scope. The + * credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * @property {object} [credentials.customRegistries] Describes the credential + * parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. */ constructor() { super(); @@ -146,6 +163,14 @@ class FileTaskRunRequest extends models['RunRequest'] { type: { name: 'String' } + }, + credentials: { + required: false, + serializedName: 'credentials', + type: { + name: 'Composite', + className: 'Credentials' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/index.d.ts b/lib/services/containerRegistryManagement/lib/models/index.d.ts index dcdc02ee6e..afbce44c3f 100644 --- a/lib/services/containerRegistryManagement/lib/models/index.d.ts +++ b/lib/services/containerRegistryManagement/lib/models/index.d.ts @@ -657,6 +657,14 @@ export interface Target { * The tag name. */ tag?: string; + /** + * The name of the artifact. + */ + name?: string; + /** + * The version of the artifact. + */ + version?: string; } /** @@ -1002,10 +1010,6 @@ export interface Run extends ProxyResource { * The source trigger that caused the run. */ sourceTrigger?: SourceTriggerDescriptor; - /** - * The value that indicates whether archiving is enabled or not. - */ - isArchiveEnabled?: boolean; /** * The platform properties against which the run will happen. */ @@ -1014,11 +1018,23 @@ export interface Run extends ProxyResource { * The machine configuration of the run agent. */ agentConfiguration?: AgentProperties; + /** + * The scope of the credentials that were used to login to the source registry during this run. + */ + sourceRegistryAuth?: string; + /** + * The list of custom registries that were logged in during this run. + */ + customRegistries?: string[]; /** * The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', * 'Succeeded', 'Failed', 'Canceled' */ provisioningState?: string; + /** + * The value that indicates whether archiving is enabled or not. + */ + isArchiveEnabled?: boolean; } /** @@ -1250,6 +1266,67 @@ export interface TriggerProperties { baseImageTrigger?: BaseImageTrigger; } +/** + * Describes the credential parameters for accessing the source registry. +*/ +export interface SourceRegistryCredentials { + /** + * The authentication mode which determines the source registry login scope. The credentials for + * the source registry + * will be generated using the given scope. These credentials will be used to login to + * the source registry during the run. Possible values include: 'None', 'Default' + */ + loginMode?: string; +} + +/** + * Describes the properties of a secret object value. +*/ +export interface SecretObject { + /** + * The value of the secret. The format of this value will be determined + * based on the type of the secret object. If the type is Opaque, the value will be + * used as is without any modification. + */ + value?: string; + /** + * The type of the secret object which determines how the value of the secret object has to be + * interpreted. Possible values include: 'Opaque' + */ + type?: string; +} + +/** + * Describes the credentials that will be used to access a custom registry during a run. +*/ +export interface CustomRegistryCredentials { + /** + * The username for logging into the custom registry. + */ + userName?: SecretObject; + /** + * The password for logging into the custom registry. The password is a secret + * object that allows multiple ways of providing the value for it. + */ + password?: SecretObject; +} + +/** + * The parameters that describes a set of credentials that will be used when a run is invoked. +*/ +export interface Credentials { + /** + * Describes the credential parameters for accessing the source registry. + */ + sourceRegistry?: SourceRegistryCredentials; + /** + * Describes the credential parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the registry. + */ + customRegistries?: { [propertyName: string]: CustomRegistryCredentials }; +} + /** * The task that has the ARM resource and task properties. * The task will have all information to schedule a run against it. @@ -1288,6 +1365,10 @@ export interface Task extends Resource { * The properties that describe all triggers for the task. */ trigger?: TriggerProperties; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** @@ -1460,6 +1541,10 @@ export interface TaskUpdateParameters { * The properties for updating trigger properties. */ trigger?: TriggerUpdateParameters; + /** + * The parameters that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; /** * The ARM resource tags. */ @@ -1506,6 +1591,10 @@ export interface DockerBuildRequest extends RunRequest { * The Docker file path relative to the source location. */ dockerFilePath: string; + /** + * The name of the target build stage for the docker build. + */ + target?: string; /** * The collection of override arguments to be used when executing the run. */ @@ -1529,6 +1618,10 @@ export interface DockerBuildRequest extends RunRequest { * listBuildSourceUploadUrl API. */ sourceLocation?: string; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** @@ -1584,6 +1677,10 @@ export interface FileTaskRunRequest extends RunRequest { * listBuildSourceUploadUrl API. */ sourceLocation?: string; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** @@ -1635,6 +1732,10 @@ export interface EncodedTaskRunRequest extends RunRequest { * listBuildSourceUploadUrl API. */ sourceLocation?: string; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** @@ -1658,6 +1759,10 @@ export interface DockerBuildStep extends TaskStepProperties { * The Docker file path relative to the source context. */ dockerFilePath: string; + /** + * The name of the target build stage for the docker build. + */ + target?: string; /** * The collection of override arguments to be used when executing this build step. */ @@ -1725,6 +1830,10 @@ export interface DockerBuildStepUpdateParameters extends TaskStepUpdateParameter * The collection of override arguments to be used when executing this build step. */ argumentsProperty?: Argument[]; + /** + * The name of the target build stage for the docker build. + */ + target?: string; } /** diff --git a/lib/services/containerRegistryManagement/lib/models/index.js b/lib/services/containerRegistryManagement/lib/models/index.js index 6db2d300c0..5ed4a71f0f 100644 --- a/lib/services/containerRegistryManagement/lib/models/index.js +++ b/lib/services/containerRegistryManagement/lib/models/index.js @@ -78,6 +78,10 @@ exports.SourceProperties = require('./sourceProperties'); exports.SourceTrigger = require('./sourceTrigger'); exports.BaseImageTrigger = require('./baseImageTrigger'); exports.TriggerProperties = require('./triggerProperties'); +exports.SourceRegistryCredentials = require('./sourceRegistryCredentials'); +exports.SecretObject = require('./secretObject'); +exports.CustomRegistryCredentials = require('./customRegistryCredentials'); +exports.Credentials = require('./credentials'); exports.Task = require('./task'); exports.PlatformUpdateParameters = require('./platformUpdateParameters'); exports.TaskStepUpdateParameters = require('./taskStepUpdateParameters'); diff --git a/lib/services/containerRegistryManagement/lib/models/run.js b/lib/services/containerRegistryManagement/lib/models/run.js index 5fc4f78fa7..934bbcd011 100644 --- a/lib/services/containerRegistryManagement/lib/models/run.js +++ b/lib/services/containerRegistryManagement/lib/models/run.js @@ -55,8 +55,6 @@ class Run extends models['ProxyResource'] { * repository. * @property {string} [sourceTrigger.providerType] The source control * provider type. - * @property {boolean} [isArchiveEnabled] The value that indicates whether - * archiving is enabled or not. Default value: false . * @property {object} [platform] The platform properties against which the * run will happen. * @property {string} [platform.os] The operating system type required for @@ -69,9 +67,15 @@ class Run extends models['ProxyResource'] { * run agent. * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. + * @property {string} [sourceRegistryAuth] The scope of the credentials that + * were used to login to the source registry during this run. + * @property {array} [customRegistries] The list of custom registries that + * were logged in during this run. * @property {string} [provisioningState] The provisioning state of a run. * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', * 'Failed', 'Canceled' + * @property {boolean} [isArchiveEnabled] The value that indicates whether + * archiving is enabled or not. Default value: false . */ constructor() { super(); @@ -202,14 +206,6 @@ class Run extends models['ProxyResource'] { className: 'SourceTriggerDescriptor' } }, - isArchiveEnabled: { - required: false, - serializedName: 'properties.isArchiveEnabled', - defaultValue: false, - type: { - name: 'Boolean' - } - }, platform: { required: false, serializedName: 'properties.platform', @@ -226,12 +222,41 @@ class Run extends models['ProxyResource'] { className: 'AgentProperties' } }, + sourceRegistryAuth: { + required: false, + serializedName: 'properties.sourceRegistryAuth', + type: { + name: 'String' + } + }, + customRegistries: { + required: false, + serializedName: 'properties.customRegistries', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, provisioningState: { required: false, serializedName: 'properties.provisioningState', type: { name: 'String' } + }, + isArchiveEnabled: { + required: false, + serializedName: 'properties.isArchiveEnabled', + defaultValue: false, + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/secretObject.js b/lib/services/containerRegistryManagement/lib/models/secretObject.js new file mode 100644 index 0000000000..b28d56f8ec --- /dev/null +++ b/lib/services/containerRegistryManagement/lib/models/secretObject.js @@ -0,0 +1,66 @@ +/* + * 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'; + +/** + * Describes the properties of a secret object value. + * + */ +class SecretObject { + /** + * Create a SecretObject. + * @property {string} [value] The value of the secret. The format of this + * value will be determined + * based on the type of the secret object. If the type is Opaque, the value + * will be + * used as is without any modification. + * @property {string} [type] The type of the secret object which determines + * how the value of the secret object has to be + * interpreted. Possible values include: 'Opaque' + */ + constructor() { + } + + /** + * Defines the metadata of SecretObject + * + * @returns {object} metadata of SecretObject + * + */ + mapper() { + return { + required: false, + serializedName: 'SecretObject', + type: { + name: 'Composite', + className: 'SecretObject', + modelProperties: { + value: { + required: false, + serializedName: 'value', + type: { + name: 'String' + } + }, + type: { + required: false, + serializedName: 'type', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SecretObject; diff --git a/lib/services/containerRegistryManagement/lib/models/sourceRegistryCredentials.js b/lib/services/containerRegistryManagement/lib/models/sourceRegistryCredentials.js new file mode 100644 index 0000000000..fc876ebf68 --- /dev/null +++ b/lib/services/containerRegistryManagement/lib/models/sourceRegistryCredentials.js @@ -0,0 +1,57 @@ +/* + * 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'; + +/** + * Describes the credential parameters for accessing the source registry. + * + */ +class SourceRegistryCredentials { + /** + * Create a SourceRegistryCredentials. + * @property {string} [loginMode] The authentication mode which determines + * the source registry login scope. The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + */ + constructor() { + } + + /** + * Defines the metadata of SourceRegistryCredentials + * + * @returns {object} metadata of SourceRegistryCredentials + * + */ + mapper() { + return { + required: false, + serializedName: 'SourceRegistryCredentials', + type: { + name: 'Composite', + className: 'SourceRegistryCredentials', + modelProperties: { + loginMode: { + required: false, + serializedName: 'loginMode', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SourceRegistryCredentials; diff --git a/lib/services/containerRegistryManagement/lib/models/target.js b/lib/services/containerRegistryManagement/lib/models/target.js index f666425388..d343e4fa9e 100644 --- a/lib/services/containerRegistryManagement/lib/models/target.js +++ b/lib/services/containerRegistryManagement/lib/models/target.js @@ -27,6 +27,8 @@ class Target { * @property {string} [repository] The repository name. * @property {string} [url] The direct URL to the content. * @property {string} [tag] The tag name. + * @property {string} [name] The name of the artifact. + * @property {string} [version] The version of the artifact. */ constructor() { } @@ -93,6 +95,20 @@ class Target { type: { name: 'String' } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + version: { + required: false, + serializedName: 'version', + type: { + name: 'String' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/task.js b/lib/services/containerRegistryManagement/lib/models/task.js index 8e2af15744..eb4b499880 100644 --- a/lib/services/containerRegistryManagement/lib/models/task.js +++ b/lib/services/containerRegistryManagement/lib/models/task.js @@ -61,6 +61,23 @@ class Task extends models['Resource'] { * trigger. Possible values include: 'Disabled', 'Enabled' * @property {string} [trigger.baseImageTrigger.name] The name of the * trigger. + * @property {object} [credentials] The properties that describes a set of + * credentials that will be used when this run is invoked. + * @property {object} [credentials.sourceRegistry] Describes the credential + * parameters for accessing the source registry. + * @property {string} [credentials.sourceRegistry.loginMode] The + * authentication mode which determines the source registry login scope. The + * credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * @property {object} [credentials.customRegistries] Describes the credential + * parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. */ constructor() { super(); @@ -196,6 +213,14 @@ class Task extends models['Resource'] { name: 'Composite', className: 'TriggerProperties' } + }, + credentials: { + required: false, + serializedName: 'properties.credentials', + type: { + name: 'Composite', + className: 'Credentials' + } } } } diff --git a/lib/services/containerRegistryManagement/lib/models/taskUpdateParameters.js b/lib/services/containerRegistryManagement/lib/models/taskUpdateParameters.js index 489b049d90..afeeb4d52c 100644 --- a/lib/services/containerRegistryManagement/lib/models/taskUpdateParameters.js +++ b/lib/services/containerRegistryManagement/lib/models/taskUpdateParameters.js @@ -51,6 +51,23 @@ class TaskUpdateParameters { * trigger. Possible values include: 'Disabled', 'Enabled' * @property {string} [trigger.baseImageTrigger.name] The name of the * trigger. + * @property {object} [credentials] The parameters that describes a set of + * credentials that will be used when this run is invoked. + * @property {object} [credentials.sourceRegistry] Describes the credential + * parameters for accessing the source registry. + * @property {string} [credentials.sourceRegistry.loginMode] The + * authentication mode which determines the source registry login scope. The + * credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * @property {object} [credentials.customRegistries] Describes the credential + * parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. * @property {object} [tags] The ARM resource tags. */ constructor() { @@ -121,6 +138,14 @@ class TaskUpdateParameters { className: 'TriggerUpdateParameters' } }, + credentials: { + required: false, + serializedName: 'properties.credentials', + type: { + name: 'Composite', + className: 'Credentials' + } + }, tags: { required: false, serializedName: 'tags', diff --git a/lib/services/containerRegistryManagement/lib/operations/index.d.ts b/lib/services/containerRegistryManagement/lib/operations/index.d.ts index 59dfa6dde0..b992e4abbb 100644 --- a/lib/services/containerRegistryManagement/lib/operations/index.d.ts +++ b/lib/services/containerRegistryManagement/lib/operations/index.d.ts @@ -4519,6 +4519,28 @@ export interface Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -4603,6 +4625,28 @@ export interface Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -4771,6 +4815,28 @@ export interface Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -4853,6 +4919,28 @@ export interface Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -5018,6 +5106,28 @@ export interface Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -5102,6 +5212,28 @@ export interface Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -5270,6 +5402,28 @@ export interface Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -5352,6 +5506,28 @@ export interface Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. diff --git a/lib/services/containerRegistryManagement/lib/operations/tasks.js b/lib/services/containerRegistryManagement/lib/operations/tasks.js index 96ec812f24..cf46e82ddd 100644 --- a/lib/services/containerRegistryManagement/lib/operations/tasks.js +++ b/lib/services/containerRegistryManagement/lib/operations/tasks.js @@ -429,6 +429,28 @@ function _get(resourceGroupName, registryName, taskName, options, callback) { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -638,6 +660,28 @@ function _deleteMethod(resourceGroupName, registryName, taskName, options, callb * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -960,6 +1004,28 @@ function _getDetails(resourceGroupName, registryName, taskName, options, callbac * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -1406,6 +1472,28 @@ function _beginDeleteMethod(resourceGroupName, registryName, taskName, options, * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -2009,6 +2097,28 @@ class Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -2105,6 +2215,28 @@ class Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -2315,6 +2447,28 @@ class Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -2409,6 +2563,28 @@ class Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -2616,6 +2792,28 @@ class Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -2712,6 +2910,28 @@ class Tasks { * @param {string} taskCreateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskCreateParameters.credentials] The properties that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskCreateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskCreateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskCreateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {string} taskCreateParameters.location The location of the resource. * This cannot be changed after the resource is created. * @@ -2922,6 +3142,28 @@ class Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters. @@ -3016,6 +3258,28 @@ class Tasks { * @param {string} taskUpdateParameters.trigger.baseImageTrigger.name The name * of the trigger. * + * @param {object} [taskUpdateParameters.credentials] The parameters that + * describes a set of credentials that will be used when this run is invoked. + * + * @param {object} [taskUpdateParameters.credentials.sourceRegistry] Describes + * the credential parameters for accessing the source registry. + * + * @param {string} [taskUpdateParameters.credentials.sourceRegistry.loginMode] + * The authentication mode which determines the source registry login scope. + * The credentials for the source registry + * will be generated using the given scope. These credentials will be used to + * login to + * the source registry during the run. Possible values include: 'None', + * 'Default' + * + * @param {object} [taskUpdateParameters.credentials.customRegistries] + * Describes the credential parameters for accessing other custom registries. + * The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + * * @param {object} [taskUpdateParameters.tags] The ARM resource tags. * * @param {object} [options] Optional Parameters.