From 2159e78a40c9390b295b3320d0e0ee773fe01a9a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 20:41:32 +0000 Subject: [PATCH 1/3] Generated from 5841d4593357176cf82d1ebd84fb8f62c951728a Add two examples for CustomCredentials as well as target --- .../lib/models/credentials.js | 83 ++++++ .../lib/models/customRegistryCredentials.js | 86 ++++++ .../lib/models/dockerBuildRequest.js | 36 ++- .../lib/models/dockerBuildStep.js | 9 + .../models/dockerBuildStepUpdateParameters.js | 9 + .../lib/models/encodedTaskRunRequest.js | 27 +- .../lib/models/fileTaskRunRequest.js | 27 +- .../lib/models/index.d.ts | 122 +++++++- .../lib/models/index.js | 4 + .../lib/models/run.js | 45 ++- .../lib/models/secretObject.js | 68 +++++ .../lib/models/sourceProperties.js | 2 +- .../lib/models/sourceRegistryCredentials.js | 57 ++++ .../lib/models/sourceTrigger.js | 2 +- .../models/sourceTriggerUpdateParameters.js | 2 +- .../lib/models/sourceUpdateParameters.js | 2 +- .../lib/models/task.js | 27 +- .../lib/models/taskUpdateParameters.js | 25 ++ .../lib/operations/index.d.ts | 176 ++++++++++++ .../lib/operations/tasks.js | 264 ++++++++++++++++++ 20 files changed, 1045 insertions(+), 28 deletions(-) create mode 100644 lib/services/containerRegistryManagement/lib/models/credentials.js create mode 100644 lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js create mode 100644 lib/services/containerRegistryManagement/lib/models/secretObject.js create mode 100644 lib/services/containerRegistryManagement/lib/models/sourceRegistryCredentials.js 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..81390f74dd --- /dev/null +++ b/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js @@ -0,0 +1,86 @@ +/* + * 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. For example, if the type is of + * vault secret, + * the value will be the URL to the vault secret. If the type is Opaque, the + * vaule 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. For example, if the type is of + * vault secret, + * the value will be the URL to the vault secret. If the type is Opaque, the + * vaule 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..ff3640cc8c 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] Gets or sets 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 . @@ -45,9 +47,26 @@ class DockerBuildRequest extends models['RunRequest'] { * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. * @property {string} [sourceLocation] The URL(absolute or relative) of the - * source context. It can be an URL to a tar or git repository. + * source context. It can be an URL to a tar or git repoistory. * 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..4bb6716616 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] Gets or sets 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..5cbecab253 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] Gets or sets 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..31e696f1e8 100644 --- a/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js @@ -40,9 +40,26 @@ class EncodedTaskRunRequest extends models['RunRequest'] { * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. * @property {string} [sourceLocation] The URL(absolute or relative) of the - * source context. It can be an URL to a tar or git repository. + * source context. It can be an URL to a tar or git repoistory. * 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/fileTaskRunRequest.js b/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js index 4f91bc3c70..67707ee3e1 100644 --- a/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js @@ -40,9 +40,26 @@ class FileTaskRunRequest extends models['RunRequest'] { * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. * @property {string} [sourceLocation] The URL(absolute or relative) of the - * source context. It can be an URL to a tar or git repository. + * source context. It can be an URL to a tar or git repoistory. * 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..0b2c01c8d2 100644 --- a/lib/services/containerRegistryManagement/lib/models/index.d.ts +++ b/lib/services/containerRegistryManagement/lib/models/index.d.ts @@ -1002,10 +1002,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 +1010,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; } /** @@ -1181,7 +1189,7 @@ export interface SourceProperties { */ sourceControlType: string; /** - * The full URL to the source code repository + * The full URL to the source code respository */ repositoryUrl: string; /** @@ -1250,9 +1258,71 @@ 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. For example, if the type is of vault secret, + * the value will be the URL to the vault secret. If the type is Opaque, the vaule 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. + * The task will have all information to schedule a run against it. */ export interface Task extends Resource { /** @@ -1288,6 +1358,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; } /** @@ -1363,7 +1437,7 @@ export interface SourceUpdateParameters { */ sourceControlType?: string; /** - * The full URL to the source code repository + * The full URL to the source code respository */ repositoryUrl?: string; /** @@ -1460,6 +1534,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 +1584,10 @@ export interface DockerBuildRequest extends RunRequest { * The Docker file path relative to the source location. */ dockerFilePath: string; + /** + * Gets or sets 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. */ @@ -1524,11 +1606,15 @@ export interface DockerBuildRequest extends RunRequest { agentConfiguration?: AgentProperties; /** * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. + * repoistory. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. */ sourceLocation?: string; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** @@ -1579,11 +1665,15 @@ export interface FileTaskRunRequest extends RunRequest { agentConfiguration?: AgentProperties; /** * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. + * repoistory. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. */ sourceLocation?: string; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** @@ -1630,11 +1720,15 @@ export interface EncodedTaskRunRequest extends RunRequest { agentConfiguration?: AgentProperties; /** * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. + * repoistory. * If it is relative URL, the relative path should be obtained from calling * 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 +1752,10 @@ export interface DockerBuildStep extends TaskStepProperties { * The Docker file path relative to the source context. */ dockerFilePath: string; + /** + * Gets or sets 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 +1823,10 @@ export interface DockerBuildStepUpdateParameters extends TaskStepUpdateParameter * The collection of override arguments to be used when executing this build step. */ argumentsProperty?: Argument[]; + /** + * Gets or sets 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..97c98232c1 --- /dev/null +++ b/lib/services/containerRegistryManagement/lib/models/secretObject.js @@ -0,0 +1,68 @@ +/* + * 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. For example, if the type is of + * vault secret, + * the value will be the URL to the vault secret. If the type is Opaque, the + * vaule 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/sourceProperties.js b/lib/services/containerRegistryManagement/lib/models/sourceProperties.js index d8e90cbbf3..45d651f961 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceProperties.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceProperties.js @@ -20,7 +20,7 @@ class SourceProperties { * @property {string} sourceControlType The type of source control service. * Possible values include: 'Github', 'VisualStudioTeamService' * @property {string} repositoryUrl The full URL to the source code - * repository + * respository * @property {string} [branch] The branch name of the source code. * @property {object} [sourceControlAuthProperties] The authorization * properties for accessing the source code repository and to set up 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/sourceTrigger.js b/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js index 425b3134da..6603aaeb72 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js @@ -23,7 +23,7 @@ class SourceTrigger { * control service. Possible values include: 'Github', * 'VisualStudioTeamService' * @property {string} [sourceRepository.repositoryUrl] The full URL to the - * source code repository + * source code respository * @property {string} [sourceRepository.branch] The branch name of the source * code. * @property {object} [sourceRepository.sourceControlAuthProperties] The diff --git a/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js b/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js index a50ef920e6..a0943abbd3 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js @@ -23,7 +23,7 @@ class SourceTriggerUpdateParameters { * control service. Possible values include: 'Github', * 'VisualStudioTeamService' * @property {string} [sourceRepository.repositoryUrl] The full URL to the - * source code repository + * source code respository * @property {string} [sourceRepository.branch] The branch name of the source * code. * @property {object} [sourceRepository.sourceControlAuthProperties] The diff --git a/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js b/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js index 7fa1ca0567..57f3485094 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js @@ -20,7 +20,7 @@ class SourceUpdateParameters { * @property {string} [sourceControlType] The type of source control service. * Possible values include: 'Github', 'VisualStudioTeamService' * @property {string} [repositoryUrl] The full URL to the source code - * repository + * respository * @property {string} [branch] The branch name of the source code. * @property {object} [sourceControlAuthProperties] The authorization * properties for accessing the source code repository and to set up diff --git a/lib/services/containerRegistryManagement/lib/models/task.js b/lib/services/containerRegistryManagement/lib/models/task.js index 8e2af15744..7f83e36591 100644 --- a/lib/services/containerRegistryManagement/lib/models/task.js +++ b/lib/services/containerRegistryManagement/lib/models/task.js @@ -14,7 +14,7 @@ const models = require('./index'); /** * The task that has the ARM resource and task properties. - * The task will have all information to schedule a run against it. + * The task will have all information to schedule a run against it. * * @extends models['Resource'] */ @@ -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. From 61238cdd218f78381615dcf0eaf15cf0888b0f1c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 22:33:54 +0000 Subject: [PATCH 2/3] Generated from eee2b8e1764c5ccdbcee33706612550b627d86e0 fix indentation --- .../lib/models/customRegistryCredentials.js | 12 ++++-------- .../lib/models/index.d.ts | 3 +-- .../lib/models/secretObject.js | 6 ++---- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js b/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js index 81390f74dd..8078675834 100644 --- a/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js +++ b/lib/services/containerRegistryManagement/lib/models/customRegistryCredentials.js @@ -22,10 +22,8 @@ class CustomRegistryCredentials { * 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. For example, if the type is of - * vault secret, - * the value will be the URL to the vault secret. If the type is Opaque, the - * vaule will be + * based on the type of the secret object. If the type is Opaque, the vaule + * 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 @@ -35,10 +33,8 @@ class CustomRegistryCredentials { * 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. For example, if the type is of - * vault secret, - * the value will be the URL to the vault secret. If the type is Opaque, the - * vaule will be + * based on the type of the secret object. If the type is Opaque, the vaule + * 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 diff --git a/lib/services/containerRegistryManagement/lib/models/index.d.ts b/lib/services/containerRegistryManagement/lib/models/index.d.ts index 0b2c01c8d2..21cc5318aa 100644 --- a/lib/services/containerRegistryManagement/lib/models/index.d.ts +++ b/lib/services/containerRegistryManagement/lib/models/index.d.ts @@ -1277,8 +1277,7 @@ export interface SourceRegistryCredentials { export interface SecretObject { /** * The value of the secret. The format of this value will be determined - * based on the type of the secret object. For example, if the type is of vault secret, - * the value will be the URL to the vault secret. If the type is Opaque, the vaule will be + * based on the type of the secret object. If the type is Opaque, the vaule will be * used as is without any modification. */ value?: string; diff --git a/lib/services/containerRegistryManagement/lib/models/secretObject.js b/lib/services/containerRegistryManagement/lib/models/secretObject.js index 97c98232c1..2a129d9472 100644 --- a/lib/services/containerRegistryManagement/lib/models/secretObject.js +++ b/lib/services/containerRegistryManagement/lib/models/secretObject.js @@ -19,10 +19,8 @@ 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. For example, if the type is of - * vault secret, - * the value will be the URL to the vault secret. If the type is Opaque, the - * vaule will be + * based on the type of the secret object. If the type is Opaque, the vaule + * 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 From 6b5f563e66bbb0a9da413308d22d75e76abe824d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 16 Jan 2019 22:49:53 +0000 Subject: [PATCH 3/3] Generated from 545fd2f27c2b847c5c99cbfea7ceab77496b6652 fix spelling mistakes --- .../lib/models/dockerBuildRequest.js | 2 +- .../lib/models/encodedTaskRunRequest.js | 2 +- .../lib/models/fileTaskRunRequest.js | 2 +- .../containerRegistryManagement/lib/models/index.d.ts | 10 +++++----- .../lib/models/sourceProperties.js | 2 +- .../lib/models/sourceTrigger.js | 2 +- .../lib/models/sourceTriggerUpdateParameters.js | 2 +- .../lib/models/sourceUpdateParameters.js | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js b/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js index ff3640cc8c..a8a6bb6c67 100644 --- a/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/dockerBuildRequest.js @@ -47,7 +47,7 @@ class DockerBuildRequest extends models['RunRequest'] { * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. * @property {string} [sourceLocation] The URL(absolute or relative) of the - * source context. It can be an URL to a tar or git repoistory. + * 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 diff --git a/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js b/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js index 31e696f1e8..e21b5d20ff 100644 --- a/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/encodedTaskRunRequest.js @@ -40,7 +40,7 @@ class EncodedTaskRunRequest extends models['RunRequest'] { * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. * @property {string} [sourceLocation] The URL(absolute or relative) of the - * source context. It can be an URL to a tar or git repoistory. + * 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 diff --git a/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js b/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js index 67707ee3e1..8a6a29729b 100644 --- a/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js +++ b/lib/services/containerRegistryManagement/lib/models/fileTaskRunRequest.js @@ -40,7 +40,7 @@ class FileTaskRunRequest extends models['RunRequest'] { * @property {number} [agentConfiguration.cpu] The CPU configuration in terms * of number of cores required for the run. * @property {string} [sourceLocation] The URL(absolute or relative) of the - * source context. It can be an URL to a tar or git repoistory. + * 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 diff --git a/lib/services/containerRegistryManagement/lib/models/index.d.ts b/lib/services/containerRegistryManagement/lib/models/index.d.ts index 21cc5318aa..55c8e6e8ee 100644 --- a/lib/services/containerRegistryManagement/lib/models/index.d.ts +++ b/lib/services/containerRegistryManagement/lib/models/index.d.ts @@ -1189,7 +1189,7 @@ export interface SourceProperties { */ sourceControlType: string; /** - * The full URL to the source code respository + * The full URL to the source code repository */ repositoryUrl: string; /** @@ -1436,7 +1436,7 @@ export interface SourceUpdateParameters { */ sourceControlType?: string; /** - * The full URL to the source code respository + * The full URL to the source code repository */ repositoryUrl?: string; /** @@ -1605,7 +1605,7 @@ export interface DockerBuildRequest extends RunRequest { agentConfiguration?: AgentProperties; /** * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repoistory. + * repository. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. */ @@ -1664,7 +1664,7 @@ export interface FileTaskRunRequest extends RunRequest { agentConfiguration?: AgentProperties; /** * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repoistory. + * repository. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. */ @@ -1719,7 +1719,7 @@ export interface EncodedTaskRunRequest extends RunRequest { agentConfiguration?: AgentProperties; /** * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repoistory. + * repository. * If it is relative URL, the relative path should be obtained from calling * listBuildSourceUploadUrl API. */ diff --git a/lib/services/containerRegistryManagement/lib/models/sourceProperties.js b/lib/services/containerRegistryManagement/lib/models/sourceProperties.js index 45d651f961..d8e90cbbf3 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceProperties.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceProperties.js @@ -20,7 +20,7 @@ class SourceProperties { * @property {string} sourceControlType The type of source control service. * Possible values include: 'Github', 'VisualStudioTeamService' * @property {string} repositoryUrl The full URL to the source code - * respository + * repository * @property {string} [branch] The branch name of the source code. * @property {object} [sourceControlAuthProperties] The authorization * properties for accessing the source code repository and to set up diff --git a/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js b/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js index 6603aaeb72..425b3134da 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceTrigger.js @@ -23,7 +23,7 @@ class SourceTrigger { * control service. Possible values include: 'Github', * 'VisualStudioTeamService' * @property {string} [sourceRepository.repositoryUrl] The full URL to the - * source code respository + * source code repository * @property {string} [sourceRepository.branch] The branch name of the source * code. * @property {object} [sourceRepository.sourceControlAuthProperties] The diff --git a/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js b/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js index a0943abbd3..a50ef920e6 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceTriggerUpdateParameters.js @@ -23,7 +23,7 @@ class SourceTriggerUpdateParameters { * control service. Possible values include: 'Github', * 'VisualStudioTeamService' * @property {string} [sourceRepository.repositoryUrl] The full URL to the - * source code respository + * source code repository * @property {string} [sourceRepository.branch] The branch name of the source * code. * @property {object} [sourceRepository.sourceControlAuthProperties] The diff --git a/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js b/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js index 57f3485094..7fa1ca0567 100644 --- a/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js +++ b/lib/services/containerRegistryManagement/lib/models/sourceUpdateParameters.js @@ -20,7 +20,7 @@ class SourceUpdateParameters { * @property {string} [sourceControlType] The type of source control service. * Possible values include: 'Github', 'VisualStudioTeamService' * @property {string} [repositoryUrl] The full URL to the source code - * respository + * repository * @property {string} [branch] The branch name of the source code. * @property {object} [sourceControlAuthProperties] The authorization * properties for accessing the source code repository and to set up