@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +5 -7
  2. package/dist/index.js +147 -110
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +4 -74
  7. package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/containerGroupsDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/containerGroupsGetSample.js +2 -20
  10. package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
  11. package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +13 -6
  12. package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
  13. package/dist-esm/samples-dev/containerGroupsListSample.js +13 -6
  14. package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/containerGroupsRestartSample.js +1 -1
  16. package/dist-esm/samples-dev/containerGroupsStartSample.js +1 -1
  17. package/dist-esm/samples-dev/containerGroupsStopSample.js +1 -1
  18. package/dist-esm/samples-dev/containerGroupsUpdateSample.js +1 -1
  19. package/dist-esm/samples-dev/containersAttachSample.js +1 -1
  20. package/dist-esm/samples-dev/containersExecuteCommandSample.js +1 -1
  21. package/dist-esm/samples-dev/containersListLogsSample.js +1 -1
  22. package/dist-esm/samples-dev/locationListCachedImagesSample.js +13 -6
  23. package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
  24. package/dist-esm/samples-dev/locationListCapabilitiesSample.js +13 -6
  25. package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
  26. package/dist-esm/samples-dev/locationListUsageSample.js +13 -6
  27. package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
  28. package/dist-esm/samples-dev/operationsListSample.js +13 -6
  29. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  30. package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +1 -1
  31. package/dist-esm/src/containerInstanceManagementClient.js +2 -2
  32. package/dist-esm/src/lroImpl.d.ts +6 -11
  33. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  34. package/dist-esm/src/lroImpl.js +12 -20
  35. package/dist-esm/src/lroImpl.js.map +1 -1
  36. package/dist-esm/src/models/index.d.ts +56 -61
  37. package/dist-esm/src/models/index.d.ts.map +1 -1
  38. package/dist-esm/src/models/index.js +8 -10
  39. package/dist-esm/src/models/index.js.map +1 -1
  40. package/dist-esm/src/models/mappers.d.ts +0 -1
  41. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  42. package/dist-esm/src/models/mappers.js +13 -27
  43. package/dist-esm/src/models/mappers.js.map +1 -1
  44. package/dist-esm/src/models/parameters.js +1 -1
  45. package/dist-esm/src/operations/containerGroups.d.ts +5 -5
  46. package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
  47. package/dist-esm/src/operations/containerGroups.js +58 -28
  48. package/dist-esm/src/operations/containerGroups.js.map +1 -1
  49. package/dist-esm/src/operations/location.js +36 -15
  50. package/dist-esm/src/operations/location.js.map +1 -1
  51. package/dist-esm/src/operations/operations.js +12 -5
  52. package/dist-esm/src/operations/operations.js.map +1 -1
  53. package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
  54. package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
  55. package/dist-esm/src/operations/subnetServiceAssociationLink.js +10 -6
  56. package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
  57. package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +5 -5
  58. package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -1
  59. package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
  60. package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -1
  61. package/dist-esm/test/containerinstance_examples.js +24 -10
  62. package/dist-esm/test/containerinstance_examples.js.map +1 -1
  63. package/package.json +10 -10
  64. package/review/arm-containerinstance.api.md +18 -24
  65. package/src/containerInstanceManagementClient.ts +2 -2
  66. package/src/lroImpl.ts +31 -23
  67. package/src/models/index.ts +27 -33
  68. package/src/models/mappers.ts +13 -28
  69. package/src/models/parameters.ts +1 -1
  70. package/src/operations/containerGroups.ts +50 -40
  71. package/src/operations/subnetServiceAssociationLink.ts +15 -11
  72. package/src/operationsInterfaces/containerGroups.ts +7 -7
  73. package/src/operationsInterfaces/subnetServiceAssociationLink.ts +2 -2
  74. package/types/arm-containerinstance.d.ts +34 -40
  75. 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.1 (2023-01-13)
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 ContainerGroupPriority
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 priority
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 KnownContainerGroupPriority
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: "2022-10-01-preview",
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
- class LroImpl {
2298
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
2299
- this.sendOperationFn = sendOperationFn;
2300
- this.args = args;
2301
- this.spec = spec;
2302
- this.requestPath = requestPath;
2303
- this.requestMethod = requestMethod;
2304
- }
2305
- sendInitialRequest() {
2306
- return tslib.__awaiter(this, void 0, void 0, function* () {
2307
- return this.sendOperationFn(this.args, this.spec);
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, _a;
2355
+ var _a, e_1, _b, _c;
2381
2356
  try {
2382
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2383
- const page = _c.value;
2384
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
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, _a;
2424
+ var _a, e_2, _b, _c;
2443
2425
  try {
2444
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2445
- const page = _c.value;
2446
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
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 sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
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 = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, containerGroup, options }, createOrUpdateOperationSpec);
2520
- const poller = new coreLro.LroEngine(lro, {
2521
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
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 sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
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 = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, deleteOperationSpec$1);
2583
- const poller = new coreLro.LroEngine(lro, {
2584
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
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 sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
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 = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, restartOperationSpec);
2636
- const poller = new coreLro.LroEngine(lro, {
2637
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
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 sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
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 = new LroImpl(sendOperation, { resourceGroupName, containerGroupName, options }, startOperationSpec);
2699
- const poller = new coreLro.LroEngine(lro, {
2700
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
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, _a;
3083
+ var _a, e_1, _b, _c;
3079
3084
  try {
3080
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3081
- const page = _c.value;
3082
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
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, _a;
3204
+ var _a, e_1, _b, _c;
3193
3205
  try {
3194
- for (var _b = tslib.__asyncValues(this.listUsagePagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3195
- const page = _c.value;
3196
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
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, _a;
3271
+ var _a, e_2, _b, _c;
3253
3272
  try {
3254
- for (var _b = tslib.__asyncValues(this.listCachedImagesPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3255
- const page = _c.value;
3256
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
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, _a;
3338
+ var _a, e_3, _b, _c;
3313
3339
  try {
3314
- for (var _b = tslib.__asyncValues(this.listCapabilitiesPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3315
- const page = _c.value;
3316
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
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 (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
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 sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
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 = new LroImpl(sendOperation, { resourceGroupName, virtualNetworkName, subnetName, options }, deleteOperationSpec);
3654
- const poller = new coreLro.LroEngine(lro, {
3655
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
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.1`;
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 || "2022-10-01-preview";
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);