Skip to content

Commit

Permalink
CodeGen from PR 16247 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9a4bd5e47c3734f54dc3bd01f611fa85ec3871d0 into 2ebe584103a362fa87f2f60c9bab89ab410c7571
  • Loading branch information
SDKAuto committed Oct 7, 2021
1 parent af0330b commit 224664f
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 48 deletions.
2 changes: 1 addition & 1 deletion sdk/containerinstance/arm-containerinstance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/containerinstance/arm-containerinstance",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerinstance/arm-containerinstance",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class ContainerInstanceManagementClient extends ContainerInstanceManagementClien
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
* subscription. The subscription ID forms part of the URI for every service call.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ContainerInstanceManagementClientOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const packageVersion = "7.0.0";

export class ContainerInstanceManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials | TokenCredential;
subscriptionId: string;
apiVersion?: string;
subscriptionId: string;

/**
* Initializes a new instance of the ContainerInstanceManagementClient class.
Expand All @@ -28,8 +28,7 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
* subscription. The subscription ID forms part of the URI for every service call.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ContainerInstanceManagementClientOptions) {
Expand All @@ -50,7 +49,7 @@ export class ContainerInstanceManagementClientContext extends msRestAzure.AzureS

super(credentials, options);

this.apiVersion = '2021-07-01';
this.apiVersion = '2021-09-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ export interface Resource extends BaseResource {
* The resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The zones for the container group.
*/
zones?: string[];
}

/**
Expand Down
11 changes: 11 additions & 0 deletions sdk/containerinstance/arm-containerinstance/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,17 @@ export const Resource: msRest.CompositeMapper = {
}
}
}
},
zones: {
serializedName: "zones",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = {
mapper: {
required: true,
serializedName: "api-version",
constraints: {
MinLength: 1
},
type: {
name: "String"
}
Expand Down Expand Up @@ -54,6 +57,9 @@ export const location: msRest.OperationURLParameter = {
mapper: {
required: true,
serializedName: "location",
constraints: {
MinLength: 1
},
type: {
name: "String"
}
Expand All @@ -75,6 +81,10 @@ export const resourceGroupName: msRest.OperationURLParameter = {
mapper: {
required: true,
serializedName: "resourceGroupName",
constraints: {
MaxLength: 90,
MinLength: 1
},
type: {
name: "String"
}
Expand All @@ -85,6 +95,9 @@ export const subscriptionId: msRest.OperationURLParameter = {
mapper: {
required: true,
serializedName: "subscriptionId",
constraints: {
MinLength: 1
},
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ export class ContainerGroups {
* returns properties of each container group including containers, image registry credentials,
* restart policy, IP address type, OS type, state, and volumes.
* @summary Get a list of container groups in the specified subscription and resource group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param [options] The optional parameters
* @returns Promise<Models.ContainerGroupsListByResourceGroupResponse>
*/
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsListByResourceGroupResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param callback The callback
*/
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ContainerGroupListResult>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The optional parameters
* @param callback The callback
*/
Expand All @@ -89,20 +89,20 @@ export class ContainerGroups {
* group. The operation returns the properties of each container group including containers, image
* registry credentials, restart policy, IP address type, OS type, state, and volumes.
* @summary Get the properties of the specified container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<Models.ContainerGroupsGetResponse>
*/
get(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsGetResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param callback The callback
*/
get(resourceGroupName: string, containerGroupName: string, callback: msRest.ServiceCallback<Models.ContainerGroup>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param options The optional parameters
* @param callback The callback
Expand All @@ -122,7 +122,7 @@ export class ContainerGroups {
/**
* Create or update container groups with specified configurations.
* @summary Create or update container groups.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param containerGroup The properties of the container group to be created or updated.
* @param [options] The optional parameters
Expand All @@ -136,22 +136,22 @@ export class ContainerGroups {
/**
* Updates container group tags with specified values.
* @summary Update container groups.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param resource The container group resource with just the tags to be updated.
* @param [options] The optional parameters
* @returns Promise<Models.ContainerGroupsUpdateResponse>
*/
update(resourceGroupName: string, containerGroupName: string, resource: Models.Resource, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsUpdateResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param resource The container group resource with just the tags to be updated.
* @param callback The callback
*/
update(resourceGroupName: string, containerGroupName: string, resource: Models.Resource, callback: msRest.ServiceCallback<Models.ContainerGroup>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param resource The container group resource with just the tags to be updated.
* @param options The optional parameters
Expand All @@ -174,7 +174,7 @@ export class ContainerGroups {
* Delete the specified container group in the specified subscription and resource group. The
* operation does not delete other resources provided by the user, such as volumes.
* @summary Delete the specified container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<Models.ContainerGroupsDeleteMethodResponse>
Expand All @@ -188,7 +188,7 @@ export class ContainerGroups {
* Restarts all containers in a container group in place. If container image has updates, new image
* will be downloaded.
* @summary Restarts all containers in a container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
Expand All @@ -202,20 +202,20 @@ export class ContainerGroups {
* Stops all containers in a container group. Compute resources will be deallocated and billing
* will stop.
* @summary Stops all containers in a container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
stop(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param callback The callback
*/
stop(resourceGroupName: string, containerGroupName: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param options The optional parameters
* @param callback The callback
Expand All @@ -236,7 +236,7 @@ export class ContainerGroups {
* Starts all containers in a container group. Compute resources will be allocated and billing will
* start.
* @summary Starts all containers in a container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
Expand All @@ -250,20 +250,20 @@ export class ContainerGroups {
* Gets all the network dependencies for this container group to allow complete control of network
* setting and configuration. For container groups, this will always be an empty list.
* @summary Get all network dependencies for container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<Models.ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>
*/
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param callback The callback
*/
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, callback: msRest.ServiceCallback<string[]>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param options The optional parameters
* @param callback The callback
Expand All @@ -283,7 +283,7 @@ export class ContainerGroups {
/**
* Create or update container groups with specified configurations.
* @summary Create or update container groups.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param containerGroup The properties of the container group to be created or updated.
* @param [options] The optional parameters
Expand All @@ -305,7 +305,7 @@ export class ContainerGroups {
* Delete the specified container group in the specified subscription and resource group. The
* operation does not delete other resources provided by the user, such as volumes.
* @summary Delete the specified container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
Expand All @@ -325,7 +325,7 @@ export class ContainerGroups {
* Restarts all containers in a container group in place. If container image has updates, new image
* will be downloaded.
* @summary Restarts all containers in a container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
Expand All @@ -345,7 +345,7 @@ export class ContainerGroups {
* Starts all containers in a container group. Compute resources will be allocated and billing will
* start.
* @summary Starts all containers in a container group.
* @param resourceGroupName The name of the resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param containerGroupName The name of the container group.
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
Expand Down
Loading

0 comments on commit 224664f

Please sign in to comment.