Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions lib/services/containerRegistryManagement/lib/models/credentials.js
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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();
Expand Down Expand Up @@ -125,6 +144,13 @@ class DockerBuildRequest extends models['RunRequest'] {
name: 'String'
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'String'
}
},
argumentsProperty: {
required: false,
serializedName: 'arguments',
Expand Down Expand Up @@ -174,6 +200,14 @@ class DockerBuildRequest extends models['RunRequest'] {
type: {
name: 'String'
}
},
credentials: {
required: false,
serializedName: 'credentials',
type: {
name: 'Composite',
className: 'Credentials'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -130,6 +132,13 @@ class DockerBuildStep extends models['TaskStepProperties'] {
name: 'String'
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'String'
}
},
argumentsProperty: {
required: false,
serializedName: 'arguments',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -125,6 +127,13 @@ class DockerBuildStepUpdateParameters extends models['TaskStepUpdateParameters']
}
}
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -146,6 +163,14 @@ class EncodedTaskRunRequest extends models['RunRequest'] {
type: {
name: 'String'
}
},
credentials: {
required: false,
serializedName: 'credentials',
type: {
name: 'Composite',
className: 'Credentials'
}
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions lib/services/containerRegistryManagement/lib/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -146,6 +163,14 @@ class FileTaskRunRequest extends models['RunRequest'] {
type: {
name: 'String'
}
},
credentials: {
required: false,
serializedName: 'credentials',
type: {
name: 'Composite',
className: 'Credentials'
}
}
}
}
Expand Down
Loading