@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
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 9.1.0-beta.
|
|
3
|
+
## 9.1.0-beta.2 (2023-04-10)
|
|
4
4
|
|
|
5
5
|
**Features**
|
|
6
6
|
|
|
7
|
-
- Added Interface ConfidentialComputeProperties
|
|
8
7
|
- Added Interface DeploymentExtensionSpec
|
|
9
|
-
- Added Type Alias
|
|
10
|
-
- Interface ContainerGroupProperties has a new optional parameter confidentialComputeProperties
|
|
8
|
+
- Added Type Alias IsCustomProvisioningTimeout
|
|
11
9
|
- Interface ContainerGroupProperties has a new optional parameter extensions
|
|
12
|
-
- Interface ContainerGroupProperties has a new optional parameter
|
|
10
|
+
- Interface ContainerGroupProperties has a new optional parameter isCustomProvisioningTimeout
|
|
11
|
+
- Interface ContainerGroupProperties has a new optional parameter provisioningTimeoutInSeconds
|
|
13
12
|
- Interface EncryptionProperties has a new optional parameter identity
|
|
14
|
-
- Added Enum
|
|
15
|
-
- Enum KnownContainerGroupSku has a new value Confidential
|
|
13
|
+
- Added Enum KnownIsCustomProvisioningTimeout
|
|
16
14
|
- Added function getContinuationToken
|
|
17
15
|
|
|
18
16
|
|
package/dist/index.js
CHANGED
|
@@ -93,6 +93,14 @@ exports.KnownScheme = void 0;
|
|
|
93
93
|
/** Https */
|
|
94
94
|
KnownScheme["Https"] = "https";
|
|
95
95
|
})(exports.KnownScheme || (exports.KnownScheme = {}));
|
|
96
|
+
/** Known values of {@link IsCustomProvisioningTimeout} that the service accepts. */
|
|
97
|
+
exports.KnownIsCustomProvisioningTimeout = void 0;
|
|
98
|
+
(function (KnownIsCustomProvisioningTimeout) {
|
|
99
|
+
/** True */
|
|
100
|
+
KnownIsCustomProvisioningTimeout["True"] = "True";
|
|
101
|
+
/** False */
|
|
102
|
+
KnownIsCustomProvisioningTimeout["False"] = "False";
|
|
103
|
+
})(exports.KnownIsCustomProvisioningTimeout || (exports.KnownIsCustomProvisioningTimeout = {}));
|
|
96
104
|
/** Known values of {@link ContainerGroupRestartPolicy} that the service accepts. */
|
|
97
105
|
exports.KnownContainerGroupRestartPolicy = void 0;
|
|
98
106
|
(function (KnownContainerGroupRestartPolicy) {
|
|
@@ -156,17 +164,7 @@ exports.KnownContainerGroupSku = void 0;
|
|
|
156
164
|
KnownContainerGroupSku["Standard"] = "Standard";
|
|
157
165
|
/** Dedicated */
|
|
158
166
|
KnownContainerGroupSku["Dedicated"] = "Dedicated";
|
|
159
|
-
/** Confidential */
|
|
160
|
-
KnownContainerGroupSku["Confidential"] = "Confidential";
|
|
161
167
|
})(exports.KnownContainerGroupSku || (exports.KnownContainerGroupSku = {}));
|
|
162
|
-
/** Known values of {@link ContainerGroupPriority} that the service accepts. */
|
|
163
|
-
exports.KnownContainerGroupPriority = void 0;
|
|
164
|
-
(function (KnownContainerGroupPriority) {
|
|
165
|
-
/** Regular */
|
|
166
|
-
KnownContainerGroupPriority["Regular"] = "Regular";
|
|
167
|
-
/** Spot */
|
|
168
|
-
KnownContainerGroupPriority["Spot"] = "Spot";
|
|
169
|
-
})(exports.KnownContainerGroupPriority || (exports.KnownContainerGroupPriority = {}));
|
|
170
168
|
/** Known values of {@link ContainerInstanceOperationsOrigin} that the service accepts. */
|
|
171
169
|
exports.KnownContainerInstanceOperationsOrigin = void 0;
|
|
172
170
|
(function (KnownContainerInstanceOperationsOrigin) {
|
|
@@ -306,6 +304,19 @@ const ContainerGroupProperties = {
|
|
|
306
304
|
}
|
|
307
305
|
}
|
|
308
306
|
},
|
|
307
|
+
provisioningTimeoutInSeconds: {
|
|
308
|
+
serializedName: "properties.provisioningTimeoutInSeconds",
|
|
309
|
+
type: {
|
|
310
|
+
name: "Number"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
isCustomProvisioningTimeout: {
|
|
314
|
+
serializedName: "properties.isCustomProvisioningTimeout",
|
|
315
|
+
readOnly: true,
|
|
316
|
+
type: {
|
|
317
|
+
name: "String"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
309
320
|
restartPolicy: {
|
|
310
321
|
serializedName: "properties.restartPolicy",
|
|
311
322
|
type: {
|
|
@@ -407,19 +418,6 @@ const ContainerGroupProperties = {
|
|
|
407
418
|
}
|
|
408
419
|
}
|
|
409
420
|
}
|
|
410
|
-
},
|
|
411
|
-
confidentialComputeProperties: {
|
|
412
|
-
serializedName: "properties.confidentialComputeProperties",
|
|
413
|
-
type: {
|
|
414
|
-
name: "Composite",
|
|
415
|
-
className: "ConfidentialComputeProperties"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
priority: {
|
|
419
|
-
serializedName: "properties.priority",
|
|
420
|
-
type: {
|
|
421
|
-
name: "String"
|
|
422
|
-
}
|
|
423
421
|
}
|
|
424
422
|
}
|
|
425
423
|
}
|
|
@@ -1563,20 +1561,6 @@ const DeploymentExtensionSpec = {
|
|
|
1563
1561
|
}
|
|
1564
1562
|
}
|
|
1565
1563
|
};
|
|
1566
|
-
const ConfidentialComputeProperties = {
|
|
1567
|
-
type: {
|
|
1568
|
-
name: "Composite",
|
|
1569
|
-
className: "ConfidentialComputeProperties",
|
|
1570
|
-
modelProperties: {
|
|
1571
|
-
ccePolicy: {
|
|
1572
|
-
serializedName: "ccePolicy",
|
|
1573
|
-
type: {
|
|
1574
|
-
name: "String"
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
1564
|
const CloudError = {
|
|
1581
1565
|
type: {
|
|
1582
1566
|
name: "Composite",
|
|
@@ -2102,7 +2086,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
2102
2086
|
InitContainerDefinition: InitContainerDefinition,
|
|
2103
2087
|
InitContainerPropertiesDefinitionInstanceView: InitContainerPropertiesDefinitionInstanceView,
|
|
2104
2088
|
DeploymentExtensionSpec: DeploymentExtensionSpec,
|
|
2105
|
-
ConfidentialComputeProperties: ConfidentialComputeProperties,
|
|
2106
2089
|
CloudError: CloudError,
|
|
2107
2090
|
CloudErrorBody: CloudErrorBody,
|
|
2108
2091
|
OperationListResult: OperationListResult,
|
|
@@ -2166,7 +2149,7 @@ const subscriptionId = {
|
|
|
2166
2149
|
const apiVersion = {
|
|
2167
2150
|
parameterPath: "apiVersion",
|
|
2168
2151
|
mapper: {
|
|
2169
|
-
defaultValue: "
|
|
2152
|
+
defaultValue: "2023-02-01-preview",
|
|
2170
2153
|
isConstant: true,
|
|
2171
2154
|
serializedName: "api-version",
|
|
2172
2155
|
type: {
|
|
@@ -2294,25 +2277,17 @@ const subnetName = {
|
|
|
2294
2277
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2295
2278
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2296
2279
|
*/
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
sendPollRequest(path) {
|
|
2311
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2312
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
2313
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
2314
|
-
});
|
|
2315
|
-
}
|
|
2280
|
+
function createLroSpec(inputs) {
|
|
2281
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
2282
|
+
return {
|
|
2283
|
+
requestMethod: spec.httpMethod,
|
|
2284
|
+
requestPath: spec.path,
|
|
2285
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2286
|
+
sendPollRequest: (path, options) => {
|
|
2287
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2288
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
2316
2291
|
}
|
|
2317
2292
|
|
|
2318
2293
|
/*
|
|
@@ -2377,17 +2352,24 @@ class ContainerGroupsImpl {
|
|
|
2377
2352
|
}
|
|
2378
2353
|
listPagingAll(options) {
|
|
2379
2354
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2380
|
-
var e_1,
|
|
2355
|
+
var _a, e_1, _b, _c;
|
|
2381
2356
|
try {
|
|
2382
|
-
for (var
|
|
2383
|
-
|
|
2384
|
-
|
|
2357
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2358
|
+
_c = _f.value;
|
|
2359
|
+
_d = false;
|
|
2360
|
+
try {
|
|
2361
|
+
const page = _c;
|
|
2362
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2363
|
+
}
|
|
2364
|
+
finally {
|
|
2365
|
+
_d = true;
|
|
2366
|
+
}
|
|
2385
2367
|
}
|
|
2386
2368
|
}
|
|
2387
2369
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2388
2370
|
finally {
|
|
2389
2371
|
try {
|
|
2390
|
-
if (
|
|
2372
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2391
2373
|
}
|
|
2392
2374
|
finally { if (e_1) throw e_1.error; }
|
|
2393
2375
|
}
|
|
@@ -2439,17 +2421,24 @@ class ContainerGroupsImpl {
|
|
|
2439
2421
|
}
|
|
2440
2422
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2441
2423
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2442
|
-
var e_2,
|
|
2424
|
+
var _a, e_2, _b, _c;
|
|
2443
2425
|
try {
|
|
2444
|
-
for (var
|
|
2445
|
-
|
|
2446
|
-
|
|
2426
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2427
|
+
_c = _f.value;
|
|
2428
|
+
_d = false;
|
|
2429
|
+
try {
|
|
2430
|
+
const page = _c;
|
|
2431
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2432
|
+
}
|
|
2433
|
+
finally {
|
|
2434
|
+
_d = true;
|
|
2435
|
+
}
|
|
2447
2436
|
}
|
|
2448
2437
|
}
|
|
2449
2438
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2450
2439
|
finally {
|
|
2451
2440
|
try {
|
|
2452
|
-
if (
|
|
2441
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2453
2442
|
}
|
|
2454
2443
|
finally { if (e_2) throw e_2.error; }
|
|
2455
2444
|
}
|
|
@@ -2497,7 +2486,7 @@ class ContainerGroupsImpl {
|
|
|
2497
2486
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2498
2487
|
return this.client.sendOperationRequest(args, spec);
|
|
2499
2488
|
});
|
|
2500
|
-
const
|
|
2489
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2501
2490
|
var _a;
|
|
2502
2491
|
let currentRawResponse = undefined;
|
|
2503
2492
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2516,9 +2505,13 @@ class ContainerGroupsImpl {
|
|
|
2516
2505
|
}
|
|
2517
2506
|
};
|
|
2518
2507
|
});
|
|
2519
|
-
const lro =
|
|
2520
|
-
|
|
2521
|
-
|
|
2508
|
+
const lro = createLroSpec({
|
|
2509
|
+
sendOperationFn,
|
|
2510
|
+
args: { resourceGroupName, containerGroupName, containerGroup, options },
|
|
2511
|
+
spec: createOrUpdateOperationSpec
|
|
2512
|
+
});
|
|
2513
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2514
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2522
2515
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2523
2516
|
});
|
|
2524
2517
|
yield poller.poll();
|
|
@@ -2560,7 +2553,7 @@ class ContainerGroupsImpl {
|
|
|
2560
2553
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2561
2554
|
return this.client.sendOperationRequest(args, spec);
|
|
2562
2555
|
});
|
|
2563
|
-
const
|
|
2556
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2564
2557
|
var _a;
|
|
2565
2558
|
let currentRawResponse = undefined;
|
|
2566
2559
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2579,9 +2572,13 @@ class ContainerGroupsImpl {
|
|
|
2579
2572
|
}
|
|
2580
2573
|
};
|
|
2581
2574
|
});
|
|
2582
|
-
const lro =
|
|
2583
|
-
|
|
2584
|
-
|
|
2575
|
+
const lro = createLroSpec({
|
|
2576
|
+
sendOperationFn,
|
|
2577
|
+
args: { resourceGroupName, containerGroupName, options },
|
|
2578
|
+
spec: deleteOperationSpec$1
|
|
2579
|
+
});
|
|
2580
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2581
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2585
2582
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2586
2583
|
});
|
|
2587
2584
|
yield poller.poll();
|
|
@@ -2613,7 +2610,7 @@ class ContainerGroupsImpl {
|
|
|
2613
2610
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2614
2611
|
return this.client.sendOperationRequest(args, spec);
|
|
2615
2612
|
});
|
|
2616
|
-
const
|
|
2613
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2617
2614
|
var _a;
|
|
2618
2615
|
let currentRawResponse = undefined;
|
|
2619
2616
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2632,9 +2629,13 @@ class ContainerGroupsImpl {
|
|
|
2632
2629
|
}
|
|
2633
2630
|
};
|
|
2634
2631
|
});
|
|
2635
|
-
const lro =
|
|
2636
|
-
|
|
2637
|
-
|
|
2632
|
+
const lro = createLroSpec({
|
|
2633
|
+
sendOperationFn,
|
|
2634
|
+
args: { resourceGroupName, containerGroupName, options },
|
|
2635
|
+
spec: restartOperationSpec
|
|
2636
|
+
});
|
|
2637
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2638
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2638
2639
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2639
2640
|
});
|
|
2640
2641
|
yield poller.poll();
|
|
@@ -2676,7 +2677,7 @@ class ContainerGroupsImpl {
|
|
|
2676
2677
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2677
2678
|
return this.client.sendOperationRequest(args, spec);
|
|
2678
2679
|
});
|
|
2679
|
-
const
|
|
2680
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2680
2681
|
var _a;
|
|
2681
2682
|
let currentRawResponse = undefined;
|
|
2682
2683
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2695,9 +2696,13 @@ class ContainerGroupsImpl {
|
|
|
2695
2696
|
}
|
|
2696
2697
|
};
|
|
2697
2698
|
});
|
|
2698
|
-
const lro =
|
|
2699
|
-
|
|
2700
|
-
|
|
2699
|
+
const lro = createLroSpec({
|
|
2700
|
+
sendOperationFn,
|
|
2701
|
+
args: { resourceGroupName, containerGroupName, options },
|
|
2702
|
+
spec: startOperationSpec
|
|
2703
|
+
});
|
|
2704
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2705
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2701
2706
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2702
2707
|
});
|
|
2703
2708
|
yield poller.poll();
|
|
@@ -3075,17 +3080,24 @@ class OperationsImpl {
|
|
|
3075
3080
|
}
|
|
3076
3081
|
listPagingAll(options) {
|
|
3077
3082
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3078
|
-
var e_1,
|
|
3083
|
+
var _a, e_1, _b, _c;
|
|
3079
3084
|
try {
|
|
3080
|
-
for (var
|
|
3081
|
-
|
|
3082
|
-
|
|
3085
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3086
|
+
_c = _f.value;
|
|
3087
|
+
_d = false;
|
|
3088
|
+
try {
|
|
3089
|
+
const page = _c;
|
|
3090
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3091
|
+
}
|
|
3092
|
+
finally {
|
|
3093
|
+
_d = true;
|
|
3094
|
+
}
|
|
3083
3095
|
}
|
|
3084
3096
|
}
|
|
3085
3097
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3086
3098
|
finally {
|
|
3087
3099
|
try {
|
|
3088
|
-
if (
|
|
3100
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3089
3101
|
}
|
|
3090
3102
|
finally { if (e_1) throw e_1.error; }
|
|
3091
3103
|
}
|
|
@@ -3189,17 +3201,24 @@ class LocationImpl {
|
|
|
3189
3201
|
}
|
|
3190
3202
|
listUsagePagingAll(location, options) {
|
|
3191
3203
|
return tslib.__asyncGenerator(this, arguments, function* listUsagePagingAll_1() {
|
|
3192
|
-
var e_1,
|
|
3204
|
+
var _a, e_1, _b, _c;
|
|
3193
3205
|
try {
|
|
3194
|
-
for (var
|
|
3195
|
-
|
|
3196
|
-
|
|
3206
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listUsagePagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3207
|
+
_c = _f.value;
|
|
3208
|
+
_d = false;
|
|
3209
|
+
try {
|
|
3210
|
+
const page = _c;
|
|
3211
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3212
|
+
}
|
|
3213
|
+
finally {
|
|
3214
|
+
_d = true;
|
|
3215
|
+
}
|
|
3197
3216
|
}
|
|
3198
3217
|
}
|
|
3199
3218
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3200
3219
|
finally {
|
|
3201
3220
|
try {
|
|
3202
|
-
if (
|
|
3221
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3203
3222
|
}
|
|
3204
3223
|
finally { if (e_1) throw e_1.error; }
|
|
3205
3224
|
}
|
|
@@ -3249,17 +3268,24 @@ class LocationImpl {
|
|
|
3249
3268
|
}
|
|
3250
3269
|
listCachedImagesPagingAll(location, options) {
|
|
3251
3270
|
return tslib.__asyncGenerator(this, arguments, function* listCachedImagesPagingAll_1() {
|
|
3252
|
-
var e_2,
|
|
3271
|
+
var _a, e_2, _b, _c;
|
|
3253
3272
|
try {
|
|
3254
|
-
for (var
|
|
3255
|
-
|
|
3256
|
-
|
|
3273
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listCachedImagesPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3274
|
+
_c = _f.value;
|
|
3275
|
+
_d = false;
|
|
3276
|
+
try {
|
|
3277
|
+
const page = _c;
|
|
3278
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3279
|
+
}
|
|
3280
|
+
finally {
|
|
3281
|
+
_d = true;
|
|
3282
|
+
}
|
|
3257
3283
|
}
|
|
3258
3284
|
}
|
|
3259
3285
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
3260
3286
|
finally {
|
|
3261
3287
|
try {
|
|
3262
|
-
if (
|
|
3288
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3263
3289
|
}
|
|
3264
3290
|
finally { if (e_2) throw e_2.error; }
|
|
3265
3291
|
}
|
|
@@ -3309,17 +3335,24 @@ class LocationImpl {
|
|
|
3309
3335
|
}
|
|
3310
3336
|
listCapabilitiesPagingAll(location, options) {
|
|
3311
3337
|
return tslib.__asyncGenerator(this, arguments, function* listCapabilitiesPagingAll_1() {
|
|
3312
|
-
var e_3,
|
|
3338
|
+
var _a, e_3, _b, _c;
|
|
3313
3339
|
try {
|
|
3314
|
-
for (var
|
|
3315
|
-
|
|
3316
|
-
|
|
3340
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listCapabilitiesPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3341
|
+
_c = _f.value;
|
|
3342
|
+
_d = false;
|
|
3343
|
+
try {
|
|
3344
|
+
const page = _c;
|
|
3345
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3346
|
+
}
|
|
3347
|
+
finally {
|
|
3348
|
+
_d = true;
|
|
3349
|
+
}
|
|
3317
3350
|
}
|
|
3318
3351
|
}
|
|
3319
3352
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
3320
3353
|
finally {
|
|
3321
3354
|
try {
|
|
3322
|
-
if (
|
|
3355
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3323
3356
|
}
|
|
3324
3357
|
finally { if (e_3) throw e_3.error; }
|
|
3325
3358
|
}
|
|
@@ -3631,7 +3664,7 @@ class SubnetServiceAssociationLinkImpl {
|
|
|
3631
3664
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3632
3665
|
return this.client.sendOperationRequest(args, spec);
|
|
3633
3666
|
});
|
|
3634
|
-
const
|
|
3667
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3635
3668
|
var _a;
|
|
3636
3669
|
let currentRawResponse = undefined;
|
|
3637
3670
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3650,9 +3683,13 @@ class SubnetServiceAssociationLinkImpl {
|
|
|
3650
3683
|
}
|
|
3651
3684
|
};
|
|
3652
3685
|
});
|
|
3653
|
-
const lro =
|
|
3654
|
-
|
|
3655
|
-
|
|
3686
|
+
const lro = createLroSpec({
|
|
3687
|
+
sendOperationFn,
|
|
3688
|
+
args: { resourceGroupName, virtualNetworkName, subnetName, options },
|
|
3689
|
+
spec: deleteOperationSpec
|
|
3690
|
+
});
|
|
3691
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3692
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3656
3693
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3657
3694
|
});
|
|
3658
3695
|
yield poller.poll();
|
|
@@ -3731,7 +3768,7 @@ class ContainerInstanceManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3731
3768
|
requestContentType: "application/json; charset=utf-8",
|
|
3732
3769
|
credential: credentials
|
|
3733
3770
|
};
|
|
3734
|
-
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0-beta.
|
|
3771
|
+
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0-beta.2`;
|
|
3735
3772
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3736
3773
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3737
3774
|
: `${packageDetails}`;
|
|
@@ -3764,7 +3801,7 @@ class ContainerInstanceManagementClient extends coreClient__namespace.ServiceCli
|
|
|
3764
3801
|
this.subscriptionId = subscriptionId;
|
|
3765
3802
|
// Assigning values to Constant parameters
|
|
3766
3803
|
this.$host = options.$host || "https://management.azure.com";
|
|
3767
|
-
this.apiVersion = options.apiVersion || "
|
|
3804
|
+
this.apiVersion = options.apiVersion || "2023-02-01-preview";
|
|
3768
3805
|
this.containerGroups = new ContainerGroupsImpl(this);
|
|
3769
3806
|
this.operations = new OperationsImpl(this);
|
|
3770
3807
|
this.location = new LocationImpl(this);
|