@azure/arm-batch 8.0.1-alpha.20230724.1 → 9.0.0-alpha.20230725.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 (171) hide show
  1. package/CHANGELOG.md +25 -7
  2. package/LICENSE +1 -1
  3. package/dist/index.js +114 -102
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/applicationCreateSample.js +11 -4
  8. package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/applicationDeleteSample.js +11 -4
  10. package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/applicationGetSample.js +11 -4
  12. package/dist-esm/samples-dev/applicationGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/applicationListSample.js +11 -4
  14. package/dist-esm/samples-dev/applicationListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/applicationPackageActivateSample.js +11 -4
  16. package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/applicationPackageCreateSample.js +11 -4
  18. package/dist-esm/samples-dev/applicationPackageCreateSample.js.map +1 -1
  19. package/dist-esm/samples-dev/applicationPackageDeleteSample.js +11 -4
  20. package/dist-esm/samples-dev/applicationPackageDeleteSample.js.map +1 -1
  21. package/dist-esm/samples-dev/applicationPackageGetSample.js +11 -4
  22. package/dist-esm/samples-dev/applicationPackageGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/applicationPackageListSample.js +11 -4
  24. package/dist-esm/samples-dev/applicationPackageListSample.js.map +1 -1
  25. package/dist-esm/samples-dev/applicationUpdateSample.js +11 -4
  26. package/dist-esm/samples-dev/applicationUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/batchAccountCreateSample.js +27 -20
  28. package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/batchAccountDeleteSample.js +11 -4
  30. package/dist-esm/samples-dev/batchAccountDeleteSample.js.map +1 -1
  31. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +11 -4
  32. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js.map +1 -1
  33. package/dist-esm/samples-dev/batchAccountGetKeysSample.js +11 -4
  34. package/dist-esm/samples-dev/batchAccountGetKeysSample.js.map +1 -1
  35. package/dist-esm/samples-dev/batchAccountGetSample.js +15 -8
  36. package/dist-esm/samples-dev/batchAccountGetSample.js.map +1 -1
  37. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +11 -4
  38. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js.map +1 -1
  39. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +11 -4
  40. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js.map +1 -1
  41. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +13 -6
  42. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js.map +1 -1
  43. package/dist-esm/samples-dev/batchAccountListSample.js +10 -3
  44. package/dist-esm/samples-dev/batchAccountListSample.js.map +1 -1
  45. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +11 -4
  46. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
  47. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +11 -4
  48. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js.map +1 -1
  49. package/dist-esm/samples-dev/batchAccountUpdateSample.js +11 -4
  50. package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/certificateCancelDeletionSample.js +11 -4
  52. package/dist-esm/samples-dev/certificateCancelDeletionSample.js.map +1 -1
  53. package/dist-esm/samples-dev/certificateCreateSample.js +19 -12
  54. package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
  55. package/dist-esm/samples-dev/certificateDeleteSample.js +11 -4
  56. package/dist-esm/samples-dev/certificateDeleteSample.js.map +1 -1
  57. package/dist-esm/samples-dev/certificateGetSample.js +15 -8
  58. package/dist-esm/samples-dev/certificateGetSample.js.map +1 -1
  59. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +15 -8
  60. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
  61. package/dist-esm/samples-dev/certificateUpdateSample.js +11 -4
  62. package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
  63. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +13 -6
  64. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
  65. package/dist-esm/samples-dev/locationGetQuotasSample.js +10 -3
  66. package/dist-esm/samples-dev/locationGetQuotasSample.js.map +1 -1
  67. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +10 -3
  68. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js.map +1 -1
  69. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +10 -3
  70. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js.map +1 -1
  71. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  72. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  73. package/dist-esm/samples-dev/poolCreateSample.js +90 -42
  74. package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
  75. package/dist-esm/samples-dev/poolDeleteSample.js +11 -4
  76. package/dist-esm/samples-dev/poolDeleteSample.js.map +1 -1
  77. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +11 -4
  78. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js.map +1 -1
  79. package/dist-esm/samples-dev/poolGetSample.js +34 -8
  80. package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
  81. package/dist-esm/samples-dev/poolListByBatchAccountSample.js +15 -8
  82. package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
  83. package/dist-esm/samples-dev/poolStopResizeSample.js +11 -4
  84. package/dist-esm/samples-dev/poolStopResizeSample.js.map +1 -1
  85. package/dist-esm/samples-dev/poolUpdateSample.js +23 -16
  86. package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
  87. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +11 -4
  88. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
  89. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +11 -4
  90. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -1
  91. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +11 -4
  92. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js.map +1 -1
  93. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +11 -4
  94. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
  95. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +11 -4
  96. package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
  97. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +11 -4
  98. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js.map +1 -1
  99. package/dist-esm/src/batchManagementClient.js +2 -2
  100. package/dist-esm/src/lroImpl.d.ts +6 -11
  101. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  102. package/dist-esm/src/lroImpl.js +12 -20
  103. package/dist-esm/src/lroImpl.js.map +1 -1
  104. package/dist-esm/src/models/index.d.ts +22 -44
  105. package/dist-esm/src/models/index.d.ts.map +1 -1
  106. package/dist-esm/src/models/index.js +8 -1
  107. package/dist-esm/src/models/index.js.map +1 -1
  108. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  109. package/dist-esm/src/models/mappers.js +13 -2
  110. package/dist-esm/src/models/mappers.js.map +1 -1
  111. package/dist-esm/src/models/parameters.js +1 -1
  112. package/dist-esm/src/operations/applicationOperations.js +0 -1
  113. package/dist-esm/src/operations/applicationOperations.js.map +1 -1
  114. package/dist-esm/src/operations/applicationPackageOperations.js +0 -1
  115. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
  116. package/dist-esm/src/operations/batchAccountOperations.d.ts +5 -5
  117. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
  118. package/dist-esm/src/operations/batchAccountOperations.js +22 -18
  119. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  120. package/dist-esm/src/operations/certificateOperations.d.ts +2 -2
  121. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
  122. package/dist-esm/src/operations/certificateOperations.js +11 -13
  123. package/dist-esm/src/operations/certificateOperations.js.map +1 -1
  124. package/dist-esm/src/operations/location.js +0 -10
  125. package/dist-esm/src/operations/location.js.map +1 -1
  126. package/dist-esm/src/operations/operations.js +0 -1
  127. package/dist-esm/src/operations/operations.js.map +1 -1
  128. package/dist-esm/src/operations/poolOperations.d.ts +2 -2
  129. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
  130. package/dist-esm/src/operations/poolOperations.js +11 -13
  131. package/dist-esm/src/operations/poolOperations.js.map +1 -1
  132. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +3 -3
  133. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
  134. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +31 -24
  135. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
  136. package/dist-esm/src/operations/privateLinkResourceOperations.js +0 -1
  137. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
  138. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +4 -4
  139. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
  140. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +2 -2
  141. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -1
  142. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +2 -2
  143. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -1
  144. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +3 -3
  145. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
  146. package/dist-esm/src/pagingHelper.d.ts +4 -4
  147. package/dist-esm/src/pagingHelper.js +4 -4
  148. package/dist-esm/test/batch_examples.js +2 -1
  149. package/dist-esm/test/batch_examples.js.map +1 -1
  150. package/package.json +6 -5
  151. package/review/arm-batch.api.md +20 -23
  152. package/src/batchManagementClient.ts +2 -2
  153. package/src/lroImpl.ts +31 -23
  154. package/src/models/index.ts +31 -60
  155. package/src/models/mappers.ts +13 -2
  156. package/src/models/parameters.ts +1 -1
  157. package/src/operations/applicationOperations.ts +0 -1
  158. package/src/operations/applicationPackageOperations.ts +0 -1
  159. package/src/operations/batchAccountOperations.ts +32 -29
  160. package/src/operations/certificateOperations.ts +16 -18
  161. package/src/operations/location.ts +0 -10
  162. package/src/operations/operations.ts +0 -1
  163. package/src/operations/poolOperations.ts +16 -18
  164. package/src/operations/privateEndpointConnectionOperations.ts +34 -25
  165. package/src/operations/privateLinkResourceOperations.ts +0 -1
  166. package/src/operationsInterfaces/batchAccountOperations.ts +5 -5
  167. package/src/operationsInterfaces/certificateOperations.ts +2 -2
  168. package/src/operationsInterfaces/poolOperations.ts +2 -2
  169. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +5 -5
  170. package/src/pagingHelper.ts +4 -4
  171. package/types/arm-batch.d.ts +37 -57
