@azure/arm-containerinstance 9.1.1-alpha.20241024.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 +30 -31
- 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
|
@@ -16,7 +16,7 @@ import { ContainerInstanceManagementClient } from "../containerInstanceManagemen
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
43
43
|
ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse,
|
|
44
44
|
ContainerGroupsListNextResponse,
|
|
45
|
-
ContainerGroupsListByResourceGroupNextResponse
|
|
45
|
+
ContainerGroupsListByResourceGroupNextResponse,
|
|
46
46
|
} from "../models";
|
|
47
47
|
|
|
48
48
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -65,7 +65,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
65
65
|
* @param options The options parameters.
|
|
66
66
|
*/
|
|
67
67
|
public list(
|
|
68
|
-
options?: ContainerGroupsListOptionalParams
|
|
68
|
+
options?: ContainerGroupsListOptionalParams,
|
|
69
69
|
): PagedAsyncIterableIterator<ContainerGroup> {
|
|
70
70
|
const iter = this.listPagingAll(options);
|
|
71
71
|
return {
|
|
@@ -80,13 +80,13 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
80
80
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
81
81
|
}
|
|
82
82
|
return this.listPagingPage(options, settings);
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
private async *listPagingPage(
|
|
88
88
|
options?: ContainerGroupsListOptionalParams,
|
|
89
|
-
settings?: PageSettings
|
|
89
|
+
settings?: PageSettings,
|
|
90
90
|
): AsyncIterableIterator<ContainerGroup[]> {
|
|
91
91
|
let result: ContainerGroupsListResponse;
|
|
92
92
|
let continuationToken = settings?.continuationToken;
|
|
@@ -107,7 +107,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
private async *listPagingAll(
|
|
110
|
-
options?: ContainerGroupsListOptionalParams
|
|
110
|
+
options?: ContainerGroupsListOptionalParams,
|
|
111
111
|
): AsyncIterableIterator<ContainerGroup> {
|
|
112
112
|
for await (const page of this.listPagingPage(options)) {
|
|
113
113
|
yield* page;
|
|
@@ -118,12 +118,12 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
118
118
|
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
119
119
|
* returns properties of each container group including containers, image registry credentials, restart
|
|
120
120
|
* policy, IP address type, OS type, state, and volumes.
|
|
121
|
-
* @param resourceGroupName The name of the resource group.
|
|
121
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
122
122
|
* @param options The options parameters.
|
|
123
123
|
*/
|
|
124
124
|
public listByResourceGroup(
|
|
125
125
|
resourceGroupName: string,
|
|
126
|
-
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
126
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams,
|
|
127
127
|
): PagedAsyncIterableIterator<ContainerGroup> {
|
|
128
128
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
129
129
|
return {
|
|
@@ -140,16 +140,16 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
140
140
|
return this.listByResourceGroupPagingPage(
|
|
141
141
|
resourceGroupName,
|
|
142
142
|
options,
|
|
143
|
-
settings
|
|
143
|
+
settings,
|
|
144
144
|
);
|
|
145
|
-
}
|
|
145
|
+
},
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
private async *listByResourceGroupPagingPage(
|
|
150
150
|
resourceGroupName: string,
|
|
151
151
|
options?: ContainerGroupsListByResourceGroupOptionalParams,
|
|
152
|
-
settings?: PageSettings
|
|
152
|
+
settings?: PageSettings,
|
|
153
153
|
): AsyncIterableIterator<ContainerGroup[]> {
|
|
154
154
|
let result: ContainerGroupsListByResourceGroupResponse;
|
|
155
155
|
let continuationToken = settings?.continuationToken;
|
|
@@ -164,7 +164,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
164
164
|
result = await this._listByResourceGroupNext(
|
|
165
165
|
resourceGroupName,
|
|
166
166
|
continuationToken,
|
|
167
|
-
options
|
|
167
|
+
options,
|
|
168
168
|
);
|
|
169
169
|
continuationToken = result.nextLink;
|
|
170
170
|
let page = result.value || [];
|
|
@@ -175,11 +175,11 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
175
175
|
|
|
176
176
|
private async *listByResourceGroupPagingAll(
|
|
177
177
|
resourceGroupName: string,
|
|
178
|
-
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
178
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams,
|
|
179
179
|
): AsyncIterableIterator<ContainerGroup> {
|
|
180
180
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
181
181
|
resourceGroupName,
|
|
182
|
-
options
|
|
182
|
+
options,
|
|
183
183
|
)) {
|
|
184
184
|
yield* page;
|
|
185
185
|
}
|
|
@@ -192,7 +192,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
192
192
|
* @param options The options parameters.
|
|
193
193
|
*/
|
|
194
194
|
private _list(
|
|
195
|
-
options?: ContainerGroupsListOptionalParams
|
|
195
|
+
options?: ContainerGroupsListOptionalParams,
|
|
196
196
|
): Promise<ContainerGroupsListResponse> {
|
|
197
197
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
198
198
|
}
|
|
@@ -201,16 +201,16 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
201
201
|
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
202
202
|
* returns properties of each container group including containers, image registry credentials, restart
|
|
203
203
|
* policy, IP address type, OS type, state, and volumes.
|
|
204
|
-
* @param resourceGroupName The name of the resource group.
|
|
204
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
205
205
|
* @param options The options parameters.
|
|
206
206
|
*/
|
|
207
207
|
private _listByResourceGroup(
|
|
208
208
|
resourceGroupName: string,
|
|
209
|
-
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
209
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams,
|
|
210
210
|
): Promise<ContainerGroupsListByResourceGroupResponse> {
|
|
211
211
|
return this.client.sendOperationRequest(
|
|
212
212
|
{ resourceGroupName, options },
|
|
213
|
-
listByResourceGroupOperationSpec
|
|
213
|
+
listByResourceGroupOperationSpec,
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
216
|
|
|
@@ -218,24 +218,24 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
218
218
|
* Gets the properties of the specified container group in the specified subscription and resource
|
|
219
219
|
* group. The operation returns the properties of each container group including containers, image
|
|
220
220
|
* registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
221
|
-
* @param resourceGroupName The name of the resource group.
|
|
221
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
222
222
|
* @param containerGroupName The name of the container group.
|
|
223
223
|
* @param options The options parameters.
|
|
224
224
|
*/
|
|
225
225
|
get(
|
|
226
226
|
resourceGroupName: string,
|
|
227
227
|
containerGroupName: string,
|
|
228
|
-
options?: ContainerGroupsGetOptionalParams
|
|
228
|
+
options?: ContainerGroupsGetOptionalParams,
|
|
229
229
|
): Promise<ContainerGroupsGetResponse> {
|
|
230
230
|
return this.client.sendOperationRequest(
|
|
231
231
|
{ resourceGroupName, containerGroupName, options },
|
|
232
|
-
getOperationSpec
|
|
232
|
+
getOperationSpec,
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* Create or update container groups with specified configurations.
|
|
238
|
-
* @param resourceGroupName The name of the resource group.
|
|
238
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
239
239
|
* @param containerGroupName The name of the container group.
|
|
240
240
|
* @param containerGroup The properties of the container group to be created or updated.
|
|
241
241
|
* @param options The options parameters.
|
|
@@ -244,7 +244,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
244
244
|
resourceGroupName: string,
|
|
245
245
|
containerGroupName: string,
|
|
246
246
|
containerGroup: ContainerGroup,
|
|
247
|
-
options?: ContainerGroupsCreateOrUpdateOptionalParams
|
|
247
|
+
options?: ContainerGroupsCreateOrUpdateOptionalParams,
|
|
248
248
|
): Promise<
|
|
249
249
|
SimplePollerLike<
|
|
250
250
|
OperationState<ContainerGroupsCreateOrUpdateResponse>,
|
|
@@ -253,21 +253,20 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
253
253
|
> {
|
|
254
254
|
const directSendOperation = async (
|
|
255
255
|
args: coreClient.OperationArguments,
|
|
256
|
-
spec: coreClient.OperationSpec
|
|
256
|
+
spec: coreClient.OperationSpec,
|
|
257
257
|
): Promise<ContainerGroupsCreateOrUpdateResponse> => {
|
|
258
258
|
return this.client.sendOperationRequest(args, spec);
|
|
259
259
|
};
|
|
260
260
|
const sendOperationFn = async (
|
|
261
261
|
args: coreClient.OperationArguments,
|
|
262
|
-
spec: coreClient.OperationSpec
|
|
262
|
+
spec: coreClient.OperationSpec,
|
|
263
263
|
) => {
|
|
264
|
-
let currentRawResponse:
|
|
265
|
-
|
|
266
|
-
| undefined = undefined;
|
|
264
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
265
|
+
undefined;
|
|
267
266
|
const providedCallback = args.options?.onResponse;
|
|
268
267
|
const callback: coreClient.RawResponseCallback = (
|
|
269
268
|
rawResponse: coreClient.FullOperationResponse,
|
|
270
|
-
flatResponse: unknown
|
|
269
|
+
flatResponse: unknown,
|
|
271
270
|
) => {
|
|
272
271
|
currentRawResponse = rawResponse;
|
|
273
272
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -276,8 +275,8 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
276
275
|
...args,
|
|
277
276
|
options: {
|
|
278
277
|
...args.options,
|
|
279
|
-
onResponse: callback
|
|
280
|
-
}
|
|
278
|
+
onResponse: callback,
|
|
279
|
+
},
|
|
281
280
|
};
|
|
282
281
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
283
282
|
return {
|
|
@@ -285,22 +284,22 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
285
284
|
rawResponse: {
|
|
286
285
|
statusCode: currentRawResponse!.status,
|
|
287
286
|
body: currentRawResponse!.parsedBody,
|
|
288
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
289
|
-
}
|
|
287
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
288
|
+
},
|
|
290
289
|
};
|
|
291
290
|
};
|
|
292
291
|
|
|
293
292
|
const lro = createLroSpec({
|
|
294
293
|
sendOperationFn,
|
|
295
294
|
args: { resourceGroupName, containerGroupName, containerGroup, options },
|
|
296
|
-
spec: createOrUpdateOperationSpec
|
|
295
|
+
spec: createOrUpdateOperationSpec,
|
|
297
296
|
});
|
|
298
297
|
const poller = await createHttpPoller<
|
|
299
298
|
ContainerGroupsCreateOrUpdateResponse,
|
|
300
299
|
OperationState<ContainerGroupsCreateOrUpdateResponse>
|
|
301
300
|
>(lro, {
|
|
302
301
|
restoreFrom: options?.resumeFrom,
|
|
303
|
-
intervalInMs: options?.updateIntervalInMs
|
|
302
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
304
303
|
});
|
|
305
304
|
await poller.poll();
|
|
306
305
|
return poller;
|
|
@@ -308,7 +307,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
308
307
|
|
|
309
308
|
/**
|
|
310
309
|
* Create or update container groups with specified configurations.
|
|
311
|
-
* @param resourceGroupName The name of the resource group.
|
|
310
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
312
311
|
* @param containerGroupName The name of the container group.
|
|
313
312
|
* @param containerGroup The properties of the container group to be created or updated.
|
|
314
313
|
* @param options The options parameters.
|
|
@@ -317,20 +316,20 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
317
316
|
resourceGroupName: string,
|
|
318
317
|
containerGroupName: string,
|
|
319
318
|
containerGroup: ContainerGroup,
|
|
320
|
-
options?: ContainerGroupsCreateOrUpdateOptionalParams
|
|
319
|
+
options?: ContainerGroupsCreateOrUpdateOptionalParams,
|
|
321
320
|
): Promise<ContainerGroupsCreateOrUpdateResponse> {
|
|
322
321
|
const poller = await this.beginCreateOrUpdate(
|
|
323
322
|
resourceGroupName,
|
|
324
323
|
containerGroupName,
|
|
325
324
|
containerGroup,
|
|
326
|
-
options
|
|
325
|
+
options,
|
|
327
326
|
);
|
|
328
327
|
return poller.pollUntilDone();
|
|
329
328
|
}
|
|
330
329
|
|
|
331
330
|
/**
|
|
332
331
|
* Updates container group tags with specified values.
|
|
333
|
-
* @param resourceGroupName The name of the resource group.
|
|
332
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
334
333
|
* @param containerGroupName The name of the container group.
|
|
335
334
|
* @param resource The container group resource with just the tags to be updated.
|
|
336
335
|
* @param options The options parameters.
|
|
@@ -339,25 +338,25 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
339
338
|
resourceGroupName: string,
|
|
340
339
|
containerGroupName: string,
|
|
341
340
|
resource: Resource,
|
|
342
|
-
options?: ContainerGroupsUpdateOptionalParams
|
|
341
|
+
options?: ContainerGroupsUpdateOptionalParams,
|
|
343
342
|
): Promise<ContainerGroupsUpdateResponse> {
|
|
344
343
|
return this.client.sendOperationRequest(
|
|
345
344
|
{ resourceGroupName, containerGroupName, resource, options },
|
|
346
|
-
updateOperationSpec
|
|
345
|
+
updateOperationSpec,
|
|
347
346
|
);
|
|
348
347
|
}
|
|
349
348
|
|
|
350
349
|
/**
|
|
351
350
|
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
352
351
|
* does not delete other resources provided by the user, such as volumes.
|
|
353
|
-
* @param resourceGroupName The name of the resource group.
|
|
352
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
354
353
|
* @param containerGroupName The name of the container group.
|
|
355
354
|
* @param options The options parameters.
|
|
356
355
|
*/
|
|
357
356
|
async beginDelete(
|
|
358
357
|
resourceGroupName: string,
|
|
359
358
|
containerGroupName: string,
|
|
360
|
-
options?: ContainerGroupsDeleteOptionalParams
|
|
359
|
+
options?: ContainerGroupsDeleteOptionalParams,
|
|
361
360
|
): Promise<
|
|
362
361
|
SimplePollerLike<
|
|
363
362
|
OperationState<ContainerGroupsDeleteResponse>,
|
|
@@ -366,21 +365,20 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
366
365
|
> {
|
|
367
366
|
const directSendOperation = async (
|
|
368
367
|
args: coreClient.OperationArguments,
|
|
369
|
-
spec: coreClient.OperationSpec
|
|
368
|
+
spec: coreClient.OperationSpec,
|
|
370
369
|
): Promise<ContainerGroupsDeleteResponse> => {
|
|
371
370
|
return this.client.sendOperationRequest(args, spec);
|
|
372
371
|
};
|
|
373
372
|
const sendOperationFn = async (
|
|
374
373
|
args: coreClient.OperationArguments,
|
|
375
|
-
spec: coreClient.OperationSpec
|
|
374
|
+
spec: coreClient.OperationSpec,
|
|
376
375
|
) => {
|
|
377
|
-
let currentRawResponse:
|
|
378
|
-
|
|
379
|
-
| undefined = undefined;
|
|
376
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
377
|
+
undefined;
|
|
380
378
|
const providedCallback = args.options?.onResponse;
|
|
381
379
|
const callback: coreClient.RawResponseCallback = (
|
|
382
380
|
rawResponse: coreClient.FullOperationResponse,
|
|
383
|
-
flatResponse: unknown
|
|
381
|
+
flatResponse: unknown,
|
|
384
382
|
) => {
|
|
385
383
|
currentRawResponse = rawResponse;
|
|
386
384
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -389,8 +387,8 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
389
387
|
...args,
|
|
390
388
|
options: {
|
|
391
389
|
...args.options,
|
|
392
|
-
onResponse: callback
|
|
393
|
-
}
|
|
390
|
+
onResponse: callback,
|
|
391
|
+
},
|
|
394
392
|
};
|
|
395
393
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
396
394
|
return {
|
|
@@ -398,22 +396,22 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
398
396
|
rawResponse: {
|
|
399
397
|
statusCode: currentRawResponse!.status,
|
|
400
398
|
body: currentRawResponse!.parsedBody,
|
|
401
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
402
|
-
}
|
|
399
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
400
|
+
},
|
|
403
401
|
};
|
|
404
402
|
};
|
|
405
403
|
|
|
406
404
|
const lro = createLroSpec({
|
|
407
405
|
sendOperationFn,
|
|
408
406
|
args: { resourceGroupName, containerGroupName, options },
|
|
409
|
-
spec: deleteOperationSpec
|
|
407
|
+
spec: deleteOperationSpec,
|
|
410
408
|
});
|
|
411
409
|
const poller = await createHttpPoller<
|
|
412
410
|
ContainerGroupsDeleteResponse,
|
|
413
411
|
OperationState<ContainerGroupsDeleteResponse>
|
|
414
412
|
>(lro, {
|
|
415
413
|
restoreFrom: options?.resumeFrom,
|
|
416
|
-
intervalInMs: options?.updateIntervalInMs
|
|
414
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
417
415
|
});
|
|
418
416
|
await poller.poll();
|
|
419
417
|
return poller;
|
|
@@ -422,19 +420,19 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
422
420
|
/**
|
|
423
421
|
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
424
422
|
* does not delete other resources provided by the user, such as volumes.
|
|
425
|
-
* @param resourceGroupName The name of the resource group.
|
|
423
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
426
424
|
* @param containerGroupName The name of the container group.
|
|
427
425
|
* @param options The options parameters.
|
|
428
426
|
*/
|
|
429
427
|
async beginDeleteAndWait(
|
|
430
428
|
resourceGroupName: string,
|
|
431
429
|
containerGroupName: string,
|
|
432
|
-
options?: ContainerGroupsDeleteOptionalParams
|
|
430
|
+
options?: ContainerGroupsDeleteOptionalParams,
|
|
433
431
|
): Promise<ContainerGroupsDeleteResponse> {
|
|
434
432
|
const poller = await this.beginDelete(
|
|
435
433
|
resourceGroupName,
|
|
436
434
|
containerGroupName,
|
|
437
|
-
options
|
|
435
|
+
options,
|
|
438
436
|
);
|
|
439
437
|
return poller.pollUntilDone();
|
|
440
438
|
}
|
|
@@ -442,32 +440,31 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
442
440
|
/**
|
|
443
441
|
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
444
442
|
* will be downloaded.
|
|
445
|
-
* @param resourceGroupName The name of the resource group.
|
|
443
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
446
444
|
* @param containerGroupName The name of the container group.
|
|
447
445
|
* @param options The options parameters.
|
|
448
446
|
*/
|
|
449
447
|
async beginRestart(
|
|
450
448
|
resourceGroupName: string,
|
|
451
449
|
containerGroupName: string,
|
|
452
|
-
options?: ContainerGroupsRestartOptionalParams
|
|
450
|
+
options?: ContainerGroupsRestartOptionalParams,
|
|
453
451
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
454
452
|
const directSendOperation = async (
|
|
455
453
|
args: coreClient.OperationArguments,
|
|
456
|
-
spec: coreClient.OperationSpec
|
|
454
|
+
spec: coreClient.OperationSpec,
|
|
457
455
|
): Promise<void> => {
|
|
458
456
|
return this.client.sendOperationRequest(args, spec);
|
|
459
457
|
};
|
|
460
458
|
const sendOperationFn = async (
|
|
461
459
|
args: coreClient.OperationArguments,
|
|
462
|
-
spec: coreClient.OperationSpec
|
|
460
|
+
spec: coreClient.OperationSpec,
|
|
463
461
|
) => {
|
|
464
|
-
let currentRawResponse:
|
|
465
|
-
|
|
466
|
-
| undefined = undefined;
|
|
462
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
463
|
+
undefined;
|
|
467
464
|
const providedCallback = args.options?.onResponse;
|
|
468
465
|
const callback: coreClient.RawResponseCallback = (
|
|
469
466
|
rawResponse: coreClient.FullOperationResponse,
|
|
470
|
-
flatResponse: unknown
|
|
467
|
+
flatResponse: unknown,
|
|
471
468
|
) => {
|
|
472
469
|
currentRawResponse = rawResponse;
|
|
473
470
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -476,8 +473,8 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
476
473
|
...args,
|
|
477
474
|
options: {
|
|
478
475
|
...args.options,
|
|
479
|
-
onResponse: callback
|
|
480
|
-
}
|
|
476
|
+
onResponse: callback,
|
|
477
|
+
},
|
|
481
478
|
};
|
|
482
479
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
483
480
|
return {
|
|
@@ -485,19 +482,19 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
485
482
|
rawResponse: {
|
|
486
483
|
statusCode: currentRawResponse!.status,
|
|
487
484
|
body: currentRawResponse!.parsedBody,
|
|
488
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
489
|
-
}
|
|
485
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
486
|
+
},
|
|
490
487
|
};
|
|
491
488
|
};
|
|
492
489
|
|
|
493
490
|
const lro = createLroSpec({
|
|
494
491
|
sendOperationFn,
|
|
495
492
|
args: { resourceGroupName, containerGroupName, options },
|
|
496
|
-
spec: restartOperationSpec
|
|
493
|
+
spec: restartOperationSpec,
|
|
497
494
|
});
|
|
498
495
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
499
496
|
restoreFrom: options?.resumeFrom,
|
|
500
|
-
intervalInMs: options?.updateIntervalInMs
|
|
497
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
501
498
|
});
|
|
502
499
|
await poller.poll();
|
|
503
500
|
return poller;
|
|
@@ -506,19 +503,19 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
506
503
|
/**
|
|
507
504
|
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
508
505
|
* will be downloaded.
|
|
509
|
-
* @param resourceGroupName The name of the resource group.
|
|
506
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
510
507
|
* @param containerGroupName The name of the container group.
|
|
511
508
|
* @param options The options parameters.
|
|
512
509
|
*/
|
|
513
510
|
async beginRestartAndWait(
|
|
514
511
|
resourceGroupName: string,
|
|
515
512
|
containerGroupName: string,
|
|
516
|
-
options?: ContainerGroupsRestartOptionalParams
|
|
513
|
+
options?: ContainerGroupsRestartOptionalParams,
|
|
517
514
|
): Promise<void> {
|
|
518
515
|
const poller = await this.beginRestart(
|
|
519
516
|
resourceGroupName,
|
|
520
517
|
containerGroupName,
|
|
521
|
-
options
|
|
518
|
+
options,
|
|
522
519
|
);
|
|
523
520
|
return poller.pollUntilDone();
|
|
524
521
|
}
|
|
@@ -526,50 +523,49 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
526
523
|
/**
|
|
527
524
|
* Stops all containers in a container group. Compute resources will be deallocated and billing will
|
|
528
525
|
* stop.
|
|
529
|
-
* @param resourceGroupName The name of the resource group.
|
|
526
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
530
527
|
* @param containerGroupName The name of the container group.
|
|
531
528
|
* @param options The options parameters.
|
|
532
529
|
*/
|
|
533
530
|
stop(
|
|
534
531
|
resourceGroupName: string,
|
|
535
532
|
containerGroupName: string,
|
|
536
|
-
options?: ContainerGroupsStopOptionalParams
|
|
533
|
+
options?: ContainerGroupsStopOptionalParams,
|
|
537
534
|
): Promise<void> {
|
|
538
535
|
return this.client.sendOperationRequest(
|
|
539
536
|
{ resourceGroupName, containerGroupName, options },
|
|
540
|
-
stopOperationSpec
|
|
537
|
+
stopOperationSpec,
|
|
541
538
|
);
|
|
542
539
|
}
|
|
543
540
|
|
|
544
541
|
/**
|
|
545
542
|
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
546
543
|
* start.
|
|
547
|
-
* @param resourceGroupName The name of the resource group.
|
|
544
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
548
545
|
* @param containerGroupName The name of the container group.
|
|
549
546
|
* @param options The options parameters.
|
|
550
547
|
*/
|
|
551
548
|
async beginStart(
|
|
552
549
|
resourceGroupName: string,
|
|
553
550
|
containerGroupName: string,
|
|
554
|
-
options?: ContainerGroupsStartOptionalParams
|
|
551
|
+
options?: ContainerGroupsStartOptionalParams,
|
|
555
552
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
556
553
|
const directSendOperation = async (
|
|
557
554
|
args: coreClient.OperationArguments,
|
|
558
|
-
spec: coreClient.OperationSpec
|
|
555
|
+
spec: coreClient.OperationSpec,
|
|
559
556
|
): Promise<void> => {
|
|
560
557
|
return this.client.sendOperationRequest(args, spec);
|
|
561
558
|
};
|
|
562
559
|
const sendOperationFn = async (
|
|
563
560
|
args: coreClient.OperationArguments,
|
|
564
|
-
spec: coreClient.OperationSpec
|
|
561
|
+
spec: coreClient.OperationSpec,
|
|
565
562
|
) => {
|
|
566
|
-
let currentRawResponse:
|
|
567
|
-
|
|
568
|
-
| undefined = undefined;
|
|
563
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
564
|
+
undefined;
|
|
569
565
|
const providedCallback = args.options?.onResponse;
|
|
570
566
|
const callback: coreClient.RawResponseCallback = (
|
|
571
567
|
rawResponse: coreClient.FullOperationResponse,
|
|
572
|
-
flatResponse: unknown
|
|
568
|
+
flatResponse: unknown,
|
|
573
569
|
) => {
|
|
574
570
|
currentRawResponse = rawResponse;
|
|
575
571
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -578,8 +574,8 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
578
574
|
...args,
|
|
579
575
|
options: {
|
|
580
576
|
...args.options,
|
|
581
|
-
onResponse: callback
|
|
582
|
-
}
|
|
577
|
+
onResponse: callback,
|
|
578
|
+
},
|
|
583
579
|
};
|
|
584
580
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
585
581
|
return {
|
|
@@ -587,19 +583,19 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
587
583
|
rawResponse: {
|
|
588
584
|
statusCode: currentRawResponse!.status,
|
|
589
585
|
body: currentRawResponse!.parsedBody,
|
|
590
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
591
|
-
}
|
|
586
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
587
|
+
},
|
|
592
588
|
};
|
|
593
589
|
};
|
|
594
590
|
|
|
595
591
|
const lro = createLroSpec({
|
|
596
592
|
sendOperationFn,
|
|
597
593
|
args: { resourceGroupName, containerGroupName, options },
|
|
598
|
-
spec: startOperationSpec
|
|
594
|
+
spec: startOperationSpec,
|
|
599
595
|
});
|
|
600
596
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
601
597
|
restoreFrom: options?.resumeFrom,
|
|
602
|
-
intervalInMs: options?.updateIntervalInMs
|
|
598
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
603
599
|
});
|
|
604
600
|
await poller.poll();
|
|
605
601
|
return poller;
|
|
@@ -608,19 +604,19 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
608
604
|
/**
|
|
609
605
|
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
610
606
|
* start.
|
|
611
|
-
* @param resourceGroupName The name of the resource group.
|
|
607
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
612
608
|
* @param containerGroupName The name of the container group.
|
|
613
609
|
* @param options The options parameters.
|
|
614
610
|
*/
|
|
615
611
|
async beginStartAndWait(
|
|
616
612
|
resourceGroupName: string,
|
|
617
613
|
containerGroupName: string,
|
|
618
|
-
options?: ContainerGroupsStartOptionalParams
|
|
614
|
+
options?: ContainerGroupsStartOptionalParams,
|
|
619
615
|
): Promise<void> {
|
|
620
616
|
const poller = await this.beginStart(
|
|
621
617
|
resourceGroupName,
|
|
622
618
|
containerGroupName,
|
|
623
|
-
options
|
|
619
|
+
options,
|
|
624
620
|
);
|
|
625
621
|
return poller.pollUntilDone();
|
|
626
622
|
}
|
|
@@ -628,18 +624,18 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
628
624
|
/**
|
|
629
625
|
* Gets all the network dependencies for this container group to allow complete control of network
|
|
630
626
|
* setting and configuration. For container groups, this will always be an empty list.
|
|
631
|
-
* @param resourceGroupName The name of the resource group.
|
|
627
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
632
628
|
* @param containerGroupName The name of the container group.
|
|
633
629
|
* @param options The options parameters.
|
|
634
630
|
*/
|
|
635
631
|
getOutboundNetworkDependenciesEndpoints(
|
|
636
632
|
resourceGroupName: string,
|
|
637
633
|
containerGroupName: string,
|
|
638
|
-
options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams
|
|
634
|
+
options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
639
635
|
): Promise<ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse> {
|
|
640
636
|
return this.client.sendOperationRequest(
|
|
641
637
|
{ resourceGroupName, containerGroupName, options },
|
|
642
|
-
getOutboundNetworkDependenciesEndpointsOperationSpec
|
|
638
|
+
getOutboundNetworkDependenciesEndpointsOperationSpec,
|
|
643
639
|
);
|
|
644
640
|
}
|
|
645
641
|
|
|
@@ -650,28 +646,28 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
650
646
|
*/
|
|
651
647
|
private _listNext(
|
|
652
648
|
nextLink: string,
|
|
653
|
-
options?: ContainerGroupsListNextOptionalParams
|
|
649
|
+
options?: ContainerGroupsListNextOptionalParams,
|
|
654
650
|
): Promise<ContainerGroupsListNextResponse> {
|
|
655
651
|
return this.client.sendOperationRequest(
|
|
656
652
|
{ nextLink, options },
|
|
657
|
-
listNextOperationSpec
|
|
653
|
+
listNextOperationSpec,
|
|
658
654
|
);
|
|
659
655
|
}
|
|
660
656
|
|
|
661
657
|
/**
|
|
662
658
|
* ListByResourceGroupNext
|
|
663
|
-
* @param resourceGroupName The name of the resource group.
|
|
659
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
664
660
|
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
665
661
|
* @param options The options parameters.
|
|
666
662
|
*/
|
|
667
663
|
private _listByResourceGroupNext(
|
|
668
664
|
resourceGroupName: string,
|
|
669
665
|
nextLink: string,
|
|
670
|
-
options?: ContainerGroupsListByResourceGroupNextOptionalParams
|
|
666
|
+
options?: ContainerGroupsListByResourceGroupNextOptionalParams,
|
|
671
667
|
): Promise<ContainerGroupsListByResourceGroupNextResponse> {
|
|
672
668
|
return this.client.sendOperationRequest(
|
|
673
669
|
{ resourceGroupName, nextLink, options },
|
|
674
|
-
listByResourceGroupNextOperationSpec
|
|
670
|
+
listByResourceGroupNextOperationSpec,
|
|
675
671
|
);
|
|
676
672
|
}
|
|
677
673
|
}
|
|
@@ -679,85 +675,81 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
679
675
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
680
676
|
|
|
681
677
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
682
|
-
path:
|
|
683
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
678
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
684
679
|
httpMethod: "GET",
|
|
685
680
|
responses: {
|
|
686
681
|
200: {
|
|
687
|
-
bodyMapper: Mappers.ContainerGroupListResult
|
|
682
|
+
bodyMapper: Mappers.ContainerGroupListResult,
|
|
688
683
|
},
|
|
689
684
|
default: {
|
|
690
|
-
bodyMapper: Mappers.CloudError
|
|
691
|
-
}
|
|
685
|
+
bodyMapper: Mappers.CloudError,
|
|
686
|
+
},
|
|
692
687
|
},
|
|
693
688
|
queryParameters: [Parameters.apiVersion],
|
|
694
689
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
695
690
|
headerParameters: [Parameters.accept],
|
|
696
|
-
serializer
|
|
691
|
+
serializer,
|
|
697
692
|
};
|
|
698
693
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
699
|
-
path:
|
|
700
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
694
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
701
695
|
httpMethod: "GET",
|
|
702
696
|
responses: {
|
|
703
697
|
200: {
|
|
704
|
-
bodyMapper: Mappers.ContainerGroupListResult
|
|
698
|
+
bodyMapper: Mappers.ContainerGroupListResult,
|
|
705
699
|
},
|
|
706
700
|
default: {
|
|
707
|
-
bodyMapper: Mappers.CloudError
|
|
708
|
-
}
|
|
701
|
+
bodyMapper: Mappers.CloudError,
|
|
702
|
+
},
|
|
709
703
|
},
|
|
710
704
|
queryParameters: [Parameters.apiVersion],
|
|
711
705
|
urlParameters: [
|
|
712
706
|
Parameters.$host,
|
|
713
707
|
Parameters.subscriptionId,
|
|
714
|
-
Parameters.resourceGroupName
|
|
708
|
+
Parameters.resourceGroupName,
|
|
715
709
|
],
|
|
716
710
|
headerParameters: [Parameters.accept],
|
|
717
|
-
serializer
|
|
711
|
+
serializer,
|
|
718
712
|
};
|
|
719
713
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
720
|
-
path:
|
|
721
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
714
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
722
715
|
httpMethod: "GET",
|
|
723
716
|
responses: {
|
|
724
717
|
200: {
|
|
725
|
-
bodyMapper: Mappers.ContainerGroup
|
|
718
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
726
719
|
},
|
|
727
720
|
default: {
|
|
728
|
-
bodyMapper: Mappers.CloudError
|
|
729
|
-
}
|
|
721
|
+
bodyMapper: Mappers.CloudError,
|
|
722
|
+
},
|
|
730
723
|
},
|
|
731
724
|
queryParameters: [Parameters.apiVersion],
|
|
732
725
|
urlParameters: [
|
|
733
726
|
Parameters.$host,
|
|
734
727
|
Parameters.subscriptionId,
|
|
735
728
|
Parameters.resourceGroupName,
|
|
736
|
-
Parameters.containerGroupName
|
|
729
|
+
Parameters.containerGroupName,
|
|
737
730
|
],
|
|
738
731
|
headerParameters: [Parameters.accept],
|
|
739
|
-
serializer
|
|
732
|
+
serializer,
|
|
740
733
|
};
|
|
741
734
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
742
|
-
path:
|
|
743
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
735
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
744
736
|
httpMethod: "PUT",
|
|
745
737
|
responses: {
|
|
746
738
|
200: {
|
|
747
|
-
bodyMapper: Mappers.ContainerGroup
|
|
739
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
748
740
|
},
|
|
749
741
|
201: {
|
|
750
|
-
bodyMapper: Mappers.ContainerGroup
|
|
742
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
751
743
|
},
|
|
752
744
|
202: {
|
|
753
|
-
bodyMapper: Mappers.ContainerGroup
|
|
745
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
754
746
|
},
|
|
755
747
|
204: {
|
|
756
|
-
bodyMapper: Mappers.ContainerGroup
|
|
748
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
757
749
|
},
|
|
758
750
|
default: {
|
|
759
|
-
bodyMapper: Mappers.CloudError
|
|
760
|
-
}
|
|
751
|
+
bodyMapper: Mappers.CloudError,
|
|
752
|
+
},
|
|
761
753
|
},
|
|
762
754
|
requestBody: Parameters.containerGroup,
|
|
763
755
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -765,23 +757,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
765
757
|
Parameters.$host,
|
|
766
758
|
Parameters.subscriptionId,
|
|
767
759
|
Parameters.resourceGroupName,
|
|
768
|
-
Parameters.containerGroupName
|
|
760
|
+
Parameters.containerGroupName,
|
|
769
761
|
],
|
|
770
762
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
771
763
|
mediaType: "json",
|
|
772
|
-
serializer
|
|
764
|
+
serializer,
|
|
773
765
|
};
|
|
774
766
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
775
|
-
path:
|
|
776
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
767
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
777
768
|
httpMethod: "PATCH",
|
|
778
769
|
responses: {
|
|
779
770
|
200: {
|
|
780
|
-
bodyMapper: Mappers.ContainerGroup
|
|
771
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
781
772
|
},
|
|
782
773
|
default: {
|
|
783
|
-
bodyMapper: Mappers.CloudError
|
|
784
|
-
}
|
|
774
|
+
bodyMapper: Mappers.CloudError,
|
|
775
|
+
},
|
|
785
776
|
},
|
|
786
777
|
requestBody: Parameters.resource,
|
|
787
778
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -789,46 +780,44 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
789
780
|
Parameters.$host,
|
|
790
781
|
Parameters.subscriptionId,
|
|
791
782
|
Parameters.resourceGroupName,
|
|
792
|
-
Parameters.containerGroupName
|
|
783
|
+
Parameters.containerGroupName,
|
|
793
784
|
],
|
|
794
785
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
795
786
|
mediaType: "json",
|
|
796
|
-
serializer
|
|
787
|
+
serializer,
|
|
797
788
|
};
|
|
798
789
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
799
|
-
path:
|
|
800
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
790
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
801
791
|
httpMethod: "DELETE",
|
|
802
792
|
responses: {
|
|
803
793
|
200: {
|
|
804
|
-
bodyMapper: Mappers.ContainerGroup
|
|
794
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
805
795
|
},
|
|
806
796
|
201: {
|
|
807
|
-
bodyMapper: Mappers.ContainerGroup
|
|
797
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
808
798
|
},
|
|
809
799
|
202: {
|
|
810
|
-
bodyMapper: Mappers.ContainerGroup
|
|
800
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
811
801
|
},
|
|
812
802
|
204: {
|
|
813
|
-
bodyMapper: Mappers.ContainerGroup
|
|
803
|
+
bodyMapper: Mappers.ContainerGroup,
|
|
814
804
|
},
|
|
815
805
|
default: {
|
|
816
|
-
bodyMapper: Mappers.CloudError
|
|
817
|
-
}
|
|
806
|
+
bodyMapper: Mappers.CloudError,
|
|
807
|
+
},
|
|
818
808
|
},
|
|
819
809
|
queryParameters: [Parameters.apiVersion],
|
|
820
810
|
urlParameters: [
|
|
821
811
|
Parameters.$host,
|
|
822
812
|
Parameters.subscriptionId,
|
|
823
813
|
Parameters.resourceGroupName,
|
|
824
|
-
Parameters.containerGroupName
|
|
814
|
+
Parameters.containerGroupName,
|
|
825
815
|
],
|
|
826
816
|
headerParameters: [Parameters.accept],
|
|
827
|
-
serializer
|
|
817
|
+
serializer,
|
|
828
818
|
};
|
|
829
819
|
const restartOperationSpec: coreClient.OperationSpec = {
|
|
830
|
-
path:
|
|
831
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
|
|
820
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
|
|
832
821
|
httpMethod: "POST",
|
|
833
822
|
responses: {
|
|
834
823
|
200: {},
|
|
@@ -836,42 +825,40 @@ const restartOperationSpec: coreClient.OperationSpec = {
|
|
|
836
825
|
202: {},
|
|
837
826
|
204: {},
|
|
838
827
|
default: {
|
|
839
|
-
bodyMapper: Mappers.CloudError
|
|
840
|
-
}
|
|
828
|
+
bodyMapper: Mappers.CloudError,
|
|
829
|
+
},
|
|
841
830
|
},
|
|
842
831
|
queryParameters: [Parameters.apiVersion],
|
|
843
832
|
urlParameters: [
|
|
844
833
|
Parameters.$host,
|
|
845
834
|
Parameters.subscriptionId,
|
|
846
835
|
Parameters.resourceGroupName,
|
|
847
|
-
Parameters.containerGroupName
|
|
836
|
+
Parameters.containerGroupName,
|
|
848
837
|
],
|
|
849
838
|
headerParameters: [Parameters.accept],
|
|
850
|
-
serializer
|
|
839
|
+
serializer,
|
|
851
840
|
};
|
|
852
841
|
const stopOperationSpec: coreClient.OperationSpec = {
|
|
853
|
-
path:
|
|
854
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
|
|
842
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
|
|
855
843
|
httpMethod: "POST",
|
|
856
844
|
responses: {
|
|
857
845
|
204: {},
|
|
858
846
|
default: {
|
|
859
|
-
bodyMapper: Mappers.CloudError
|
|
860
|
-
}
|
|
847
|
+
bodyMapper: Mappers.CloudError,
|
|
848
|
+
},
|
|
861
849
|
},
|
|
862
850
|
queryParameters: [Parameters.apiVersion],
|
|
863
851
|
urlParameters: [
|
|
864
852
|
Parameters.$host,
|
|
865
853
|
Parameters.subscriptionId,
|
|
866
854
|
Parameters.resourceGroupName,
|
|
867
|
-
Parameters.containerGroupName
|
|
855
|
+
Parameters.containerGroupName,
|
|
868
856
|
],
|
|
869
857
|
headerParameters: [Parameters.accept],
|
|
870
|
-
serializer
|
|
858
|
+
serializer,
|
|
871
859
|
};
|
|
872
860
|
const startOperationSpec: coreClient.OperationSpec = {
|
|
873
|
-
path:
|
|
874
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
|
|
861
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
|
|
875
862
|
httpMethod: "POST",
|
|
876
863
|
responses: {
|
|
877
864
|
200: {},
|
|
@@ -879,79 +866,79 @@ const startOperationSpec: coreClient.OperationSpec = {
|
|
|
879
866
|
202: {},
|
|
880
867
|
204: {},
|
|
881
868
|
default: {
|
|
882
|
-
bodyMapper: Mappers.CloudError
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
queryParameters: [Parameters.apiVersion],
|
|
886
|
-
urlParameters: [
|
|
887
|
-
Parameters.$host,
|
|
888
|
-
Parameters.subscriptionId,
|
|
889
|
-
Parameters.resourceGroupName,
|
|
890
|
-
Parameters.containerGroupName
|
|
891
|
-
],
|
|
892
|
-
headerParameters: [Parameters.accept],
|
|
893
|
-
serializer
|
|
894
|
-
};
|
|
895
|
-
const getOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
|
|
896
|
-
path:
|
|
897
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints",
|
|
898
|
-
httpMethod: "GET",
|
|
899
|
-
responses: {
|
|
900
|
-
200: {
|
|
901
|
-
bodyMapper: {
|
|
902
|
-
type: { name: "Sequence", element: { type: { name: "String" } } }
|
|
903
|
-
}
|
|
869
|
+
bodyMapper: Mappers.CloudError,
|
|
904
870
|
},
|
|
905
|
-
default: {
|
|
906
|
-
bodyMapper: Mappers.CloudError
|
|
907
|
-
}
|
|
908
871
|
},
|
|
909
872
|
queryParameters: [Parameters.apiVersion],
|
|
910
873
|
urlParameters: [
|
|
911
874
|
Parameters.$host,
|
|
912
875
|
Parameters.subscriptionId,
|
|
913
876
|
Parameters.resourceGroupName,
|
|
914
|
-
Parameters.containerGroupName
|
|
877
|
+
Parameters.containerGroupName,
|
|
915
878
|
],
|
|
916
879
|
headerParameters: [Parameters.accept],
|
|
917
|
-
serializer
|
|
880
|
+
serializer,
|
|
918
881
|
};
|
|
882
|
+
const getOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec =
|
|
883
|
+
{
|
|
884
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints",
|
|
885
|
+
httpMethod: "GET",
|
|
886
|
+
responses: {
|
|
887
|
+
200: {
|
|
888
|
+
bodyMapper: {
|
|
889
|
+
type: { name: "Sequence", element: { type: { name: "String" } } },
|
|
890
|
+
},
|
|
891
|
+
},
|
|
892
|
+
default: {
|
|
893
|
+
bodyMapper: Mappers.CloudError,
|
|
894
|
+
},
|
|
895
|
+
},
|
|
896
|
+
queryParameters: [Parameters.apiVersion],
|
|
897
|
+
urlParameters: [
|
|
898
|
+
Parameters.$host,
|
|
899
|
+
Parameters.subscriptionId,
|
|
900
|
+
Parameters.resourceGroupName,
|
|
901
|
+
Parameters.containerGroupName,
|
|
902
|
+
],
|
|
903
|
+
headerParameters: [Parameters.accept],
|
|
904
|
+
serializer,
|
|
905
|
+
};
|
|
919
906
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
920
907
|
path: "{nextLink}",
|
|
921
908
|
httpMethod: "GET",
|
|
922
909
|
responses: {
|
|
923
910
|
200: {
|
|
924
|
-
bodyMapper: Mappers.ContainerGroupListResult
|
|
911
|
+
bodyMapper: Mappers.ContainerGroupListResult,
|
|
925
912
|
},
|
|
926
913
|
default: {
|
|
927
|
-
bodyMapper: Mappers.CloudError
|
|
928
|
-
}
|
|
914
|
+
bodyMapper: Mappers.CloudError,
|
|
915
|
+
},
|
|
929
916
|
},
|
|
930
917
|
urlParameters: [
|
|
931
918
|
Parameters.$host,
|
|
932
919
|
Parameters.subscriptionId,
|
|
933
|
-
Parameters.nextLink
|
|
920
|
+
Parameters.nextLink,
|
|
934
921
|
],
|
|
935
922
|
headerParameters: [Parameters.accept],
|
|
936
|
-
serializer
|
|
923
|
+
serializer,
|
|
937
924
|
};
|
|
938
925
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
939
926
|
path: "{nextLink}",
|
|
940
927
|
httpMethod: "GET",
|
|
941
928
|
responses: {
|
|
942
929
|
200: {
|
|
943
|
-
bodyMapper: Mappers.ContainerGroupListResult
|
|
930
|
+
bodyMapper: Mappers.ContainerGroupListResult,
|
|
944
931
|
},
|
|
945
932
|
default: {
|
|
946
|
-
bodyMapper: Mappers.CloudError
|
|
947
|
-
}
|
|
933
|
+
bodyMapper: Mappers.CloudError,
|
|
934
|
+
},
|
|
948
935
|
},
|
|
949
936
|
urlParameters: [
|
|
950
937
|
Parameters.$host,
|
|
951
938
|
Parameters.subscriptionId,
|
|
952
939
|
Parameters.resourceGroupName,
|
|
953
|
-
Parameters.nextLink
|
|
940
|
+
Parameters.nextLink,
|
|
954
941
|
],
|
|
955
942
|
headerParameters: [Parameters.accept],
|
|
956
|
-
serializer
|
|
943
|
+
serializer,
|
|
957
944
|
};
|