@azure/arm-containerinstance 9.1.1-alpha.20241023.1 → 9.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1855 -966
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js +40 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js +55 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js +260 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js +58 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js +53 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js +42 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +88 -51
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.js +9 -6
- package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsStartSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsStopSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +5 -4
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containersAttachSample.js +3 -2
- package/dist-esm/samples-dev/containersAttachSample.js.map +1 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +5 -4
- package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +1 -1
- package/dist-esm/samples-dev/containersListLogsSample.js +4 -3
- package/dist-esm/samples-dev/containersListLogsSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +3 -2
- package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +3 -2
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListUsageSample.js +3 -2
- package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +3 -2
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.d.ts +4 -3
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.js +13 -11
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +145 -3
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +898 -640
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -47
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/containerGroupProfileOperations.d.ts +55 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.js +191 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.js.map +1 -0
- package/dist-esm/src/operations/containerGroupProfiles.d.ts +95 -0
- package/dist-esm/src/operations/containerGroupProfiles.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroupProfiles.js +401 -0
- package/dist-esm/src/operations/containerGroupProfiles.js.map +1 -0
- package/dist-esm/src/operations/containerGroups.d.ts +15 -15
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/containerGroups.js +97 -97
- package/dist-esm/src/operations/containerGroups.js.map +1 -1
- package/dist-esm/src/operations/containers.d.ts +3 -3
- package/dist-esm/src/operations/containers.js +20 -20
- package/dist-esm/src/operations/containers.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts +8 -8
- package/dist-esm/src/operations/location.js +36 -36
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.js +11 -11
- package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +13 -13
- package/dist-esm/src/operationsInterfaces/containers.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/location.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/test/containerinstance_examples.d.ts.map +1 -1
- package/dist-esm/test/containerinstance_examples.js +1 -4
- package/dist-esm/test/containerinstance_examples.js.map +1 -1
- package/package.json +31 -35
- package/review/arm-containerinstance.api.md +155 -3
- package/src/containerInstanceManagementClient.ts +29 -20
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +194 -17
- package/src/models/mappers.ts +974 -702
- package/src/models/parameters.ts +94 -48
- package/src/operations/containerGroupProfileOperations.ts +255 -0
- package/src/operations/containerGroupProfiles.ts +485 -0
- package/src/operations/containerGroups.ts +188 -201
- package/src/operations/containers.ts +30 -33
- package/src/operations/index.ts +2 -0
- package/src/operations/location.ts +63 -66
- package/src/operations/operations.ts +16 -16
- package/src/operations/subnetServiceAssociationLink.ts +24 -25
- package/src/operationsInterfaces/containerGroupProfileOperations.ts +50 -0
- package/src/operationsInterfaces/containerGroupProfiles.ts +99 -0
- package/src/operationsInterfaces/containerGroups.ts +28 -28
- package/src/operationsInterfaces/containers.ts +7 -7
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/location.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/subnetServiceAssociationLink.ts +4 -4
- package/src/pagingHelper.ts +1 -1
- package/types/arm-containerinstance.d.ts +275 -26
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { ContainerGroupProfiles } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
16
|
+
import {
|
|
17
|
+
ContainerGroupProfile,
|
|
18
|
+
ContainerGroupProfilesListNextOptionalParams,
|
|
19
|
+
ContainerGroupProfilesListOptionalParams,
|
|
20
|
+
ContainerGroupProfilesListResponse,
|
|
21
|
+
ContainerGroupProfilesListByResourceGroupNextOptionalParams,
|
|
22
|
+
ContainerGroupProfilesListByResourceGroupOptionalParams,
|
|
23
|
+
ContainerGroupProfilesListByResourceGroupResponse,
|
|
24
|
+
ContainerGroupProfilesGetOptionalParams,
|
|
25
|
+
ContainerGroupProfilesGetResponse,
|
|
26
|
+
ContainerGroupProfilesCreateOrUpdateOptionalParams,
|
|
27
|
+
ContainerGroupProfilesCreateOrUpdateResponse,
|
|
28
|
+
ContainerGroupProfilePatch,
|
|
29
|
+
ContainerGroupProfilesPatchOptionalParams,
|
|
30
|
+
ContainerGroupProfilesPatchResponse,
|
|
31
|
+
ContainerGroupProfilesDeleteOptionalParams,
|
|
32
|
+
ContainerGroupProfilesListNextResponse,
|
|
33
|
+
ContainerGroupProfilesListByResourceGroupNextResponse,
|
|
34
|
+
} from "../models";
|
|
35
|
+
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing ContainerGroupProfiles operations. */
|
|
38
|
+
export class ContainerGroupProfilesImpl implements ContainerGroupProfiles {
|
|
39
|
+
private readonly client: ContainerInstanceManagementClient;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initialize a new instance of the class ContainerGroupProfiles class.
|
|
43
|
+
* @param client Reference to the service client
|
|
44
|
+
*/
|
|
45
|
+
constructor(client: ContainerInstanceManagementClient) {
|
|
46
|
+
this.client = client;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Get a list of container group profiles in the specified subscription. This operation returns
|
|
51
|
+
* properties of each container group profile including containers, image registry credentials, restart
|
|
52
|
+
* policy, IP address type, OS type,volumes,current revision number, etc.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
public list(
|
|
56
|
+
options?: ContainerGroupProfilesListOptionalParams,
|
|
57
|
+
): PagedAsyncIterableIterator<ContainerGroupProfile> {
|
|
58
|
+
const iter = this.listPagingAll(options);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
70
|
+
return this.listPagingPage(options, settings);
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listPagingPage(
|
|
76
|
+
options?: ContainerGroupProfilesListOptionalParams,
|
|
77
|
+
settings?: PageSettings,
|
|
78
|
+
): AsyncIterableIterator<ContainerGroupProfile[]> {
|
|
79
|
+
let result: ContainerGroupProfilesListResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._list(options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
88
|
+
while (continuationToken) {
|
|
89
|
+
result = await this._listNext(continuationToken, options);
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
private async *listPagingAll(
|
|
98
|
+
options?: ContainerGroupProfilesListOptionalParams,
|
|
99
|
+
): AsyncIterableIterator<ContainerGroupProfile> {
|
|
100
|
+
for await (const page of this.listPagingPage(options)) {
|
|
101
|
+
yield* page;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Get a list of container group profiles in a specified subscription and resource group. This
|
|
107
|
+
* operation returns properties of each container group profile including containers, image registry
|
|
108
|
+
* credentials, restart policy, IP address type, OS type volumes, current revision number, etc.
|
|
109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
public listByResourceGroup(
|
|
113
|
+
resourceGroupName: string,
|
|
114
|
+
options?: ContainerGroupProfilesListByResourceGroupOptionalParams,
|
|
115
|
+
): PagedAsyncIterableIterator<ContainerGroupProfile> {
|
|
116
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
117
|
+
return {
|
|
118
|
+
next() {
|
|
119
|
+
return iter.next();
|
|
120
|
+
},
|
|
121
|
+
[Symbol.asyncIterator]() {
|
|
122
|
+
return this;
|
|
123
|
+
},
|
|
124
|
+
byPage: (settings?: PageSettings) => {
|
|
125
|
+
if (settings?.maxPageSize) {
|
|
126
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
127
|
+
}
|
|
128
|
+
return this.listByResourceGroupPagingPage(
|
|
129
|
+
resourceGroupName,
|
|
130
|
+
options,
|
|
131
|
+
settings,
|
|
132
|
+
);
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private async *listByResourceGroupPagingPage(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
options?: ContainerGroupProfilesListByResourceGroupOptionalParams,
|
|
140
|
+
settings?: PageSettings,
|
|
141
|
+
): AsyncIterableIterator<ContainerGroupProfile[]> {
|
|
142
|
+
let result: ContainerGroupProfilesListByResourceGroupResponse;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
146
|
+
let page = result.value || [];
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
setContinuationToken(page, continuationToken);
|
|
149
|
+
yield page;
|
|
150
|
+
}
|
|
151
|
+
while (continuationToken) {
|
|
152
|
+
result = await this._listByResourceGroupNext(
|
|
153
|
+
resourceGroupName,
|
|
154
|
+
continuationToken,
|
|
155
|
+
options,
|
|
156
|
+
);
|
|
157
|
+
continuationToken = result.nextLink;
|
|
158
|
+
let page = result.value || [];
|
|
159
|
+
setContinuationToken(page, continuationToken);
|
|
160
|
+
yield page;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
private async *listByResourceGroupPagingAll(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
options?: ContainerGroupProfilesListByResourceGroupOptionalParams,
|
|
167
|
+
): AsyncIterableIterator<ContainerGroupProfile> {
|
|
168
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
169
|
+
resourceGroupName,
|
|
170
|
+
options,
|
|
171
|
+
)) {
|
|
172
|
+
yield* page;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Get a list of container group profiles in the specified subscription. This operation returns
|
|
178
|
+
* properties of each container group profile including containers, image registry credentials, restart
|
|
179
|
+
* policy, IP address type, OS type,volumes,current revision number, etc.
|
|
180
|
+
* @param options The options parameters.
|
|
181
|
+
*/
|
|
182
|
+
private _list(
|
|
183
|
+
options?: ContainerGroupProfilesListOptionalParams,
|
|
184
|
+
): Promise<ContainerGroupProfilesListResponse> {
|
|
185
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Get a list of container group profiles in a specified subscription and resource group. This
|
|
190
|
+
* operation returns properties of each container group profile including containers, image registry
|
|
191
|
+
* credentials, restart policy, IP address type, OS type volumes, current revision number, etc.
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
private _listByResourceGroup(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
options?: ContainerGroupProfilesListByResourceGroupOptionalParams,
|
|
198
|
+
): Promise<ContainerGroupProfilesListByResourceGroupResponse> {
|
|
199
|
+
return this.client.sendOperationRequest(
|
|
200
|
+
{ resourceGroupName, options },
|
|
201
|
+
listByResourceGroupOperationSpec,
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Gets the properties of the specified container group profile in the specified subscription and
|
|
207
|
+
* resource group. The operation returns the properties of container group profile including
|
|
208
|
+
* containers, image registry credentials, restart policy, IP address type, OS type, volumes, current
|
|
209
|
+
* revision number, etc.
|
|
210
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
211
|
+
* @param containerGroupProfileName The name of the container group profile.
|
|
212
|
+
* @param options The options parameters.
|
|
213
|
+
*/
|
|
214
|
+
get(
|
|
215
|
+
resourceGroupName: string,
|
|
216
|
+
containerGroupProfileName: string,
|
|
217
|
+
options?: ContainerGroupProfilesGetOptionalParams,
|
|
218
|
+
): Promise<ContainerGroupProfilesGetResponse> {
|
|
219
|
+
return this.client.sendOperationRequest(
|
|
220
|
+
{ resourceGroupName, containerGroupProfileName, options },
|
|
221
|
+
getOperationSpec,
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Create or update container group profiles with specified configurations.
|
|
227
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
228
|
+
* @param containerGroupProfileName The name of the container group profile.
|
|
229
|
+
* @param containerGroupProfile The properties of the container group profile to be created or updated.
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
createOrUpdate(
|
|
233
|
+
resourceGroupName: string,
|
|
234
|
+
containerGroupProfileName: string,
|
|
235
|
+
containerGroupProfile: ContainerGroupProfile,
|
|
236
|
+
options?: ContainerGroupProfilesCreateOrUpdateOptionalParams,
|
|
237
|
+
): Promise<ContainerGroupProfilesCreateOrUpdateResponse> {
|
|
238
|
+
return this.client.sendOperationRequest(
|
|
239
|
+
{
|
|
240
|
+
resourceGroupName,
|
|
241
|
+
containerGroupProfileName,
|
|
242
|
+
containerGroupProfile,
|
|
243
|
+
options,
|
|
244
|
+
},
|
|
245
|
+
createOrUpdateOperationSpec,
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Patches container group profile with specified properties.
|
|
251
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
252
|
+
* @param containerGroupProfileName The name of the container group profile.
|
|
253
|
+
* @param properties The container group profile properties that need to be updated.
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
patch(
|
|
257
|
+
resourceGroupName: string,
|
|
258
|
+
containerGroupProfileName: string,
|
|
259
|
+
properties: ContainerGroupProfilePatch,
|
|
260
|
+
options?: ContainerGroupProfilesPatchOptionalParams,
|
|
261
|
+
): Promise<ContainerGroupProfilesPatchResponse> {
|
|
262
|
+
return this.client.sendOperationRequest(
|
|
263
|
+
{ resourceGroupName, containerGroupProfileName, properties, options },
|
|
264
|
+
patchOperationSpec,
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Delete the specified container group profile in the specified subscription and resource group. The
|
|
270
|
+
* operation does not delete other resources provided by the user, such as volumes.
|
|
271
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
|
+
* @param containerGroupProfileName The name of the container group profile.
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
delete(
|
|
276
|
+
resourceGroupName: string,
|
|
277
|
+
containerGroupProfileName: string,
|
|
278
|
+
options?: ContainerGroupProfilesDeleteOptionalParams,
|
|
279
|
+
): Promise<void> {
|
|
280
|
+
return this.client.sendOperationRequest(
|
|
281
|
+
{ resourceGroupName, containerGroupProfileName, options },
|
|
282
|
+
deleteOperationSpec,
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* ListNext
|
|
288
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
289
|
+
* @param options The options parameters.
|
|
290
|
+
*/
|
|
291
|
+
private _listNext(
|
|
292
|
+
nextLink: string,
|
|
293
|
+
options?: ContainerGroupProfilesListNextOptionalParams,
|
|
294
|
+
): Promise<ContainerGroupProfilesListNextResponse> {
|
|
295
|
+
return this.client.sendOperationRequest(
|
|
296
|
+
{ nextLink, options },
|
|
297
|
+
listNextOperationSpec,
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* ListByResourceGroupNext
|
|
303
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
304
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
private _listByResourceGroupNext(
|
|
308
|
+
resourceGroupName: string,
|
|
309
|
+
nextLink: string,
|
|
310
|
+
options?: ContainerGroupProfilesListByResourceGroupNextOptionalParams,
|
|
311
|
+
): Promise<ContainerGroupProfilesListByResourceGroupNextResponse> {
|
|
312
|
+
return this.client.sendOperationRequest(
|
|
313
|
+
{ resourceGroupName, nextLink, options },
|
|
314
|
+
listByResourceGroupNextOperationSpec,
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
// Operation Specifications
|
|
319
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
320
|
+
|
|
321
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
322
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles",
|
|
323
|
+
httpMethod: "GET",
|
|
324
|
+
responses: {
|
|
325
|
+
200: {
|
|
326
|
+
bodyMapper: Mappers.ContainerGroupProfileListResult,
|
|
327
|
+
},
|
|
328
|
+
default: {
|
|
329
|
+
bodyMapper: Mappers.CloudError,
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
queryParameters: [Parameters.apiVersion],
|
|
333
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
334
|
+
headerParameters: [Parameters.accept],
|
|
335
|
+
serializer,
|
|
336
|
+
};
|
|
337
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
338
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles",
|
|
339
|
+
httpMethod: "GET",
|
|
340
|
+
responses: {
|
|
341
|
+
200: {
|
|
342
|
+
bodyMapper: Mappers.ContainerGroupProfileListResult,
|
|
343
|
+
},
|
|
344
|
+
default: {
|
|
345
|
+
bodyMapper: Mappers.CloudError,
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
queryParameters: [Parameters.apiVersion],
|
|
349
|
+
urlParameters: [
|
|
350
|
+
Parameters.$host,
|
|
351
|
+
Parameters.subscriptionId,
|
|
352
|
+
Parameters.resourceGroupName,
|
|
353
|
+
],
|
|
354
|
+
headerParameters: [Parameters.accept],
|
|
355
|
+
serializer,
|
|
356
|
+
};
|
|
357
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
358
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
|
|
359
|
+
httpMethod: "GET",
|
|
360
|
+
responses: {
|
|
361
|
+
200: {
|
|
362
|
+
bodyMapper: Mappers.ContainerGroupProfile,
|
|
363
|
+
},
|
|
364
|
+
default: {
|
|
365
|
+
bodyMapper: Mappers.CloudError,
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
queryParameters: [Parameters.apiVersion],
|
|
369
|
+
urlParameters: [
|
|
370
|
+
Parameters.$host,
|
|
371
|
+
Parameters.subscriptionId,
|
|
372
|
+
Parameters.resourceGroupName,
|
|
373
|
+
Parameters.containerGroupProfileName,
|
|
374
|
+
],
|
|
375
|
+
headerParameters: [Parameters.accept],
|
|
376
|
+
serializer,
|
|
377
|
+
};
|
|
378
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
379
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
|
|
380
|
+
httpMethod: "PUT",
|
|
381
|
+
responses: {
|
|
382
|
+
200: {
|
|
383
|
+
bodyMapper: Mappers.ContainerGroupProfile,
|
|
384
|
+
},
|
|
385
|
+
201: {
|
|
386
|
+
bodyMapper: Mappers.ContainerGroupProfile,
|
|
387
|
+
},
|
|
388
|
+
default: {
|
|
389
|
+
bodyMapper: Mappers.CloudError,
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
requestBody: Parameters.containerGroupProfile,
|
|
393
|
+
queryParameters: [Parameters.apiVersion],
|
|
394
|
+
urlParameters: [
|
|
395
|
+
Parameters.$host,
|
|
396
|
+
Parameters.subscriptionId,
|
|
397
|
+
Parameters.resourceGroupName,
|
|
398
|
+
Parameters.containerGroupProfileName,
|
|
399
|
+
],
|
|
400
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
401
|
+
mediaType: "json",
|
|
402
|
+
serializer,
|
|
403
|
+
};
|
|
404
|
+
const patchOperationSpec: coreClient.OperationSpec = {
|
|
405
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
|
|
406
|
+
httpMethod: "PATCH",
|
|
407
|
+
responses: {
|
|
408
|
+
200: {
|
|
409
|
+
bodyMapper: Mappers.ContainerGroupProfile,
|
|
410
|
+
},
|
|
411
|
+
default: {
|
|
412
|
+
bodyMapper: Mappers.CloudError,
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
requestBody: Parameters.properties,
|
|
416
|
+
queryParameters: [Parameters.apiVersion],
|
|
417
|
+
urlParameters: [
|
|
418
|
+
Parameters.$host,
|
|
419
|
+
Parameters.subscriptionId,
|
|
420
|
+
Parameters.resourceGroupName,
|
|
421
|
+
Parameters.containerGroupProfileName,
|
|
422
|
+
],
|
|
423
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
424
|
+
mediaType: "json",
|
|
425
|
+
serializer,
|
|
426
|
+
};
|
|
427
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
428
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
|
|
429
|
+
httpMethod: "DELETE",
|
|
430
|
+
responses: {
|
|
431
|
+
200: {},
|
|
432
|
+
204: {},
|
|
433
|
+
default: {
|
|
434
|
+
bodyMapper: Mappers.CloudError,
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
queryParameters: [Parameters.apiVersion],
|
|
438
|
+
urlParameters: [
|
|
439
|
+
Parameters.$host,
|
|
440
|
+
Parameters.subscriptionId,
|
|
441
|
+
Parameters.resourceGroupName,
|
|
442
|
+
Parameters.containerGroupProfileName,
|
|
443
|
+
],
|
|
444
|
+
headerParameters: [Parameters.accept],
|
|
445
|
+
serializer,
|
|
446
|
+
};
|
|
447
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
448
|
+
path: "{nextLink}",
|
|
449
|
+
httpMethod: "GET",
|
|
450
|
+
responses: {
|
|
451
|
+
200: {
|
|
452
|
+
bodyMapper: Mappers.ContainerGroupProfileListResult,
|
|
453
|
+
},
|
|
454
|
+
default: {
|
|
455
|
+
bodyMapper: Mappers.CloudError,
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
urlParameters: [
|
|
459
|
+
Parameters.$host,
|
|
460
|
+
Parameters.subscriptionId,
|
|
461
|
+
Parameters.nextLink,
|
|
462
|
+
],
|
|
463
|
+
headerParameters: [Parameters.accept],
|
|
464
|
+
serializer,
|
|
465
|
+
};
|
|
466
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
467
|
+
path: "{nextLink}",
|
|
468
|
+
httpMethod: "GET",
|
|
469
|
+
responses: {
|
|
470
|
+
200: {
|
|
471
|
+
bodyMapper: Mappers.ContainerGroupProfileListResult,
|
|
472
|
+
},
|
|
473
|
+
default: {
|
|
474
|
+
bodyMapper: Mappers.CloudError,
|
|
475
|
+
},
|
|
476
|
+
},
|
|
477
|
+
urlParameters: [
|
|
478
|
+
Parameters.$host,
|
|
479
|
+
Parameters.subscriptionId,
|
|
480
|
+
Parameters.resourceGroupName,
|
|
481
|
+
Parameters.nextLink,
|
|
482
|
+
],
|
|
483
|
+
headerParameters: [Parameters.accept],
|
|
484
|
+
serializer,
|
|
485
|
+
};
|