package/CHANGELOG.md CHANGED
@@ -1,15 +1,33 @@
1
1
  # Release History
2
+
3
+ ## 9.0.0 (2023-06-30)
4
+
5
+ **Features**
2
6
 
3
- ## 8.0.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
7
+ - Added Type Alias ContainerType
8
+ - Interface NetworkConfiguration has a new optional parameter enableAcceleratedNetworking
9
+ - Interface VMExtension has a new optional parameter enableAutomaticUpgrade
10
+ - Added Enum KnownContainerType
11
+ - Interface ApplicationListNextOptionalParams no longer has parameter maxresults
12
+ - Interface ApplicationPackageListNextOptionalParams no longer has parameter maxresults
13
+ - Interface CertificateListByBatchAccountNextOptionalParams no longer has parameter filter
14
+ - Interface CertificateListByBatchAccountNextOptionalParams no longer has parameter maxresults
15
+ - Interface CertificateListByBatchAccountNextOptionalParams no longer has parameter select
16
+ - Interface LocationListSupportedCloudServiceSkusNextOptionalParams no longer has parameter filter
17
+ - Interface LocationListSupportedCloudServiceSkusNextOptionalParams no longer has parameter maxresults
18
+ - Interface LocationListSupportedVirtualMachineSkusNextOptionalParams no longer has parameter filter
19
+ - Interface LocationListSupportedVirtualMachineSkusNextOptionalParams no longer has parameter maxresults
20
+ - Interface PoolListByBatchAccountNextOptionalParams no longer has parameter filter
21
+ - Interface PoolListByBatchAccountNextOptionalParams no longer has parameter maxresults
22
+ - Interface PoolListByBatchAccountNextOptionalParams no longer has parameter select
23
+ - Interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams no longer has parameter maxresults
24
+ - Interface PrivateLinkResourceListByBatchAccountNextOptionalParams no longer has parameter maxresults
8
25
 
