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

[AutoPR containerregistry/resource-manager] Azure container registry build feature GA API specification and examples. #3318

Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default class ContainerRegistryManagementClient extends AzureServiceClien
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand All @@ -58,9 +58,8 @@ export default class ContainerRegistryManagementClient extends AzureServiceClien
operations: operations.Operations;
replications: operations.Replications;
webhooks: operations.Webhooks;
builds: operations.Builds;
buildSteps: operations.BuildSteps;
buildTasks: operations.BuildTasks;
runs: operations.Runs;
tasks: operations.Tasks;
}

export { ContainerRegistryManagementClient, models as ContainerRegistryManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class ContainerRegistryManagementClient extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
Expand Down Expand Up @@ -75,9 +75,8 @@ class ContainerRegistryManagementClient extends ServiceClient {
this.operations = new operations.Operations(this);
this.replications = new operations.Replications(this);
this.webhooks = new operations.Webhooks(this);
this.builds = new operations.Builds(this);
this.buildSteps = new operations.BuildSteps(this);
this.buildTasks = new operations.BuildTasks(this);
this.runs = new operations.Runs(this);
this.tasks = new operations.Tasks(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

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

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

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

'use strict';

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

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

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

'use strict';

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

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

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

'use strict';

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

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

module.exports = AuthInfoUpdateParameters;
Loading