@azure/arm-containerinstance 7.1.0 → 8.0.0-alpha.20220104.2
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 +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +70 -78
- package/dist/index.js +3335 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts +22 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.js +55 -0
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +964 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +54 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +782 -805
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +67 -37
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/containerGroups.d.ts +159 -0
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroups.js +678 -0
- package/dist-esm/src/operations/containerGroups.js.map +1 -0
- package/dist-esm/src/operations/containers.d.ts +40 -0
- package/dist-esm/src/operations/containers.d.ts.map +1 -0
- package/dist-esm/src/operations/containers.js +134 -0
- package/dist-esm/src/operations/containers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +70 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +310 -0
- package/dist-esm/src/operations/location.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +119 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/containerGroups.js} +2 -7
- package/dist-esm/src/operationsInterfaces/containerGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containers.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/containers.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/containers.js} +2 -2
- package/dist-esm/src/operationsInterfaces/containers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/location.js} +2 -1
- package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/models/containersMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/containerinstance_examples.d.ts +4 -0
- package/dist-esm/test/containerinstance_examples.d.ts.map +1 -0
- package/dist-esm/test/containerinstance_examples.js +156 -0
- package/dist-esm/test/containerinstance_examples.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-containerinstance.api.md +752 -0
- package/rollup.config.js +181 -30
- package/src/containerInstanceManagementClient.ts +78 -40
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +728 -1245
- package/src/models/mappers.ts +790 -809
- package/src/models/parameters.ts +90 -38
- package/src/operations/containerGroups.ts +667 -500
- package/src/operations/containers.ts +89 -143
- package/src/operations/index.ts +1 -2
- package/src/operations/location.ts +262 -179
- package/src/operations/operations.ts +85 -73
- package/src/operationsInterfaces/containerGroups.ts +212 -0
- package/src/operationsInterfaces/containers.ts +64 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/location.ts +49 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +3 -3
- package/types/arm-containerinstance.d.ts +1282 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-containerinstance.js +0 -3094
- package/dist/arm-containerinstance.js.map +0 -1
- package/dist/arm-containerinstance.min.js +0 -1
- package/dist/arm-containerinstance.min.js.map +0 -1
- package/esm/containerInstanceManagementClient.d.ts +0 -28
- package/esm/containerInstanceManagementClient.d.ts.map +0 -1
- package/esm/containerInstanceManagementClient.js +0 -41
- package/esm/containerInstanceManagementClient.js.map +0 -1
- package/esm/containerInstanceManagementClientContext.d.ts +0 -23
- package/esm/containerInstanceManagementClientContext.d.ts.map +0 -1
- package/esm/containerInstanceManagementClientContext.js +0 -61
- package/esm/containerInstanceManagementClientContext.js.map +0 -1
- package/esm/models/containerGroupsMappers.d.ts +0 -2
- package/esm/models/containerGroupsMappers.d.ts.map +0 -1
- package/esm/models/containerGroupsMappers.js +0 -9
- package/esm/models/containerGroupsMappers.js.map +0 -1
- package/esm/models/containersMappers.d.ts +0 -2
- package/esm/models/containersMappers.d.ts.map +0 -1
- package/esm/models/containersMappers.js +0 -9
- package/esm/models/containersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1501
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -54
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/containerGroups.d.ts +0 -270
- package/esm/operations/containerGroups.d.ts.map +0 -1
- package/esm/operations/containerGroups.js +0 -496
- package/esm/operations/containerGroups.js.map +0 -1
- package/esm/operations/containers.d.ts +0 -94
- package/esm/operations/containers.d.ts.map +0 -1
- package/esm/operations/containers.js +0 -133
- package/esm/operations/containers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -107
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -171
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/src/containerInstanceManagementClientContext.ts +0 -68
- package/src/models/containerGroupsMappers.ts +0 -46
- package/src/models/locationMappers.ts +0 -19
|
@@ -3,441 +3,638 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ContainerGroups } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
ContainerGroup,
|
|
19
|
+
ContainerGroupsListNextOptionalParams,
|
|
20
|
+
ContainerGroupsListOptionalParams,
|
|
21
|
+
ContainerGroupsListByResourceGroupNextOptionalParams,
|
|
22
|
+
ContainerGroupsListByResourceGroupOptionalParams,
|
|
23
|
+
ContainerGroupsListResponse,
|
|
24
|
+
ContainerGroupsListByResourceGroupResponse,
|
|
25
|
+
ContainerGroupsGetOptionalParams,
|
|
26
|
+
ContainerGroupsGetResponse,
|
|
27
|
+
ContainerGroupsCreateOrUpdateOptionalParams,
|
|
28
|
+
ContainerGroupsCreateOrUpdateResponse,
|
|
29
|
+
Resource,
|
|
30
|
+
ContainerGroupsUpdateOptionalParams,
|
|
31
|
+
ContainerGroupsUpdateResponse,
|
|
32
|
+
ContainerGroupsDeleteOptionalParams,
|
|
33
|
+
ContainerGroupsDeleteResponse,
|
|
34
|
+
ContainerGroupsRestartOptionalParams,
|
|
35
|
+
ContainerGroupsStopOptionalParams,
|
|
36
|
+
ContainerGroupsStartOptionalParams,
|
|
37
|
+
ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
38
|
+
ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse,
|
|
39
|
+
ContainerGroupsListNextResponse,
|
|
40
|
+
ContainerGroupsListByResourceGroupNextResponse
|
|
41
|
+
} from "../models";
|
|
16
42
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
43
|
+
/// <reference lib="esnext.asynciterable" />
|
|
44
|
+
/** Class containing ContainerGroups operations. */
|
|
45
|
+
export class ContainerGroupsImpl implements ContainerGroups {
|
|
46
|
+
private readonly client: ContainerInstanceManagementClient;
|
|
20
47
|
|
|
21
48
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
49
|
+
* Initialize a new instance of the class ContainerGroups class.
|
|
50
|
+
* @param client Reference to the service client
|
|
24
51
|
*/
|
|
25
|
-
constructor(client:
|
|
52
|
+
constructor(client: ContainerInstanceManagementClient) {
|
|
26
53
|
this.client = client;
|
|
27
54
|
}
|
|
28
55
|
|
|
29
56
|
/**
|
|
30
|
-
* Get a list of container groups in the specified subscription. This operation returns properties
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* @
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/
|
|
46
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ContainerGroupListResult>): void;
|
|
47
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ContainerGroupListResult>, callback?: msRest.ServiceCallback<Models.ContainerGroupListResult>): Promise<Models.ContainerGroupsListResponse> {
|
|
48
|
-
return this.client.sendOperationRequest(
|
|
49
|
-
{
|
|
50
|
-
options
|
|
57
|
+
* Get a list of container groups in the specified subscription. This operation returns properties of
|
|
58
|
+
* each container group including containers, image registry credentials, restart policy, IP address
|
|
59
|
+
* type, OS type, state, and volumes.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
public list(
|
|
63
|
+
options?: ContainerGroupsListOptionalParams
|
|
64
|
+
): PagedAsyncIterableIterator<ContainerGroup> {
|
|
65
|
+
const iter = this.listPagingAll(options);
|
|
66
|
+
return {
|
|
67
|
+
next() {
|
|
68
|
+
return iter.next();
|
|
69
|
+
},
|
|
70
|
+
[Symbol.asyncIterator]() {
|
|
71
|
+
return this;
|
|
51
72
|
},
|
|
52
|
-
|
|
53
|
-
|
|
73
|
+
byPage: () => {
|
|
74
|
+
return this.listPagingPage(options);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private async *listPagingPage(
|
|
80
|
+
options?: ContainerGroupsListOptionalParams
|
|
81
|
+
): AsyncIterableIterator<ContainerGroup[]> {
|
|
82
|
+
let result = await this._list(options);
|
|
83
|
+
yield result.value || [];
|
|
84
|
+
let continuationToken = result.nextLink;
|
|
85
|
+
while (continuationToken) {
|
|
86
|
+
result = await this._listNext(continuationToken, options);
|
|
87
|
+
continuationToken = result.nextLink;
|
|
88
|
+
yield result.value || [];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
private async *listPagingAll(
|
|
93
|
+
options?: ContainerGroupsListOptionalParams
|
|
94
|
+
): AsyncIterableIterator<ContainerGroup> {
|
|
95
|
+
for await (const page of this.listPagingPage(options)) {
|
|
96
|
+
yield* page;
|
|
97
|
+
}
|
|
54
98
|
}
|
|
55
99
|
|
|
56
100
|
/**
|
|
57
101
|
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
58
|
-
* returns properties of each container group including containers, image registry credentials,
|
|
59
|
-
*
|
|
60
|
-
* @summary Get a list of container groups in the specified subscription and resource group.
|
|
102
|
+
* returns properties of each container group including containers, image registry credentials, restart
|
|
103
|
+
* policy, IP address type, OS type, state, and volumes.
|
|
61
104
|
* @param resourceGroupName The name of the resource group.
|
|
62
|
-
* @param
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
public listByResourceGroup(
|
|
108
|
+
resourceGroupName: string,
|
|
109
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
110
|
+
): PagedAsyncIterableIterator<ContainerGroup> {
|
|
111
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
112
|
+
return {
|
|
113
|
+
next() {
|
|
114
|
+
return iter.next();
|
|
115
|
+
},
|
|
116
|
+
[Symbol.asyncIterator]() {
|
|
117
|
+
return this;
|
|
118
|
+
},
|
|
119
|
+
byPage: () => {
|
|
120
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private async *listByResourceGroupPagingPage(
|
|
126
|
+
resourceGroupName: string,
|
|
127
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
128
|
+
): AsyncIterableIterator<ContainerGroup[]> {
|
|
129
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
130
|
+
yield result.value || [];
|
|
131
|
+
let continuationToken = result.nextLink;
|
|
132
|
+
while (continuationToken) {
|
|
133
|
+
result = await this._listByResourceGroupNext(
|
|
134
|
+
resourceGroupName,
|
|
135
|
+
continuationToken,
|
|
136
|
+
options
|
|
137
|
+
);
|
|
138
|
+
continuationToken = result.nextLink;
|
|
139
|
+
yield result.value || [];
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
private async *listByResourceGroupPagingAll(
|
|
144
|
+
resourceGroupName: string,
|
|
145
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
146
|
+
): AsyncIterableIterator<ContainerGroup> {
|
|
147
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
148
|
+
resourceGroupName,
|
|
149
|
+
options
|
|
150
|
+
)) {
|
|
151
|
+
yield* page;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
66
155
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
156
|
+
* Get a list of container groups in the specified subscription. This operation returns properties of
|
|
157
|
+
* each container group including containers, image registry credentials, restart policy, IP address
|
|
158
|
+
* type, OS type, state, and volumes.
|
|
159
|
+
* @param options The options parameters.
|
|
69
160
|
*/
|
|
70
|
-
|
|
161
|
+
private _list(
|
|
162
|
+
options?: ContainerGroupsListOptionalParams
|
|
163
|
+
): Promise<ContainerGroupsListResponse> {
|
|
164
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
165
|
+
}
|
|
166
|
+
|
|
71
167
|
/**
|
|
168
|
+
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
169
|
+
* returns properties of each container group including containers, image registry credentials, restart
|
|
170
|
+
* policy, IP address type, OS type, state, and volumes.
|
|
72
171
|
* @param resourceGroupName The name of the resource group.
|
|
73
|
-
* @param options The
|
|
74
|
-
* @param callback The callback
|
|
172
|
+
* @param options The options parameters.
|
|
75
173
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
174
|
+
private _listByResourceGroup(
|
|
175
|
+
resourceGroupName: string,
|
|
176
|
+
options?: ContainerGroupsListByResourceGroupOptionalParams
|
|
177
|
+
): Promise<ContainerGroupsListByResourceGroupResponse> {
|
|
78
178
|
return this.client.sendOperationRequest(
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
listByResourceGroupOperationSpec,
|
|
84
|
-
callback) as Promise<Models.ContainerGroupsListByResourceGroupResponse>;
|
|
179
|
+
{ resourceGroupName, options },
|
|
180
|
+
listByResourceGroupOperationSpec
|
|
181
|
+
);
|
|
85
182
|
}
|
|
86
183
|
|
|
87
184
|
/**
|
|
88
185
|
* Gets the properties of the specified container group in the specified subscription and resource
|
|
89
186
|
* group. The operation returns the properties of each container group including containers, image
|
|
90
187
|
* registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
91
|
-
* @summary Get the properties of the specified container group.
|
|
92
|
-
* @param resourceGroupName The name of the resource group.
|
|
93
|
-
* @param containerGroupName The name of the container group.
|
|
94
|
-
* @param [options] The optional parameters
|
|
95
|
-
* @returns Promise<Models.ContainerGroupsGetResponse>
|
|
96
|
-
*/
|
|
97
|
-
get(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsGetResponse>;
|
|
98
|
-
/**
|
|
99
188
|
* @param resourceGroupName The name of the resource group.
|
|
100
189
|
* @param containerGroupName The name of the container group.
|
|
101
|
-
* @param
|
|
190
|
+
* @param options The options parameters.
|
|
102
191
|
*/
|
|
103
|
-
get(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
* @param callback The callback
|
|
109
|
-
*/
|
|
110
|
-
get(resourceGroupName: string, containerGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ContainerGroup>): void;
|
|
111
|
-
get(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ContainerGroup>, callback?: msRest.ServiceCallback<Models.ContainerGroup>): Promise<Models.ContainerGroupsGetResponse> {
|
|
192
|
+
get(
|
|
193
|
+
resourceGroupName: string,
|
|
194
|
+
containerGroupName: string,
|
|
195
|
+
options?: ContainerGroupsGetOptionalParams
|
|
196
|
+
): Promise<ContainerGroupsGetResponse> {
|
|
112
197
|
return this.client.sendOperationRequest(
|
|
113
|
-
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
options
|
|
117
|
-
},
|
|
118
|
-
getOperationSpec,
|
|
119
|
-
callback) as Promise<Models.ContainerGroupsGetResponse>;
|
|
198
|
+
{ resourceGroupName, containerGroupName, options },
|
|
199
|
+
getOperationSpec
|
|
200
|
+
);
|
|
120
201
|
}
|
|
121
202
|
|
|
122
203
|
/**
|
|
123
204
|
* Create or update container groups with specified configurations.
|
|
124
|
-
* @summary Create or update container groups.
|
|
125
205
|
* @param resourceGroupName The name of the resource group.
|
|
126
206
|
* @param containerGroupName The name of the container group.
|
|
127
207
|
* @param containerGroup The properties of the container group to be created or updated.
|
|
128
|
-
* @param
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
208
|
+
* @param options The options parameters.
|
|
209
|
+
*/
|
|
210
|
+
async beginCreateOrUpdate(
|
|
211
|
+
resourceGroupName: string,
|
|
212
|
+
containerGroupName: string,
|
|
213
|
+
containerGroup: ContainerGroup,
|
|
214
|
+
options?: ContainerGroupsCreateOrUpdateOptionalParams
|
|
215
|
+
): Promise<
|
|
216
|
+
PollerLike<
|
|
217
|
+
PollOperationState<ContainerGroupsCreateOrUpdateResponse>,
|
|
218
|
+
ContainerGroupsCreateOrUpdateResponse
|
|
219
|
+
>
|
|
220
|
+
> {
|
|
221
|
+
const directSendOperation = async (
|
|
222
|
+
args: coreClient.OperationArguments,
|
|
223
|
+
spec: coreClient.OperationSpec
|
|
224
|
+
): Promise<ContainerGroupsCreateOrUpdateResponse> => {
|
|
225
|
+
return this.client.sendOperationRequest(args, spec);
|
|
226
|
+
};
|
|
227
|
+
const sendOperation = async (
|
|
228
|
+
args: coreClient.OperationArguments,
|
|
229
|
+
spec: coreClient.OperationSpec
|
|
230
|
+
) => {
|
|
231
|
+
let currentRawResponse:
|
|
232
|
+
| coreClient.FullOperationResponse
|
|
233
|
+
| undefined = undefined;
|
|
234
|
+
const providedCallback = args.options?.onResponse;
|
|
235
|
+
const callback: coreClient.RawResponseCallback = (
|
|
236
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
237
|
+
flatResponse: unknown
|
|
238
|
+
) => {
|
|
239
|
+
currentRawResponse = rawResponse;
|
|
240
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
241
|
+
};
|
|
242
|
+
const updatedArgs = {
|
|
243
|
+
...args,
|
|
244
|
+
options: {
|
|
245
|
+
...args.options,
|
|
246
|
+
onResponse: callback
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
250
|
+
return {
|
|
251
|
+
flatResponse,
|
|
252
|
+
rawResponse: {
|
|
253
|
+
statusCode: currentRawResponse!.status,
|
|
254
|
+
body: currentRawResponse!.parsedBody,
|
|
255
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
const lro = new LroImpl(
|
|
261
|
+
sendOperation,
|
|
262
|
+
{ resourceGroupName, containerGroupName, containerGroup, options },
|
|
263
|
+
createOrUpdateOperationSpec
|
|
264
|
+
);
|
|
265
|
+
return new LroEngine(lro, {
|
|
266
|
+
resumeFrom: options?.resumeFrom,
|
|
267
|
+
intervalInMs: options?.updateIntervalInMs
|
|
268
|
+
});
|
|
134
269
|
}
|
|
135
270
|
|
|
136
271
|
/**
|
|
137
|
-
*
|
|
138
|
-
* @summary Update container groups.
|
|
139
|
-
* @param resourceGroupName The name of the resource group.
|
|
140
|
-
* @param containerGroupName The name of the container group.
|
|
141
|
-
* @param resource The container group resource with just the tags to be updated.
|
|
142
|
-
* @param [options] The optional parameters
|
|
143
|
-
* @returns Promise<Models.ContainerGroupsUpdateResponse>
|
|
144
|
-
*/
|
|
145
|
-
update(resourceGroupName: string, containerGroupName: string, resource: Models.Resource, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsUpdateResponse>;
|
|
146
|
-
/**
|
|
272
|
+
* Create or update container groups with specified configurations.
|
|
147
273
|
* @param resourceGroupName The name of the resource group.
|
|
148
274
|
* @param containerGroupName The name of the container group.
|
|
149
|
-
* @param
|
|
150
|
-
* @param
|
|
151
|
-
*/
|
|
152
|
-
|
|
275
|
+
* @param containerGroup The properties of the container group to be created or updated.
|
|
276
|
+
* @param options The options parameters.
|
|
277
|
+
*/
|
|
278
|
+
async beginCreateOrUpdateAndWait(
|
|
279
|
+
resourceGroupName: string,
|
|
280
|
+
containerGroupName: string,
|
|
281
|
+
containerGroup: ContainerGroup,
|
|
282
|
+
options?: ContainerGroupsCreateOrUpdateOptionalParams
|
|
283
|
+
): Promise<ContainerGroupsCreateOrUpdateResponse> {
|
|
284
|
+
const poller = await this.beginCreateOrUpdate(
|
|
285
|
+
resourceGroupName,
|
|
286
|
+
containerGroupName,
|
|
287
|
+
containerGroup,
|
|
288
|
+
options
|
|
289
|
+
);
|
|
290
|
+
return poller.pollUntilDone();
|
|
291
|
+
}
|
|
292
|
+
|
|
153
293
|
/**
|
|
294
|
+
* Updates container group tags with specified values.
|
|
154
295
|
* @param resourceGroupName The name of the resource group.
|
|
155
296
|
* @param containerGroupName The name of the container group.
|
|
156
297
|
* @param resource The container group resource with just the tags to be updated.
|
|
157
|
-
* @param options The
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
298
|
+
* @param options The options parameters.
|
|
299
|
+
*/
|
|
300
|
+
update(
|
|
301
|
+
resourceGroupName: string,
|
|
302
|
+
containerGroupName: string,
|
|
303
|
+
resource: Resource,
|
|
304
|
+
options?: ContainerGroupsUpdateOptionalParams
|
|
305
|
+
): Promise<ContainerGroupsUpdateResponse> {
|
|
162
306
|
return this.client.sendOperationRequest(
|
|
163
|
-
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
resource,
|
|
167
|
-
options
|
|
168
|
-
},
|
|
169
|
-
updateOperationSpec,
|
|
170
|
-
callback) as Promise<Models.ContainerGroupsUpdateResponse>;
|
|
307
|
+
{ resourceGroupName, containerGroupName, resource, options },
|
|
308
|
+
updateOperationSpec
|
|
309
|
+
);
|
|
171
310
|
}
|
|
172
311
|
|
|
173
312
|
/**
|
|
174
|
-
* Delete the specified container group in the specified subscription and resource group. The
|
|
175
|
-
*
|
|
176
|
-
* @summary Delete the specified container group.
|
|
313
|
+
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
314
|
+
* does not delete other resources provided by the user, such as volumes.
|
|
177
315
|
* @param resourceGroupName The name of the resource group.
|
|
178
316
|
* @param containerGroupName The name of the container group.
|
|
179
|
-
* @param
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
317
|
+
* @param options The options parameters.
|
|
318
|
+
*/
|
|
319
|
+
async beginDelete(
|
|
320
|
+
resourceGroupName: string,
|
|
321
|
+
containerGroupName: string,
|
|
322
|
+
options?: ContainerGroupsDeleteOptionalParams
|
|
323
|
+
): Promise<
|
|
324
|
+
PollerLike<
|
|
325
|
+
PollOperationState<ContainerGroupsDeleteResponse>,
|
|
326
|
+
ContainerGroupsDeleteResponse
|
|
327
|
+
>
|
|
328
|
+
> {
|
|
329
|
+
const directSendOperation = async (
|
|
330
|
+
args: coreClient.OperationArguments,
|
|
331
|
+
spec: coreClient.OperationSpec
|
|
332
|
+
): Promise<ContainerGroupsDeleteResponse> => {
|
|
333
|
+
return this.client.sendOperationRequest(args, spec);
|
|
334
|
+
};
|
|
335
|
+
const sendOperation = async (
|
|
336
|
+
args: coreClient.OperationArguments,
|
|
337
|
+
spec: coreClient.OperationSpec
|
|
338
|
+
) => {
|
|
339
|
+
let currentRawResponse:
|
|
340
|
+
| coreClient.FullOperationResponse
|
|
341
|
+
| undefined = undefined;
|
|
342
|
+
const providedCallback = args.options?.onResponse;
|
|
343
|
+
const callback: coreClient.RawResponseCallback = (
|
|
344
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
345
|
+
flatResponse: unknown
|
|
346
|
+
) => {
|
|
347
|
+
currentRawResponse = rawResponse;
|
|
348
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
349
|
+
};
|
|
350
|
+
const updatedArgs = {
|
|
351
|
+
...args,
|
|
352
|
+
options: {
|
|
353
|
+
...args.options,
|
|
354
|
+
onResponse: callback
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
358
|
+
return {
|
|
359
|
+
flatResponse,
|
|
360
|
+
rawResponse: {
|
|
361
|
+
statusCode: currentRawResponse!.status,
|
|
362
|
+
body: currentRawResponse!.parsedBody,
|
|
363
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
const lro = new LroImpl(
|
|
369
|
+
sendOperation,
|
|
370
|
+
{ resourceGroupName, containerGroupName, options },
|
|
371
|
+
deleteOperationSpec
|
|
372
|
+
);
|
|
373
|
+
return new LroEngine(lro, {
|
|
374
|
+
resumeFrom: options?.resumeFrom,
|
|
375
|
+
intervalInMs: options?.updateIntervalInMs
|
|
376
|
+
});
|
|
185
377
|
}
|
|
186
378
|
|
|
187
379
|
/**
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* @summary Restarts all containers in a container group.
|
|
380
|
+
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
381
|
+
* does not delete other resources provided by the user, such as volumes.
|
|
191
382
|
* @param resourceGroupName The name of the resource group.
|
|
192
383
|
* @param containerGroupName The name of the container group.
|
|
193
|
-
* @param
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
384
|
+
* @param options The options parameters.
|
|
385
|
+
*/
|
|
386
|
+
async beginDeleteAndWait(
|
|
387
|
+
resourceGroupName: string,
|
|
388
|
+
containerGroupName: string,
|
|
389
|
+
options?: ContainerGroupsDeleteOptionalParams
|
|
390
|
+
): Promise<ContainerGroupsDeleteResponse> {
|
|
391
|
+
const poller = await this.beginDelete(
|
|
392
|
+
resourceGroupName,
|
|
393
|
+
containerGroupName,
|
|
394
|
+
options
|
|
395
|
+
);
|
|
396
|
+
return poller.pollUntilDone();
|
|
199
397
|
}
|
|
200
398
|
|
|
201
399
|
/**
|
|
202
|
-
*
|
|
203
|
-
* will
|
|
204
|
-
* @summary Stops all containers in a container group.
|
|
205
|
-
* @param resourceGroupName The name of the resource group.
|
|
206
|
-
* @param containerGroupName The name of the container group.
|
|
207
|
-
* @param [options] The optional parameters
|
|
208
|
-
* @returns Promise<msRest.RestResponse>
|
|
209
|
-
*/
|
|
210
|
-
stop(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
211
|
-
/**
|
|
212
|
-
* @param resourceGroupName The name of the resource group.
|
|
213
|
-
* @param containerGroupName The name of the container group.
|
|
214
|
-
* @param callback The callback
|
|
215
|
-
*/
|
|
216
|
-
stop(resourceGroupName: string, containerGroupName: string, callback: msRest.ServiceCallback<void>): void;
|
|
217
|
-
/**
|
|
400
|
+
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
401
|
+
* will be downloaded.
|
|
218
402
|
* @param resourceGroupName The name of the resource group.
|
|
219
403
|
* @param containerGroupName The name of the container group.
|
|
220
|
-
* @param options The
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
404
|
+
* @param options The options parameters.
|
|
405
|
+
*/
|
|
406
|
+
async beginRestart(
|
|
407
|
+
resourceGroupName: string,
|
|
408
|
+
containerGroupName: string,
|
|
409
|
+
options?: ContainerGroupsRestartOptionalParams
|
|
410
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
411
|
+
const directSendOperation = async (
|
|
412
|
+
args: coreClient.OperationArguments,
|
|
413
|
+
spec: coreClient.OperationSpec
|
|
414
|
+
): Promise<void> => {
|
|
415
|
+
return this.client.sendOperationRequest(args, spec);
|
|
416
|
+
};
|
|
417
|
+
const sendOperation = async (
|
|
418
|
+
args: coreClient.OperationArguments,
|
|
419
|
+
spec: coreClient.OperationSpec
|
|
420
|
+
) => {
|
|
421
|
+
let currentRawResponse:
|
|
422
|
+
| coreClient.FullOperationResponse
|
|
423
|
+
| undefined = undefined;
|
|
424
|
+
const providedCallback = args.options?.onResponse;
|
|
425
|
+
const callback: coreClient.RawResponseCallback = (
|
|
426
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
427
|
+
flatResponse: unknown
|
|
428
|
+
) => {
|
|
429
|
+
currentRawResponse = rawResponse;
|
|
430
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
431
|
+
};
|
|
432
|
+
const updatedArgs = {
|
|
433
|
+
...args,
|
|
434
|
+
options: {
|
|
435
|
+
...args.options,
|
|
436
|
+
onResponse: callback
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
440
|
+
return {
|
|
441
|
+
flatResponse,
|
|
442
|
+
rawResponse: {
|
|
443
|
+
statusCode: currentRawResponse!.status,
|
|
444
|
+
body: currentRawResponse!.parsedBody,
|
|
445
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
const lro = new LroImpl(
|
|
451
|
+
sendOperation,
|
|
452
|
+
{ resourceGroupName, containerGroupName, options },
|
|
453
|
+
restartOperationSpec
|
|
454
|
+
);
|
|
455
|
+
return new LroEngine(lro, {
|
|
456
|
+
resumeFrom: options?.resumeFrom,
|
|
457
|
+
intervalInMs: options?.updateIntervalInMs
|
|
458
|
+
});
|
|
233
459
|
}
|
|
234
460
|
|
|
235
461
|
/**
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* @summary Starts all containers in a container group.
|
|
462
|
+
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
463
|
+
* will be downloaded.
|
|
239
464
|
* @param resourceGroupName The name of the resource group.
|
|
240
465
|
* @param containerGroupName The name of the container group.
|
|
241
|
-
* @param
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
466
|
+
* @param options The options parameters.
|
|
467
|
+
*/
|
|
468
|
+
async beginRestartAndWait(
|
|
469
|
+
resourceGroupName: string,
|
|
470
|
+
containerGroupName: string,
|
|
471
|
+
options?: ContainerGroupsRestartOptionalParams
|
|
472
|
+
): Promise<void> {
|
|
473
|
+
const poller = await this.beginRestart(
|
|
474
|
+
resourceGroupName,
|
|
475
|
+
containerGroupName,
|
|
476
|
+
options
|
|
477
|
+
);
|
|
478
|
+
return poller.pollUntilDone();
|
|
247
479
|
}
|
|
248
480
|
|
|
249
481
|
/**
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* @summary Get all network dependencies for container group.
|
|
253
|
-
* @param resourceGroupName The name of the resource group.
|
|
254
|
-
* @param containerGroupName The name of the container group.
|
|
255
|
-
* @param [options] The optional parameters
|
|
256
|
-
* @returns Promise<Models.ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>
|
|
257
|
-
*/
|
|
258
|
-
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
|
|
259
|
-
/**
|
|
482
|
+
* Stops all containers in a container group. Compute resources will be deallocated and billing will
|
|
483
|
+
* stop.
|
|
260
484
|
* @param resourceGroupName The name of the resource group.
|
|
261
485
|
* @param containerGroupName The name of the container group.
|
|
262
|
-
* @param
|
|
486
|
+
* @param options The options parameters.
|
|
263
487
|
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
* @param callback The callback
|
|
270
|
-
*/
|
|
271
|
-
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string[]>): void;
|
|
272
|
-
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<string[]>, callback?: msRest.ServiceCallback<string[]>): Promise<Models.ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse> {
|
|
488
|
+
stop(
|
|
489
|
+
resourceGroupName: string,
|
|
490
|
+
containerGroupName: string,
|
|
491
|
+
options?: ContainerGroupsStopOptionalParams
|
|
492
|
+
): Promise<void> {
|
|
273
493
|
return this.client.sendOperationRequest(
|
|
274
|
-
{
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
options
|
|
278
|
-
},
|
|
279
|
-
getOutboundNetworkDependenciesEndpointsOperationSpec,
|
|
280
|
-
callback) as Promise<Models.ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
|
|
494
|
+
{ resourceGroupName, containerGroupName, options },
|
|
495
|
+
stopOperationSpec
|
|
496
|
+
);
|
|
281
497
|
}
|
|
282
498
|
|
|
283
499
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
500
|
+
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
501
|
+
* start.
|
|
286
502
|
* @param resourceGroupName The name of the resource group.
|
|
287
503
|
* @param containerGroupName The name of the container group.
|
|
288
|
-
* @param
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
504
|
+
* @param options The options parameters.
|
|
505
|
+
*/
|
|
506
|
+
async beginStart(
|
|
507
|
+
resourceGroupName: string,
|
|
508
|
+
containerGroupName: string,
|
|
509
|
+
options?: ContainerGroupsStartOptionalParams
|
|
510
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
511
|
+
const directSendOperation = async (
|
|
512
|
+
args: coreClient.OperationArguments,
|
|
513
|
+
spec: coreClient.OperationSpec
|
|
514
|
+
): Promise<void> => {
|
|
515
|
+
return this.client.sendOperationRequest(args, spec);
|
|
516
|
+
};
|
|
517
|
+
const sendOperation = async (
|
|
518
|
+
args: coreClient.OperationArguments,
|
|
519
|
+
spec: coreClient.OperationSpec
|
|
520
|
+
) => {
|
|
521
|
+
let currentRawResponse:
|
|
522
|
+
| coreClient.FullOperationResponse
|
|
523
|
+
| undefined = undefined;
|
|
524
|
+
const providedCallback = args.options?.onResponse;
|
|
525
|
+
const callback: coreClient.RawResponseCallback = (
|
|
526
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
527
|
+
flatResponse: unknown
|
|
528
|
+
) => {
|
|
529
|
+
currentRawResponse = rawResponse;
|
|
530
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
531
|
+
};
|
|
532
|
+
const updatedArgs = {
|
|
533
|
+
...args,
|
|
534
|
+
options: {
|
|
535
|
+
...args.options,
|
|
536
|
+
onResponse: callback
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
540
|
+
return {
|
|
541
|
+
flatResponse,
|
|
542
|
+
rawResponse: {
|
|
543
|
+
statusCode: currentRawResponse!.status,
|
|
544
|
+
body: currentRawResponse!.parsedBody,
|
|
545
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
};
|
|
303
549
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
beginDeleteMethod(resourceGroupName: string, containerGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
314
|
-
return this.client.sendLRORequest(
|
|
315
|
-
{
|
|
316
|
-
resourceGroupName,
|
|
317
|
-
containerGroupName,
|
|
318
|
-
options
|
|
319
|
-
},
|
|
320
|
-
beginDeleteMethodOperationSpec,
|
|
321
|
-
options);
|
|
550
|
+
const lro = new LroImpl(
|
|
551
|
+
sendOperation,
|
|
552
|
+
{ resourceGroupName, containerGroupName, options },
|
|
553
|
+
startOperationSpec
|
|
554
|
+
);
|
|
555
|
+
return new LroEngine(lro, {
|
|
556
|
+
resumeFrom: options?.resumeFrom,
|
|
557
|
+
intervalInMs: options?.updateIntervalInMs
|
|
558
|
+
});
|
|
322
559
|
}
|
|
323
560
|
|
|
324
561
|
/**
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* @summary Restarts all containers in a container group.
|
|
562
|
+
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
563
|
+
* start.
|
|
328
564
|
* @param resourceGroupName The name of the resource group.
|
|
329
565
|
* @param containerGroupName The name of the container group.
|
|
330
|
-
* @param
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
566
|
+
* @param options The options parameters.
|
|
567
|
+
*/
|
|
568
|
+
async beginStartAndWait(
|
|
569
|
+
resourceGroupName: string,
|
|
570
|
+
containerGroupName: string,
|
|
571
|
+
options?: ContainerGroupsStartOptionalParams
|
|
572
|
+
): Promise<void> {
|
|
573
|
+
const poller = await this.beginStart(
|
|
574
|
+
resourceGroupName,
|
|
575
|
+
containerGroupName,
|
|
576
|
+
options
|
|
577
|
+
);
|
|
578
|
+
return poller.pollUntilDone();
|
|
342
579
|
}
|
|
343
580
|
|
|
344
581
|
/**
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
* @summary Starts all containers in a container group.
|
|
582
|
+
* Gets all the network dependencies for this container group to allow complete control of network
|
|
583
|
+
* setting and configuration. For container groups, this will always be an empty list.
|
|
348
584
|
* @param resourceGroupName The name of the resource group.
|
|
349
585
|
* @param containerGroupName The name of the container group.
|
|
350
|
-
* @param
|
|
351
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
586
|
+
* @param options The options parameters.
|
|
352
587
|
*/
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
|
|
588
|
+
getOutboundNetworkDependenciesEndpoints(
|
|
589
|
+
resourceGroupName: string,
|
|
590
|
+
containerGroupName: string,
|
|
591
|
+
options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams
|
|
592
|
+
): Promise<ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse> {
|
|
593
|
+
return this.client.sendOperationRequest(
|
|
594
|
+
{ resourceGroupName, containerGroupName, options },
|
|
595
|
+
getOutboundNetworkDependenciesEndpointsOperationSpec
|
|
596
|
+
);
|
|
362
597
|
}
|
|
363
598
|
|
|
364
599
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
* @summary Get a list of container groups in the specified subscription.
|
|
369
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
370
|
-
* @param [options] The optional parameters
|
|
371
|
-
* @returns Promise<Models.ContainerGroupsListNextResponse>
|
|
600
|
+
* ListNext
|
|
601
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
602
|
+
* @param options The options parameters.
|
|
372
603
|
*/
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
*/
|
|
378
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ContainerGroupListResult>): void;
|
|
379
|
-
/**
|
|
380
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
381
|
-
* @param options The optional parameters
|
|
382
|
-
* @param callback The callback
|
|
383
|
-
*/
|
|
384
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ContainerGroupListResult>): void;
|
|
385
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ContainerGroupListResult>, callback?: msRest.ServiceCallback<Models.ContainerGroupListResult>): Promise<Models.ContainerGroupsListNextResponse> {
|
|
604
|
+
private _listNext(
|
|
605
|
+
nextLink: string,
|
|
606
|
+
options?: ContainerGroupsListNextOptionalParams
|
|
607
|
+
): Promise<ContainerGroupsListNextResponse> {
|
|
386
608
|
return this.client.sendOperationRequest(
|
|
387
|
-
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
listNextOperationSpec,
|
|
392
|
-
callback) as Promise<Models.ContainerGroupsListNextResponse>;
|
|
609
|
+
{ nextLink, options },
|
|
610
|
+
listNextOperationSpec
|
|
611
|
+
);
|
|
393
612
|
}
|
|
394
613
|
|
|
395
614
|
/**
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
* @
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
407
|
-
* @param callback The callback
|
|
408
|
-
*/
|
|
409
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ContainerGroupListResult>): void;
|
|
410
|
-
/**
|
|
411
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
412
|
-
* @param options The optional parameters
|
|
413
|
-
* @param callback The callback
|
|
414
|
-
*/
|
|
415
|
-
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ContainerGroupListResult>): void;
|
|
416
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ContainerGroupListResult>, callback?: msRest.ServiceCallback<Models.ContainerGroupListResult>): Promise<Models.ContainerGroupsListByResourceGroupNextResponse> {
|
|
615
|
+
* ListByResourceGroupNext
|
|
616
|
+
* @param resourceGroupName The name of the resource group.
|
|
617
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
618
|
+
* @param options The options parameters.
|
|
619
|
+
*/
|
|
620
|
+
private _listByResourceGroupNext(
|
|
621
|
+
resourceGroupName: string,
|
|
622
|
+
nextLink: string,
|
|
623
|
+
options?: ContainerGroupsListByResourceGroupNextOptionalParams
|
|
624
|
+
): Promise<ContainerGroupsListByResourceGroupNextResponse> {
|
|
417
625
|
return this.client.sendOperationRequest(
|
|
418
|
-
{
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
},
|
|
422
|
-
listByResourceGroupNextOperationSpec,
|
|
423
|
-
callback) as Promise<Models.ContainerGroupsListByResourceGroupNextResponse>;
|
|
626
|
+
{ resourceGroupName, nextLink, options },
|
|
627
|
+
listByResourceGroupNextOperationSpec
|
|
628
|
+
);
|
|
424
629
|
}
|
|
425
630
|
}
|
|
426
|
-
|
|
427
631
|
// Operation Specifications
|
|
428
|
-
const serializer =
|
|
429
|
-
|
|
632
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
633
|
+
|
|
634
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
635
|
+
path:
|
|
636
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
430
637
|
httpMethod: "GET",
|
|
431
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
432
|
-
urlParameters: [
|
|
433
|
-
Parameters.subscriptionId
|
|
434
|
-
],
|
|
435
|
-
queryParameters: [
|
|
436
|
-
Parameters.apiVersion
|
|
437
|
-
],
|
|
438
|
-
headerParameters: [
|
|
439
|
-
Parameters.acceptLanguage
|
|
440
|
-
],
|
|
441
638
|
responses: {
|
|
442
639
|
200: {
|
|
443
640
|
bodyMapper: Mappers.ContainerGroupListResult
|
|
@@ -446,22 +643,15 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
446
643
|
bodyMapper: Mappers.CloudError
|
|
447
644
|
}
|
|
448
645
|
},
|
|
646
|
+
queryParameters: [Parameters.apiVersion],
|
|
647
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
648
|
+
headerParameters: [Parameters.accept],
|
|
449
649
|
serializer
|
|
450
650
|
};
|
|
451
|
-
|
|
452
|
-
|
|
651
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
652
|
+
path:
|
|
653
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
453
654
|
httpMethod: "GET",
|
|
454
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
455
|
-
urlParameters: [
|
|
456
|
-
Parameters.subscriptionId,
|
|
457
|
-
Parameters.resourceGroupName
|
|
458
|
-
],
|
|
459
|
-
queryParameters: [
|
|
460
|
-
Parameters.apiVersion
|
|
461
|
-
],
|
|
462
|
-
headerParameters: [
|
|
463
|
-
Parameters.acceptLanguage
|
|
464
|
-
],
|
|
465
655
|
responses: {
|
|
466
656
|
200: {
|
|
467
657
|
bodyMapper: Mappers.ContainerGroupListResult
|
|
@@ -470,23 +660,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
470
660
|
bodyMapper: Mappers.CloudError
|
|
471
661
|
}
|
|
472
662
|
},
|
|
473
|
-
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
477
|
-
httpMethod: "GET",
|
|
478
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
663
|
+
queryParameters: [Parameters.apiVersion],
|
|
479
664
|
urlParameters: [
|
|
665
|
+
Parameters.$host,
|
|
480
666
|
Parameters.subscriptionId,
|
|
481
|
-
Parameters.resourceGroupName
|
|
482
|
-
Parameters.containerGroupName
|
|
483
|
-
],
|
|
484
|
-
queryParameters: [
|
|
485
|
-
Parameters.apiVersion
|
|
486
|
-
],
|
|
487
|
-
headerParameters: [
|
|
488
|
-
Parameters.acceptLanguage
|
|
667
|
+
Parameters.resourceGroupName
|
|
489
668
|
],
|
|
669
|
+
headerParameters: [Parameters.accept],
|
|
670
|
+
serializer
|
|
671
|
+
};
|
|
672
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
673
|
+
path:
|
|
674
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
675
|
+
httpMethod: "GET",
|
|
490
676
|
responses: {
|
|
491
677
|
200: {
|
|
492
678
|
bodyMapper: Mappers.ContainerGroup
|
|
@@ -495,120 +681,77 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
495
681
|
bodyMapper: Mappers.CloudError
|
|
496
682
|
}
|
|
497
683
|
},
|
|
498
|
-
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
502
|
-
httpMethod: "PATCH",
|
|
503
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
684
|
+
queryParameters: [Parameters.apiVersion],
|
|
504
685
|
urlParameters: [
|
|
686
|
+
Parameters.$host,
|
|
505
687
|
Parameters.subscriptionId,
|
|
506
688
|
Parameters.resourceGroupName,
|
|
507
689
|
Parameters.containerGroupName
|
|
508
690
|
],
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
parameterPath: "resource",
|
|
517
|
-
mapper: {
|
|
518
|
-
...Mappers.Resource,
|
|
519
|
-
required: true
|
|
520
|
-
}
|
|
521
|
-
},
|
|
691
|
+
headerParameters: [Parameters.accept],
|
|
692
|
+
serializer
|
|
693
|
+
};
|
|
694
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
695
|
+
path:
|
|
696
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
697
|
+
httpMethod: "PUT",
|
|
522
698
|
responses: {
|
|
523
699
|
200: {
|
|
524
700
|
bodyMapper: Mappers.ContainerGroup
|
|
525
701
|
},
|
|
702
|
+
201: {
|
|
703
|
+
bodyMapper: Mappers.ContainerGroup
|
|
704
|
+
},
|
|
705
|
+
202: {
|
|
706
|
+
bodyMapper: Mappers.ContainerGroup
|
|
707
|
+
},
|
|
708
|
+
204: {
|
|
709
|
+
bodyMapper: Mappers.ContainerGroup
|
|
710
|
+
},
|
|
526
711
|
default: {
|
|
527
712
|
bodyMapper: Mappers.CloudError
|
|
528
713
|
}
|
|
529
714
|
},
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
const stopOperationSpec: msRest.OperationSpec = {
|
|
534
|
-
httpMethod: "POST",
|
|
535
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
|
|
715
|
+
requestBody: Parameters.containerGroup,
|
|
716
|
+
queryParameters: [Parameters.apiVersion],
|
|
536
717
|
urlParameters: [
|
|
718
|
+
Parameters.$host,
|
|
537
719
|
Parameters.subscriptionId,
|
|
538
720
|
Parameters.resourceGroupName,
|
|
539
721
|
Parameters.containerGroupName
|
|
540
722
|
],
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
],
|
|
544
|
-
headerParameters: [
|
|
545
|
-
Parameters.acceptLanguage
|
|
546
|
-
],
|
|
547
|
-
responses: {
|
|
548
|
-
204: {},
|
|
549
|
-
default: {
|
|
550
|
-
bodyMapper: Mappers.CloudError
|
|
551
|
-
}
|
|
552
|
-
},
|
|
723
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
724
|
+
mediaType: "json",
|
|
553
725
|
serializer
|
|
554
726
|
};
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
urlParameters: [
|
|
560
|
-
Parameters.subscriptionId,
|
|
561
|
-
Parameters.resourceGroupName,
|
|
562
|
-
Parameters.containerGroupName
|
|
563
|
-
],
|
|
564
|
-
queryParameters: [
|
|
565
|
-
Parameters.apiVersion
|
|
566
|
-
],
|
|
567
|
-
headerParameters: [
|
|
568
|
-
Parameters.acceptLanguage
|
|
569
|
-
],
|
|
727
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
728
|
+
path:
|
|
729
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
730
|
+
httpMethod: "PATCH",
|
|
570
731
|
responses: {
|
|
571
732
|
200: {
|
|
572
|
-
bodyMapper:
|
|
573
|
-
serializedName: "parsedResponse",
|
|
574
|
-
type: {
|
|
575
|
-
name: "Sequence",
|
|
576
|
-
element: {
|
|
577
|
-
type: {
|
|
578
|
-
name: "String"
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
733
|
+
bodyMapper: Mappers.ContainerGroup
|
|
583
734
|
},
|
|
584
735
|
default: {
|
|
585
736
|
bodyMapper: Mappers.CloudError
|
|
586
737
|
}
|
|
587
738
|
},
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
592
|
-
httpMethod: "PUT",
|
|
593
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
739
|
+
requestBody: Parameters.resource,
|
|
740
|
+
queryParameters: [Parameters.apiVersion],
|
|
594
741
|
urlParameters: [
|
|
742
|
+
Parameters.$host,
|
|
595
743
|
Parameters.subscriptionId,
|
|
596
744
|
Parameters.resourceGroupName,
|
|
597
745
|
Parameters.containerGroupName
|
|
598
746
|
],
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
mapper: {
|
|
608
|
-
...Mappers.ContainerGroup,
|
|
609
|
-
required: true
|
|
610
|
-
}
|
|
611
|
-
},
|
|
747
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
748
|
+
mediaType: "json",
|
|
749
|
+
serializer
|
|
750
|
+
};
|
|
751
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
752
|
+
path:
|
|
753
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
754
|
+
httpMethod: "DELETE",
|
|
612
755
|
responses: {
|
|
613
756
|
200: {
|
|
614
757
|
bodyMapper: Mappers.ContainerGroup
|
|
@@ -616,99 +759,119 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
616
759
|
201: {
|
|
617
760
|
bodyMapper: Mappers.ContainerGroup
|
|
618
761
|
},
|
|
762
|
+
202: {
|
|
763
|
+
bodyMapper: Mappers.ContainerGroup
|
|
764
|
+
},
|
|
765
|
+
204: {
|
|
766
|
+
bodyMapper: Mappers.ContainerGroup
|
|
767
|
+
},
|
|
619
768
|
default: {
|
|
620
769
|
bodyMapper: Mappers.CloudError
|
|
621
770
|
}
|
|
622
771
|
},
|
|
623
|
-
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
627
|
-
httpMethod: "DELETE",
|
|
628
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
772
|
+
queryParameters: [Parameters.apiVersion],
|
|
629
773
|
urlParameters: [
|
|
774
|
+
Parameters.$host,
|
|
630
775
|
Parameters.subscriptionId,
|
|
631
776
|
Parameters.resourceGroupName,
|
|
632
777
|
Parameters.containerGroupName
|
|
633
778
|
],
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
779
|
+
headerParameters: [Parameters.accept],
|
|
780
|
+
serializer
|
|
781
|
+
};
|
|
782
|
+
const restartOperationSpec: coreClient.OperationSpec = {
|
|
783
|
+
path:
|
|
784
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
|
|
785
|
+
httpMethod: "POST",
|
|
640
786
|
responses: {
|
|
641
|
-
200: {
|
|
642
|
-
|
|
643
|
-
},
|
|
787
|
+
200: {},
|
|
788
|
+
201: {},
|
|
644
789
|
202: {},
|
|
645
790
|
204: {},
|
|
646
791
|
default: {
|
|
647
792
|
bodyMapper: Mappers.CloudError
|
|
648
793
|
}
|
|
649
794
|
},
|
|
650
|
-
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
const beginRestartOperationSpec: msRest.OperationSpec = {
|
|
654
|
-
httpMethod: "POST",
|
|
655
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
|
|
795
|
+
queryParameters: [Parameters.apiVersion],
|
|
656
796
|
urlParameters: [
|
|
797
|
+
Parameters.$host,
|
|
657
798
|
Parameters.subscriptionId,
|
|
658
799
|
Parameters.resourceGroupName,
|
|
659
800
|
Parameters.containerGroupName
|
|
660
801
|
],
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
802
|
+
headerParameters: [Parameters.accept],
|
|
803
|
+
serializer
|
|
804
|
+
};
|
|
805
|
+
const stopOperationSpec: coreClient.OperationSpec = {
|
|
806
|
+
path:
|
|
807
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
|
|
808
|
+
httpMethod: "POST",
|
|
667
809
|
responses: {
|
|
668
810
|
204: {},
|
|
669
811
|
default: {
|
|
670
812
|
bodyMapper: Mappers.CloudError
|
|
671
813
|
}
|
|
672
814
|
},
|
|
673
|
-
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
const beginStartOperationSpec: msRest.OperationSpec = {
|
|
677
|
-
httpMethod: "POST",
|
|
678
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
|
|
815
|
+
queryParameters: [Parameters.apiVersion],
|
|
679
816
|
urlParameters: [
|
|
817
|
+
Parameters.$host,
|
|
680
818
|
Parameters.subscriptionId,
|
|
681
819
|
Parameters.resourceGroupName,
|
|
682
820
|
Parameters.containerGroupName
|
|
683
821
|
],
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
822
|
+
headerParameters: [Parameters.accept],
|
|
823
|
+
serializer
|
|
824
|
+
};
|
|
825
|
+
const startOperationSpec: coreClient.OperationSpec = {
|
|
826
|
+
path:
|
|
827
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
|
|
828
|
+
httpMethod: "POST",
|
|
690
829
|
responses: {
|
|
830
|
+
200: {},
|
|
831
|
+
201: {},
|
|
691
832
|
202: {},
|
|
833
|
+
204: {},
|
|
692
834
|
default: {
|
|
693
835
|
bodyMapper: Mappers.CloudError
|
|
694
836
|
}
|
|
695
837
|
},
|
|
838
|
+
queryParameters: [Parameters.apiVersion],
|
|
839
|
+
urlParameters: [
|
|
840
|
+
Parameters.$host,
|
|
841
|
+
Parameters.subscriptionId,
|
|
842
|
+
Parameters.resourceGroupName,
|
|
843
|
+
Parameters.containerGroupName
|
|
844
|
+
],
|
|
845
|
+
headerParameters: [Parameters.accept],
|
|
696
846
|
serializer
|
|
697
847
|
};
|
|
698
|
-
|
|
699
|
-
|
|
848
|
+
const getOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
|
|
849
|
+
path:
|
|
850
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints",
|
|
700
851
|
httpMethod: "GET",
|
|
701
|
-
|
|
702
|
-
|
|
852
|
+
responses: {
|
|
853
|
+
200: {
|
|
854
|
+
bodyMapper: {
|
|
855
|
+
type: { name: "Sequence", element: { type: { name: "String" } } }
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
default: {
|
|
859
|
+
bodyMapper: Mappers.CloudError
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
queryParameters: [Parameters.apiVersion],
|
|
703
863
|
urlParameters: [
|
|
704
|
-
Parameters
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
Parameters.
|
|
708
|
-
],
|
|
709
|
-
headerParameters: [
|
|
710
|
-
Parameters.acceptLanguage
|
|
864
|
+
Parameters.$host,
|
|
865
|
+
Parameters.subscriptionId,
|
|
866
|
+
Parameters.resourceGroupName,
|
|
867
|
+
Parameters.containerGroupName
|
|
711
868
|
],
|
|
869
|
+
headerParameters: [Parameters.accept],
|
|
870
|
+
serializer
|
|
871
|
+
};
|
|
872
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
873
|
+
path: "{nextLink}",
|
|
874
|
+
httpMethod: "GET",
|
|
712
875
|
responses: {
|
|
713
876
|
200: {
|
|
714
877
|
bodyMapper: Mappers.ContainerGroupListResult
|
|
@@ -717,22 +880,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
717
880
|
bodyMapper: Mappers.CloudError
|
|
718
881
|
}
|
|
719
882
|
},
|
|
883
|
+
queryParameters: [Parameters.apiVersion],
|
|
884
|
+
urlParameters: [
|
|
885
|
+
Parameters.$host,
|
|
886
|
+
Parameters.subscriptionId,
|
|
887
|
+
Parameters.nextLink
|
|
888
|
+
],
|
|
889
|
+
headerParameters: [Parameters.accept],
|
|
720
890
|
serializer
|
|
721
891
|
};
|
|
722
|
-
|
|
723
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
724
|
-
httpMethod: "GET",
|
|
725
|
-
baseUrl: "https://management.azure.com",
|
|
892
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
726
893
|
path: "{nextLink}",
|
|
727
|
-
|
|
728
|
-
Parameters.nextPageLink
|
|
729
|
-
],
|
|
730
|
-
queryParameters: [
|
|
731
|
-
Parameters.apiVersion
|
|
732
|
-
],
|
|
733
|
-
headerParameters: [
|
|
734
|
-
Parameters.acceptLanguage
|
|
735
|
-
],
|
|
894
|
+
httpMethod: "GET",
|
|
736
895
|
responses: {
|
|
737
896
|
200: {
|
|
738
897
|
bodyMapper: Mappers.ContainerGroupListResult
|
|
@@ -741,5 +900,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
741
900
|
bodyMapper: Mappers.CloudError
|
|
742
901
|
}
|
|
743
902
|
},
|
|
903
|
+
queryParameters: [Parameters.apiVersion],
|
|
904
|
+
urlParameters: [
|
|
905
|
+
Parameters.$host,
|
|
906
|
+
Parameters.subscriptionId,
|
|
907
|
+
Parameters.resourceGroupName,
|
|
908
|
+
Parameters.nextLink
|
|
909
|
+
],
|
|
910
|
+
headerParameters: [Parameters.accept],
|
|
744
911
|
serializer
|
|
745
912
|
};
|