@azure/arm-containerinstance 6.3.0 → 8.0.0
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 +799 -788
- 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 -32
- 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 +734 -1215
- package/src/models/mappers.ts +808 -793
- package/src/models/parameters.ts +90 -38
- package/src/operations/containerGroups.ts +660 -424
- 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 -3019
- 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 -1469
- 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 -247
- package/esm/operations/containerGroups.d.ts.map +0 -1
- package/esm/operations/containerGroups.js +0 -455
- 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
package/dist/index.js
ADDED
|
@@ -0,0 +1,3335 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownContainerNetworkProtocol) {
|
|
17
|
+
KnownContainerNetworkProtocol["TCP"] = "TCP";
|
|
18
|
+
KnownContainerNetworkProtocol["UDP"] = "UDP";
|
|
19
|
+
})(exports.KnownContainerNetworkProtocol || (exports.KnownContainerNetworkProtocol = {}));
|
|
20
|
+
(function (KnownGpuSku) {
|
|
21
|
+
KnownGpuSku["K80"] = "K80";
|
|
22
|
+
KnownGpuSku["P100"] = "P100";
|
|
23
|
+
KnownGpuSku["V100"] = "V100";
|
|
24
|
+
})(exports.KnownGpuSku || (exports.KnownGpuSku = {}));
|
|
25
|
+
(function (KnownScheme) {
|
|
26
|
+
KnownScheme["Http"] = "http";
|
|
27
|
+
KnownScheme["Https"] = "https";
|
|
28
|
+
})(exports.KnownScheme || (exports.KnownScheme = {}));
|
|
29
|
+
(function (KnownContainerGroupRestartPolicy) {
|
|
30
|
+
KnownContainerGroupRestartPolicy["Always"] = "Always";
|
|
31
|
+
KnownContainerGroupRestartPolicy["OnFailure"] = "OnFailure";
|
|
32
|
+
KnownContainerGroupRestartPolicy["Never"] = "Never";
|
|
33
|
+
})(exports.KnownContainerGroupRestartPolicy || (exports.KnownContainerGroupRestartPolicy = {}));
|
|
34
|
+
(function (KnownContainerGroupNetworkProtocol) {
|
|
35
|
+
KnownContainerGroupNetworkProtocol["TCP"] = "TCP";
|
|
36
|
+
KnownContainerGroupNetworkProtocol["UDP"] = "UDP";
|
|
37
|
+
})(exports.KnownContainerGroupNetworkProtocol || (exports.KnownContainerGroupNetworkProtocol = {}));
|
|
38
|
+
(function (KnownContainerGroupIpAddressType) {
|
|
39
|
+
KnownContainerGroupIpAddressType["Public"] = "Public";
|
|
40
|
+
KnownContainerGroupIpAddressType["Private"] = "Private";
|
|
41
|
+
})(exports.KnownContainerGroupIpAddressType || (exports.KnownContainerGroupIpAddressType = {}));
|
|
42
|
+
(function (KnownOperatingSystemTypes) {
|
|
43
|
+
KnownOperatingSystemTypes["Windows"] = "Windows";
|
|
44
|
+
KnownOperatingSystemTypes["Linux"] = "Linux";
|
|
45
|
+
})(exports.KnownOperatingSystemTypes || (exports.KnownOperatingSystemTypes = {}));
|
|
46
|
+
(function (KnownLogAnalyticsLogType) {
|
|
47
|
+
KnownLogAnalyticsLogType["ContainerInsights"] = "ContainerInsights";
|
|
48
|
+
KnownLogAnalyticsLogType["ContainerInstanceLogs"] = "ContainerInstanceLogs";
|
|
49
|
+
})(exports.KnownLogAnalyticsLogType || (exports.KnownLogAnalyticsLogType = {}));
|
|
50
|
+
(function (KnownContainerGroupSku) {
|
|
51
|
+
KnownContainerGroupSku["Standard"] = "Standard";
|
|
52
|
+
KnownContainerGroupSku["Dedicated"] = "Dedicated";
|
|
53
|
+
})(exports.KnownContainerGroupSku || (exports.KnownContainerGroupSku = {}));
|
|
54
|
+
(function (KnownContainerInstanceOperationsOrigin) {
|
|
55
|
+
KnownContainerInstanceOperationsOrigin["User"] = "User";
|
|
56
|
+
KnownContainerInstanceOperationsOrigin["System"] = "System";
|
|
57
|
+
})(exports.KnownContainerInstanceOperationsOrigin || (exports.KnownContainerInstanceOperationsOrigin = {}));
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* Copyright (c) Microsoft Corporation.
|
|
61
|
+
* Licensed under the MIT License.
|
|
62
|
+
*
|
|
63
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
64
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
65
|
+
*/
|
|
66
|
+
const ContainerGroupListResult = {
|
|
67
|
+
type: {
|
|
68
|
+
name: "Composite",
|
|
69
|
+
className: "ContainerGroupListResult",
|
|
70
|
+
modelProperties: {
|
|
71
|
+
value: {
|
|
72
|
+
serializedName: "value",
|
|
73
|
+
type: {
|
|
74
|
+
name: "Sequence",
|
|
75
|
+
element: {
|
|
76
|
+
type: {
|
|
77
|
+
name: "Composite",
|
|
78
|
+
className: "ContainerGroup"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
nextLink: {
|
|
84
|
+
serializedName: "nextLink",
|
|
85
|
+
type: {
|
|
86
|
+
name: "String"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const ContainerGroupIdentity = {
|
|
93
|
+
type: {
|
|
94
|
+
name: "Composite",
|
|
95
|
+
className: "ContainerGroupIdentity",
|
|
96
|
+
modelProperties: {
|
|
97
|
+
principalId: {
|
|
98
|
+
serializedName: "principalId",
|
|
99
|
+
readOnly: true,
|
|
100
|
+
type: {
|
|
101
|
+
name: "String"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
tenantId: {
|
|
105
|
+
serializedName: "tenantId",
|
|
106
|
+
readOnly: true,
|
|
107
|
+
type: {
|
|
108
|
+
name: "String"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
type: {
|
|
112
|
+
serializedName: "type",
|
|
113
|
+
type: {
|
|
114
|
+
name: "Enum",
|
|
115
|
+
allowedValues: [
|
|
116
|
+
"SystemAssigned",
|
|
117
|
+
"UserAssigned",
|
|
118
|
+
"SystemAssigned, UserAssigned",
|
|
119
|
+
"None"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
userAssignedIdentities: {
|
|
124
|
+
serializedName: "userAssignedIdentities",
|
|
125
|
+
type: {
|
|
126
|
+
name: "Dictionary",
|
|
127
|
+
value: {
|
|
128
|
+
type: {
|
|
129
|
+
name: "Composite",
|
|
130
|
+
className: "Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties = {
|
|
139
|
+
type: {
|
|
140
|
+
name: "Composite",
|
|
141
|
+
className: "Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties",
|
|
142
|
+
modelProperties: {
|
|
143
|
+
principalId: {
|
|
144
|
+
serializedName: "principalId",
|
|
145
|
+
readOnly: true,
|
|
146
|
+
type: {
|
|
147
|
+
name: "String"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
clientId: {
|
|
151
|
+
serializedName: "clientId",
|
|
152
|
+
readOnly: true,
|
|
153
|
+
type: {
|
|
154
|
+
name: "String"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const Container = {
|
|
161
|
+
type: {
|
|
162
|
+
name: "Composite",
|
|
163
|
+
className: "Container",
|
|
164
|
+
modelProperties: {
|
|
165
|
+
name: {
|
|
166
|
+
serializedName: "name",
|
|
167
|
+
required: true,
|
|
168
|
+
type: {
|
|
169
|
+
name: "String"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
image: {
|
|
173
|
+
serializedName: "properties.image",
|
|
174
|
+
required: true,
|
|
175
|
+
type: {
|
|
176
|
+
name: "String"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
command: {
|
|
180
|
+
serializedName: "properties.command",
|
|
181
|
+
type: {
|
|
182
|
+
name: "Sequence",
|
|
183
|
+
element: {
|
|
184
|
+
type: {
|
|
185
|
+
name: "String"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
ports: {
|
|
191
|
+
serializedName: "properties.ports",
|
|
192
|
+
type: {
|
|
193
|
+
name: "Sequence",
|
|
194
|
+
element: {
|
|
195
|
+
type: {
|
|
196
|
+
name: "Composite",
|
|
197
|
+
className: "ContainerPort"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
environmentVariables: {
|
|
203
|
+
serializedName: "properties.environmentVariables",
|
|
204
|
+
type: {
|
|
205
|
+
name: "Sequence",
|
|
206
|
+
element: {
|
|
207
|
+
type: {
|
|
208
|
+
name: "Composite",
|
|
209
|
+
className: "EnvironmentVariable"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
instanceView: {
|
|
215
|
+
serializedName: "properties.instanceView",
|
|
216
|
+
type: {
|
|
217
|
+
name: "Composite",
|
|
218
|
+
className: "ContainerPropertiesInstanceView"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
resources: {
|
|
222
|
+
serializedName: "properties.resources",
|
|
223
|
+
type: {
|
|
224
|
+
name: "Composite",
|
|
225
|
+
className: "ResourceRequirements"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
volumeMounts: {
|
|
229
|
+
serializedName: "properties.volumeMounts",
|
|
230
|
+
type: {
|
|
231
|
+
name: "Sequence",
|
|
232
|
+
element: {
|
|
233
|
+
type: {
|
|
234
|
+
name: "Composite",
|
|
235
|
+
className: "VolumeMount"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
livenessProbe: {
|
|
241
|
+
serializedName: "properties.livenessProbe",
|
|
242
|
+
type: {
|
|
243
|
+
name: "Composite",
|
|
244
|
+
className: "ContainerProbe"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
readinessProbe: {
|
|
248
|
+
serializedName: "properties.readinessProbe",
|
|
249
|
+
type: {
|
|
250
|
+
name: "Composite",
|
|
251
|
+
className: "ContainerProbe"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
const ContainerPort = {
|
|
258
|
+
type: {
|
|
259
|
+
name: "Composite",
|
|
260
|
+
className: "ContainerPort",
|
|
261
|
+
modelProperties: {
|
|
262
|
+
protocol: {
|
|
263
|
+
serializedName: "protocol",
|
|
264
|
+
type: {
|
|
265
|
+
name: "String"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
port: {
|
|
269
|
+
serializedName: "port",
|
|
270
|
+
required: true,
|
|
271
|
+
type: {
|
|
272
|
+
name: "Number"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const EnvironmentVariable = {
|
|
279
|
+
type: {
|
|
280
|
+
name: "Composite",
|
|
281
|
+
className: "EnvironmentVariable",
|
|
282
|
+
modelProperties: {
|
|
283
|
+
name: {
|
|
284
|
+
serializedName: "name",
|
|
285
|
+
required: true,
|
|
286
|
+
type: {
|
|
287
|
+
name: "String"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
value: {
|
|
291
|
+
serializedName: "value",
|
|
292
|
+
type: {
|
|
293
|
+
name: "String"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
secureValue: {
|
|
297
|
+
serializedName: "secureValue",
|
|
298
|
+
type: {
|
|
299
|
+
name: "String"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const ContainerPropertiesInstanceView = {
|
|
306
|
+
type: {
|
|
307
|
+
name: "Composite",
|
|
308
|
+
className: "ContainerPropertiesInstanceView",
|
|
309
|
+
modelProperties: {
|
|
310
|
+
restartCount: {
|
|
311
|
+
serializedName: "restartCount",
|
|
312
|
+
readOnly: true,
|
|
313
|
+
type: {
|
|
314
|
+
name: "Number"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
currentState: {
|
|
318
|
+
serializedName: "currentState",
|
|
319
|
+
type: {
|
|
320
|
+
name: "Composite",
|
|
321
|
+
className: "ContainerState"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
previousState: {
|
|
325
|
+
serializedName: "previousState",
|
|
326
|
+
type: {
|
|
327
|
+
name: "Composite",
|
|
328
|
+
className: "ContainerState"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
events: {
|
|
332
|
+
serializedName: "events",
|
|
333
|
+
readOnly: true,
|
|
334
|
+
type: {
|
|
335
|
+
name: "Sequence",
|
|
336
|
+
element: {
|
|
337
|
+
type: {
|
|
338
|
+
name: "Composite",
|
|
339
|
+
className: "Event"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
const ContainerState = {
|
|
348
|
+
type: {
|
|
349
|
+
name: "Composite",
|
|
350
|
+
className: "ContainerState",
|
|
351
|
+
modelProperties: {
|
|
352
|
+
state: {
|
|
353
|
+
serializedName: "state",
|
|
354
|
+
readOnly: true,
|
|
355
|
+
type: {
|
|
356
|
+
name: "String"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
startTime: {
|
|
360
|
+
serializedName: "startTime",
|
|
361
|
+
readOnly: true,
|
|
362
|
+
type: {
|
|
363
|
+
name: "DateTime"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
exitCode: {
|
|
367
|
+
serializedName: "exitCode",
|
|
368
|
+
readOnly: true,
|
|
369
|
+
type: {
|
|
370
|
+
name: "Number"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
finishTime: {
|
|
374
|
+
serializedName: "finishTime",
|
|
375
|
+
readOnly: true,
|
|
376
|
+
type: {
|
|
377
|
+
name: "DateTime"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
detailStatus: {
|
|
381
|
+
serializedName: "detailStatus",
|
|
382
|
+
readOnly: true,
|
|
383
|
+
type: {
|
|
384
|
+
name: "String"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
const Event = {
|
|
391
|
+
type: {
|
|
392
|
+
name: "Composite",
|
|
393
|
+
className: "Event",
|
|
394
|
+
modelProperties: {
|
|
395
|
+
count: {
|
|
396
|
+
serializedName: "count",
|
|
397
|
+
readOnly: true,
|
|
398
|
+
type: {
|
|
399
|
+
name: "Number"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
firstTimestamp: {
|
|
403
|
+
serializedName: "firstTimestamp",
|
|
404
|
+
readOnly: true,
|
|
405
|
+
type: {
|
|
406
|
+
name: "DateTime"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
lastTimestamp: {
|
|
410
|
+
serializedName: "lastTimestamp",
|
|
411
|
+
readOnly: true,
|
|
412
|
+
type: {
|
|
413
|
+
name: "DateTime"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
name: {
|
|
417
|
+
serializedName: "name",
|
|
418
|
+
readOnly: true,
|
|
419
|
+
type: {
|
|
420
|
+
name: "String"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
message: {
|
|
424
|
+
serializedName: "message",
|
|
425
|
+
readOnly: true,
|
|
426
|
+
type: {
|
|
427
|
+
name: "String"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
type: {
|
|
431
|
+
serializedName: "type",
|
|
432
|
+
readOnly: true,
|
|
433
|
+
type: {
|
|
434
|
+
name: "String"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
const ResourceRequirements = {
|
|
441
|
+
type: {
|
|
442
|
+
name: "Composite",
|
|
443
|
+
className: "ResourceRequirements",
|
|
444
|
+
modelProperties: {
|
|
445
|
+
requests: {
|
|
446
|
+
serializedName: "requests",
|
|
447
|
+
type: {
|
|
448
|
+
name: "Composite",
|
|
449
|
+
className: "ResourceRequests"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
limits: {
|
|
453
|
+
serializedName: "limits",
|
|
454
|
+
type: {
|
|
455
|
+
name: "Composite",
|
|
456
|
+
className: "ResourceLimits"
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
const ResourceRequests = {
|
|
463
|
+
type: {
|
|
464
|
+
name: "Composite",
|
|
465
|
+
className: "ResourceRequests",
|
|
466
|
+
modelProperties: {
|
|
467
|
+
memoryInGB: {
|
|
468
|
+
serializedName: "memoryInGB",
|
|
469
|
+
required: true,
|
|
470
|
+
type: {
|
|
471
|
+
name: "Number"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
cpu: {
|
|
475
|
+
serializedName: "cpu",
|
|
476
|
+
required: true,
|
|
477
|
+
type: {
|
|
478
|
+
name: "Number"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
gpu: {
|
|
482
|
+
serializedName: "gpu",
|
|
483
|
+
type: {
|
|
484
|
+
name: "Composite",
|
|
485
|
+
className: "GpuResource"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
const GpuResource = {
|
|
492
|
+
type: {
|
|
493
|
+
name: "Composite",
|
|
494
|
+
className: "GpuResource",
|
|
495
|
+
modelProperties: {
|
|
496
|
+
count: {
|
|
497
|
+
serializedName: "count",
|
|
498
|
+
required: true,
|
|
499
|
+
type: {
|
|
500
|
+
name: "Number"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
sku: {
|
|
504
|
+
serializedName: "sku",
|
|
505
|
+
required: true,
|
|
506
|
+
type: {
|
|
507
|
+
name: "String"
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
const ResourceLimits = {
|
|
514
|
+
type: {
|
|
515
|
+
name: "Composite",
|
|
516
|
+
className: "ResourceLimits",
|
|
517
|
+
modelProperties: {
|
|
518
|
+
memoryInGB: {
|
|
519
|
+
serializedName: "memoryInGB",
|
|
520
|
+
type: {
|
|
521
|
+
name: "Number"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
cpu: {
|
|
525
|
+
serializedName: "cpu",
|
|
526
|
+
type: {
|
|
527
|
+
name: "Number"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
gpu: {
|
|
531
|
+
serializedName: "gpu",
|
|
532
|
+
type: {
|
|
533
|
+
name: "Composite",
|
|
534
|
+
className: "GpuResource"
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
};
|
|
540
|
+
const VolumeMount = {
|
|
541
|
+
type: {
|
|
542
|
+
name: "Composite",
|
|
543
|
+
className: "VolumeMount",
|
|
544
|
+
modelProperties: {
|
|
545
|
+
name: {
|
|
546
|
+
serializedName: "name",
|
|
547
|
+
required: true,
|
|
548
|
+
type: {
|
|
549
|
+
name: "String"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
mountPath: {
|
|
553
|
+
serializedName: "mountPath",
|
|
554
|
+
required: true,
|
|
555
|
+
type: {
|
|
556
|
+
name: "String"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
readOnly: {
|
|
560
|
+
serializedName: "readOnly",
|
|
561
|
+
type: {
|
|
562
|
+
name: "Boolean"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
const ContainerProbe = {
|
|
569
|
+
type: {
|
|
570
|
+
name: "Composite",
|
|
571
|
+
className: "ContainerProbe",
|
|
572
|
+
modelProperties: {
|
|
573
|
+
exec: {
|
|
574
|
+
serializedName: "exec",
|
|
575
|
+
type: {
|
|
576
|
+
name: "Composite",
|
|
577
|
+
className: "ContainerExec"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
httpGet: {
|
|
581
|
+
serializedName: "httpGet",
|
|
582
|
+
type: {
|
|
583
|
+
name: "Composite",
|
|
584
|
+
className: "ContainerHttpGet"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
initialDelaySeconds: {
|
|
588
|
+
serializedName: "initialDelaySeconds",
|
|
589
|
+
type: {
|
|
590
|
+
name: "Number"
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
periodSeconds: {
|
|
594
|
+
serializedName: "periodSeconds",
|
|
595
|
+
type: {
|
|
596
|
+
name: "Number"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
failureThreshold: {
|
|
600
|
+
serializedName: "failureThreshold",
|
|
601
|
+
type: {
|
|
602
|
+
name: "Number"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
successThreshold: {
|
|
606
|
+
serializedName: "successThreshold",
|
|
607
|
+
type: {
|
|
608
|
+
name: "Number"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
timeoutSeconds: {
|
|
612
|
+
serializedName: "timeoutSeconds",
|
|
613
|
+
type: {
|
|
614
|
+
name: "Number"
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
const ContainerExec = {
|
|
621
|
+
type: {
|
|
622
|
+
name: "Composite",
|
|
623
|
+
className: "ContainerExec",
|
|
624
|
+
modelProperties: {
|
|
625
|
+
command: {
|
|
626
|
+
serializedName: "command",
|
|
627
|
+
type: {
|
|
628
|
+
name: "Sequence",
|
|
629
|
+
element: {
|
|
630
|
+
type: {
|
|
631
|
+
name: "String"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
const ContainerHttpGet = {
|
|
640
|
+
type: {
|
|
641
|
+
name: "Composite",
|
|
642
|
+
className: "ContainerHttpGet",
|
|
643
|
+
modelProperties: {
|
|
644
|
+
path: {
|
|
645
|
+
serializedName: "path",
|
|
646
|
+
type: {
|
|
647
|
+
name: "String"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
port: {
|
|
651
|
+
serializedName: "port",
|
|
652
|
+
required: true,
|
|
653
|
+
type: {
|
|
654
|
+
name: "Number"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
scheme: {
|
|
658
|
+
serializedName: "scheme",
|
|
659
|
+
type: {
|
|
660
|
+
name: "String"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
httpHeaders: {
|
|
664
|
+
serializedName: "httpHeaders",
|
|
665
|
+
type: {
|
|
666
|
+
name: "Sequence",
|
|
667
|
+
element: {
|
|
668
|
+
type: {
|
|
669
|
+
name: "Composite",
|
|
670
|
+
className: "HttpHeader"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
const HttpHeader = {
|
|
679
|
+
type: {
|
|
680
|
+
name: "Composite",
|
|
681
|
+
className: "HttpHeader",
|
|
682
|
+
modelProperties: {
|
|
683
|
+
name: {
|
|
684
|
+
serializedName: "name",
|
|
685
|
+
type: {
|
|
686
|
+
name: "String"
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
value: {
|
|
690
|
+
serializedName: "value",
|
|
691
|
+
type: {
|
|
692
|
+
name: "String"
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
const ImageRegistryCredential = {
|
|
699
|
+
type: {
|
|
700
|
+
name: "Composite",
|
|
701
|
+
className: "ImageRegistryCredential",
|
|
702
|
+
modelProperties: {
|
|
703
|
+
server: {
|
|
704
|
+
serializedName: "server",
|
|
705
|
+
required: true,
|
|
706
|
+
type: {
|
|
707
|
+
name: "String"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
username: {
|
|
711
|
+
serializedName: "username",
|
|
712
|
+
required: true,
|
|
713
|
+
type: {
|
|
714
|
+
name: "String"
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
password: {
|
|
718
|
+
serializedName: "password",
|
|
719
|
+
type: {
|
|
720
|
+
name: "String"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
identity: {
|
|
724
|
+
serializedName: "identity",
|
|
725
|
+
type: {
|
|
726
|
+
name: "String"
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
identityUrl: {
|
|
730
|
+
serializedName: "identityUrl",
|
|
731
|
+
type: {
|
|
732
|
+
name: "String"
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
const IpAddress = {
|
|
739
|
+
type: {
|
|
740
|
+
name: "Composite",
|
|
741
|
+
className: "IpAddress",
|
|
742
|
+
modelProperties: {
|
|
743
|
+
ports: {
|
|
744
|
+
serializedName: "ports",
|
|
745
|
+
required: true,
|
|
746
|
+
type: {
|
|
747
|
+
name: "Sequence",
|
|
748
|
+
element: {
|
|
749
|
+
type: {
|
|
750
|
+
name: "Composite",
|
|
751
|
+
className: "Port"
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
type: {
|
|
757
|
+
serializedName: "type",
|
|
758
|
+
required: true,
|
|
759
|
+
type: {
|
|
760
|
+
name: "String"
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
ip: {
|
|
764
|
+
serializedName: "ip",
|
|
765
|
+
type: {
|
|
766
|
+
name: "String"
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
dnsNameLabel: {
|
|
770
|
+
serializedName: "dnsNameLabel",
|
|
771
|
+
type: {
|
|
772
|
+
name: "String"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
fqdn: {
|
|
776
|
+
serializedName: "fqdn",
|
|
777
|
+
readOnly: true,
|
|
778
|
+
type: {
|
|
779
|
+
name: "String"
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
const Port = {
|
|
786
|
+
type: {
|
|
787
|
+
name: "Composite",
|
|
788
|
+
className: "Port",
|
|
789
|
+
modelProperties: {
|
|
790
|
+
protocol: {
|
|
791
|
+
serializedName: "protocol",
|
|
792
|
+
type: {
|
|
793
|
+
name: "String"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
port: {
|
|
797
|
+
serializedName: "port",
|
|
798
|
+
required: true,
|
|
799
|
+
type: {
|
|
800
|
+
name: "Number"
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
const Volume = {
|
|
807
|
+
type: {
|
|
808
|
+
name: "Composite",
|
|
809
|
+
className: "Volume",
|
|
810
|
+
modelProperties: {
|
|
811
|
+
name: {
|
|
812
|
+
serializedName: "name",
|
|
813
|
+
required: true,
|
|
814
|
+
type: {
|
|
815
|
+
name: "String"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
azureFile: {
|
|
819
|
+
serializedName: "azureFile",
|
|
820
|
+
type: {
|
|
821
|
+
name: "Composite",
|
|
822
|
+
className: "AzureFileVolume"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
emptyDir: {
|
|
826
|
+
serializedName: "emptyDir",
|
|
827
|
+
type: {
|
|
828
|
+
name: "Dictionary",
|
|
829
|
+
value: { type: { name: "any" } }
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
secret: {
|
|
833
|
+
serializedName: "secret",
|
|
834
|
+
type: {
|
|
835
|
+
name: "Dictionary",
|
|
836
|
+
value: { type: { name: "String" } }
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
gitRepo: {
|
|
840
|
+
serializedName: "gitRepo",
|
|
841
|
+
type: {
|
|
842
|
+
name: "Composite",
|
|
843
|
+
className: "GitRepoVolume"
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
const AzureFileVolume = {
|
|
850
|
+
type: {
|
|
851
|
+
name: "Composite",
|
|
852
|
+
className: "AzureFileVolume",
|
|
853
|
+
modelProperties: {
|
|
854
|
+
shareName: {
|
|
855
|
+
serializedName: "shareName",
|
|
856
|
+
required: true,
|
|
857
|
+
type: {
|
|
858
|
+
name: "String"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
readOnly: {
|
|
862
|
+
serializedName: "readOnly",
|
|
863
|
+
type: {
|
|
864
|
+
name: "Boolean"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
storageAccountName: {
|
|
868
|
+
serializedName: "storageAccountName",
|
|
869
|
+
required: true,
|
|
870
|
+
type: {
|
|
871
|
+
name: "String"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
storageAccountKey: {
|
|
875
|
+
serializedName: "storageAccountKey",
|
|
876
|
+
type: {
|
|
877
|
+
name: "String"
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
const GitRepoVolume = {
|
|
884
|
+
type: {
|
|
885
|
+
name: "Composite",
|
|
886
|
+
className: "GitRepoVolume",
|
|
887
|
+
modelProperties: {
|
|
888
|
+
directory: {
|
|
889
|
+
serializedName: "directory",
|
|
890
|
+
type: {
|
|
891
|
+
name: "String"
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
repository: {
|
|
895
|
+
serializedName: "repository",
|
|
896
|
+
required: true,
|
|
897
|
+
type: {
|
|
898
|
+
name: "String"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
revision: {
|
|
902
|
+
serializedName: "revision",
|
|
903
|
+
type: {
|
|
904
|
+
name: "String"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
const ContainerGroupPropertiesInstanceView = {
|
|
911
|
+
type: {
|
|
912
|
+
name: "Composite",
|
|
913
|
+
className: "ContainerGroupPropertiesInstanceView",
|
|
914
|
+
modelProperties: {
|
|
915
|
+
events: {
|
|
916
|
+
serializedName: "events",
|
|
917
|
+
readOnly: true,
|
|
918
|
+
type: {
|
|
919
|
+
name: "Sequence",
|
|
920
|
+
element: {
|
|
921
|
+
type: {
|
|
922
|
+
name: "Composite",
|
|
923
|
+
className: "Event"
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
state: {
|
|
929
|
+
serializedName: "state",
|
|
930
|
+
readOnly: true,
|
|
931
|
+
type: {
|
|
932
|
+
name: "String"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
const ContainerGroupDiagnostics = {
|
|
939
|
+
type: {
|
|
940
|
+
name: "Composite",
|
|
941
|
+
className: "ContainerGroupDiagnostics",
|
|
942
|
+
modelProperties: {
|
|
943
|
+
logAnalytics: {
|
|
944
|
+
serializedName: "logAnalytics",
|
|
945
|
+
type: {
|
|
946
|
+
name: "Composite",
|
|
947
|
+
className: "LogAnalytics"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
const LogAnalytics = {
|
|
954
|
+
type: {
|
|
955
|
+
name: "Composite",
|
|
956
|
+
className: "LogAnalytics",
|
|
957
|
+
modelProperties: {
|
|
958
|
+
workspaceId: {
|
|
959
|
+
serializedName: "workspaceId",
|
|
960
|
+
required: true,
|
|
961
|
+
type: {
|
|
962
|
+
name: "String"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
workspaceKey: {
|
|
966
|
+
serializedName: "workspaceKey",
|
|
967
|
+
required: true,
|
|
968
|
+
type: {
|
|
969
|
+
name: "String"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
logType: {
|
|
973
|
+
serializedName: "logType",
|
|
974
|
+
type: {
|
|
975
|
+
name: "String"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
metadata: {
|
|
979
|
+
serializedName: "metadata",
|
|
980
|
+
type: {
|
|
981
|
+
name: "Dictionary",
|
|
982
|
+
value: { type: { name: "String" } }
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
workspaceResourceId: {
|
|
986
|
+
serializedName: "workspaceResourceId",
|
|
987
|
+
type: {
|
|
988
|
+
name: "String"
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
};
|
|
994
|
+
const ContainerGroupSubnetId = {
|
|
995
|
+
type: {
|
|
996
|
+
name: "Composite",
|
|
997
|
+
className: "ContainerGroupSubnetId",
|
|
998
|
+
modelProperties: {
|
|
999
|
+
id: {
|
|
1000
|
+
serializedName: "id",
|
|
1001
|
+
required: true,
|
|
1002
|
+
type: {
|
|
1003
|
+
name: "String"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
name: {
|
|
1007
|
+
serializedName: "name",
|
|
1008
|
+
type: {
|
|
1009
|
+
name: "String"
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
const DnsConfiguration = {
|
|
1016
|
+
type: {
|
|
1017
|
+
name: "Composite",
|
|
1018
|
+
className: "DnsConfiguration",
|
|
1019
|
+
modelProperties: {
|
|
1020
|
+
nameServers: {
|
|
1021
|
+
serializedName: "nameServers",
|
|
1022
|
+
required: true,
|
|
1023
|
+
type: {
|
|
1024
|
+
name: "Sequence",
|
|
1025
|
+
element: {
|
|
1026
|
+
type: {
|
|
1027
|
+
name: "String"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
searchDomains: {
|
|
1033
|
+
serializedName: "searchDomains",
|
|
1034
|
+
type: {
|
|
1035
|
+
name: "String"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
options: {
|
|
1039
|
+
serializedName: "options",
|
|
1040
|
+
type: {
|
|
1041
|
+
name: "String"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
const EncryptionProperties = {
|
|
1048
|
+
type: {
|
|
1049
|
+
name: "Composite",
|
|
1050
|
+
className: "EncryptionProperties",
|
|
1051
|
+
modelProperties: {
|
|
1052
|
+
vaultBaseUrl: {
|
|
1053
|
+
serializedName: "vaultBaseUrl",
|
|
1054
|
+
required: true,
|
|
1055
|
+
type: {
|
|
1056
|
+
name: "String"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
keyName: {
|
|
1060
|
+
serializedName: "keyName",
|
|
1061
|
+
required: true,
|
|
1062
|
+
type: {
|
|
1063
|
+
name: "String"
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
keyVersion: {
|
|
1067
|
+
serializedName: "keyVersion",
|
|
1068
|
+
required: true,
|
|
1069
|
+
type: {
|
|
1070
|
+
name: "String"
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
};
|
|
1076
|
+
const InitContainerDefinition = {
|
|
1077
|
+
type: {
|
|
1078
|
+
name: "Composite",
|
|
1079
|
+
className: "InitContainerDefinition",
|
|
1080
|
+
modelProperties: {
|
|
1081
|
+
name: {
|
|
1082
|
+
serializedName: "name",
|
|
1083
|
+
required: true,
|
|
1084
|
+
type: {
|
|
1085
|
+
name: "String"
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
image: {
|
|
1089
|
+
serializedName: "properties.image",
|
|
1090
|
+
type: {
|
|
1091
|
+
name: "String"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
command: {
|
|
1095
|
+
serializedName: "properties.command",
|
|
1096
|
+
type: {
|
|
1097
|
+
name: "Sequence",
|
|
1098
|
+
element: {
|
|
1099
|
+
type: {
|
|
1100
|
+
name: "String"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
environmentVariables: {
|
|
1106
|
+
serializedName: "properties.environmentVariables",
|
|
1107
|
+
type: {
|
|
1108
|
+
name: "Sequence",
|
|
1109
|
+
element: {
|
|
1110
|
+
type: {
|
|
1111
|
+
name: "Composite",
|
|
1112
|
+
className: "EnvironmentVariable"
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
instanceView: {
|
|
1118
|
+
serializedName: "properties.instanceView",
|
|
1119
|
+
type: {
|
|
1120
|
+
name: "Composite",
|
|
1121
|
+
className: "InitContainerPropertiesDefinitionInstanceView"
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
volumeMounts: {
|
|
1125
|
+
serializedName: "properties.volumeMounts",
|
|
1126
|
+
type: {
|
|
1127
|
+
name: "Sequence",
|
|
1128
|
+
element: {
|
|
1129
|
+
type: {
|
|
1130
|
+
name: "Composite",
|
|
1131
|
+
className: "VolumeMount"
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
const InitContainerPropertiesDefinitionInstanceView = {
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Composite",
|
|
1142
|
+
className: "InitContainerPropertiesDefinitionInstanceView",
|
|
1143
|
+
modelProperties: {
|
|
1144
|
+
restartCount: {
|
|
1145
|
+
serializedName: "restartCount",
|
|
1146
|
+
readOnly: true,
|
|
1147
|
+
type: {
|
|
1148
|
+
name: "Number"
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
currentState: {
|
|
1152
|
+
serializedName: "currentState",
|
|
1153
|
+
type: {
|
|
1154
|
+
name: "Composite",
|
|
1155
|
+
className: "ContainerState"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
previousState: {
|
|
1159
|
+
serializedName: "previousState",
|
|
1160
|
+
type: {
|
|
1161
|
+
name: "Composite",
|
|
1162
|
+
className: "ContainerState"
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
events: {
|
|
1166
|
+
serializedName: "events",
|
|
1167
|
+
readOnly: true,
|
|
1168
|
+
type: {
|
|
1169
|
+
name: "Sequence",
|
|
1170
|
+
element: {
|
|
1171
|
+
type: {
|
|
1172
|
+
name: "Composite",
|
|
1173
|
+
className: "Event"
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
const Resource = {
|
|
1182
|
+
type: {
|
|
1183
|
+
name: "Composite",
|
|
1184
|
+
className: "Resource",
|
|
1185
|
+
modelProperties: {
|
|
1186
|
+
id: {
|
|
1187
|
+
serializedName: "id",
|
|
1188
|
+
readOnly: true,
|
|
1189
|
+
type: {
|
|
1190
|
+
name: "String"
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
name: {
|
|
1194
|
+
serializedName: "name",
|
|
1195
|
+
readOnly: true,
|
|
1196
|
+
type: {
|
|
1197
|
+
name: "String"
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
type: {
|
|
1201
|
+
serializedName: "type",
|
|
1202
|
+
readOnly: true,
|
|
1203
|
+
type: {
|
|
1204
|
+
name: "String"
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
location: {
|
|
1208
|
+
serializedName: "location",
|
|
1209
|
+
type: {
|
|
1210
|
+
name: "String"
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
tags: {
|
|
1214
|
+
serializedName: "tags",
|
|
1215
|
+
type: {
|
|
1216
|
+
name: "Dictionary",
|
|
1217
|
+
value: { type: { name: "String" } }
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
zones: {
|
|
1221
|
+
serializedName: "zones",
|
|
1222
|
+
type: {
|
|
1223
|
+
name: "Sequence",
|
|
1224
|
+
element: {
|
|
1225
|
+
type: {
|
|
1226
|
+
name: "String"
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
const CloudError = {
|
|
1235
|
+
type: {
|
|
1236
|
+
name: "Composite",
|
|
1237
|
+
className: "CloudError",
|
|
1238
|
+
modelProperties: {
|
|
1239
|
+
error: {
|
|
1240
|
+
serializedName: "error",
|
|
1241
|
+
type: {
|
|
1242
|
+
name: "Composite",
|
|
1243
|
+
className: "CloudErrorBody"
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
const CloudErrorBody = {
|
|
1250
|
+
type: {
|
|
1251
|
+
name: "Composite",
|
|
1252
|
+
className: "CloudErrorBody",
|
|
1253
|
+
modelProperties: {
|
|
1254
|
+
code: {
|
|
1255
|
+
serializedName: "code",
|
|
1256
|
+
type: {
|
|
1257
|
+
name: "String"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
message: {
|
|
1261
|
+
serializedName: "message",
|
|
1262
|
+
type: {
|
|
1263
|
+
name: "String"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
target: {
|
|
1267
|
+
serializedName: "target",
|
|
1268
|
+
type: {
|
|
1269
|
+
name: "String"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
details: {
|
|
1273
|
+
serializedName: "details",
|
|
1274
|
+
type: {
|
|
1275
|
+
name: "Sequence",
|
|
1276
|
+
element: {
|
|
1277
|
+
type: {
|
|
1278
|
+
name: "Composite",
|
|
1279
|
+
className: "CloudErrorBody"
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
const OperationListResult = {
|
|
1288
|
+
type: {
|
|
1289
|
+
name: "Composite",
|
|
1290
|
+
className: "OperationListResult",
|
|
1291
|
+
modelProperties: {
|
|
1292
|
+
value: {
|
|
1293
|
+
serializedName: "value",
|
|
1294
|
+
type: {
|
|
1295
|
+
name: "Sequence",
|
|
1296
|
+
element: {
|
|
1297
|
+
type: {
|
|
1298
|
+
name: "Composite",
|
|
1299
|
+
className: "Operation"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
nextLink: {
|
|
1305
|
+
serializedName: "nextLink",
|
|
1306
|
+
type: {
|
|
1307
|
+
name: "String"
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
};
|
|
1313
|
+
const Operation = {
|
|
1314
|
+
type: {
|
|
1315
|
+
name: "Composite",
|
|
1316
|
+
className: "Operation",
|
|
1317
|
+
modelProperties: {
|
|
1318
|
+
name: {
|
|
1319
|
+
serializedName: "name",
|
|
1320
|
+
required: true,
|
|
1321
|
+
type: {
|
|
1322
|
+
name: "String"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
display: {
|
|
1326
|
+
serializedName: "display",
|
|
1327
|
+
type: {
|
|
1328
|
+
name: "Composite",
|
|
1329
|
+
className: "OperationDisplay"
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
properties: {
|
|
1333
|
+
serializedName: "properties",
|
|
1334
|
+
type: {
|
|
1335
|
+
name: "Dictionary",
|
|
1336
|
+
value: { type: { name: "any" } }
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
origin: {
|
|
1340
|
+
serializedName: "origin",
|
|
1341
|
+
type: {
|
|
1342
|
+
name: "String"
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
const OperationDisplay = {
|
|
1349
|
+
type: {
|
|
1350
|
+
name: "Composite",
|
|
1351
|
+
className: "OperationDisplay",
|
|
1352
|
+
modelProperties: {
|
|
1353
|
+
provider: {
|
|
1354
|
+
serializedName: "provider",
|
|
1355
|
+
type: {
|
|
1356
|
+
name: "String"
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
resource: {
|
|
1360
|
+
serializedName: "resource",
|
|
1361
|
+
type: {
|
|
1362
|
+
name: "String"
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
operation: {
|
|
1366
|
+
serializedName: "operation",
|
|
1367
|
+
type: {
|
|
1368
|
+
name: "String"
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
description: {
|
|
1372
|
+
serializedName: "description",
|
|
1373
|
+
type: {
|
|
1374
|
+
name: "String"
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
const UsageListResult = {
|
|
1381
|
+
type: {
|
|
1382
|
+
name: "Composite",
|
|
1383
|
+
className: "UsageListResult",
|
|
1384
|
+
modelProperties: {
|
|
1385
|
+
value: {
|
|
1386
|
+
serializedName: "value",
|
|
1387
|
+
readOnly: true,
|
|
1388
|
+
type: {
|
|
1389
|
+
name: "Sequence",
|
|
1390
|
+
element: {
|
|
1391
|
+
type: {
|
|
1392
|
+
name: "Composite",
|
|
1393
|
+
className: "Usage"
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
const Usage = {
|
|
1402
|
+
type: {
|
|
1403
|
+
name: "Composite",
|
|
1404
|
+
className: "Usage",
|
|
1405
|
+
modelProperties: {
|
|
1406
|
+
unit: {
|
|
1407
|
+
serializedName: "unit",
|
|
1408
|
+
readOnly: true,
|
|
1409
|
+
type: {
|
|
1410
|
+
name: "String"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
currentValue: {
|
|
1414
|
+
serializedName: "currentValue",
|
|
1415
|
+
readOnly: true,
|
|
1416
|
+
type: {
|
|
1417
|
+
name: "Number"
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
limit: {
|
|
1421
|
+
serializedName: "limit",
|
|
1422
|
+
readOnly: true,
|
|
1423
|
+
type: {
|
|
1424
|
+
name: "Number"
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
name: {
|
|
1428
|
+
serializedName: "name",
|
|
1429
|
+
type: {
|
|
1430
|
+
name: "Composite",
|
|
1431
|
+
className: "UsageName"
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
const UsageName = {
|
|
1438
|
+
type: {
|
|
1439
|
+
name: "Composite",
|
|
1440
|
+
className: "UsageName",
|
|
1441
|
+
modelProperties: {
|
|
1442
|
+
value: {
|
|
1443
|
+
serializedName: "value",
|
|
1444
|
+
readOnly: true,
|
|
1445
|
+
type: {
|
|
1446
|
+
name: "String"
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
localizedValue: {
|
|
1450
|
+
serializedName: "localizedValue",
|
|
1451
|
+
readOnly: true,
|
|
1452
|
+
type: {
|
|
1453
|
+
name: "String"
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
const Logs = {
|
|
1460
|
+
type: {
|
|
1461
|
+
name: "Composite",
|
|
1462
|
+
className: "Logs",
|
|
1463
|
+
modelProperties: {
|
|
1464
|
+
content: {
|
|
1465
|
+
serializedName: "content",
|
|
1466
|
+
type: {
|
|
1467
|
+
name: "String"
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
};
|
|
1473
|
+
const ContainerExecRequest = {
|
|
1474
|
+
type: {
|
|
1475
|
+
name: "Composite",
|
|
1476
|
+
className: "ContainerExecRequest",
|
|
1477
|
+
modelProperties: {
|
|
1478
|
+
command: {
|
|
1479
|
+
serializedName: "command",
|
|
1480
|
+
type: {
|
|
1481
|
+
name: "String"
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1484
|
+
terminalSize: {
|
|
1485
|
+
serializedName: "terminalSize",
|
|
1486
|
+
type: {
|
|
1487
|
+
name: "Composite",
|
|
1488
|
+
className: "ContainerExecRequestTerminalSize"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
const ContainerExecRequestTerminalSize = {
|
|
1495
|
+
type: {
|
|
1496
|
+
name: "Composite",
|
|
1497
|
+
className: "ContainerExecRequestTerminalSize",
|
|
1498
|
+
modelProperties: {
|
|
1499
|
+
rows: {
|
|
1500
|
+
serializedName: "rows",
|
|
1501
|
+
type: {
|
|
1502
|
+
name: "Number"
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
cols: {
|
|
1506
|
+
serializedName: "cols",
|
|
1507
|
+
type: {
|
|
1508
|
+
name: "Number"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
};
|
|
1514
|
+
const ContainerExecResponse = {
|
|
1515
|
+
type: {
|
|
1516
|
+
name: "Composite",
|
|
1517
|
+
className: "ContainerExecResponse",
|
|
1518
|
+
modelProperties: {
|
|
1519
|
+
webSocketUri: {
|
|
1520
|
+
serializedName: "webSocketUri",
|
|
1521
|
+
type: {
|
|
1522
|
+
name: "String"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
password: {
|
|
1526
|
+
serializedName: "password",
|
|
1527
|
+
type: {
|
|
1528
|
+
name: "String"
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
const ContainerAttachResponse = {
|
|
1535
|
+
type: {
|
|
1536
|
+
name: "Composite",
|
|
1537
|
+
className: "ContainerAttachResponse",
|
|
1538
|
+
modelProperties: {
|
|
1539
|
+
webSocketUri: {
|
|
1540
|
+
serializedName: "webSocketUri",
|
|
1541
|
+
type: {
|
|
1542
|
+
name: "String"
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
password: {
|
|
1546
|
+
serializedName: "password",
|
|
1547
|
+
type: {
|
|
1548
|
+
name: "String"
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
const CachedImagesListResult = {
|
|
1555
|
+
type: {
|
|
1556
|
+
name: "Composite",
|
|
1557
|
+
className: "CachedImagesListResult",
|
|
1558
|
+
modelProperties: {
|
|
1559
|
+
value: {
|
|
1560
|
+
serializedName: "value",
|
|
1561
|
+
type: {
|
|
1562
|
+
name: "Sequence",
|
|
1563
|
+
element: {
|
|
1564
|
+
type: {
|
|
1565
|
+
name: "Composite",
|
|
1566
|
+
className: "CachedImages"
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
nextLink: {
|
|
1572
|
+
serializedName: "nextLink",
|
|
1573
|
+
type: {
|
|
1574
|
+
name: "String"
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1580
|
+
const CachedImages = {
|
|
1581
|
+
type: {
|
|
1582
|
+
name: "Composite",
|
|
1583
|
+
className: "CachedImages",
|
|
1584
|
+
modelProperties: {
|
|
1585
|
+
osType: {
|
|
1586
|
+
serializedName: "osType",
|
|
1587
|
+
required: true,
|
|
1588
|
+
type: {
|
|
1589
|
+
name: "String"
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
image: {
|
|
1593
|
+
serializedName: "image",
|
|
1594
|
+
required: true,
|
|
1595
|
+
type: {
|
|
1596
|
+
name: "String"
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
};
|
|
1602
|
+
const CapabilitiesListResult = {
|
|
1603
|
+
type: {
|
|
1604
|
+
name: "Composite",
|
|
1605
|
+
className: "CapabilitiesListResult",
|
|
1606
|
+
modelProperties: {
|
|
1607
|
+
value: {
|
|
1608
|
+
serializedName: "value",
|
|
1609
|
+
type: {
|
|
1610
|
+
name: "Sequence",
|
|
1611
|
+
element: {
|
|
1612
|
+
type: {
|
|
1613
|
+
name: "Composite",
|
|
1614
|
+
className: "Capabilities"
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
nextLink: {
|
|
1620
|
+
serializedName: "nextLink",
|
|
1621
|
+
type: {
|
|
1622
|
+
name: "String"
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
const Capabilities = {
|
|
1629
|
+
type: {
|
|
1630
|
+
name: "Composite",
|
|
1631
|
+
className: "Capabilities",
|
|
1632
|
+
modelProperties: {
|
|
1633
|
+
resourceType: {
|
|
1634
|
+
serializedName: "resourceType",
|
|
1635
|
+
readOnly: true,
|
|
1636
|
+
type: {
|
|
1637
|
+
name: "String"
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
osType: {
|
|
1641
|
+
serializedName: "osType",
|
|
1642
|
+
readOnly: true,
|
|
1643
|
+
type: {
|
|
1644
|
+
name: "String"
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
location: {
|
|
1648
|
+
serializedName: "location",
|
|
1649
|
+
readOnly: true,
|
|
1650
|
+
type: {
|
|
1651
|
+
name: "String"
|
|
1652
|
+
}
|
|
1653
|
+
},
|
|
1654
|
+
ipAddressType: {
|
|
1655
|
+
serializedName: "ipAddressType",
|
|
1656
|
+
readOnly: true,
|
|
1657
|
+
type: {
|
|
1658
|
+
name: "String"
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
gpu: {
|
|
1662
|
+
serializedName: "gpu",
|
|
1663
|
+
readOnly: true,
|
|
1664
|
+
type: {
|
|
1665
|
+
name: "String"
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
capabilities: {
|
|
1669
|
+
serializedName: "capabilities",
|
|
1670
|
+
type: {
|
|
1671
|
+
name: "Composite",
|
|
1672
|
+
className: "CapabilitiesCapabilities"
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
const CapabilitiesCapabilities = {
|
|
1679
|
+
type: {
|
|
1680
|
+
name: "Composite",
|
|
1681
|
+
className: "CapabilitiesCapabilities",
|
|
1682
|
+
modelProperties: {
|
|
1683
|
+
maxMemoryInGB: {
|
|
1684
|
+
serializedName: "maxMemoryInGB",
|
|
1685
|
+
readOnly: true,
|
|
1686
|
+
type: {
|
|
1687
|
+
name: "Number"
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
maxCpu: {
|
|
1691
|
+
serializedName: "maxCpu",
|
|
1692
|
+
readOnly: true,
|
|
1693
|
+
type: {
|
|
1694
|
+
name: "Number"
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
maxGpuCount: {
|
|
1698
|
+
serializedName: "maxGpuCount",
|
|
1699
|
+
readOnly: true,
|
|
1700
|
+
type: {
|
|
1701
|
+
name: "Number"
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1707
|
+
const ContainerGroup = {
|
|
1708
|
+
type: {
|
|
1709
|
+
name: "Composite",
|
|
1710
|
+
className: "ContainerGroup",
|
|
1711
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { identity: {
|
|
1712
|
+
serializedName: "identity",
|
|
1713
|
+
type: {
|
|
1714
|
+
name: "Composite",
|
|
1715
|
+
className: "ContainerGroupIdentity"
|
|
1716
|
+
}
|
|
1717
|
+
}, provisioningState: {
|
|
1718
|
+
serializedName: "properties.provisioningState",
|
|
1719
|
+
readOnly: true,
|
|
1720
|
+
type: {
|
|
1721
|
+
name: "String"
|
|
1722
|
+
}
|
|
1723
|
+
}, containers: {
|
|
1724
|
+
serializedName: "properties.containers",
|
|
1725
|
+
required: true,
|
|
1726
|
+
type: {
|
|
1727
|
+
name: "Sequence",
|
|
1728
|
+
element: {
|
|
1729
|
+
type: {
|
|
1730
|
+
name: "Composite",
|
|
1731
|
+
className: "Container"
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
}, imageRegistryCredentials: {
|
|
1736
|
+
serializedName: "properties.imageRegistryCredentials",
|
|
1737
|
+
type: {
|
|
1738
|
+
name: "Sequence",
|
|
1739
|
+
element: {
|
|
1740
|
+
type: {
|
|
1741
|
+
name: "Composite",
|
|
1742
|
+
className: "ImageRegistryCredential"
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}, restartPolicy: {
|
|
1747
|
+
serializedName: "properties.restartPolicy",
|
|
1748
|
+
type: {
|
|
1749
|
+
name: "String"
|
|
1750
|
+
}
|
|
1751
|
+
}, ipAddress: {
|
|
1752
|
+
serializedName: "properties.ipAddress",
|
|
1753
|
+
type: {
|
|
1754
|
+
name: "Composite",
|
|
1755
|
+
className: "IpAddress"
|
|
1756
|
+
}
|
|
1757
|
+
}, osType: {
|
|
1758
|
+
serializedName: "properties.osType",
|
|
1759
|
+
required: true,
|
|
1760
|
+
type: {
|
|
1761
|
+
name: "String"
|
|
1762
|
+
}
|
|
1763
|
+
}, volumes: {
|
|
1764
|
+
serializedName: "properties.volumes",
|
|
1765
|
+
type: {
|
|
1766
|
+
name: "Sequence",
|
|
1767
|
+
element: {
|
|
1768
|
+
type: {
|
|
1769
|
+
name: "Composite",
|
|
1770
|
+
className: "Volume"
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
}, instanceView: {
|
|
1775
|
+
serializedName: "properties.instanceView",
|
|
1776
|
+
type: {
|
|
1777
|
+
name: "Composite",
|
|
1778
|
+
className: "ContainerGroupPropertiesInstanceView"
|
|
1779
|
+
}
|
|
1780
|
+
}, diagnostics: {
|
|
1781
|
+
serializedName: "properties.diagnostics",
|
|
1782
|
+
type: {
|
|
1783
|
+
name: "Composite",
|
|
1784
|
+
className: "ContainerGroupDiagnostics"
|
|
1785
|
+
}
|
|
1786
|
+
}, subnetIds: {
|
|
1787
|
+
serializedName: "properties.subnetIds",
|
|
1788
|
+
type: {
|
|
1789
|
+
name: "Sequence",
|
|
1790
|
+
element: {
|
|
1791
|
+
type: {
|
|
1792
|
+
name: "Composite",
|
|
1793
|
+
className: "ContainerGroupSubnetId"
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
}, dnsConfig: {
|
|
1798
|
+
serializedName: "properties.dnsConfig",
|
|
1799
|
+
type: {
|
|
1800
|
+
name: "Composite",
|
|
1801
|
+
className: "DnsConfiguration"
|
|
1802
|
+
}
|
|
1803
|
+
}, sku: {
|
|
1804
|
+
serializedName: "properties.sku",
|
|
1805
|
+
type: {
|
|
1806
|
+
name: "String"
|
|
1807
|
+
}
|
|
1808
|
+
}, encryptionProperties: {
|
|
1809
|
+
serializedName: "properties.encryptionProperties",
|
|
1810
|
+
type: {
|
|
1811
|
+
name: "Composite",
|
|
1812
|
+
className: "EncryptionProperties"
|
|
1813
|
+
}
|
|
1814
|
+
}, initContainers: {
|
|
1815
|
+
serializedName: "properties.initContainers",
|
|
1816
|
+
type: {
|
|
1817
|
+
name: "Sequence",
|
|
1818
|
+
element: {
|
|
1819
|
+
type: {
|
|
1820
|
+
name: "Composite",
|
|
1821
|
+
className: "InitContainerDefinition"
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
} })
|
|
1826
|
+
}
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1829
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1830
|
+
__proto__: null,
|
|
1831
|
+
ContainerGroupListResult: ContainerGroupListResult,
|
|
1832
|
+
ContainerGroupIdentity: ContainerGroupIdentity,
|
|
1833
|
+
Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties: Components10Wh5UdSchemasContainergroupidentityPropertiesUserassignedidentitiesAdditionalproperties,
|
|
1834
|
+
Container: Container,
|
|
1835
|
+
ContainerPort: ContainerPort,
|
|
1836
|
+
EnvironmentVariable: EnvironmentVariable,
|
|
1837
|
+
ContainerPropertiesInstanceView: ContainerPropertiesInstanceView,
|
|
1838
|
+
ContainerState: ContainerState,
|
|
1839
|
+
Event: Event,
|
|
1840
|
+
ResourceRequirements: ResourceRequirements,
|
|
1841
|
+
ResourceRequests: ResourceRequests,
|
|
1842
|
+
GpuResource: GpuResource,
|
|
1843
|
+
ResourceLimits: ResourceLimits,
|
|
1844
|
+
VolumeMount: VolumeMount,
|
|
1845
|
+
ContainerProbe: ContainerProbe,
|
|
1846
|
+
ContainerExec: ContainerExec,
|
|
1847
|
+
ContainerHttpGet: ContainerHttpGet,
|
|
1848
|
+
HttpHeader: HttpHeader,
|
|
1849
|
+
ImageRegistryCredential: ImageRegistryCredential,
|
|
1850
|
+
IpAddress: IpAddress,
|
|
1851
|
+
Port: Port,
|
|
1852
|
+
Volume: Volume,
|
|
1853
|
+
AzureFileVolume: AzureFileVolume,
|
|
1854
|
+
GitRepoVolume: GitRepoVolume,
|
|
1855
|
+
ContainerGroupPropertiesInstanceView: ContainerGroupPropertiesInstanceView,
|
|
1856
|
+
ContainerGroupDiagnostics: ContainerGroupDiagnostics,
|
|
1857
|
+
LogAnalytics: LogAnalytics,
|
|
1858
|
+
ContainerGroupSubnetId: ContainerGroupSubnetId,
|
|
1859
|
+
DnsConfiguration: DnsConfiguration,
|
|
1860
|
+
EncryptionProperties: EncryptionProperties,
|
|
1861
|
+
InitContainerDefinition: InitContainerDefinition,
|
|
1862
|
+
InitContainerPropertiesDefinitionInstanceView: InitContainerPropertiesDefinitionInstanceView,
|
|
1863
|
+
Resource: Resource,
|
|
1864
|
+
CloudError: CloudError,
|
|
1865
|
+
CloudErrorBody: CloudErrorBody,
|
|
1866
|
+
OperationListResult: OperationListResult,
|
|
1867
|
+
Operation: Operation,
|
|
1868
|
+
OperationDisplay: OperationDisplay,
|
|
1869
|
+
UsageListResult: UsageListResult,
|
|
1870
|
+
Usage: Usage,
|
|
1871
|
+
UsageName: UsageName,
|
|
1872
|
+
Logs: Logs,
|
|
1873
|
+
ContainerExecRequest: ContainerExecRequest,
|
|
1874
|
+
ContainerExecRequestTerminalSize: ContainerExecRequestTerminalSize,
|
|
1875
|
+
ContainerExecResponse: ContainerExecResponse,
|
|
1876
|
+
ContainerAttachResponse: ContainerAttachResponse,
|
|
1877
|
+
CachedImagesListResult: CachedImagesListResult,
|
|
1878
|
+
CachedImages: CachedImages,
|
|
1879
|
+
CapabilitiesListResult: CapabilitiesListResult,
|
|
1880
|
+
Capabilities: Capabilities,
|
|
1881
|
+
CapabilitiesCapabilities: CapabilitiesCapabilities,
|
|
1882
|
+
ContainerGroup: ContainerGroup
|
|
1883
|
+
});
|
|
1884
|
+
|
|
1885
|
+
/*
|
|
1886
|
+
* Copyright (c) Microsoft Corporation.
|
|
1887
|
+
* Licensed under the MIT License.
|
|
1888
|
+
*
|
|
1889
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1890
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1891
|
+
*/
|
|
1892
|
+
const accept = {
|
|
1893
|
+
parameterPath: "accept",
|
|
1894
|
+
mapper: {
|
|
1895
|
+
defaultValue: "application/json",
|
|
1896
|
+
isConstant: true,
|
|
1897
|
+
serializedName: "Accept",
|
|
1898
|
+
type: {
|
|
1899
|
+
name: "String"
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
};
|
|
1903
|
+
const $host = {
|
|
1904
|
+
parameterPath: "$host",
|
|
1905
|
+
mapper: {
|
|
1906
|
+
serializedName: "$host",
|
|
1907
|
+
required: true,
|
|
1908
|
+
type: {
|
|
1909
|
+
name: "String"
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
skipEncoding: true
|
|
1913
|
+
};
|
|
1914
|
+
const subscriptionId = {
|
|
1915
|
+
parameterPath: "subscriptionId",
|
|
1916
|
+
mapper: {
|
|
1917
|
+
serializedName: "subscriptionId",
|
|
1918
|
+
required: true,
|
|
1919
|
+
type: {
|
|
1920
|
+
name: "String"
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
};
|
|
1924
|
+
const apiVersion = {
|
|
1925
|
+
parameterPath: "apiVersion",
|
|
1926
|
+
mapper: {
|
|
1927
|
+
defaultValue: "2021-09-01",
|
|
1928
|
+
isConstant: true,
|
|
1929
|
+
serializedName: "api-version",
|
|
1930
|
+
type: {
|
|
1931
|
+
name: "String"
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
};
|
|
1935
|
+
const resourceGroupName = {
|
|
1936
|
+
parameterPath: "resourceGroupName",
|
|
1937
|
+
mapper: {
|
|
1938
|
+
serializedName: "resourceGroupName",
|
|
1939
|
+
required: true,
|
|
1940
|
+
type: {
|
|
1941
|
+
name: "String"
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1945
|
+
const containerGroupName = {
|
|
1946
|
+
parameterPath: "containerGroupName",
|
|
1947
|
+
mapper: {
|
|
1948
|
+
serializedName: "containerGroupName",
|
|
1949
|
+
required: true,
|
|
1950
|
+
type: {
|
|
1951
|
+
name: "String"
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
const contentType = {
|
|
1956
|
+
parameterPath: ["options", "contentType"],
|
|
1957
|
+
mapper: {
|
|
1958
|
+
defaultValue: "application/json",
|
|
1959
|
+
isConstant: true,
|
|
1960
|
+
serializedName: "Content-Type",
|
|
1961
|
+
type: {
|
|
1962
|
+
name: "String"
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
};
|
|
1966
|
+
const containerGroup = {
|
|
1967
|
+
parameterPath: "containerGroup",
|
|
1968
|
+
mapper: ContainerGroup
|
|
1969
|
+
};
|
|
1970
|
+
const resource = {
|
|
1971
|
+
parameterPath: "resource",
|
|
1972
|
+
mapper: Resource
|
|
1973
|
+
};
|
|
1974
|
+
const nextLink = {
|
|
1975
|
+
parameterPath: "nextLink",
|
|
1976
|
+
mapper: {
|
|
1977
|
+
serializedName: "nextLink",
|
|
1978
|
+
required: true,
|
|
1979
|
+
type: {
|
|
1980
|
+
name: "String"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
skipEncoding: true
|
|
1984
|
+
};
|
|
1985
|
+
const location = {
|
|
1986
|
+
parameterPath: "location",
|
|
1987
|
+
mapper: {
|
|
1988
|
+
serializedName: "location",
|
|
1989
|
+
required: true,
|
|
1990
|
+
type: {
|
|
1991
|
+
name: "String"
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
};
|
|
1995
|
+
const containerName = {
|
|
1996
|
+
parameterPath: "containerName",
|
|
1997
|
+
mapper: {
|
|
1998
|
+
serializedName: "containerName",
|
|
1999
|
+
required: true,
|
|
2000
|
+
type: {
|
|
2001
|
+
name: "String"
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
};
|
|
2005
|
+
const tail = {
|
|
2006
|
+
parameterPath: ["options", "tail"],
|
|
2007
|
+
mapper: {
|
|
2008
|
+
serializedName: "tail",
|
|
2009
|
+
type: {
|
|
2010
|
+
name: "Number"
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
const timestamps = {
|
|
2015
|
+
parameterPath: ["options", "timestamps"],
|
|
2016
|
+
mapper: {
|
|
2017
|
+
serializedName: "timestamps",
|
|
2018
|
+
type: {
|
|
2019
|
+
name: "Boolean"
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
};
|
|
2023
|
+
const containerExecRequest = {
|
|
2024
|
+
parameterPath: "containerExecRequest",
|
|
2025
|
+
mapper: ContainerExecRequest
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
/*
|
|
2029
|
+
* Copyright (c) Microsoft Corporation.
|
|
2030
|
+
* Licensed under the MIT License.
|
|
2031
|
+
*
|
|
2032
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2033
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2034
|
+
*/
|
|
2035
|
+
class LroImpl {
|
|
2036
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
2037
|
+
this.sendOperationFn = sendOperationFn;
|
|
2038
|
+
this.args = args;
|
|
2039
|
+
this.spec = spec;
|
|
2040
|
+
this.requestPath = requestPath;
|
|
2041
|
+
this.requestMethod = requestMethod;
|
|
2042
|
+
}
|
|
2043
|
+
sendInitialRequest() {
|
|
2044
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2045
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
sendPollRequest(path) {
|
|
2049
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2050
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
2051
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
2052
|
+
});
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
/*
|
|
2057
|
+
* Copyright (c) Microsoft Corporation.
|
|
2058
|
+
* Licensed under the MIT License.
|
|
2059
|
+
*
|
|
2060
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2061
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2062
|
+
*/
|
|
2063
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2064
|
+
/** Class containing ContainerGroups operations. */
|
|
2065
|
+
class ContainerGroupsImpl {
|
|
2066
|
+
/**
|
|
2067
|
+
* Initialize a new instance of the class ContainerGroups class.
|
|
2068
|
+
* @param client Reference to the service client
|
|
2069
|
+
*/
|
|
2070
|
+
constructor(client) {
|
|
2071
|
+
this.client = client;
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
* Get a list of container groups in the specified subscription. This operation returns properties of
|
|
2075
|
+
* each container group including containers, image registry credentials, restart policy, IP address
|
|
2076
|
+
* type, OS type, state, and volumes.
|
|
2077
|
+
* @param options The options parameters.
|
|
2078
|
+
*/
|
|
2079
|
+
list(options) {
|
|
2080
|
+
const iter = this.listPagingAll(options);
|
|
2081
|
+
return {
|
|
2082
|
+
next() {
|
|
2083
|
+
return iter.next();
|
|
2084
|
+
},
|
|
2085
|
+
[Symbol.asyncIterator]() {
|
|
2086
|
+
return this;
|
|
2087
|
+
},
|
|
2088
|
+
byPage: () => {
|
|
2089
|
+
return this.listPagingPage(options);
|
|
2090
|
+
}
|
|
2091
|
+
};
|
|
2092
|
+
}
|
|
2093
|
+
listPagingPage(options) {
|
|
2094
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2095
|
+
let result = yield tslib.__await(this._list(options));
|
|
2096
|
+
yield yield tslib.__await(result.value || []);
|
|
2097
|
+
let continuationToken = result.nextLink;
|
|
2098
|
+
while (continuationToken) {
|
|
2099
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2100
|
+
continuationToken = result.nextLink;
|
|
2101
|
+
yield yield tslib.__await(result.value || []);
|
|
2102
|
+
}
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
listPagingAll(options) {
|
|
2106
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2107
|
+
var e_1, _a;
|
|
2108
|
+
try {
|
|
2109
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2110
|
+
const page = _c.value;
|
|
2111
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2115
|
+
finally {
|
|
2116
|
+
try {
|
|
2117
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2118
|
+
}
|
|
2119
|
+
finally { if (e_1) throw e_1.error; }
|
|
2120
|
+
}
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
2125
|
+
* returns properties of each container group including containers, image registry credentials, restart
|
|
2126
|
+
* policy, IP address type, OS type, state, and volumes.
|
|
2127
|
+
* @param resourceGroupName The name of the resource group.
|
|
2128
|
+
* @param options The options parameters.
|
|
2129
|
+
*/
|
|
2130
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
2131
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2132
|
+
return {
|
|
2133
|
+
next() {
|
|
2134
|
+
return iter.next();
|
|
2135
|
+
},
|
|
2136
|
+
[Symbol.asyncIterator]() {
|
|
2137
|
+
return this;
|
|
2138
|
+
},
|
|
2139
|
+
byPage: () => {
|
|
2140
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
2141
|
+
}
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2145
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2146
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2147
|
+
yield yield tslib.__await(result.value || []);
|
|
2148
|
+
let continuationToken = result.nextLink;
|
|
2149
|
+
while (continuationToken) {
|
|
2150
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2151
|
+
continuationToken = result.nextLink;
|
|
2152
|
+
yield yield tslib.__await(result.value || []);
|
|
2153
|
+
}
|
|
2154
|
+
});
|
|
2155
|
+
}
|
|
2156
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2157
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2158
|
+
var e_2, _a;
|
|
2159
|
+
try {
|
|
2160
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2161
|
+
const page = _c.value;
|
|
2162
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2166
|
+
finally {
|
|
2167
|
+
try {
|
|
2168
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2169
|
+
}
|
|
2170
|
+
finally { if (e_2) throw e_2.error; }
|
|
2171
|
+
}
|
|
2172
|
+
});
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* Get a list of container groups in the specified subscription. This operation returns properties of
|
|
2176
|
+
* each container group including containers, image registry credentials, restart policy, IP address
|
|
2177
|
+
* type, OS type, state, and volumes.
|
|
2178
|
+
* @param options The options parameters.
|
|
2179
|
+
*/
|
|
2180
|
+
_list(options) {
|
|
2181
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2182
|
+
}
|
|
2183
|
+
/**
|
|
2184
|
+
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
2185
|
+
* returns properties of each container group including containers, image registry credentials, restart
|
|
2186
|
+
* policy, IP address type, OS type, state, and volumes.
|
|
2187
|
+
* @param resourceGroupName The name of the resource group.
|
|
2188
|
+
* @param options The options parameters.
|
|
2189
|
+
*/
|
|
2190
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
2191
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* Gets the properties of the specified container group in the specified subscription and resource
|
|
2195
|
+
* group. The operation returns the properties of each container group including containers, image
|
|
2196
|
+
* registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
2197
|
+
* @param resourceGroupName The name of the resource group.
|
|
2198
|
+
* @param containerGroupName The name of the container group.
|
|
2199
|
+
* @param options The options parameters.
|
|
2200
|
+
*/
|
|
2201
|
+
get(resourceGroupName, containerGroupName, options) {
|
|
2202
|
+
return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, options }, getOperationSpec);
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* Create or update container groups with specified configurations.
|
|
2206
|
+
* @param resourceGroupName The name of the resource group.
|
|
2207
|
+
* @param containerGroupName The name of the container group.
|
|
2208
|
+
* @param containerGroup The properties of the container group to be created or updated.
|
|
2209
|
+
* @param options The options parameters.
|
|
2210
|
+
*/
|
|
2211
|
+
beginCreateOrUpdate(resourceGroupName, containerGroupName, containerGroup, options) {
|
|
2212
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2213
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2214
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2215
|
+
});
|
|
2216
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2217
|
+
var _a;
|
|
2218
|
+
let currentRawResponse = undefined;
|
|
2219
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2220
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2221
|
+
currentRawResponse = rawResponse;
|
|
2222
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2223
|
+
};
|
|
2224
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2225
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2226
|
+
return {
|
|
2227
|
+
flatResponse,
|
|
2228
|
+
rawResponse: {
|
|
2229
|
+
statusCode: currentRawResponse.status,
|
|
2230
|
+
body: currentRawResponse.parsedBody,
|
|
2231
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2232
|
+
}
|
|
2233
|
+
};
|
|
2234
|
+
});
|
|
2235
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, containerGroup, options }, createOrUpdateOperationSpec);
|
|
2236
|
+
return new coreLro.LroEngine(lro, {
|
|
2237
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2238
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2239
|
+
});
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Create or update container groups with specified configurations.
|
|
2244
|
+
* @param resourceGroupName The name of the resource group.
|
|
2245
|
+
* @param containerGroupName The name of the container group.
|
|
2246
|
+
* @param containerGroup The properties of the container group to be created or updated.
|
|
2247
|
+
* @param options The options parameters.
|
|
2248
|
+
*/
|
|
2249
|
+
beginCreateOrUpdateAndWait(resourceGroupName, containerGroupName, containerGroup, options) {
|
|
2250
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2251
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, containerGroupName, containerGroup, options);
|
|
2252
|
+
return poller.pollUntilDone();
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2256
|
+
* Updates container group tags with specified values.
|
|
2257
|
+
* @param resourceGroupName The name of the resource group.
|
|
2258
|
+
* @param containerGroupName The name of the container group.
|
|
2259
|
+
* @param resource The container group resource with just the tags to be updated.
|
|
2260
|
+
* @param options The options parameters.
|
|
2261
|
+
*/
|
|
2262
|
+
update(resourceGroupName, containerGroupName, resource, options) {
|
|
2263
|
+
return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, resource, options }, updateOperationSpec);
|
|
2264
|
+
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
2267
|
+
* does not delete other resources provided by the user, such as volumes.
|
|
2268
|
+
* @param resourceGroupName The name of the resource group.
|
|
2269
|
+
* @param containerGroupName The name of the container group.
|
|
2270
|
+
* @param options The options parameters.
|
|
2271
|
+
*/
|
|
2272
|
+
beginDelete(resourceGroupName, containerGroupName, options) {
|
|
2273
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2274
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2275
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2276
|
+
});
|
|
2277
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2278
|
+
var _a;
|
|
2279
|
+
let currentRawResponse = undefined;
|
|
2280
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2281
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2282
|
+
currentRawResponse = rawResponse;
|
|
2283
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2284
|
+
};
|
|
2285
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2286
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2287
|
+
return {
|
|
2288
|
+
flatResponse,
|
|
2289
|
+
rawResponse: {
|
|
2290
|
+
statusCode: currentRawResponse.status,
|
|
2291
|
+
body: currentRawResponse.parsedBody,
|
|
2292
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2293
|
+
}
|
|
2294
|
+
};
|
|
2295
|
+
});
|
|
2296
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, deleteOperationSpec);
|
|
2297
|
+
return new coreLro.LroEngine(lro, {
|
|
2298
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2299
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2300
|
+
});
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
/**
|
|
2304
|
+
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
2305
|
+
* does not delete other resources provided by the user, such as volumes.
|
|
2306
|
+
* @param resourceGroupName The name of the resource group.
|
|
2307
|
+
* @param containerGroupName The name of the container group.
|
|
2308
|
+
* @param options The options parameters.
|
|
2309
|
+
*/
|
|
2310
|
+
beginDeleteAndWait(resourceGroupName, containerGroupName, options) {
|
|
2311
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2312
|
+
const poller = yield this.beginDelete(resourceGroupName, containerGroupName, options);
|
|
2313
|
+
return poller.pollUntilDone();
|
|
2314
|
+
});
|
|
2315
|
+
}
|
|
2316
|
+
/**
|
|
2317
|
+
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
2318
|
+
* will be downloaded.
|
|
2319
|
+
* @param resourceGroupName The name of the resource group.
|
|
2320
|
+
* @param containerGroupName The name of the container group.
|
|
2321
|
+
* @param options The options parameters.
|
|
2322
|
+
*/
|
|
2323
|
+
beginRestart(resourceGroupName, containerGroupName, options) {
|
|
2324
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2325
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2326
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2327
|
+
});
|
|
2328
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2329
|
+
var _a;
|
|
2330
|
+
let currentRawResponse = undefined;
|
|
2331
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2332
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2333
|
+
currentRawResponse = rawResponse;
|
|
2334
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2335
|
+
};
|
|
2336
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2337
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2338
|
+
return {
|
|
2339
|
+
flatResponse,
|
|
2340
|
+
rawResponse: {
|
|
2341
|
+
statusCode: currentRawResponse.status,
|
|
2342
|
+
body: currentRawResponse.parsedBody,
|
|
2343
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2344
|
+
}
|
|
2345
|
+
};
|
|
2346
|
+
});
|
|
2347
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, restartOperationSpec);
|
|
2348
|
+
return new coreLro.LroEngine(lro, {
|
|
2349
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2350
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2351
|
+
});
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
2356
|
+
* will be downloaded.
|
|
2357
|
+
* @param resourceGroupName The name of the resource group.
|
|
2358
|
+
* @param containerGroupName The name of the container group.
|
|
2359
|
+
* @param options The options parameters.
|
|
2360
|
+
*/
|
|
2361
|
+
beginRestartAndWait(resourceGroupName, containerGroupName, options) {
|
|
2362
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2363
|
+
const poller = yield this.beginRestart(resourceGroupName, containerGroupName, options);
|
|
2364
|
+
return poller.pollUntilDone();
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Stops all containers in a container group. Compute resources will be deallocated and billing will
|
|
2369
|
+
* stop.
|
|
2370
|
+
* @param resourceGroupName The name of the resource group.
|
|
2371
|
+
* @param containerGroupName The name of the container group.
|
|
2372
|
+
* @param options The options parameters.
|
|
2373
|
+
*/
|
|
2374
|
+
stop(resourceGroupName, containerGroupName, options) {
|
|
2375
|
+
return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, options }, stopOperationSpec);
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
2379
|
+
* start.
|
|
2380
|
+
* @param resourceGroupName The name of the resource group.
|
|
2381
|
+
* @param containerGroupName The name of the container group.
|
|
2382
|
+
* @param options The options parameters.
|
|
2383
|
+
*/
|
|
2384
|
+
beginStart(resourceGroupName, containerGroupName, options) {
|
|
2385
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2386
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2387
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2388
|
+
});
|
|
2389
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2390
|
+
var _a;
|
|
2391
|
+
let currentRawResponse = undefined;
|
|
2392
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2393
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2394
|
+
currentRawResponse = rawResponse;
|
|
2395
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2396
|
+
};
|
|
2397
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2398
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2399
|
+
return {
|
|
2400
|
+
flatResponse,
|
|
2401
|
+
rawResponse: {
|
|
2402
|
+
statusCode: currentRawResponse.status,
|
|
2403
|
+
body: currentRawResponse.parsedBody,
|
|
2404
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2405
|
+
}
|
|
2406
|
+
};
|
|
2407
|
+
});
|
|
2408
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, startOperationSpec);
|
|
2409
|
+
return new coreLro.LroEngine(lro, {
|
|
2410
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2411
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2412
|
+
});
|
|
2413
|
+
});
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
2417
|
+
* start.
|
|
2418
|
+
* @param resourceGroupName The name of the resource group.
|
|
2419
|
+
* @param containerGroupName The name of the container group.
|
|
2420
|
+
* @param options The options parameters.
|
|
2421
|
+
*/
|
|
2422
|
+
beginStartAndWait(resourceGroupName, containerGroupName, options) {
|
|
2423
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2424
|
+
const poller = yield this.beginStart(resourceGroupName, containerGroupName, options);
|
|
2425
|
+
return poller.pollUntilDone();
|
|
2426
|
+
});
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* Gets all the network dependencies for this container group to allow complete control of network
|
|
2430
|
+
* setting and configuration. For container groups, this will always be an empty list.
|
|
2431
|
+
* @param resourceGroupName The name of the resource group.
|
|
2432
|
+
* @param containerGroupName The name of the container group.
|
|
2433
|
+
* @param options The options parameters.
|
|
2434
|
+
*/
|
|
2435
|
+
getOutboundNetworkDependenciesEndpoints(resourceGroupName, containerGroupName, options) {
|
|
2436
|
+
return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, options }, getOutboundNetworkDependenciesEndpointsOperationSpec);
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* ListNext
|
|
2440
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2441
|
+
* @param options The options parameters.
|
|
2442
|
+
*/
|
|
2443
|
+
_listNext(nextLink, options) {
|
|
2444
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2445
|
+
}
|
|
2446
|
+
/**
|
|
2447
|
+
* ListByResourceGroupNext
|
|
2448
|
+
* @param resourceGroupName The name of the resource group.
|
|
2449
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2450
|
+
* @param options The options parameters.
|
|
2451
|
+
*/
|
|
2452
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2453
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
// Operation Specifications
|
|
2457
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2458
|
+
const listOperationSpec = {
|
|
2459
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
2460
|
+
httpMethod: "GET",
|
|
2461
|
+
responses: {
|
|
2462
|
+
200: {
|
|
2463
|
+
bodyMapper: ContainerGroupListResult
|
|
2464
|
+
},
|
|
2465
|
+
default: {
|
|
2466
|
+
bodyMapper: CloudError
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
queryParameters: [apiVersion],
|
|
2470
|
+
urlParameters: [$host, subscriptionId],
|
|
2471
|
+
headerParameters: [accept],
|
|
2472
|
+
serializer
|
|
2473
|
+
};
|
|
2474
|
+
const listByResourceGroupOperationSpec = {
|
|
2475
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
2476
|
+
httpMethod: "GET",
|
|
2477
|
+
responses: {
|
|
2478
|
+
200: {
|
|
2479
|
+
bodyMapper: ContainerGroupListResult
|
|
2480
|
+
},
|
|
2481
|
+
default: {
|
|
2482
|
+
bodyMapper: CloudError
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
queryParameters: [apiVersion],
|
|
2486
|
+
urlParameters: [
|
|
2487
|
+
$host,
|
|
2488
|
+
subscriptionId,
|
|
2489
|
+
resourceGroupName
|
|
2490
|
+
],
|
|
2491
|
+
headerParameters: [accept],
|
|
2492
|
+
serializer
|
|
2493
|
+
};
|
|
2494
|
+
const getOperationSpec = {
|
|
2495
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
2496
|
+
httpMethod: "GET",
|
|
2497
|
+
responses: {
|
|
2498
|
+
200: {
|
|
2499
|
+
bodyMapper: ContainerGroup
|
|
2500
|
+
},
|
|
2501
|
+
default: {
|
|
2502
|
+
bodyMapper: CloudError
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
queryParameters: [apiVersion],
|
|
2506
|
+
urlParameters: [
|
|
2507
|
+
$host,
|
|
2508
|
+
subscriptionId,
|
|
2509
|
+
resourceGroupName,
|
|
2510
|
+
containerGroupName
|
|
2511
|
+
],
|
|
2512
|
+
headerParameters: [accept],
|
|
2513
|
+
serializer
|
|
2514
|
+
};
|
|
2515
|
+
const createOrUpdateOperationSpec = {
|
|
2516
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
2517
|
+
httpMethod: "PUT",
|
|
2518
|
+
responses: {
|
|
2519
|
+
200: {
|
|
2520
|
+
bodyMapper: ContainerGroup
|
|
2521
|
+
},
|
|
2522
|
+
201: {
|
|
2523
|
+
bodyMapper: ContainerGroup
|
|
2524
|
+
},
|
|
2525
|
+
202: {
|
|
2526
|
+
bodyMapper: ContainerGroup
|
|
2527
|
+
},
|
|
2528
|
+
204: {
|
|
2529
|
+
bodyMapper: ContainerGroup
|
|
2530
|
+
},
|
|
2531
|
+
default: {
|
|
2532
|
+
bodyMapper: CloudError
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2535
|
+
requestBody: containerGroup,
|
|
2536
|
+
queryParameters: [apiVersion],
|
|
2537
|
+
urlParameters: [
|
|
2538
|
+
$host,
|
|
2539
|
+
subscriptionId,
|
|
2540
|
+
resourceGroupName,
|
|
2541
|
+
containerGroupName
|
|
2542
|
+
],
|
|
2543
|
+
headerParameters: [accept, contentType],
|
|
2544
|
+
mediaType: "json",
|
|
2545
|
+
serializer
|
|
2546
|
+
};
|
|
2547
|
+
const updateOperationSpec = {
|
|
2548
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
2549
|
+
httpMethod: "PATCH",
|
|
2550
|
+
responses: {
|
|
2551
|
+
200: {
|
|
2552
|
+
bodyMapper: ContainerGroup
|
|
2553
|
+
},
|
|
2554
|
+
default: {
|
|
2555
|
+
bodyMapper: CloudError
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
requestBody: resource,
|
|
2559
|
+
queryParameters: [apiVersion],
|
|
2560
|
+
urlParameters: [
|
|
2561
|
+
$host,
|
|
2562
|
+
subscriptionId,
|
|
2563
|
+
resourceGroupName,
|
|
2564
|
+
containerGroupName
|
|
2565
|
+
],
|
|
2566
|
+
headerParameters: [accept, contentType],
|
|
2567
|
+
mediaType: "json",
|
|
2568
|
+
serializer
|
|
2569
|
+
};
|
|
2570
|
+
const deleteOperationSpec = {
|
|
2571
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
2572
|
+
httpMethod: "DELETE",
|
|
2573
|
+
responses: {
|
|
2574
|
+
200: {
|
|
2575
|
+
bodyMapper: ContainerGroup
|
|
2576
|
+
},
|
|
2577
|
+
201: {
|
|
2578
|
+
bodyMapper: ContainerGroup
|
|
2579
|
+
},
|
|
2580
|
+
202: {
|
|
2581
|
+
bodyMapper: ContainerGroup
|
|
2582
|
+
},
|
|
2583
|
+
204: {
|
|
2584
|
+
bodyMapper: ContainerGroup
|
|
2585
|
+
},
|
|
2586
|
+
default: {
|
|
2587
|
+
bodyMapper: CloudError
|
|
2588
|
+
}
|
|
2589
|
+
},
|
|
2590
|
+
queryParameters: [apiVersion],
|
|
2591
|
+
urlParameters: [
|
|
2592
|
+
$host,
|
|
2593
|
+
subscriptionId,
|
|
2594
|
+
resourceGroupName,
|
|
2595
|
+
containerGroupName
|
|
2596
|
+
],
|
|
2597
|
+
headerParameters: [accept],
|
|
2598
|
+
serializer
|
|
2599
|
+
};
|
|
2600
|
+
const restartOperationSpec = {
|
|
2601
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
|
|
2602
|
+
httpMethod: "POST",
|
|
2603
|
+
responses: {
|
|
2604
|
+
200: {},
|
|
2605
|
+
201: {},
|
|
2606
|
+
202: {},
|
|
2607
|
+
204: {},
|
|
2608
|
+
default: {
|
|
2609
|
+
bodyMapper: CloudError
|
|
2610
|
+
}
|
|
2611
|
+
},
|
|
2612
|
+
queryParameters: [apiVersion],
|
|
2613
|
+
urlParameters: [
|
|
2614
|
+
$host,
|
|
2615
|
+
subscriptionId,
|
|
2616
|
+
resourceGroupName,
|
|
2617
|
+
containerGroupName
|
|
2618
|
+
],
|
|
2619
|
+
headerParameters: [accept],
|
|
2620
|
+
serializer
|
|
2621
|
+
};
|
|
2622
|
+
const stopOperationSpec = {
|
|
2623
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
|
|
2624
|
+
httpMethod: "POST",
|
|
2625
|
+
responses: {
|
|
2626
|
+
204: {},
|
|
2627
|
+
default: {
|
|
2628
|
+
bodyMapper: CloudError
|
|
2629
|
+
}
|
|
2630
|
+
},
|
|
2631
|
+
queryParameters: [apiVersion],
|
|
2632
|
+
urlParameters: [
|
|
2633
|
+
$host,
|
|
2634
|
+
subscriptionId,
|
|
2635
|
+
resourceGroupName,
|
|
2636
|
+
containerGroupName
|
|
2637
|
+
],
|
|
2638
|
+
headerParameters: [accept],
|
|
2639
|
+
serializer
|
|
2640
|
+
};
|
|
2641
|
+
const startOperationSpec = {
|
|
2642
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
|
|
2643
|
+
httpMethod: "POST",
|
|
2644
|
+
responses: {
|
|
2645
|
+
200: {},
|
|
2646
|
+
201: {},
|
|
2647
|
+
202: {},
|
|
2648
|
+
204: {},
|
|
2649
|
+
default: {
|
|
2650
|
+
bodyMapper: CloudError
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
queryParameters: [apiVersion],
|
|
2654
|
+
urlParameters: [
|
|
2655
|
+
$host,
|
|
2656
|
+
subscriptionId,
|
|
2657
|
+
resourceGroupName,
|
|
2658
|
+
containerGroupName
|
|
2659
|
+
],
|
|
2660
|
+
headerParameters: [accept],
|
|
2661
|
+
serializer
|
|
2662
|
+
};
|
|
2663
|
+
const getOutboundNetworkDependenciesEndpointsOperationSpec = {
|
|
2664
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints",
|
|
2665
|
+
httpMethod: "GET",
|
|
2666
|
+
responses: {
|
|
2667
|
+
200: {
|
|
2668
|
+
bodyMapper: {
|
|
2669
|
+
type: { name: "Sequence", element: { type: { name: "String" } } }
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
default: {
|
|
2673
|
+
bodyMapper: CloudError
|
|
2674
|
+
}
|
|
2675
|
+
},
|
|
2676
|
+
queryParameters: [apiVersion],
|
|
2677
|
+
urlParameters: [
|
|
2678
|
+
$host,
|
|
2679
|
+
subscriptionId,
|
|
2680
|
+
resourceGroupName,
|
|
2681
|
+
containerGroupName
|
|
2682
|
+
],
|
|
2683
|
+
headerParameters: [accept],
|
|
2684
|
+
serializer
|
|
2685
|
+
};
|
|
2686
|
+
const listNextOperationSpec = {
|
|
2687
|
+
path: "{nextLink}",
|
|
2688
|
+
httpMethod: "GET",
|
|
2689
|
+
responses: {
|
|
2690
|
+
200: {
|
|
2691
|
+
bodyMapper: ContainerGroupListResult
|
|
2692
|
+
},
|
|
2693
|
+
default: {
|
|
2694
|
+
bodyMapper: CloudError
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
queryParameters: [apiVersion],
|
|
2698
|
+
urlParameters: [
|
|
2699
|
+
$host,
|
|
2700
|
+
subscriptionId,
|
|
2701
|
+
nextLink
|
|
2702
|
+
],
|
|
2703
|
+
headerParameters: [accept],
|
|
2704
|
+
serializer
|
|
2705
|
+
};
|
|
2706
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2707
|
+
path: "{nextLink}",
|
|
2708
|
+
httpMethod: "GET",
|
|
2709
|
+
responses: {
|
|
2710
|
+
200: {
|
|
2711
|
+
bodyMapper: ContainerGroupListResult
|
|
2712
|
+
},
|
|
2713
|
+
default: {
|
|
2714
|
+
bodyMapper: CloudError
|
|
2715
|
+
}
|
|
2716
|
+
},
|
|
2717
|
+
queryParameters: [apiVersion],
|
|
2718
|
+
urlParameters: [
|
|
2719
|
+
$host,
|
|
2720
|
+
subscriptionId,
|
|
2721
|
+
resourceGroupName,
|
|
2722
|
+
nextLink
|
|
2723
|
+
],
|
|
2724
|
+
headerParameters: [accept],
|
|
2725
|
+
serializer
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
/*
|
|
2729
|
+
* Copyright (c) Microsoft Corporation.
|
|
2730
|
+
* Licensed under the MIT License.
|
|
2731
|
+
*
|
|
2732
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2733
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2734
|
+
*/
|
|
2735
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2736
|
+
/** Class containing Operations operations. */
|
|
2737
|
+
class OperationsImpl {
|
|
2738
|
+
/**
|
|
2739
|
+
* Initialize a new instance of the class Operations class.
|
|
2740
|
+
* @param client Reference to the service client
|
|
2741
|
+
*/
|
|
2742
|
+
constructor(client) {
|
|
2743
|
+
this.client = client;
|
|
2744
|
+
}
|
|
2745
|
+
/**
|
|
2746
|
+
* List the operations for Azure Container Instance service.
|
|
2747
|
+
* @param options The options parameters.
|
|
2748
|
+
*/
|
|
2749
|
+
list(options) {
|
|
2750
|
+
const iter = this.listPagingAll(options);
|
|
2751
|
+
return {
|
|
2752
|
+
next() {
|
|
2753
|
+
return iter.next();
|
|
2754
|
+
},
|
|
2755
|
+
[Symbol.asyncIterator]() {
|
|
2756
|
+
return this;
|
|
2757
|
+
},
|
|
2758
|
+
byPage: () => {
|
|
2759
|
+
return this.listPagingPage(options);
|
|
2760
|
+
}
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
listPagingPage(options) {
|
|
2764
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2765
|
+
let result = yield tslib.__await(this._list(options));
|
|
2766
|
+
yield yield tslib.__await(result.value || []);
|
|
2767
|
+
let continuationToken = result.nextLink;
|
|
2768
|
+
while (continuationToken) {
|
|
2769
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2770
|
+
continuationToken = result.nextLink;
|
|
2771
|
+
yield yield tslib.__await(result.value || []);
|
|
2772
|
+
}
|
|
2773
|
+
});
|
|
2774
|
+
}
|
|
2775
|
+
listPagingAll(options) {
|
|
2776
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2777
|
+
var e_1, _a;
|
|
2778
|
+
try {
|
|
2779
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2780
|
+
const page = _c.value;
|
|
2781
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2785
|
+
finally {
|
|
2786
|
+
try {
|
|
2787
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2788
|
+
}
|
|
2789
|
+
finally { if (e_1) throw e_1.error; }
|
|
2790
|
+
}
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
/**
|
|
2794
|
+
* List the operations for Azure Container Instance service.
|
|
2795
|
+
* @param options The options parameters.
|
|
2796
|
+
*/
|
|
2797
|
+
_list(options) {
|
|
2798
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2799
|
+
}
|
|
2800
|
+
/**
|
|
2801
|
+
* ListNext
|
|
2802
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2803
|
+
* @param options The options parameters.
|
|
2804
|
+
*/
|
|
2805
|
+
_listNext(nextLink, options) {
|
|
2806
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
// Operation Specifications
|
|
2810
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2811
|
+
const listOperationSpec$1 = {
|
|
2812
|
+
path: "/providers/Microsoft.ContainerInstance/operations",
|
|
2813
|
+
httpMethod: "GET",
|
|
2814
|
+
responses: {
|
|
2815
|
+
200: {
|
|
2816
|
+
bodyMapper: OperationListResult
|
|
2817
|
+
},
|
|
2818
|
+
default: {
|
|
2819
|
+
bodyMapper: CloudError
|
|
2820
|
+
}
|
|
2821
|
+
},
|
|
2822
|
+
queryParameters: [apiVersion],
|
|
2823
|
+
urlParameters: [$host],
|
|
2824
|
+
headerParameters: [accept],
|
|
2825
|
+
serializer: serializer$1
|
|
2826
|
+
};
|
|
2827
|
+
const listNextOperationSpec$1 = {
|
|
2828
|
+
path: "{nextLink}",
|
|
2829
|
+
httpMethod: "GET",
|
|
2830
|
+
responses: {
|
|
2831
|
+
200: {
|
|
2832
|
+
bodyMapper: OperationListResult
|
|
2833
|
+
},
|
|
2834
|
+
default: {
|
|
2835
|
+
bodyMapper: CloudError
|
|
2836
|
+
}
|
|
2837
|
+
},
|
|
2838
|
+
queryParameters: [apiVersion],
|
|
2839
|
+
urlParameters: [$host, nextLink],
|
|
2840
|
+
headerParameters: [accept],
|
|
2841
|
+
serializer: serializer$1
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
/*
|
|
2845
|
+
* Copyright (c) Microsoft Corporation.
|
|
2846
|
+
* Licensed under the MIT License.
|
|
2847
|
+
*
|
|
2848
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2849
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2850
|
+
*/
|
|
2851
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2852
|
+
/** Class containing Location operations. */
|
|
2853
|
+
class LocationImpl {
|
|
2854
|
+
/**
|
|
2855
|
+
* Initialize a new instance of the class Location class.
|
|
2856
|
+
* @param client Reference to the service client
|
|
2857
|
+
*/
|
|
2858
|
+
constructor(client) {
|
|
2859
|
+
this.client = client;
|
|
2860
|
+
}
|
|
2861
|
+
/**
|
|
2862
|
+
* Get the usage for a subscription
|
|
2863
|
+
* @param location The identifier for the physical azure location.
|
|
2864
|
+
* @param options The options parameters.
|
|
2865
|
+
*/
|
|
2866
|
+
listUsage(location, options) {
|
|
2867
|
+
const iter = this.listUsagePagingAll(location, options);
|
|
2868
|
+
return {
|
|
2869
|
+
next() {
|
|
2870
|
+
return iter.next();
|
|
2871
|
+
},
|
|
2872
|
+
[Symbol.asyncIterator]() {
|
|
2873
|
+
return this;
|
|
2874
|
+
},
|
|
2875
|
+
byPage: () => {
|
|
2876
|
+
return this.listUsagePagingPage(location, options);
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2880
|
+
listUsagePagingPage(location, options) {
|
|
2881
|
+
return tslib.__asyncGenerator(this, arguments, function* listUsagePagingPage_1() {
|
|
2882
|
+
let result = yield tslib.__await(this._listUsage(location, options));
|
|
2883
|
+
yield yield tslib.__await(result.value || []);
|
|
2884
|
+
});
|
|
2885
|
+
}
|
|
2886
|
+
listUsagePagingAll(location, options) {
|
|
2887
|
+
return tslib.__asyncGenerator(this, arguments, function* listUsagePagingAll_1() {
|
|
2888
|
+
var e_1, _a;
|
|
2889
|
+
try {
|
|
2890
|
+
for (var _b = tslib.__asyncValues(this.listUsagePagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2891
|
+
const page = _c.value;
|
|
2892
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2896
|
+
finally {
|
|
2897
|
+
try {
|
|
2898
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2899
|
+
}
|
|
2900
|
+
finally { if (e_1) throw e_1.error; }
|
|
2901
|
+
}
|
|
2902
|
+
});
|
|
2903
|
+
}
|
|
2904
|
+
/**
|
|
2905
|
+
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
2906
|
+
* @param location The identifier for the physical azure location.
|
|
2907
|
+
* @param options The options parameters.
|
|
2908
|
+
*/
|
|
2909
|
+
listCachedImages(location, options) {
|
|
2910
|
+
const iter = this.listCachedImagesPagingAll(location, options);
|
|
2911
|
+
return {
|
|
2912
|
+
next() {
|
|
2913
|
+
return iter.next();
|
|
2914
|
+
},
|
|
2915
|
+
[Symbol.asyncIterator]() {
|
|
2916
|
+
return this;
|
|
2917
|
+
},
|
|
2918
|
+
byPage: () => {
|
|
2919
|
+
return this.listCachedImagesPagingPage(location, options);
|
|
2920
|
+
}
|
|
2921
|
+
};
|
|
2922
|
+
}
|
|
2923
|
+
listCachedImagesPagingPage(location, options) {
|
|
2924
|
+
return tslib.__asyncGenerator(this, arguments, function* listCachedImagesPagingPage_1() {
|
|
2925
|
+
let result = yield tslib.__await(this._listCachedImages(location, options));
|
|
2926
|
+
yield yield tslib.__await(result.value || []);
|
|
2927
|
+
let continuationToken = result.nextLink;
|
|
2928
|
+
while (continuationToken) {
|
|
2929
|
+
result = yield tslib.__await(this._listCachedImagesNext(location, continuationToken, options));
|
|
2930
|
+
continuationToken = result.nextLink;
|
|
2931
|
+
yield yield tslib.__await(result.value || []);
|
|
2932
|
+
}
|
|
2933
|
+
});
|
|
2934
|
+
}
|
|
2935
|
+
listCachedImagesPagingAll(location, options) {
|
|
2936
|
+
return tslib.__asyncGenerator(this, arguments, function* listCachedImagesPagingAll_1() {
|
|
2937
|
+
var e_2, _a;
|
|
2938
|
+
try {
|
|
2939
|
+
for (var _b = tslib.__asyncValues(this.listCachedImagesPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2940
|
+
const page = _c.value;
|
|
2941
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2945
|
+
finally {
|
|
2946
|
+
try {
|
|
2947
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2948
|
+
}
|
|
2949
|
+
finally { if (e_2) throw e_2.error; }
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
/**
|
|
2954
|
+
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
2955
|
+
* @param location The identifier for the physical azure location.
|
|
2956
|
+
* @param options The options parameters.
|
|
2957
|
+
*/
|
|
2958
|
+
listCapabilities(location, options) {
|
|
2959
|
+
const iter = this.listCapabilitiesPagingAll(location, options);
|
|
2960
|
+
return {
|
|
2961
|
+
next() {
|
|
2962
|
+
return iter.next();
|
|
2963
|
+
},
|
|
2964
|
+
[Symbol.asyncIterator]() {
|
|
2965
|
+
return this;
|
|
2966
|
+
},
|
|
2967
|
+
byPage: () => {
|
|
2968
|
+
return this.listCapabilitiesPagingPage(location, options);
|
|
2969
|
+
}
|
|
2970
|
+
};
|
|
2971
|
+
}
|
|
2972
|
+
listCapabilitiesPagingPage(location, options) {
|
|
2973
|
+
return tslib.__asyncGenerator(this, arguments, function* listCapabilitiesPagingPage_1() {
|
|
2974
|
+
let result = yield tslib.__await(this._listCapabilities(location, options));
|
|
2975
|
+
yield yield tslib.__await(result.value || []);
|
|
2976
|
+
let continuationToken = result.nextLink;
|
|
2977
|
+
while (continuationToken) {
|
|
2978
|
+
result = yield tslib.__await(this._listCapabilitiesNext(location, continuationToken, options));
|
|
2979
|
+
continuationToken = result.nextLink;
|
|
2980
|
+
yield yield tslib.__await(result.value || []);
|
|
2981
|
+
}
|
|
2982
|
+
});
|
|
2983
|
+
}
|
|
2984
|
+
listCapabilitiesPagingAll(location, options) {
|
|
2985
|
+
return tslib.__asyncGenerator(this, arguments, function* listCapabilitiesPagingAll_1() {
|
|
2986
|
+
var e_3, _a;
|
|
2987
|
+
try {
|
|
2988
|
+
for (var _b = tslib.__asyncValues(this.listCapabilitiesPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2989
|
+
const page = _c.value;
|
|
2990
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
2994
|
+
finally {
|
|
2995
|
+
try {
|
|
2996
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2997
|
+
}
|
|
2998
|
+
finally { if (e_3) throw e_3.error; }
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
3002
|
+
/**
|
|
3003
|
+
* Get the usage for a subscription
|
|
3004
|
+
* @param location The identifier for the physical azure location.
|
|
3005
|
+
* @param options The options parameters.
|
|
3006
|
+
*/
|
|
3007
|
+
_listUsage(location, options) {
|
|
3008
|
+
return this.client.sendOperationRequest({ location, options }, listUsageOperationSpec);
|
|
3009
|
+
}
|
|
3010
|
+
/**
|
|
3011
|
+
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
3012
|
+
* @param location The identifier for the physical azure location.
|
|
3013
|
+
* @param options The options parameters.
|
|
3014
|
+
*/
|
|
3015
|
+
_listCachedImages(location, options) {
|
|
3016
|
+
return this.client.sendOperationRequest({ location, options }, listCachedImagesOperationSpec);
|
|
3017
|
+
}
|
|
3018
|
+
/**
|
|
3019
|
+
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
3020
|
+
* @param location The identifier for the physical azure location.
|
|
3021
|
+
* @param options The options parameters.
|
|
3022
|
+
*/
|
|
3023
|
+
_listCapabilities(location, options) {
|
|
3024
|
+
return this.client.sendOperationRequest({ location, options }, listCapabilitiesOperationSpec);
|
|
3025
|
+
}
|
|
3026
|
+
/**
|
|
3027
|
+
* ListCachedImagesNext
|
|
3028
|
+
* @param location The identifier for the physical azure location.
|
|
3029
|
+
* @param nextLink The nextLink from the previous successful call to the ListCachedImages method.
|
|
3030
|
+
* @param options The options parameters.
|
|
3031
|
+
*/
|
|
3032
|
+
_listCachedImagesNext(location, nextLink, options) {
|
|
3033
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listCachedImagesNextOperationSpec);
|
|
3034
|
+
}
|
|
3035
|
+
/**
|
|
3036
|
+
* ListCapabilitiesNext
|
|
3037
|
+
* @param location The identifier for the physical azure location.
|
|
3038
|
+
* @param nextLink The nextLink from the previous successful call to the ListCapabilities method.
|
|
3039
|
+
* @param options The options parameters.
|
|
3040
|
+
*/
|
|
3041
|
+
_listCapabilitiesNext(location, nextLink, options) {
|
|
3042
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listCapabilitiesNextOperationSpec);
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
// Operation Specifications
|
|
3046
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
3047
|
+
const listUsageOperationSpec = {
|
|
3048
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
|
|
3049
|
+
httpMethod: "GET",
|
|
3050
|
+
responses: {
|
|
3051
|
+
200: {
|
|
3052
|
+
bodyMapper: UsageListResult
|
|
3053
|
+
},
|
|
3054
|
+
default: {
|
|
3055
|
+
bodyMapper: CloudError
|
|
3056
|
+
}
|
|
3057
|
+
},
|
|
3058
|
+
queryParameters: [apiVersion],
|
|
3059
|
+
urlParameters: [
|
|
3060
|
+
$host,
|
|
3061
|
+
subscriptionId,
|
|
3062
|
+
location
|
|
3063
|
+
],
|
|
3064
|
+
headerParameters: [accept],
|
|
3065
|
+
serializer: serializer$2
|
|
3066
|
+
};
|
|
3067
|
+
const listCachedImagesOperationSpec = {
|
|
3068
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
|
|
3069
|
+
httpMethod: "GET",
|
|
3070
|
+
responses: {
|
|
3071
|
+
200: {
|
|
3072
|
+
bodyMapper: CachedImagesListResult
|
|
3073
|
+
},
|
|
3074
|
+
default: {
|
|
3075
|
+
bodyMapper: CloudError
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
queryParameters: [apiVersion],
|
|
3079
|
+
urlParameters: [
|
|
3080
|
+
$host,
|
|
3081
|
+
subscriptionId,
|
|
3082
|
+
location
|
|
3083
|
+
],
|
|
3084
|
+
headerParameters: [accept],
|
|
3085
|
+
serializer: serializer$2
|
|
3086
|
+
};
|
|
3087
|
+
const listCapabilitiesOperationSpec = {
|
|
3088
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
|
|
3089
|
+
httpMethod: "GET",
|
|
3090
|
+
responses: {
|
|
3091
|
+
200: {
|
|
3092
|
+
bodyMapper: CapabilitiesListResult
|
|
3093
|
+
},
|
|
3094
|
+
default: {
|
|
3095
|
+
bodyMapper: CloudError
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3098
|
+
queryParameters: [apiVersion],
|
|
3099
|
+
urlParameters: [
|
|
3100
|
+
$host,
|
|
3101
|
+
subscriptionId,
|
|
3102
|
+
location
|
|
3103
|
+
],
|
|
3104
|
+
headerParameters: [accept],
|
|
3105
|
+
serializer: serializer$2
|
|
3106
|
+
};
|
|
3107
|
+
const listCachedImagesNextOperationSpec = {
|
|
3108
|
+
path: "{nextLink}",
|
|
3109
|
+
httpMethod: "GET",
|
|
3110
|
+
responses: {
|
|
3111
|
+
200: {
|
|
3112
|
+
bodyMapper: CachedImagesListResult
|
|
3113
|
+
},
|
|
3114
|
+
default: {
|
|
3115
|
+
bodyMapper: CloudError
|
|
3116
|
+
}
|
|
3117
|
+
},
|
|
3118
|
+
queryParameters: [apiVersion],
|
|
3119
|
+
urlParameters: [
|
|
3120
|
+
$host,
|
|
3121
|
+
subscriptionId,
|
|
3122
|
+
nextLink,
|
|
3123
|
+
location
|
|
3124
|
+
],
|
|
3125
|
+
headerParameters: [accept],
|
|
3126
|
+
serializer: serializer$2
|
|
3127
|
+
};
|
|
3128
|
+
const listCapabilitiesNextOperationSpec = {
|
|
3129
|
+
path: "{nextLink}",
|
|
3130
|
+
httpMethod: "GET",
|
|
3131
|
+
responses: {
|
|
3132
|
+
200: {
|
|
3133
|
+
bodyMapper: CapabilitiesListResult
|
|
3134
|
+
},
|
|
3135
|
+
default: {
|
|
3136
|
+
bodyMapper: CloudError
|
|
3137
|
+
}
|
|
3138
|
+
},
|
|
3139
|
+
queryParameters: [apiVersion],
|
|
3140
|
+
urlParameters: [
|
|
3141
|
+
$host,
|
|
3142
|
+
subscriptionId,
|
|
3143
|
+
nextLink,
|
|
3144
|
+
location
|
|
3145
|
+
],
|
|
3146
|
+
headerParameters: [accept],
|
|
3147
|
+
serializer: serializer$2
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
/*
|
|
3151
|
+
* Copyright (c) Microsoft Corporation.
|
|
3152
|
+
* Licensed under the MIT License.
|
|
3153
|
+
*
|
|
3154
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3155
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3156
|
+
*/
|
|
3157
|
+
/** Class containing Containers operations. */
|
|
3158
|
+
class ContainersImpl {
|
|
3159
|
+
/**
|
|
3160
|
+
* Initialize a new instance of the class Containers class.
|
|
3161
|
+
* @param client Reference to the service client
|
|
3162
|
+
*/
|
|
3163
|
+
constructor(client) {
|
|
3164
|
+
this.client = client;
|
|
3165
|
+
}
|
|
3166
|
+
/**
|
|
3167
|
+
* Get the logs for a specified container instance in a specified resource group and container group.
|
|
3168
|
+
* @param resourceGroupName The name of the resource group.
|
|
3169
|
+
* @param containerGroupName The name of the container group.
|
|
3170
|
+
* @param containerName The name of the container instance.
|
|
3171
|
+
* @param options The options parameters.
|
|
3172
|
+
*/
|
|
3173
|
+
listLogs(resourceGroupName, containerGroupName, containerName, options) {
|
|
3174
|
+
return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, containerName, options }, listLogsOperationSpec);
|
|
3175
|
+
}
|
|
3176
|
+
/**
|
|
3177
|
+
* Executes a command for a specific container instance in a specified resource group and container
|
|
3178
|
+
* group.
|
|
3179
|
+
* @param resourceGroupName The name of the resource group.
|
|
3180
|
+
* @param containerGroupName The name of the container group.
|
|
3181
|
+
* @param containerName The name of the container instance.
|
|
3182
|
+
* @param containerExecRequest The request for the exec command.
|
|
3183
|
+
* @param options The options parameters.
|
|
3184
|
+
*/
|
|
3185
|
+
executeCommand(resourceGroupName, containerGroupName, containerName, containerExecRequest, options) {
|
|
3186
|
+
return this.client.sendOperationRequest({
|
|
3187
|
+
resourceGroupName,
|
|
3188
|
+
containerGroupName,
|
|
3189
|
+
containerName,
|
|
3190
|
+
containerExecRequest,
|
|
3191
|
+
options
|
|
3192
|
+
}, executeCommandOperationSpec);
|
|
3193
|
+
}
|
|
3194
|
+
/**
|
|
3195
|
+
* Attach to the output stream of a specific container instance in a specified resource group and
|
|
3196
|
+
* container group.
|
|
3197
|
+
* @param resourceGroupName The name of the resource group.
|
|
3198
|
+
* @param containerGroupName The name of the container group.
|
|
3199
|
+
* @param containerName The name of the container instance.
|
|
3200
|
+
* @param options The options parameters.
|
|
3201
|
+
*/
|
|
3202
|
+
attach(resourceGroupName, containerGroupName, containerName, options) {
|
|
3203
|
+
return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, containerName, options }, attachOperationSpec);
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
// Operation Specifications
|
|
3207
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
3208
|
+
const listLogsOperationSpec = {
|
|
3209
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
|
|
3210
|
+
httpMethod: "GET",
|
|
3211
|
+
responses: {
|
|
3212
|
+
200: {
|
|
3213
|
+
bodyMapper: Logs
|
|
3214
|
+
},
|
|
3215
|
+
default: {
|
|
3216
|
+
bodyMapper: CloudError
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3219
|
+
queryParameters: [
|
|
3220
|
+
apiVersion,
|
|
3221
|
+
tail,
|
|
3222
|
+
timestamps
|
|
3223
|
+
],
|
|
3224
|
+
urlParameters: [
|
|
3225
|
+
$host,
|
|
3226
|
+
subscriptionId,
|
|
3227
|
+
resourceGroupName,
|
|
3228
|
+
containerGroupName,
|
|
3229
|
+
containerName
|
|
3230
|
+
],
|
|
3231
|
+
headerParameters: [accept],
|
|
3232
|
+
serializer: serializer$3
|
|
3233
|
+
};
|
|
3234
|
+
const executeCommandOperationSpec = {
|
|
3235
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
|
|
3236
|
+
httpMethod: "POST",
|
|
3237
|
+
responses: {
|
|
3238
|
+
200: {
|
|
3239
|
+
bodyMapper: ContainerExecResponse
|
|
3240
|
+
},
|
|
3241
|
+
default: {
|
|
3242
|
+
bodyMapper: CloudError
|
|
3243
|
+
}
|
|
3244
|
+
},
|
|
3245
|
+
requestBody: containerExecRequest,
|
|
3246
|
+
queryParameters: [apiVersion],
|
|
3247
|
+
urlParameters: [
|
|
3248
|
+
$host,
|
|
3249
|
+
subscriptionId,
|
|
3250
|
+
resourceGroupName,
|
|
3251
|
+
containerGroupName,
|
|
3252
|
+
containerName
|
|
3253
|
+
],
|
|
3254
|
+
headerParameters: [accept, contentType],
|
|
3255
|
+
mediaType: "json",
|
|
3256
|
+
serializer: serializer$3
|
|
3257
|
+
};
|
|
3258
|
+
const attachOperationSpec = {
|
|
3259
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
|
|
3260
|
+
httpMethod: "POST",
|
|
3261
|
+
responses: {
|
|
3262
|
+
200: {
|
|
3263
|
+
bodyMapper: ContainerAttachResponse
|
|
3264
|
+
},
|
|
3265
|
+
default: {
|
|
3266
|
+
bodyMapper: CloudError
|
|
3267
|
+
}
|
|
3268
|
+
},
|
|
3269
|
+
queryParameters: [apiVersion],
|
|
3270
|
+
urlParameters: [
|
|
3271
|
+
$host,
|
|
3272
|
+
subscriptionId,
|
|
3273
|
+
resourceGroupName,
|
|
3274
|
+
containerGroupName,
|
|
3275
|
+
containerName
|
|
3276
|
+
],
|
|
3277
|
+
headerParameters: [accept],
|
|
3278
|
+
serializer: serializer$3
|
|
3279
|
+
};
|
|
3280
|
+
|
|
3281
|
+
/*
|
|
3282
|
+
* Copyright (c) Microsoft Corporation.
|
|
3283
|
+
* Licensed under the MIT License.
|
|
3284
|
+
*
|
|
3285
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3286
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3287
|
+
*/
|
|
3288
|
+
class ContainerInstanceManagementClient extends coreClient.ServiceClient {
|
|
3289
|
+
/**
|
|
3290
|
+
* Initializes a new instance of the ContainerInstanceManagementClient class.
|
|
3291
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3292
|
+
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
|
|
3293
|
+
* The subscription ID forms part of the URI for every service call.
|
|
3294
|
+
* @param options The parameter options
|
|
3295
|
+
*/
|
|
3296
|
+
constructor(credentials, subscriptionId, options) {
|
|
3297
|
+
if (credentials === undefined) {
|
|
3298
|
+
throw new Error("'credentials' cannot be null");
|
|
3299
|
+
}
|
|
3300
|
+
if (subscriptionId === undefined) {
|
|
3301
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
3302
|
+
}
|
|
3303
|
+
// Initializing default values for options
|
|
3304
|
+
if (!options) {
|
|
3305
|
+
options = {};
|
|
3306
|
+
}
|
|
3307
|
+
const defaults = {
|
|
3308
|
+
requestContentType: "application/json; charset=utf-8",
|
|
3309
|
+
credential: credentials
|
|
3310
|
+
};
|
|
3311
|
+
const packageDetails = `azsdk-js-arm-containerinstance/8.0.0`;
|
|
3312
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3313
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3314
|
+
: `${packageDetails}`;
|
|
3315
|
+
if (!options.credentialScopes) {
|
|
3316
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3317
|
+
}
|
|
3318
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3319
|
+
userAgentPrefix
|
|
3320
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
3321
|
+
super(optionsWithDefaults);
|
|
3322
|
+
// Parameter assignments
|
|
3323
|
+
this.subscriptionId = subscriptionId;
|
|
3324
|
+
// Assigning values to Constant parameters
|
|
3325
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
3326
|
+
this.apiVersion = options.apiVersion || "2021-09-01";
|
|
3327
|
+
this.containerGroups = new ContainerGroupsImpl(this);
|
|
3328
|
+
this.operations = new OperationsImpl(this);
|
|
3329
|
+
this.location = new LocationImpl(this);
|
|
3330
|
+
this.containers = new ContainersImpl(this);
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
exports.ContainerInstanceManagementClient = ContainerInstanceManagementClient;
|
|
3335
|
+
//# sourceMappingURL=index.js.map
|