@azure/arm-containerinstance 9.1.0-beta.1 → 9.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -7
- package/dist/index.js +147 -110
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +4 -74
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.js +2 -20
- package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListSample.js +13 -6
- package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/containersAttachSample.js +1 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +1 -1
- package/dist-esm/samples-dev/containersListLogsSample.js +1 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +13 -6
- package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +13 -6
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListUsageSample.js +13 -6
- package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +13 -6
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +1 -1
- package/dist-esm/src/containerInstanceManagementClient.js +2 -2
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +56 -61
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -10
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +0 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +13 -27
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/containerGroups.d.ts +5 -5
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/containerGroups.js +58 -28
- package/dist-esm/src/operations/containerGroups.js.map +1 -1
- package/dist-esm/src/operations/location.js +36 -15
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -5
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.js +10 -6
- package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -1
- package/dist-esm/test/containerinstance_examples.js +24 -10
- package/dist-esm/test/containerinstance_examples.js.map +1 -1
- package/package.json +10 -10
- package/review/arm-containerinstance.api.md +18 -24
- package/src/containerInstanceManagementClient.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +27 -33
- package/src/models/mappers.ts +13 -28
- package/src/models/parameters.ts +1 -1
- package/src/operations/containerGroups.ts +50 -40
- package/src/operations/subnetServiceAssociationLink.ts +15 -11
- package/src/operationsInterfaces/containerGroups.ts +7 -7
- package/src/operationsInterfaces/subnetServiceAssociationLink.ts +2 -2
- package/types/arm-containerinstance.d.ts +34 -40
- package/types/tsdoc-metadata.json +1 -1
|
@@ -16,44 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
17
17
|
*
|
|
18
18
|
* @summary Create or update container groups with specified configurations.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
20
|
-
*/
|
|
21
|
-
function confidentialContainerGroup() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
-
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
|
-
const containerGroupName = "demo1";
|
|
26
|
-
const containerGroup = {
|
|
27
|
-
confidentialComputeProperties: {
|
|
28
|
-
ccePolicy: "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
|
|
29
|
-
},
|
|
30
|
-
containers: [
|
|
31
|
-
{
|
|
32
|
-
name: "accdemo",
|
|
33
|
-
command: [],
|
|
34
|
-
environmentVariables: [],
|
|
35
|
-
image: "confiimage",
|
|
36
|
-
ports: [{ port: 8000 }],
|
|
37
|
-
resources: { requests: { cpu: 1, memoryInGB: 1.5 } }
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
imageRegistryCredentials: [],
|
|
41
|
-
ipAddress: { type: "Public", ports: [{ port: 8000, protocol: "TCP" }] },
|
|
42
|
-
location: "westeurope",
|
|
43
|
-
osType: "Linux",
|
|
44
|
-
sku: "Confidential"
|
|
45
|
-
};
|
|
46
|
-
const credential = new DefaultAzureCredential();
|
|
47
|
-
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
48
|
-
const result = yield client.containerGroups.beginCreateOrUpdateAndWait(resourceGroupName, containerGroupName, containerGroup);
|
|
49
|
-
console.log(result);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
54
|
-
*
|
|
55
|
-
* @summary Create or update container groups with specified configurations.
|
|
56
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2022-10-01-preview/examples/ContainerGroupExtensions.json
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupExtensions.json
|
|
57
20
|
*/
|
|
58
21
|
function containerGroupCreateWithExtensions() {
|
|
59
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -105,7 +68,7 @@ function containerGroupCreateWithExtensions() {
|
|
|
105
68
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
106
69
|
*
|
|
107
70
|
* @summary Create or update container groups with specified configurations.
|
|
108
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
71
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupEncryptionProperties.json
|
|
109
72
|
*/
|
|
110
73
|
function containerGroupWithEncryptionProperties() {
|
|
111
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -150,7 +113,7 @@ function containerGroupWithEncryptionProperties() {
|
|
|
150
113
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
151
114
|
*
|
|
152
115
|
* @summary Create or update container groups with specified configurations.
|
|
153
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
116
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsCreateOrUpdate.json
|
|
154
117
|
*/
|
|
155
118
|
function containerGroupsCreateOrUpdate() {
|
|
156
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -204,6 +167,7 @@ function containerGroupsCreateOrUpdate() {
|
|
|
204
167
|
},
|
|
205
168
|
location: "west us",
|
|
206
169
|
osType: "Linux",
|
|
170
|
+
provisioningTimeoutInSeconds: 600,
|
|
207
171
|
subnetIds: [
|
|
208
172
|
{
|
|
209
173
|
id: "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]"
|
|
@@ -234,45 +198,11 @@ function containerGroupsCreateOrUpdate() {
|
|
|
234
198
|
console.log(result);
|
|
235
199
|
});
|
|
236
200
|
}
|
|
237
|
-
/**
|
|
238
|
-
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
239
|
-
*
|
|
240
|
-
* @summary Create or update container groups with specified configurations.
|
|
241
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2022-10-01-preview/examples/ContainerGroupsCreatePriority.json
|
|
242
|
-
*/
|
|
243
|
-
function containerGroupsCreateWithPriority() {
|
|
244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
246
|
-
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
247
|
-
const containerGroupName = "demo1";
|
|
248
|
-
const containerGroup = {
|
|
249
|
-
containers: [
|
|
250
|
-
{
|
|
251
|
-
name: "test-container-001",
|
|
252
|
-
command: ["/bin/sh", "-c", "sleep 10"],
|
|
253
|
-
image: "alpine:latest",
|
|
254
|
-
resources: { requests: { cpu: 1, memoryInGB: 1 } }
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
location: "eastus",
|
|
258
|
-
osType: "Linux",
|
|
259
|
-
priority: "Spot",
|
|
260
|
-
restartPolicy: "Never",
|
|
261
|
-
sku: "Standard"
|
|
262
|
-
};
|
|
263
|
-
const credential = new DefaultAzureCredential();
|
|
264
|
-
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
265
|
-
const result = yield client.containerGroups.beginCreateOrUpdateAndWait(resourceGroupName, containerGroupName, containerGroup);
|
|
266
|
-
console.log(result);
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
201
|
function main() {
|
|
270
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
-
confidentialContainerGroup();
|
|
272
203
|
containerGroupCreateWithExtensions();
|
|
273
204
|
containerGroupWithEncryptionProperties();
|
|
274
205
|
containerGroupsCreateOrUpdate();
|
|
275
|
-
containerGroupsCreateWithPriority();
|
|
276
206
|
});
|
|
277
207
|
}
|
|
278
208
|
main().catch(console.error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,
|
|
1
|
+
{"version":3,"file":"containerGroupsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8B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AAU,EAAE,sBAAsB;wBAClC,UAAU,EAAE,sBAAsB;qBACnC;iBACF;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,0BAA0B,CACpE,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;QACrC,sCAAsC,EAAE,CAAC;QACzC,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,24 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
20
|
-
*/
|
|
21
|
-
function containerGroupsGetWithPriority() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
-
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
|
-
const containerGroupName = "demo1";
|
|
26
|
-
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
28
|
-
const result = yield client.containerGroups.get(resourceGroupName, containerGroupName);
|
|
29
|
-
console.log(result);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
34
|
-
*
|
|
35
|
-
* @summary Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
36
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2022-10-01-preview/examples/ContainerGroupsGet_Failed.json
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsGet_Failed.json
|
|
37
20
|
*/
|
|
38
21
|
function containerGroupsGetFailed() {
|
|
39
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -50,7 +33,7 @@ function containerGroupsGetFailed() {
|
|
|
50
33
|
* This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
51
34
|
*
|
|
52
35
|
* @summary Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
53
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
36
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsGet_Succeeded.json
|
|
54
37
|
*/
|
|
55
38
|
function containerGroupsGetSucceeded() {
|
|
56
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -65,7 +48,6 @@ function containerGroupsGetSucceeded() {
|
|
|
65
48
|
}
|
|
66
49
|
function main() {
|
|
67
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
containerGroupsGetWithPriority();
|
|
69
51
|
containerGroupsGetFailed();
|
|
70
52
|
containerGroupsGetSucceeded();
|
|
71
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsGetSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,
|
|
1
|
+
{"version":3,"file":"containerGroupsGetSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAA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AAC"}
|
|
@@ -16,10 +16,10 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsListByResourceGroup.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsListByResourceGroup() {
|
|
22
|
-
var e_1,
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
25
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
@@ -27,15 +27,22 @@ function containerGroupsListByResourceGroup() {
|
|
|
27
27
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
28
28
|
const resArray = new Array();
|
|
29
29
|
try {
|
|
30
|
-
for (var
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.containerGroups.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
36
43
|
finally {
|
|
37
44
|
try {
|
|
38
|
-
if (
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
39
46
|
}
|
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
|
41
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,
|
|
1
|
+
{"version":3,"file":"containerGroupsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;IACvC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,25 +16,32 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsList.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsList() {
|
|
22
|
-
var e_1,
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
25
25
|
const credential = new DefaultAzureCredential();
|
|
26
26
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
27
27
|
const resArray = new Array();
|
|
28
28
|
try {
|
|
29
|
-
for (var
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
for (var _d = true, _e = __asyncValues(client.containerGroups.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
30
|
+
_c = _f.value;
|
|
31
|
+
_d = false;
|
|
32
|
+
try {
|
|
33
|
+
let item = _c;
|
|
34
|
+
resArray.push(item);
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
_d = true;
|
|
38
|
+
}
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
35
42
|
finally {
|
|
36
43
|
try {
|
|
37
|
-
if (
|
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
38
45
|
}
|
|
39
46
|
finally { if (e_1) throw e_1.error; }
|
|
40
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsListSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,
|
|
1
|
+
{"version":3,"file":"containerGroupsListSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA7B,cAA6B;gBAA7B,WAA6B;;oBAAzC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
|
|
17
17
|
*
|
|
18
18
|
* @summary Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsRestart.json
|
|
20
20
|
*/
|
|
21
21
|
function containerRestart() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Starts all containers in a container group. Compute resources will be allocated and billing will start.
|
|
17
17
|
*
|
|
18
18
|
* @summary Starts all containers in a container group. Compute resources will be allocated and billing will start.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsStart.json
|
|
20
20
|
*/
|
|
21
21
|
function containerStart() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
|
|
17
17
|
*
|
|
18
18
|
* @summary Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsStop.json
|
|
20
20
|
*/
|
|
21
21
|
function containerStop() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Updates container group tags with specified values.
|
|
17
17
|
*
|
|
18
18
|
* @summary Updates container group tags with specified values.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupsUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Attach to the output stream of a specific container instance in a specified resource group and container group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Attach to the output stream of a specific container instance in a specified resource group and container group.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerAttach.json
|
|
20
20
|
*/
|
|
21
21
|
function containerAttach() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Executes a command for a specific container instance in a specified resource group and container group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Executes a command for a specific container instance in a specified resource group and container group.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerExec.json
|
|
20
20
|
*/
|
|
21
21
|
function containerExec() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the logs for a specified container instance in a specified resource group and container group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the logs for a specified container instance in a specified resource group and container group.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerListLogs.json
|
|
20
20
|
*/
|
|
21
21
|
function containerListLogs() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,10 +16,10 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the list of cached images on specific OS type for a subscription in a region.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the list of cached images on specific OS type for a subscription in a region.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/CachedImagesList.json
|
|
20
20
|
*/
|
|
21
21
|
function cachedImages() {
|
|
22
|
-
var e_1,
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
25
25
|
const location = "westcentralus";
|
|
@@ -27,15 +27,22 @@ function cachedImages() {
|
|
|
27
27
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
28
28
|
const resArray = new Array();
|
|
29
29
|
try {
|
|
30
|
-
for (var
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.location.listCachedImages(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
36
43
|
finally {
|
|
37
44
|
try {
|
|
38
|
-
if (
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
39
46
|
}
|
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
|
41
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationListCachedImagesSample.js","sourceRoot":"","sources":["../../samples-dev/locationListCachedImagesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,YAAY;;;QACzB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,
|
|
1
|
+
{"version":3,"file":"locationListCachedImagesSample.js","sourceRoot":"","sources":["../../samples-dev/locationListCachedImagesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,YAAY;;;QACzB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA,IAAA;gBAA1C,cAA0C;gBAA1C,WAA0C;;oBAAtD,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,YAAY,EAAE,CAAC;IACjB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,10 +16,10 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the list of CPU/memory/GPU capabilities of a region.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the list of CPU/memory/GPU capabilities of a region.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/CapabilitiesList.json
|
|
20
20
|
*/
|
|
21
21
|
function getCapabilities() {
|
|
22
|
-
var e_1,
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
25
25
|
const location = "westus";
|
|
@@ -27,15 +27,22 @@ function getCapabilities() {
|
|
|
27
27
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
28
28
|
const resArray = new Array();
|
|
29
29
|
try {
|
|
30
|
-
for (var
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.location.listCapabilities(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
36
43
|
finally {
|
|
37
44
|
try {
|
|
38
|
-
if (
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
39
46
|
}
|
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
|
41
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationListCapabilitiesSample.js","sourceRoot":"","sources":["../../samples-dev/locationListCapabilitiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B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C,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,10 +16,10 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the usage for a subscription
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the usage for a subscription
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/ContainerGroupUsage.json
|
|
20
20
|
*/
|
|
21
21
|
function containerUsage() {
|
|
22
|
-
var e_1,
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] || "subid";
|
|
25
25
|
const location = "westcentralus";
|
|
@@ -27,15 +27,22 @@ function containerUsage() {
|
|
|
27
27
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
28
28
|
const resArray = new Array();
|
|
29
29
|
try {
|
|
30
|
-
for (var
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.location.listUsage(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
36
43
|
finally {
|
|
37
44
|
try {
|
|
38
|
-
if (
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
39
46
|
}
|
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
|
41
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationListUsageSample.js","sourceRoot":"","sources":["../../samples-dev/locationListUsageSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,
|
|
1
|
+
{"version":3,"file":"locationListUsageSample.js","sourceRoot":"","sources":["../../samples-dev/locationListUsageSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,OAAO,CAAC;QAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA,IAAA;gBAAnC,cAAmC;gBAAnC,WAAmC;;oBAA/C,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,10 +16,10 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List the operations for Azure Container Instance service.
|
|
17
17
|
*
|
|
18
18
|
* @summary List the operations for Azure Container Instance service.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/OperationsList.json
|
|
20
20
|
*/
|
|
21
21
|
function operationsList() {
|
|
22
|
-
var e_1,
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
25
25
|
"00000000-0000-0000-0000-000000000000";
|
|
@@ -27,15 +27,22 @@ function operationsList() {
|
|
|
27
27
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
28
28
|
const resArray = new Array();
|
|
29
29
|
try {
|
|
30
|
-
for (var
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
36
43
|
finally {
|
|
37
44
|
try {
|
|
38
|
-
if (
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
39
46
|
}
|
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
|
41
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete container group virtual network association links. The operation does not delete other resources provided by the user.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete container group virtual network association links. The operation does not delete other resources provided by the user.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2023-02-01-preview/examples/SubnetServiceAssociationLinkDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function subnetServiceAssociationLinkDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,7 +33,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
33
33
|
requestContentType: "application/json; charset=utf-8",
|
|
34
34
|
credential: credentials
|
|
35
35
|
};
|
|
36
|
-
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0-beta.
|
|
36
|
+
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0-beta.2`;
|
|
37
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
39
|
: `${packageDetails}`;
|
|
@@ -66,7 +66,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
66
66
|
this.subscriptionId = subscriptionId;
|
|
67
67
|
// Assigning values to Constant parameters
|
|
68
68
|
this.$host = options.$host || "https://management.azure.com";
|
|
69
|
-
this.apiVersion = options.apiVersion || "
|
|
69
|
+
this.apiVersion = options.apiVersion || "2023-02-01-preview";
|
|
70
70
|
this.containerGroups = new ContainerGroupsImpl(this);
|
|
71
71
|
this.operations = new OperationsImpl(this);
|
|
72
72
|
this.location = new LocationImpl(this);
|