9
- ### Bugs Fixed
26
+ **Breaking Changes**
10
27
 
11
- ### Other Changes
28
+ - Type of parameter type of interface ContainerConfiguration is changed from "DockerCompatible" to ContainerType
12
29
 
30
+
13
31
  ## 8.0.0 (2022-11-10)
14
32
 
15
33
  **Features**
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Microsoft
3
+ Copyright (c) 2023 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -37,11 +37,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
37
  */
38
38
  const pageMap = new WeakMap();
39
39
  /**
40
- * Given a result page from a pageable operation, returns a
41
- * continuation token that can be used to begin paging from
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
42
  * that point later.
43
- * @param page A result object from calling .byPage() on a paged operation.
44
- * @returns The continuation token that can be passed into byPage().
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
45
  */
46
46
  function getContinuationToken(page) {
47
47
  var _a;
@@ -60,6 +60,22 @@ function setContinuationToken(page, continuationToken) {
60
60
  pageMap.set(page, pageInfo);
61
61
  }
62
62
 
63
+ /*
64
+ * Copyright (c) Microsoft Corporation.
65
+ * Licensed under the MIT License.
66
+ *
67
+ * Code generated by Microsoft (R) AutoRest Code Generator.
68
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
+ */
70
+ /** Known values of {@link ContainerType} that the service accepts. */
71
+ exports.KnownContainerType = void 0;
72
+ (function (KnownContainerType) {
73
+ /** A Docker compatible container technology will be used to launch the containers. */
74
+ KnownContainerType["DockerCompatible"] = "DockerCompatible";
75
+ /** A CRI based technology will be used to launch the containers. */
76
+ KnownContainerType["CriCompatible"] = "CriCompatible";
77
+ })(exports.KnownContainerType || (exports.KnownContainerType = {}));
78
+
63
79
  /*
64
80
  * Copyright (c) Microsoft Corporation.
65
81
  * Licensed under the MIT License.
@@ -1461,9 +1477,8 @@ const ContainerConfiguration = {
1461
1477
  className: "ContainerConfiguration",
1462
1478
  modelProperties: {
1463
1479
  type: {
1464
- defaultValue: "DockerCompatible",
1465
- isConstant: true,
1466
1480
  serializedName: "type",
1481
+ required: true,
1467
1482
  type: {
1468
1483
  name: "String"
1469
1484
  }
@@ -1600,6 +1615,12 @@ const VMExtension = {
1600
1615
  name: "Boolean"
1601
1616
  }
1602
1617
  },
1618
+ enableAutomaticUpgrade: {
1619
+ serializedName: "enableAutomaticUpgrade",
1620
+ type: {
1621
+ name: "Boolean"
1622
+ }
1623
+ },
1603
1624
  settings: {
1604
1625
  serializedName: "settings",
1605
1626
  type: {
@@ -1833,6 +1854,12 @@ const NetworkConfiguration = {
1833
1854
  name: "Composite",
1834
1855
  className: "PublicIPAddressConfiguration"
1835
1856
  }
1857
+ },
1858
+ enableAcceleratedNetworking: {
1859
+ serializedName: "enableAcceleratedNetworking",
1860
+ type: {
1861
+ name: "Boolean"
1862
+ }
1836
1863
  }
1837
1864
  }
1838
1865
  }
@@ -3914,7 +3941,7 @@ const accountName = {
3914
3941
  const apiVersion = {
3915
3942
  parameterPath: "apiVersion",
3916
3943
  mapper: {
3917
- defaultValue: "2022-10-01",
3944
+ defaultValue: "2023-05-01",
3918
3945
  isConstant: true,
3919
3946
  serializedName: "api-version",
3920
3947
  type: {
@@ -4161,25 +4188,17 @@ const poolName = {
4161
4188
  * Code generated by Microsoft (R) AutoRest Code Generator.
4162
4189
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4163
4190
  */
4164
- class LroImpl {
4165
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
4166
- this.sendOperationFn = sendOperationFn;
4167
- this.args = args;
4168
- this.spec = spec;
4169
- this.requestPath = requestPath;
4170
- this.requestMethod = requestMethod;
4171
- }
4172
- sendInitialRequest() {
4173
- return tslib.__awaiter(this, void 0, void 0, function* () {
4174
- return this.sendOperationFn(this.args, this.spec);
4175
- });
4176
- }
4177
- sendPollRequest(path) {
4178
- return tslib.__awaiter(this, void 0, void 0, function* () {
4179
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
4180
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
4181
- });
4182
- }
4191
+ function createLroSpec(inputs) {
4192
+ const { args, spec, sendOperationFn } = inputs;
4193
+ return {
4194
+ requestMethod: spec.httpMethod,
4195
+ requestPath: spec.path,
4196
+ sendInitialRequest: () => sendOperationFn(args, spec),
4197
+ sendPollRequest: (path, options) => {
4198
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
4199
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
4200
+ }
4201
+ };
4183
4202
  }
4184
4203
 
4185
4204
  /*
@@ -4406,7 +4425,7 @@ class BatchAccountOperationsImpl {
4406
4425
  * you must make sure your network allows outbound access to these endpoints. Failure to allow access
4407
4426
  * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
4408
4427
  * about creating a pool inside of a virtual network, see
4409
- * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
4428
+ * https://docs.microsoft.com/azure/batch/batch-virtual-network.
4410
4429
  * @param resourceGroupName The name of the resource group that contains the Batch account.
4411
4430
  * @param accountName The name of the Batch account.
4412
4431
  * @param options The options parameters.
@@ -4489,7 +4508,7 @@ class BatchAccountOperationsImpl {
4489
4508
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4490
4509
  return this.client.sendOperationRequest(args, spec);
4491
4510
  });
4492
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4511
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4493
4512
  var _a;
4494
4513
  let currentRawResponse = undefined;
4495
4514
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -4508,11 +4527,15 @@ class BatchAccountOperationsImpl {
4508
4527
  }
4509
4528
  };
4510
4529
  });
4511
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec$4);
4512
- const poller = new coreLro.LroEngine(lro, {
4513
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4530
+ const lro = createLroSpec({
4531
+ sendOperationFn,
4532
+ args: { resourceGroupName, accountName, parameters, options },
4533
+ spec: createOperationSpec$4
4534
+ });
4535
+ const poller = yield coreLro.createHttpPoller(lro, {
4536
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4514
4537
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4515
- lroResourceLocationConfig: "location"
4538
+ resourceLocationConfig: "location"
4516
4539
  });
4517
4540
  yield poller.poll();
4518
4541
  return poller;
@@ -4556,7 +4579,7 @@ class BatchAccountOperationsImpl {
4556
4579
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4557
4580
  return this.client.sendOperationRequest(args, spec);
4558
4581
  });
4559
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4582
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4560
4583
  var _a;
4561
4584
  let currentRawResponse = undefined;
4562
4585
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -4575,11 +4598,15 @@ class BatchAccountOperationsImpl {
4575
4598
  }
4576
4599
  };
4577
4600
  });
4578
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, deleteOperationSpec$5);
4579
- const poller = new coreLro.LroEngine(lro, {
4580
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4601
+ const lro = createLroSpec({
4602
+ sendOperationFn,
4603
+ args: { resourceGroupName, accountName, options },
4604
+ spec: deleteOperationSpec$5
4605
+ });
4606
+ const poller = yield coreLro.createHttpPoller(lro, {
4607
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4581
4608
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4582
- lroResourceLocationConfig: "location"
4609
+ resourceLocationConfig: "location"
4583
4610
  });
4584
4611
  yield poller.poll();
4585
4612
  return poller;
@@ -4681,7 +4708,7 @@ class BatchAccountOperationsImpl {
4681
4708
  * you must make sure your network allows outbound access to these endpoints. Failure to allow access
4682
4709
  * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
4683
4710
  * about creating a pool inside of a virtual network, see
4684
- * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
4711
+ * https://docs.microsoft.com/azure/batch/batch-virtual-network.
4685
4712
  * @param resourceGroupName The name of the resource group that contains the Batch account.
4686
4713
  * @param accountName The name of the Batch account.
4687
4714
  * @param options The options parameters.
@@ -5002,7 +5029,6 @@ const listNextOperationSpec$3 = {
5002
5029
  bodyMapper: CloudError
5003
5030
  }
5004
5031
  },
5005
- queryParameters: [apiVersion],
5006
5032
  urlParameters: [
5007
5033
  $host,
5008
5034
  subscriptionId,
@@ -5022,7 +5048,6 @@ const listByResourceGroupNextOperationSpec = {
5022
5048
  bodyMapper: CloudError
5023
5049
  }
5024
5050
  },
5025
- queryParameters: [apiVersion],
5026
5051
  urlParameters: [
5027
5052
  $host,
5028
5053
  resourceGroupName,
@@ -5043,7 +5068,6 @@ const listDetectorsNextOperationSpec = {
5043
5068
  bodyMapper: CloudError
5044
5069
  }
5045
5070
  },
5046
- queryParameters: [apiVersion],
5047
5071
  urlParameters: [
5048
5072
  $host,
5049
5073
  resourceGroupName,
@@ -5065,7 +5089,6 @@ const listOutboundNetworkDependenciesEndpointsNextOperationSpec = {
5065
5089
  bodyMapper: CloudError
5066
5090
  }
5067
5091
  },
5068
- queryParameters: [apiVersion],
5069
5092
  urlParameters: [
5070
5093
  $host,
5071
5094
  resourceGroupName,
@@ -5372,7 +5395,6 @@ const listNextOperationSpec$2 = {
5372
5395
  bodyMapper: CloudError
5373
5396
  }
5374
5397
  },
5375
- queryParameters: [apiVersion, maxresults],
5376
5398
  urlParameters: [
5377
5399
  $host,
5378
5400
  resourceGroupName,
@@ -5656,7 +5678,6 @@ const listNextOperationSpec$1 = {
5656
5678
  bodyMapper: CloudError
5657
5679
  }
5658
5680
  },
5659
- queryParameters: [apiVersion, maxresults],
5660
5681
  urlParameters: [
5661
5682
  $host,
5662
5683
  resourceGroupName,
@@ -5976,11 +5997,6 @@ const listSupportedVirtualMachineSkusNextOperationSpec = {
5976
5997
  bodyMapper: CloudError
5977
5998
  }
5978
5999
  },
5979
- queryParameters: [
5980
- apiVersion,
5981
- maxresults,
5982
- filter
5983
- ],
5984
6000
  urlParameters: [
5985
6001
  $host,
5986
6002
  subscriptionId,
@@ -6001,11 +6017,6 @@ const listSupportedCloudServiceSkusNextOperationSpec = {
6001
6017
  bodyMapper: CloudError
6002
6018
  }
6003
6019
  },
6004
- queryParameters: [
6005
- apiVersion,
6006
- maxresults,
6007
- filter
6008
- ],
6009
6020
  urlParameters: [
6010
6021
  $host,
6011
6022
  subscriptionId,
@@ -6144,7 +6155,6 @@ const listNextOperationSpec = {
6144
6155
  bodyMapper: CloudError
6145
6156
  }
6146
6157
  },
6147
- queryParameters: [apiVersion],
6148
6158
  urlParameters: [$host, nextLink],
6149
6159
  headerParameters: [accept],
6150
6160
  serializer: serializer$4
@@ -6294,7 +6304,7 @@ class CertificateOperationsImpl {
6294
6304
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6295
6305
  return this.client.sendOperationRequest(args, spec);
6296
6306
  });
6297
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6307
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6298
6308
  var _a;
6299
6309
  let currentRawResponse = undefined;
6300
6310
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -6313,11 +6323,15 @@ class CertificateOperationsImpl {
6313
6323
  }
6314
6324
  };
6315
6325
  });
6316
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, certificateName, options }, deleteOperationSpec$2);
6317
- const poller = new coreLro.LroEngine(lro, {
6318
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6326
+ const lro = createLroSpec({
6327
+ sendOperationFn,
6328
+ args: { resourceGroupName, accountName, certificateName, options },
6329
+ spec: deleteOperationSpec$2
6330
+ });
6331
+ const poller = yield coreLro.createHttpPoller(lro, {
6332
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6319
6333
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6320
- lroResourceLocationConfig: "location"
6334
+ resourceLocationConfig: "location"
6321
6335
  });
6322
6336
  yield poller.poll();
6323
6337
  return poller;
@@ -6553,12 +6567,6 @@ const listByBatchAccountNextOperationSpec$3 = {
6553
6567
  bodyMapper: CloudError
6554
6568
  }
6555
6569
  },
6556
- queryParameters: [
6557
- apiVersion,
6558
- maxresults,
6559
- filter,
6560
- select
6561
- ],
6562
6570
  urlParameters: [
6563
6571
  $host,
6564
6572
  resourceGroupName,
@@ -6742,7 +6750,6 @@ const listByBatchAccountNextOperationSpec$2 = {
6742
6750
  bodyMapper: CloudError
6743
6751
  }
6744
6752
  },
6745
- queryParameters: [apiVersion, maxresults],
6746
6753
  urlParameters: [
6747
6754
  $host,
6748
6755
  resourceGroupName,
@@ -6879,7 +6886,7 @@ class PrivateEndpointConnectionOperationsImpl {
6879
6886
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6880
6887
  return this.client.sendOperationRequest(args, spec);
6881
6888
  });
6882
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6889
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6883
6890
  var _a;
6884
6891
  let currentRawResponse = undefined;
6885
6892
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -6898,17 +6905,21 @@ class PrivateEndpointConnectionOperationsImpl {
6898
6905
  }
6899
6906
  };
6900
6907
  });
6901
- const lro = new LroImpl(sendOperation, {
6902
- resourceGroupName,
6903
- accountName,
6904
- privateEndpointConnectionName,
6905
- parameters,
6906
- options
6907
- }, updateOperationSpec$1);
6908
- const poller = new coreLro.LroEngine(lro, {
6909
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6908
+ const lro = createLroSpec({
6909
+ sendOperationFn,
6910
+ args: {
6911
+ resourceGroupName,
6912
+ accountName,
6913
+ privateEndpointConnectionName,
6914
+ parameters,
6915
+ options
6916
+ },
6917
+ spec: updateOperationSpec$1
6918
+ });
6919
+ const poller = yield coreLro.createHttpPoller(lro, {
6920
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6910
6921
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6911
- lroResourceLocationConfig: "azure-async-operation"
6922
+ resourceLocationConfig: "azure-async-operation"
6912
6923
  });
6913
6924
  yield poller.poll();
6914
6925
  return poller;
@@ -6943,7 +6954,7 @@ class PrivateEndpointConnectionOperationsImpl {
6943
6954
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6944
6955
  return this.client.sendOperationRequest(args, spec);
6945
6956
  });
6946
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6957
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6947
6958
  var _a;
6948
6959
  let currentRawResponse = undefined;
6949
6960
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -6962,16 +6973,20 @@ class PrivateEndpointConnectionOperationsImpl {
6962
6973
  }
6963
6974
  };
6964
6975
  });
6965
- const lro = new LroImpl(sendOperation, {
6966
- resourceGroupName,
6967
- accountName,
6968
- privateEndpointConnectionName,
6969
- options
6970
- }, deleteOperationSpec$1);
6971
- const poller = new coreLro.LroEngine(lro, {
6972
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6976
+ const lro = createLroSpec({
6977
+ sendOperationFn,
6978
+ args: {
6979
+ resourceGroupName,
6980
+ accountName,
6981
+ privateEndpointConnectionName,
6982
+ options
6983
+ },
6984
+ spec: deleteOperationSpec$1
6985
+ });
6986
+ const poller = yield coreLro.createHttpPoller(lro, {
6987
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6973
6988
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6974
- lroResourceLocationConfig: "azure-async-operation"
6989
+ resourceLocationConfig: "azure-async-operation"
6975
6990
  });
6976
6991
  yield poller.poll();
6977
6992
  return poller;
@@ -7126,7 +7141,6 @@ const listByBatchAccountNextOperationSpec$1 = {
7126
7141
  bodyMapper: CloudError
7127
7142
  }
7128
7143
  },
7129
- queryParameters: [apiVersion, maxresults],
7130
7144
  urlParameters: [
7131
7145
  $host,
7132
7146
  resourceGroupName,
@@ -7267,7 +7281,7 @@ class PoolOperationsImpl {
7267
7281
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7268
7282
  return this.client.sendOperationRequest(args, spec);
7269
7283
  });
7270
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7284
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7271
7285
  var _a;
7272
7286
  let currentRawResponse = undefined;
7273
7287
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -7286,11 +7300,15 @@ class PoolOperationsImpl {
7286
7300
  }
7287
7301
  };
7288
7302
  });
7289
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, options }, deleteOperationSpec);
7290
- const poller = new coreLro.LroEngine(lro, {
7291
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7303
+ const lro = createLroSpec({
7304
+ sendOperationFn,
7305
+ args: { resourceGroupName, accountName, poolName, options },
7306
+ spec: deleteOperationSpec
7307
+ });
7308
+ const poller = yield coreLro.createHttpPoller(lro, {
7309
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7292
7310
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7293
- lroResourceLocationConfig: "location"
7311
+ resourceLocationConfig: "location"
7294
7312
  });
7295
7313
  yield poller.poll();
7296
7314
  return poller;
@@ -7545,12 +7563,6 @@ const listByBatchAccountNextOperationSpec = {
7545
7563
  bodyMapper: CloudError
7546
7564
  }
7547
7565
  },
7548
- queryParameters: [
7549
- apiVersion,
7550
- maxresults,
7551
- filter,
7552
- select
7553
- ],
7554
7566
  urlParameters: [
7555
7567
  $host,
7556
7568
  resourceGroupName,
@@ -7593,7 +7605,7 @@ class BatchManagementClient extends coreClient__namespace.ServiceClient {
7593
7605
  requestContentType: "application/json; charset=utf-8",
7594
7606
  credential: credentials
7595
7607
  };
7596
- const packageDetails = `azsdk-js-arm-batch/8.0.1`;
7608
+ const packageDetails = `azsdk-js-arm-batch/9.0.0`;
7597
7609
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7598
7610
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7599
7611
  : `${packageDetails}`;
@@ -7626,7 +7638,7 @@ class BatchManagementClient extends coreClient__namespace.ServiceClient {
7626
7638
  this.subscriptionId = subscriptionId;
7627
7639
  // Assigning values to Constant parameters
7628
7640
  this.$host = options.$host || "https://management.azure.com";
7629
- this.apiVersion = options.apiVersion || "2022-10-01";
7641
+ this.apiVersion = options.apiVersion || "2023-05-01";
7630
7642
  this.batchAccountOperations = new BatchAccountOperationsImpl(this);
7631
7643
  this.applicationPackageOperations = new ApplicationPackageOperationsImpl(this);
7632
7644
  this.applicationOperations = new ApplicationOperationsImpl(this);