@azure/arm-containerinstance 8.0.1-alpha.20220331.1 → 8.1.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 +10 -11
- package/README.md +11 -0
- package/dist/index.js +107 -43
- 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.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +102 -0
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsGetSample.js +49 -0
- package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsListSample.js +43 -0
- package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +31 -0
- package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsStartSample.js +31 -0
- package/dist-esm/samples-dev/containerGroupsStartSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsStopSample.js +31 -0
- package/dist-esm/samples-dev/containerGroupsStopSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +34 -0
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/containersAttachSample.d.ts +2 -0
- package/dist-esm/samples-dev/containersAttachSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containersAttachSample.js +32 -0
- package/dist-esm/samples-dev/containersAttachSample.js.map +1 -0
- package/dist-esm/samples-dev/containersExecuteCommandSample.d.ts +2 -0
- package/dist-esm/samples-dev/containersExecuteCommandSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +36 -0
- package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +1 -0
- package/dist-esm/samples-dev/containersListLogsSample.d.ts +2 -0
- package/dist-esm/samples-dev/containersListLogsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containersListLogsSample.js +34 -0
- package/dist-esm/samples-dev/containersListLogsSample.js.map +1 -0
- package/dist-esm/samples-dev/locationListCachedImagesSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationListCachedImagesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +44 -0
- package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -0
- package/dist-esm/samples-dev/locationListCapabilitiesSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationListCapabilitiesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +44 -0
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -0
- package/dist-esm/samples-dev/locationListUsageSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationListUsageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationListUsageSample.js +44 -0
- package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.js +4 -3
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +22 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +6 -0
- 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.map +1 -1
- package/dist-esm/src/operations/containerGroups.js +12 -4
- package/dist-esm/src/operations/containerGroups.js.map +1 -1
- package/package.json +25 -9
- package/review/arm-containerinstance.api.md +18 -0
- package/rollup.config.js +6 -72
- package/src/containerInstanceManagementClient.ts +4 -3
- package/src/models/index.ts +24 -0
- package/src/models/mappers.ts +6 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/containerGroups.ts +12 -4
- package/tsconfig.json +19 -5
- package/types/arm-containerinstance.d.ts +24 -0
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 8.0
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
|
|
3
|
+
## 8.1.0 (2022-04-06)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Added Type Alias AutoGeneratedDomainNameLabelScope
|
|
8
|
+
- Interface IpAddress has a new optional parameter dnsNameLabelReusePolicy
|
|
9
|
+
- Added Enum KnownAutoGeneratedDomainNameLabelScope
|
|
10
|
+
|
|
11
|
+
|
|
13
12
|
## 8.0.0 (2022-01-04)
|
|
14
13
|
|
|
15
14
|
The package of @azure/arm-containerinstance is using our next generation design principles since version 8.0.0, which contains breaking changes.
|
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|
|
16
16
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
20
|
+
|
|
19
21
|
### Prerequisites
|
|
20
22
|
|
|
21
23
|
- An [Azure subscription][azure_sub].
|
|
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|
|
49
51
|
```javascript
|
|
50
52
|
const { ContainerInstanceManagementClient } = require("@azure/arm-containerinstance");
|
|
51
53
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
|
+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
|
+
|
|
52
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
57
|
const client = new ContainerInstanceManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
|
|
59
|
+
// For client-side applications running in the browser, use this code instead:
|
|
60
|
+
// const credential = new InteractiveBrowserCredential({
|
|
61
|
+
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
+
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
+
// });
|
|
64
|
+
// const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,26 @@ var coreClient = require('@azure/core-client');
|
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var coreLro = require('@azure/core-lro');
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
9
29
|
/*
|
|
10
30
|
* Copyright (c) Microsoft Corporation.
|
|
11
31
|
* Licensed under the MIT License.
|
|
@@ -13,44 +33,73 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
33
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
34
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
35
|
*/
|
|
36
|
+
/** Known values of {@link ContainerNetworkProtocol} that the service accepts. */
|
|
37
|
+
exports.KnownContainerNetworkProtocol = void 0;
|
|
16
38
|
(function (KnownContainerNetworkProtocol) {
|
|
17
39
|
KnownContainerNetworkProtocol["TCP"] = "TCP";
|
|
18
40
|
KnownContainerNetworkProtocol["UDP"] = "UDP";
|
|
19
41
|
})(exports.KnownContainerNetworkProtocol || (exports.KnownContainerNetworkProtocol = {}));
|
|
42
|
+
/** Known values of {@link GpuSku} that the service accepts. */
|
|
43
|
+
exports.KnownGpuSku = void 0;
|
|
20
44
|
(function (KnownGpuSku) {
|
|
21
45
|
KnownGpuSku["K80"] = "K80";
|
|
22
46
|
KnownGpuSku["P100"] = "P100";
|
|
23
47
|
KnownGpuSku["V100"] = "V100";
|
|
24
48
|
})(exports.KnownGpuSku || (exports.KnownGpuSku = {}));
|
|
49
|
+
/** Known values of {@link Scheme} that the service accepts. */
|
|
50
|
+
exports.KnownScheme = void 0;
|
|
25
51
|
(function (KnownScheme) {
|
|
26
52
|
KnownScheme["Http"] = "http";
|
|
27
53
|
KnownScheme["Https"] = "https";
|
|
28
54
|
})(exports.KnownScheme || (exports.KnownScheme = {}));
|
|
55
|
+
/** Known values of {@link ContainerGroupRestartPolicy} that the service accepts. */
|
|
56
|
+
exports.KnownContainerGroupRestartPolicy = void 0;
|
|
29
57
|
(function (KnownContainerGroupRestartPolicy) {
|
|
30
58
|
KnownContainerGroupRestartPolicy["Always"] = "Always";
|
|
31
59
|
KnownContainerGroupRestartPolicy["OnFailure"] = "OnFailure";
|
|
32
60
|
KnownContainerGroupRestartPolicy["Never"] = "Never";
|
|
33
61
|
})(exports.KnownContainerGroupRestartPolicy || (exports.KnownContainerGroupRestartPolicy = {}));
|
|
62
|
+
/** Known values of {@link ContainerGroupNetworkProtocol} that the service accepts. */
|
|
63
|
+
exports.KnownContainerGroupNetworkProtocol = void 0;
|
|
34
64
|
(function (KnownContainerGroupNetworkProtocol) {
|
|
35
65
|
KnownContainerGroupNetworkProtocol["TCP"] = "TCP";
|
|
36
66
|
KnownContainerGroupNetworkProtocol["UDP"] = "UDP";
|
|
37
67
|
})(exports.KnownContainerGroupNetworkProtocol || (exports.KnownContainerGroupNetworkProtocol = {}));
|
|
68
|
+
/** Known values of {@link ContainerGroupIpAddressType} that the service accepts. */
|
|
69
|
+
exports.KnownContainerGroupIpAddressType = void 0;
|
|
38
70
|
(function (KnownContainerGroupIpAddressType) {
|
|
39
71
|
KnownContainerGroupIpAddressType["Public"] = "Public";
|
|
40
72
|
KnownContainerGroupIpAddressType["Private"] = "Private";
|
|
41
73
|
})(exports.KnownContainerGroupIpAddressType || (exports.KnownContainerGroupIpAddressType = {}));
|
|
74
|
+
/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */
|
|
75
|
+
exports.KnownAutoGeneratedDomainNameLabelScope = void 0;
|
|
76
|
+
(function (KnownAutoGeneratedDomainNameLabelScope) {
|
|
77
|
+
KnownAutoGeneratedDomainNameLabelScope["Unsecure"] = "Unsecure";
|
|
78
|
+
KnownAutoGeneratedDomainNameLabelScope["TenantReuse"] = "TenantReuse";
|
|
79
|
+
KnownAutoGeneratedDomainNameLabelScope["SubscriptionReuse"] = "SubscriptionReuse";
|
|
80
|
+
KnownAutoGeneratedDomainNameLabelScope["ResourceGroupReuse"] = "ResourceGroupReuse";
|
|
81
|
+
KnownAutoGeneratedDomainNameLabelScope["Noreuse"] = "Noreuse";
|
|
82
|
+
})(exports.KnownAutoGeneratedDomainNameLabelScope || (exports.KnownAutoGeneratedDomainNameLabelScope = {}));
|
|
83
|
+
/** Known values of {@link OperatingSystemTypes} that the service accepts. */
|
|
84
|
+
exports.KnownOperatingSystemTypes = void 0;
|
|
42
85
|
(function (KnownOperatingSystemTypes) {
|
|
43
86
|
KnownOperatingSystemTypes["Windows"] = "Windows";
|
|
44
87
|
KnownOperatingSystemTypes["Linux"] = "Linux";
|
|
45
88
|
})(exports.KnownOperatingSystemTypes || (exports.KnownOperatingSystemTypes = {}));
|
|
89
|
+
/** Known values of {@link LogAnalyticsLogType} that the service accepts. */
|
|
90
|
+
exports.KnownLogAnalyticsLogType = void 0;
|
|
46
91
|
(function (KnownLogAnalyticsLogType) {
|
|
47
92
|
KnownLogAnalyticsLogType["ContainerInsights"] = "ContainerInsights";
|
|
48
93
|
KnownLogAnalyticsLogType["ContainerInstanceLogs"] = "ContainerInstanceLogs";
|
|
49
94
|
})(exports.KnownLogAnalyticsLogType || (exports.KnownLogAnalyticsLogType = {}));
|
|
95
|
+
/** Known values of {@link ContainerGroupSku} that the service accepts. */
|
|
96
|
+
exports.KnownContainerGroupSku = void 0;
|
|
50
97
|
(function (KnownContainerGroupSku) {
|
|
51
98
|
KnownContainerGroupSku["Standard"] = "Standard";
|
|
52
99
|
KnownContainerGroupSku["Dedicated"] = "Dedicated";
|
|
53
100
|
})(exports.KnownContainerGroupSku || (exports.KnownContainerGroupSku = {}));
|
|
101
|
+
/** Known values of {@link ContainerInstanceOperationsOrigin} that the service accepts. */
|
|
102
|
+
exports.KnownContainerInstanceOperationsOrigin = void 0;
|
|
54
103
|
(function (KnownContainerInstanceOperationsOrigin) {
|
|
55
104
|
KnownContainerInstanceOperationsOrigin["User"] = "User";
|
|
56
105
|
KnownContainerInstanceOperationsOrigin["System"] = "System";
|
|
@@ -772,6 +821,12 @@ const IpAddress = {
|
|
|
772
821
|
name: "String"
|
|
773
822
|
}
|
|
774
823
|
},
|
|
824
|
+
dnsNameLabelReusePolicy: {
|
|
825
|
+
serializedName: "dnsNameLabelReusePolicy",
|
|
826
|
+
type: {
|
|
827
|
+
name: "String"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
775
830
|
fqdn: {
|
|
776
831
|
serializedName: "fqdn",
|
|
777
832
|
readOnly: true,
|
|
@@ -1924,7 +1979,7 @@ const subscriptionId = {
|
|
|
1924
1979
|
const apiVersion = {
|
|
1925
1980
|
parameterPath: "apiVersion",
|
|
1926
1981
|
mapper: {
|
|
1927
|
-
defaultValue: "2021-
|
|
1982
|
+
defaultValue: "2021-10-01",
|
|
1928
1983
|
isConstant: true,
|
|
1929
1984
|
serializedName: "api-version",
|
|
1930
1985
|
type: {
|
|
@@ -2178,7 +2233,7 @@ class ContainerGroupsImpl {
|
|
|
2178
2233
|
* @param options The options parameters.
|
|
2179
2234
|
*/
|
|
2180
2235
|
_list(options) {
|
|
2181
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2236
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2182
2237
|
}
|
|
2183
2238
|
/**
|
|
2184
2239
|
* Get a list of container groups in a specified subscription and resource group. This operation
|
|
@@ -2233,10 +2288,12 @@ class ContainerGroupsImpl {
|
|
|
2233
2288
|
};
|
|
2234
2289
|
});
|
|
2235
2290
|
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, containerGroup, options }, createOrUpdateOperationSpec);
|
|
2236
|
-
|
|
2291
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2237
2292
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2238
2293
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2239
2294
|
});
|
|
2295
|
+
yield poller.poll();
|
|
2296
|
+
return poller;
|
|
2240
2297
|
});
|
|
2241
2298
|
}
|
|
2242
2299
|
/**
|
|
@@ -2294,10 +2351,12 @@ class ContainerGroupsImpl {
|
|
|
2294
2351
|
};
|
|
2295
2352
|
});
|
|
2296
2353
|
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, deleteOperationSpec);
|
|
2297
|
-
|
|
2354
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2298
2355
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2299
2356
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2300
2357
|
});
|
|
2358
|
+
yield poller.poll();
|
|
2359
|
+
return poller;
|
|
2301
2360
|
});
|
|
2302
2361
|
}
|
|
2303
2362
|
/**
|
|
@@ -2345,10 +2404,12 @@ class ContainerGroupsImpl {
|
|
|
2345
2404
|
};
|
|
2346
2405
|
});
|
|
2347
2406
|
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, restartOperationSpec);
|
|
2348
|
-
|
|
2407
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2349
2408
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2350
2409
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2351
2410
|
});
|
|
2411
|
+
yield poller.poll();
|
|
2412
|
+
return poller;
|
|
2352
2413
|
});
|
|
2353
2414
|
}
|
|
2354
2415
|
/**
|
|
@@ -2406,10 +2467,12 @@ class ContainerGroupsImpl {
|
|
|
2406
2467
|
};
|
|
2407
2468
|
});
|
|
2408
2469
|
const lro = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, startOperationSpec);
|
|
2409
|
-
|
|
2470
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2410
2471
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2411
2472
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2412
2473
|
});
|
|
2474
|
+
yield poller.poll();
|
|
2475
|
+
return poller;
|
|
2413
2476
|
});
|
|
2414
2477
|
}
|
|
2415
2478
|
/**
|
|
@@ -2441,7 +2504,7 @@ class ContainerGroupsImpl {
|
|
|
2441
2504
|
* @param options The options parameters.
|
|
2442
2505
|
*/
|
|
2443
2506
|
_listNext(nextLink, options) {
|
|
2444
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2507
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
2445
2508
|
}
|
|
2446
2509
|
/**
|
|
2447
2510
|
* ListByResourceGroupNext
|
|
@@ -2454,8 +2517,8 @@ class ContainerGroupsImpl {
|
|
|
2454
2517
|
}
|
|
2455
2518
|
}
|
|
2456
2519
|
// Operation Specifications
|
|
2457
|
-
const serializer =
|
|
2458
|
-
const listOperationSpec = {
|
|
2520
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2521
|
+
const listOperationSpec$1 = {
|
|
2459
2522
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
2460
2523
|
httpMethod: "GET",
|
|
2461
2524
|
responses: {
|
|
@@ -2469,7 +2532,7 @@ const listOperationSpec = {
|
|
|
2469
2532
|
queryParameters: [apiVersion],
|
|
2470
2533
|
urlParameters: [$host, subscriptionId],
|
|
2471
2534
|
headerParameters: [accept],
|
|
2472
|
-
serializer
|
|
2535
|
+
serializer: serializer$3
|
|
2473
2536
|
};
|
|
2474
2537
|
const listByResourceGroupOperationSpec = {
|
|
2475
2538
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
|
|
@@ -2489,7 +2552,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
2489
2552
|
resourceGroupName
|
|
2490
2553
|
],
|
|
2491
2554
|
headerParameters: [accept],
|
|
2492
|
-
serializer
|
|
2555
|
+
serializer: serializer$3
|
|
2493
2556
|
};
|
|
2494
2557
|
const getOperationSpec = {
|
|
2495
2558
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
@@ -2510,7 +2573,7 @@ const getOperationSpec = {
|
|
|
2510
2573
|
containerGroupName
|
|
2511
2574
|
],
|
|
2512
2575
|
headerParameters: [accept],
|
|
2513
|
-
serializer
|
|
2576
|
+
serializer: serializer$3
|
|
2514
2577
|
};
|
|
2515
2578
|
const createOrUpdateOperationSpec = {
|
|
2516
2579
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
@@ -2542,7 +2605,7 @@ const createOrUpdateOperationSpec = {
|
|
|
2542
2605
|
],
|
|
2543
2606
|
headerParameters: [accept, contentType],
|
|
2544
2607
|
mediaType: "json",
|
|
2545
|
-
serializer
|
|
2608
|
+
serializer: serializer$3
|
|
2546
2609
|
};
|
|
2547
2610
|
const updateOperationSpec = {
|
|
2548
2611
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
@@ -2565,7 +2628,7 @@ const updateOperationSpec = {
|
|
|
2565
2628
|
],
|
|
2566
2629
|
headerParameters: [accept, contentType],
|
|
2567
2630
|
mediaType: "json",
|
|
2568
|
-
serializer
|
|
2631
|
+
serializer: serializer$3
|
|
2569
2632
|
};
|
|
2570
2633
|
const deleteOperationSpec = {
|
|
2571
2634
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
|
|
@@ -2595,7 +2658,7 @@ const deleteOperationSpec = {
|
|
|
2595
2658
|
containerGroupName
|
|
2596
2659
|
],
|
|
2597
2660
|
headerParameters: [accept],
|
|
2598
|
-
serializer
|
|
2661
|
+
serializer: serializer$3
|
|
2599
2662
|
};
|
|
2600
2663
|
const restartOperationSpec = {
|
|
2601
2664
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
|
|
@@ -2617,7 +2680,7 @@ const restartOperationSpec = {
|
|
|
2617
2680
|
containerGroupName
|
|
2618
2681
|
],
|
|
2619
2682
|
headerParameters: [accept],
|
|
2620
|
-
serializer
|
|
2683
|
+
serializer: serializer$3
|
|
2621
2684
|
};
|
|
2622
2685
|
const stopOperationSpec = {
|
|
2623
2686
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
|
|
@@ -2636,7 +2699,7 @@ const stopOperationSpec = {
|
|
|
2636
2699
|
containerGroupName
|
|
2637
2700
|
],
|
|
2638
2701
|
headerParameters: [accept],
|
|
2639
|
-
serializer
|
|
2702
|
+
serializer: serializer$3
|
|
2640
2703
|
};
|
|
2641
2704
|
const startOperationSpec = {
|
|
2642
2705
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
|
|
@@ -2658,7 +2721,7 @@ const startOperationSpec = {
|
|
|
2658
2721
|
containerGroupName
|
|
2659
2722
|
],
|
|
2660
2723
|
headerParameters: [accept],
|
|
2661
|
-
serializer
|
|
2724
|
+
serializer: serializer$3
|
|
2662
2725
|
};
|
|
2663
2726
|
const getOutboundNetworkDependenciesEndpointsOperationSpec = {
|
|
2664
2727
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints",
|
|
@@ -2681,9 +2744,9 @@ const getOutboundNetworkDependenciesEndpointsOperationSpec = {
|
|
|
2681
2744
|
containerGroupName
|
|
2682
2745
|
],
|
|
2683
2746
|
headerParameters: [accept],
|
|
2684
|
-
serializer
|
|
2747
|
+
serializer: serializer$3
|
|
2685
2748
|
};
|
|
2686
|
-
const listNextOperationSpec = {
|
|
2749
|
+
const listNextOperationSpec$1 = {
|
|
2687
2750
|
path: "{nextLink}",
|
|
2688
2751
|
httpMethod: "GET",
|
|
2689
2752
|
responses: {
|
|
@@ -2701,7 +2764,7 @@ const listNextOperationSpec = {
|
|
|
2701
2764
|
nextLink
|
|
2702
2765
|
],
|
|
2703
2766
|
headerParameters: [accept],
|
|
2704
|
-
serializer
|
|
2767
|
+
serializer: serializer$3
|
|
2705
2768
|
};
|
|
2706
2769
|
const listByResourceGroupNextOperationSpec = {
|
|
2707
2770
|
path: "{nextLink}",
|
|
@@ -2722,7 +2785,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2722
2785
|
nextLink
|
|
2723
2786
|
],
|
|
2724
2787
|
headerParameters: [accept],
|
|
2725
|
-
serializer
|
|
2788
|
+
serializer: serializer$3
|
|
2726
2789
|
};
|
|
2727
2790
|
|
|
2728
2791
|
/*
|
|
@@ -2795,7 +2858,7 @@ class OperationsImpl {
|
|
|
2795
2858
|
* @param options The options parameters.
|
|
2796
2859
|
*/
|
|
2797
2860
|
_list(options) {
|
|
2798
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
2861
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2799
2862
|
}
|
|
2800
2863
|
/**
|
|
2801
2864
|
* ListNext
|
|
@@ -2803,12 +2866,12 @@ class OperationsImpl {
|
|
|
2803
2866
|
* @param options The options parameters.
|
|
2804
2867
|
*/
|
|
2805
2868
|
_listNext(nextLink, options) {
|
|
2806
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
2869
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2807
2870
|
}
|
|
2808
2871
|
}
|
|
2809
2872
|
// Operation Specifications
|
|
2810
|
-
const serializer$
|
|
2811
|
-
const listOperationSpec
|
|
2873
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2874
|
+
const listOperationSpec = {
|
|
2812
2875
|
path: "/providers/Microsoft.ContainerInstance/operations",
|
|
2813
2876
|
httpMethod: "GET",
|
|
2814
2877
|
responses: {
|
|
@@ -2822,9 +2885,9 @@ const listOperationSpec$1 = {
|
|
|
2822
2885
|
queryParameters: [apiVersion],
|
|
2823
2886
|
urlParameters: [$host],
|
|
2824
2887
|
headerParameters: [accept],
|
|
2825
|
-
serializer: serializer$
|
|
2888
|
+
serializer: serializer$2
|
|
2826
2889
|
};
|
|
2827
|
-
const listNextOperationSpec
|
|
2890
|
+
const listNextOperationSpec = {
|
|
2828
2891
|
path: "{nextLink}",
|
|
2829
2892
|
httpMethod: "GET",
|
|
2830
2893
|
responses: {
|
|
@@ -2838,7 +2901,7 @@ const listNextOperationSpec$1 = {
|
|
|
2838
2901
|
queryParameters: [apiVersion],
|
|
2839
2902
|
urlParameters: [$host, nextLink],
|
|
2840
2903
|
headerParameters: [accept],
|
|
2841
|
-
serializer: serializer$
|
|
2904
|
+
serializer: serializer$2
|
|
2842
2905
|
};
|
|
2843
2906
|
|
|
2844
2907
|
/*
|
|
@@ -3043,7 +3106,7 @@ class LocationImpl {
|
|
|
3043
3106
|
}
|
|
3044
3107
|
}
|
|
3045
3108
|
// Operation Specifications
|
|
3046
|
-
const serializer$
|
|
3109
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3047
3110
|
const listUsageOperationSpec = {
|
|
3048
3111
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
|
|
3049
3112
|
httpMethod: "GET",
|
|
@@ -3062,7 +3125,7 @@ const listUsageOperationSpec = {
|
|
|
3062
3125
|
location
|
|
3063
3126
|
],
|
|
3064
3127
|
headerParameters: [accept],
|
|
3065
|
-
serializer: serializer$
|
|
3128
|
+
serializer: serializer$1
|
|
3066
3129
|
};
|
|
3067
3130
|
const listCachedImagesOperationSpec = {
|
|
3068
3131
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
|
|
@@ -3082,7 +3145,7 @@ const listCachedImagesOperationSpec = {
|
|
|
3082
3145
|
location
|
|
3083
3146
|
],
|
|
3084
3147
|
headerParameters: [accept],
|
|
3085
|
-
serializer: serializer$
|
|
3148
|
+
serializer: serializer$1
|
|
3086
3149
|
};
|
|
3087
3150
|
const listCapabilitiesOperationSpec = {
|
|
3088
3151
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
|
|
@@ -3102,7 +3165,7 @@ const listCapabilitiesOperationSpec = {
|
|
|
3102
3165
|
location
|
|
3103
3166
|
],
|
|
3104
3167
|
headerParameters: [accept],
|
|
3105
|
-
serializer: serializer$
|
|
3168
|
+
serializer: serializer$1
|
|
3106
3169
|
};
|
|
3107
3170
|
const listCachedImagesNextOperationSpec = {
|
|
3108
3171
|
path: "{nextLink}",
|
|
@@ -3123,7 +3186,7 @@ const listCachedImagesNextOperationSpec = {
|
|
|
3123
3186
|
location
|
|
3124
3187
|
],
|
|
3125
3188
|
headerParameters: [accept],
|
|
3126
|
-
serializer: serializer$
|
|
3189
|
+
serializer: serializer$1
|
|
3127
3190
|
};
|
|
3128
3191
|
const listCapabilitiesNextOperationSpec = {
|
|
3129
3192
|
path: "{nextLink}",
|
|
@@ -3144,7 +3207,7 @@ const listCapabilitiesNextOperationSpec = {
|
|
|
3144
3207
|
location
|
|
3145
3208
|
],
|
|
3146
3209
|
headerParameters: [accept],
|
|
3147
|
-
serializer: serializer$
|
|
3210
|
+
serializer: serializer$1
|
|
3148
3211
|
};
|
|
3149
3212
|
|
|
3150
3213
|
/*
|
|
@@ -3204,7 +3267,7 @@ class ContainersImpl {
|
|
|
3204
3267
|
}
|
|
3205
3268
|
}
|
|
3206
3269
|
// Operation Specifications
|
|
3207
|
-
const serializer
|
|
3270
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3208
3271
|
const listLogsOperationSpec = {
|
|
3209
3272
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
|
|
3210
3273
|
httpMethod: "GET",
|
|
@@ -3229,7 +3292,7 @@ const listLogsOperationSpec = {
|
|
|
3229
3292
|
containerName
|
|
3230
3293
|
],
|
|
3231
3294
|
headerParameters: [accept],
|
|
3232
|
-
serializer
|
|
3295
|
+
serializer
|
|
3233
3296
|
};
|
|
3234
3297
|
const executeCommandOperationSpec = {
|
|
3235
3298
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
|
|
@@ -3253,7 +3316,7 @@ const executeCommandOperationSpec = {
|
|
|
3253
3316
|
],
|
|
3254
3317
|
headerParameters: [accept, contentType],
|
|
3255
3318
|
mediaType: "json",
|
|
3256
|
-
serializer
|
|
3319
|
+
serializer
|
|
3257
3320
|
};
|
|
3258
3321
|
const attachOperationSpec = {
|
|
3259
3322
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
|
|
@@ -3275,7 +3338,7 @@ const attachOperationSpec = {
|
|
|
3275
3338
|
containerName
|
|
3276
3339
|
],
|
|
3277
3340
|
headerParameters: [accept],
|
|
3278
|
-
serializer
|
|
3341
|
+
serializer
|
|
3279
3342
|
};
|
|
3280
3343
|
|
|
3281
3344
|
/*
|
|
@@ -3285,7 +3348,7 @@ const attachOperationSpec = {
|
|
|
3285
3348
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3286
3349
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3287
3350
|
*/
|
|
3288
|
-
class ContainerInstanceManagementClient extends
|
|
3351
|
+
class ContainerInstanceManagementClient extends coreClient__namespace.ServiceClient {
|
|
3289
3352
|
/**
|
|
3290
3353
|
* Initializes a new instance of the ContainerInstanceManagementClient class.
|
|
3291
3354
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -3294,6 +3357,7 @@ class ContainerInstanceManagementClient extends coreClient.ServiceClient {
|
|
|
3294
3357
|
* @param options The parameter options
|
|
3295
3358
|
*/
|
|
3296
3359
|
constructor(credentials, subscriptionId, options) {
|
|
3360
|
+
var _a, _b;
|
|
3297
3361
|
if (credentials === undefined) {
|
|
3298
3362
|
throw new Error("'credentials' cannot be null");
|
|
3299
3363
|
}
|
|
@@ -3308,7 +3372,7 @@ class ContainerInstanceManagementClient extends coreClient.ServiceClient {
|
|
|
3308
3372
|
requestContentType: "application/json; charset=utf-8",
|
|
3309
3373
|
credential: credentials
|
|
3310
3374
|
};
|
|
3311
|
-
const packageDetails = `azsdk-js-arm-containerinstance/8.
|
|
3375
|
+
const packageDetails = `azsdk-js-arm-containerinstance/8.1.0`;
|
|
3312
3376
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3313
3377
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3314
3378
|
: `${packageDetails}`;
|
|
@@ -3317,13 +3381,13 @@ class ContainerInstanceManagementClient extends coreClient.ServiceClient {
|
|
|
3317
3381
|
}
|
|
3318
3382
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3319
3383
|
userAgentPrefix
|
|
3320
|
-
}, baseUri: options.endpoint
|
|
3384
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3321
3385
|
super(optionsWithDefaults);
|
|
3322
3386
|
// Parameter assignments
|
|
3323
3387
|
this.subscriptionId = subscriptionId;
|
|
3324
3388
|
// Assigning values to Constant parameters
|
|
3325
3389
|
this.$host = options.$host || "https://management.azure.com";
|
|
3326
|
-
this.apiVersion = options.apiVersion || "2021-
|
|
3390
|
+
this.apiVersion = options.apiVersion || "2021-10-01";
|
|
3327
3391
|
this.containerGroups = new ContainerGroupsImpl(this);
|
|
3328
3392
|
this.operations = new OperationsImpl(this);
|
|
3329
3393
|
this.location = new LocationImpl(this);
|