@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: ContainerInstanceManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List the operations for Azure Container Instance service.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* List the operations for Azure Container Instance service.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List the operations for Azure Container Instance service.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
let continuationToken = result.nextLink;
|
|
45
|
+
while (continuationToken) {
|
|
46
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
listPagingAll(options) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
54
|
+
var e_1, _a;
|
|
55
|
+
try {
|
|
56
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
+
const page = _c.value;
|
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
+
finally {
|
|
63
|
+
try {
|
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
+
}
|
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List the operations for Azure Container Instance service.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
_list(options) {
|
|
75
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* ListNext
|
|
79
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
_listNext(nextLink, options) {
|
|
83
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Operation Specifications
|
|
87
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
88
|
+
const listOperationSpec = {
|
|
89
|
+
path: "/providers/Microsoft.ContainerInstance/operations",
|
|
90
|
+
httpMethod: "GET",
|
|
91
|
+
responses: {
|
|
92
|
+
200: {
|
|
93
|
+
bodyMapper: Mappers.OperationListResult
|
|
94
|
+
},
|
|
95
|
+
default: {
|
|
96
|
+
bodyMapper: Mappers.CloudError
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
queryParameters: [Parameters.apiVersion],
|
|
100
|
+
urlParameters: [Parameters.$host],
|
|
101
|
+
headerParameters: [Parameters.accept],
|
|
102
|
+
serializer
|
|
103
|
+
};
|
|
104
|
+
const listNextOperationSpec = {
|
|
105
|
+
path: "{nextLink}",
|
|
106
|
+
httpMethod: "GET",
|
|
107
|
+
responses: {
|
|
108
|
+
200: {
|
|
109
|
+
bodyMapper: Mappers.OperationListResult
|
|
110
|
+
},
|
|
111
|
+
default: {
|
|
112
|
+
bodyMapper: Mappers.CloudError
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
queryParameters: [Parameters.apiVersion],
|
|
116
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
117
|
+
headerParameters: [Parameters.accept],
|
|
118
|
+
serializer
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAy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perationState } from "@azure/core-lro";
|
|
3
|
+
import { ContainerGroup, ContainerGroupsListOptionalParams, ContainerGroupsListByResourceGroupOptionalParams, ContainerGroupsGetOptionalParams, ContainerGroupsGetResponse, ContainerGroupsCreateOrUpdateOptionalParams, ContainerGroupsCreateOrUpdateResponse, Resource, ContainerGroupsUpdateOptionalParams, ContainerGroupsUpdateResponse, ContainerGroupsDeleteOptionalParams, ContainerGroupsDeleteResponse, ContainerGroupsRestartOptionalParams, ContainerGroupsStopOptionalParams, ContainerGroupsStartOptionalParams, ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams, ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse } from "../models";
|
|
4
|
+
/** Interface representing a ContainerGroups. */
|
|
5
|
+
export interface ContainerGroups {
|
|
6
|
+
/**
|
|
7
|
+
* Get a list of container groups in the specified subscription. This operation returns properties of
|
|
8
|
+
* each container group including containers, image registry credentials, restart policy, IP address
|
|
9
|
+
* type, OS type, state, and volumes.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
list(options?: ContainerGroupsListOptionalParams): PagedAsyncIterableIterator<ContainerGroup>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
15
|
+
* returns properties of each container group including containers, image registry credentials, restart
|
|
16
|
+
* policy, IP address type, OS type, state, and volumes.
|
|
17
|
+
* @param resourceGroupName The name of the resource group.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByResourceGroup(resourceGroupName: string, options?: ContainerGroupsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ContainerGroup>;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the properties of the specified container group in the specified subscription and resource
|
|
23
|
+
* group. The operation returns the properties of each container group including containers, image
|
|
24
|
+
* registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
25
|
+
* @param resourceGroupName The name of the resource group.
|
|
26
|
+
* @param containerGroupName The name of the container group.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
get(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsGetOptionalParams): Promise<ContainerGroupsGetResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Create or update container groups with specified configurations.
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param containerGroupName The name of the container group.
|
|
34
|
+
* @param containerGroup The properties of the container group to be created or updated.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ContainerGroupsCreateOrUpdateResponse>, ContainerGroupsCreateOrUpdateResponse>>;
|
|
38
|
+
/**
|
|
39
|
+
* Create or update container groups with specified configurations.
|
|
40
|
+
* @param resourceGroupName The name of the resource group.
|
|
41
|
+
* @param containerGroupName The name of the container group.
|
|
42
|
+
* @param containerGroup The properties of the container group to be created or updated.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<ContainerGroupsCreateOrUpdateResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Updates container group tags with specified values.
|
|
48
|
+
* @param resourceGroupName The name of the resource group.
|
|
49
|
+
* @param containerGroupName The name of the container group.
|
|
50
|
+
* @param resource The container group resource with just the tags to be updated.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
update(resourceGroupName: string, containerGroupName: string, resource: Resource, options?: ContainerGroupsUpdateOptionalParams): Promise<ContainerGroupsUpdateResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
56
|
+
* does not delete other resources provided by the user, such as volumes.
|
|
57
|
+
* @param resourceGroupName The name of the resource group.
|
|
58
|
+
* @param containerGroupName The name of the container group.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<ContainerGroupsDeleteResponse>, ContainerGroupsDeleteResponse>>;
|
|
62
|
+
/**
|
|
63
|
+
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
64
|
+
* does not delete other resources provided by the user, such as volumes.
|
|
65
|
+
* @param resourceGroupName The name of the resource group.
|
|
66
|
+
* @param containerGroupName The name of the container group.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
beginDeleteAndWait(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<ContainerGroupsDeleteResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
72
|
+
* will be downloaded.
|
|
73
|
+
* @param resourceGroupName The name of the resource group.
|
|
74
|
+
* @param containerGroupName The name of the container group.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
78
|
+
/**
|
|
79
|
+
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
80
|
+
* will be downloaded.
|
|
81
|
+
* @param resourceGroupName The name of the resource group.
|
|
82
|
+
* @param containerGroupName The name of the container group.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
beginRestartAndWait(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Stops all containers in a container group. Compute resources will be deallocated and billing will
|
|
88
|
+
* stop.
|
|
89
|
+
* @param resourceGroupName The name of the resource group.
|
|
90
|
+
* @param containerGroupName The name of the container group.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
stop(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStopOptionalParams): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
96
|
+
* start.
|
|
97
|
+
* @param resourceGroupName The name of the resource group.
|
|
98
|
+
* @param containerGroupName The name of the container group.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
102
|
+
/**
|
|
103
|
+
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
104
|
+
* start.
|
|
105
|
+
* @param resourceGroupName The name of the resource group.
|
|
106
|
+
* @param containerGroupName The name of the container group.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
beginStartAndWait(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Gets all the network dependencies for this container group to allow complete control of network
|
|
112
|
+
* setting and configuration. For container groups, this will always be an empty list.
|
|
113
|
+
* @param resourceGroupName The name of the resource group.
|
|
114
|
+
* @param containerGroupName The name of the container group.
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams): Promise<ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=containerGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerGroups.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CA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iBAAiB,CACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,uCAAuC,CACrC,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,oEAAoE,GAC7E,OAAO,CAAC,8DAA8D,CAAC,CAAC;CAC5E"}
|
package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/containerGroups.js}
RENAMED
|
@@ -5,10 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
CloudError,
|
|
11
|
-
Operation,
|
|
12
|
-
OperationDisplay,
|
|
13
|
-
OperationListResult
|
|
14
|
-
} from "../models/mappers";
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=containerGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerGroups.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ContainersListLogsOptionalParams, ContainersListLogsResponse, ContainerExecRequest, ContainersExecuteCommandOptionalParams, ContainersExecuteCommandResponse, ContainersAttachOptionalParams, ContainersAttachResponse } from "../models";
|
|
2
|
+
/** Interface representing a Containers. */
|
|
3
|
+
export interface Containers {
|
|
4
|
+
/**
|
|
5
|
+
* Get the logs for a specified container instance in a specified resource group and container group.
|
|
6
|
+
* @param resourceGroupName The name of the resource group.
|
|
7
|
+
* @param containerGroupName The name of the container group.
|
|
8
|
+
* @param containerName The name of the container instance.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
listLogs(resourceGroupName: string, containerGroupName: string, containerName: string, options?: ContainersListLogsOptionalParams): Promise<ContainersListLogsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Executes a command for a specific container instance in a specified resource group and container
|
|
14
|
+
* group.
|
|
15
|
+
* @param resourceGroupName The name of the resource group.
|
|
16
|
+
* @param containerGroupName The name of the container group.
|
|
17
|
+
* @param containerName The name of the container instance.
|
|
18
|
+
* @param containerExecRequest The request for the exec command.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
executeCommand(resourceGroupName: string, containerGroupName: string, containerName: string, containerExecRequest: ContainerExecRequest, options?: ContainersExecuteCommandOptionalParams): Promise<ContainersExecuteCommandResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Attach to the output stream of a specific container instance in a specified resource group and
|
|
24
|
+
* container group.
|
|
25
|
+
* @param resourceGroupName The name of the resource group.
|
|
26
|
+
* @param containerGroupName The name of the container group.
|
|
27
|
+
* @param containerName The name of the container instance.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
attach(resourceGroupName: string, containerGroupName: string, containerName: string, options?: ContainersAttachOptionalParams): Promise<ContainersAttachResponse>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=containers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containers.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/containers.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,gCAAgC,EAChC,0BAA0B,EAC1B,oBAAoB,EACpB,sCAAsC,EACtC,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC7C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtC"}
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
//# sourceMappingURL=
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=containers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containers.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/containers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./containerGroups";
|
|
9
|
+
export * from "./operations";
|
|
10
|
+
export * from "./location";
|
|
11
|
+
export * from "./containers";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Usage, LocationListUsageOptionalParams, CachedImages, LocationListCachedImagesOptionalParams, Capabilities, LocationListCapabilitiesOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Location. */
|
|
4
|
+
export interface Location {
|
|
5
|
+
/**
|
|
6
|
+
* Get the usage for a subscription
|
|
7
|
+
* @param location The identifier for the physical azure location.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listUsage(location: string, options?: LocationListUsageOptionalParams): PagedAsyncIterableIterator<Usage>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
13
|
+
* @param location The identifier for the physical azure location.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listCachedImages(location: string, options?: LocationListCachedImagesOptionalParams): PagedAsyncIterableIterator<CachedImages>;
|
|
17
|
+
/**
|
|
18
|
+
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
19
|
+
* @param location The identifier for the physical azure location.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
listCapabilities(location: string, options?: LocationListCapabilitiesOptionalParams): PagedAsyncIterableIterator<Capabilities>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=location.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/location.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,KAAK,EACL,+BAA+B,EAC/B,YAAY,EACZ,sCAAsC,EACtC,YAAY,EACZ,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAGnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,SAAS,CACP,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,+BAA+B,GACxC,0BAA0B,CAAC,KAAK,CAAC,CAAC;IACrC;;;;OAIG;IACH,gBAAgB,CACd,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;OAIG;IACH,gBAAgB,CACd,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,YAAY,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/location.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* List the operations for Azure Container Instance service.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -5,12 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
CloudError,
|
|
11
|
-
ContainerAttachResponse,
|
|
12
|
-
ContainerExecRequest,
|
|
13
|
-
ContainerExecRequestTerminalSize,
|
|
14
|
-
ContainerExecResponse,
|
|
15
|
-
Logs
|
|
16
|
-
} from "../models/mappers";
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerinstance_examples.d.ts","sourceRoot":"","sources":["../../test/containerinstance_examples.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
|
|
10
|
+
import * as assert from "assert";
|
|
11
|
+
import { ClientSecretCredential } from "@azure/identity";
|
|
12
|
+
import { ContainerInstanceManagementClient } from "../src/containerInstanceManagementClient";
|
|
13
|
+
const recorderEnvSetup = {
|
|
14
|
+
replaceableVariables: {
|
|
15
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
16
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
17
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
18
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
19
|
+
},
|
|
20
|
+
customizationsOnRecordings: [
|
|
21
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
22
|
+
],
|
|
23
|
+
queryParametersToSkip: []
|
|
24
|
+
};
|
|
25
|
+
export const testPollingOptions = {
|
|
26
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
27
|
+
};
|
|
28
|
+
describe("ContainerInstance test", () => {
|
|
29
|
+
let recorder;
|
|
30
|
+
let subscriptionId;
|
|
31
|
+
let client;
|
|
32
|
+
let location;
|
|
33
|
+
let resourceGroup;
|
|
34
|
+
let containerGroupName;
|
|
35
|
+
let containerInstanceName;
|
|
36
|
+
beforeEach(function () {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
recorder = record(this, recorderEnvSetup);
|
|
39
|
+
subscriptionId = env.SUBSCRIPTION_ID;
|
|
40
|
+
// This is an example of how the environment variables are used
|
|
41
|
+
const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
|
|
42
|
+
client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
43
|
+
location = "eastus";
|
|
44
|
+
resourceGroup = "myjstest";
|
|
45
|
+
containerGroupName = "mycontainerGroupxxx";
|
|
46
|
+
containerInstanceName = "my-containerinstancexx";
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
afterEach(function () {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
yield recorder.stop();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
it("containerGroups create test", function () {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const res = yield client.containerGroups.beginCreateOrUpdateAndWait(resourceGroup, containerGroupName, {
|
|
57
|
+
location: location,
|
|
58
|
+
identity: {
|
|
59
|
+
type: "SystemAssigned"
|
|
60
|
+
},
|
|
61
|
+
containers: [
|
|
62
|
+
{
|
|
63
|
+
name: containerInstanceName,
|
|
64
|
+
command: [],
|
|
65
|
+
environmentVariables: [],
|
|
66
|
+
image: "nginx",
|
|
67
|
+
ports: [
|
|
68
|
+
{
|
|
69
|
+
port: 80
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
resources: {
|
|
73
|
+
requests: {
|
|
74
|
+
cpu: 1,
|
|
75
|
+
memoryInGB: 1.5,
|
|
76
|
+
gpu: {
|
|
77
|
+
count: 1,
|
|
78
|
+
sku: "K80"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
volumeMounts: [
|
|
83
|
+
{
|
|
84
|
+
name: "empty-volume",
|
|
85
|
+
mountPath: "mnt/mydir"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
diagnostics: {
|
|
91
|
+
logAnalytics: {
|
|
92
|
+
workspaceId: "workspaceid",
|
|
93
|
+
workspaceKey: "workspaceKey"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
osType: "Linux",
|
|
97
|
+
restartPolicy: "OnFailure",
|
|
98
|
+
volumes: [
|
|
99
|
+
{
|
|
100
|
+
name: "empty-volume",
|
|
101
|
+
emptyDir: {}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}, testPollingOptions);
|
|
105
|
+
assert.equal(res.name, containerGroupName);
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
it("containerGroups get test", function () {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const res = yield client.containerGroups.get(resourceGroup, containerGroupName);
|
|
111
|
+
assert.equal(res.name, containerGroupName);
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
it("containerGroups list test", function () {
|
|
115
|
+
var e_1, _a;
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const resArray = new Array();
|
|
118
|
+
try {
|
|
119
|
+
for (var _b = __asyncValues(client.containerGroups.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
120
|
+
let item = _c.value;
|
|
121
|
+
resArray.push(item);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
125
|
+
finally {
|
|
126
|
+
try {
|
|
127
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
128
|
+
}
|
|
129
|
+
finally { if (e_1) throw e_1.error; }
|
|
130
|
+
}
|
|
131
|
+
assert.equal(resArray.length, 1);
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
it("containerGroups delete test", function () {
|
|
135
|
+
var e_2, _a;
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const res = yield client.containerGroups.beginDeleteAndWait(resourceGroup, containerGroupName);
|
|
138
|
+
const resArray = new Array();
|
|
139
|
+
try {
|
|
140
|
+
for (var _b = __asyncValues(client.containerGroups.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
141
|
+
let item = _c.value;
|
|
142
|
+
resArray.push(item);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
146
|
+
finally {
|
|
147
|
+
try {
|
|
148
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
149
|
+
}
|
|
150
|
+
finally { if (e_2) throw e_2.error; }
|
|
151
|
+
}
|
|
152
|
+
assert.equal(resArray.length, 0);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
//# sourceMappingURL=containerinstance_examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerinstance_examples.js","sourceRoot":"","sources":["../../test/containerinstance_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,MAAM,EAIN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAC;AAE7F,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAGF,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAyC,CAAC;IAC9C,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,kBAA0B,CAAC;IAC/B,IAAI,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