@azure/arm-batch 8.0.1-alpha.20230717.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 (172) 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
  172. package/types/tsdoc-metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"certificateGetSample.js","sourceRoot":"","sources":["../../samples-dev/certificateGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEtC;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"certificateGetSample.js","sourceRoot":"","sources":["../../samples-dev/certificateGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;G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M,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;QACjB,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
15
17
  *
16
18
  * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateList.json
18
20
  */
19
21
  function listCertificates() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
23
- const resourceGroupName = "default-azurebatch-japaneast";
24
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
25
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
24
26
  const accountName = "sampleacct";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new BatchManagementClient(credential, subscriptionId);
@@ -48,18 +50,17 @@ function listCertificates() {
48
50
  console.log(resArray);
49
51
  });
50
52
  }
51
- listCertificates().catch(console.error);
52
53
  /**
53
54
  * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
54
55
  *
55
56
  * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
56
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateListWithFilter.json
57
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateListWithFilter.json
57
58
  */
58
59
  function listCertificatesFilterAndSelect() {
59
60
  var _a, e_2, _b, _c;
60
61
  return __awaiter(this, void 0, void 0, function* () {
61
- const subscriptionId = "subid";
62
- const resourceGroupName = "default-azurebatch-japaneast";
62
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
63
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
63
64
  const accountName = "sampleacct";
64
65
  const select = "properties/format,properties/provisioningState";
65
66
  const filter = "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'";
@@ -93,5 +94,11 @@ function listCertificatesFilterAndSelect() {
93
94
  console.log(resArray);
94
95
  });
95
96
  }
96
- listCertificatesFilterAndSelect().catch(console.error);
97
+ function main() {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ listCertificates();
100
+ listCertificatesFilterAndSelect();
101
+ });
102
+ }
103
+ main().catch(console.error);
97
104
  //# sourceMappingURL=certificateListByBatchAccountSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"certificateListByBatchAccountSample.js","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBA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YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAA,IAAA;gBAJsB,cAItB;gBAJsB,WAItB;;oBAJU,IAAI,IAAI,KAAA,CAAA;oBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"certificateListByBatchAccountSample.js","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;;QAC7B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,WAAW,CACZ,C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10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
15
17
  *
16
18
  * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/CertificateUpdate.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateUpdate.json
18
20
  */
19
21
  function updateCertificate() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "default-azurebatch-japaneast";
23
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
23
25
  const accountName = "sampleacct";
24
26
  const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
25
27
  const parameters = {
@@ -32,5 +34,10 @@ function updateCertificate() {
32
34
  console.log(result);
33
35
  });
34
36
  }
35
- updateCertificate().catch(console.error);
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ updateCertificate();
40
+ });
41
+ }
42
+ main().catch(console.error);
36
43
  //# sourceMappingURL=certificateUpdateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"certificateUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/certificateUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MA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BAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAwC;YACtD,IAAI,EAAE,gCAAgC;YACtC,QAAQ,EAAE,mBAAmB;SAC9B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CACtD,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
15
17
  *
16
18
  * @summary Checks whether the Batch account name is available in the specified region.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationCheckNameAvailability_AlreadyExists.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json
18
20
  */
19
21
  function locationCheckNameAvailabilityAlreadyExists() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
23
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
22
24
  const locationName = "japaneast";
23
25
  const parameters = {
24
26
  name: "existingaccountname",
@@ -30,16 +32,15 @@ function locationCheckNameAvailabilityAlreadyExists() {
30
32
  console.log(result);
31
33
  });
32
34
  }
33
- locationCheckNameAvailabilityAlreadyExists().catch(console.error);
34
35
  /**
35
36
  * This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
36
37
  *
37
38
  * @summary Checks whether the Batch account name is available in the specified region.
38
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationCheckNameAvailability_Available.json
39
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationCheckNameAvailability_Available.json
39
40
  */
40
41
  function locationCheckNameAvailabilityAvailable() {
41
42
  return __awaiter(this, void 0, void 0, function* () {
42
- const subscriptionId = "subid";
43
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
43
44
  const locationName = "japaneast";
44
45
  const parameters = {
45
46
  name: "newaccountname",
@@ -51,5 +52,11 @@ function locationCheckNameAvailabilityAvailable() {
51
52
  console.log(result);
52
53
  });
53
54
  }
54
- locationCheckNameAvailabilityAvailable().catch(console.error);
55
+ function main() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ locationCheckNameAvailabilityAlreadyExists();
58
+ locationCheckNameAvailabilityAvailable();
59
+ });
60
+ }
61
+ main().catch(console.error);
55
62
  //# sourceMappingURL=locationCheckNameAvailabilitySample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locationCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/locationCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAoC;YAClD,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,+BAA+B;SACtC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAElE;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAoC;YAClD,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,+BAA+B;SACtC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"locationCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/locationCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB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IAAI;;QACjB,0CAA0C,EAAE,CAAC;QAC7C,sCAAsC,EAAE,CAAC;IAC3C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
15
17
  *
16
18
  * @summary Gets the Batch service quotas for the specified subscription at the given location.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationGetQuotas.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationGetQuotas.json
18
20
  */
19
21
  function locationGetQuotas() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
23
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
22
24
  const locationName = "japaneast";
23
25
  const credential = new DefaultAzureCredential();
24
26
  const client = new BatchManagementClient(credential, subscriptionId);
@@ -26,5 +28,10 @@ function locationGetQuotas() {
26
28
  console.log(result);
27
29
  });
28
30
  }
29
- locationGetQuotas().catch(console.error);
31
+ function main() {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ locationGetQuotas();
34
+ });
35
+ }
36
+ main().catch(console.error);
30
37
  //# sourceMappingURL=locationGetQuotasSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locationGetQuotasSample.js","sourceRoot":"","sources":["../../samples-dev/locationGetQuotasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MA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AAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location.
15
17
  *
16
18
  * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationListCloudServiceSkus.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationListCloudServiceSkus.json
18
20
  */
19
21
  function locationListCloudServiceSkus() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
24
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
23
25
  const locationName = "japaneast";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new BatchManagementClient(credential, subscriptionId);
@@ -47,5 +49,10 @@ function locationListCloudServiceSkus() {
47
49
  console.log(resArray);
48
50
  });
49
51
  }
50
- locationListCloudServiceSkus().catch(console.error);
52
+ function main() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ locationListCloudServiceSkus();
55
+ });
56
+ }
57
+ main().catch(console.error);
51
58
  //# sourceMappingURL=locationListSupportedCloudServiceSkusSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locationListSupportedCloudServiceSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedCloudServiceSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAClE,YAAY,CACb,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"locationListSupportedCloudServiceSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedCloudServiceSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAClE,YAAY,CACb,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
15
17
  *
16
18
  * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/LocationListVirtualMachineSkus.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationListVirtualMachineSkus.json
18
20
  */
19
21
  function locationListVirtualMachineSkus() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
24
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
23
25
  const locationName = "japaneast";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new BatchManagementClient(credential, subscriptionId);
@@ -47,5 +49,10 @@ function locationListVirtualMachineSkus() {
47
49
  console.log(resArray);
48
50
  });
49
51
  }
50
- locationListVirtualMachineSkus().catch(console.error);
52
+ function main() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ locationListVirtualMachineSkus();
55
+ });
56
+ }
57
+ main().catch(console.error);
51
58
  //# sourceMappingURL=locationListSupportedVirtualMachineSkusSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locationListSupportedVirtualMachineSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedVirtualMachineSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,+BAA+B,CACpE,YAAY,CACb,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"locationListSupportedVirtualMachineSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedVirtualMachineSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,+BAA+B,CACpE,YAAY,CACb,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
15
17
  *
16
18
  * @summary Lists available operations for the Microsoft.Batch provider
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/OperationsList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/OperationsList.json
18
20
  */
19
21
  function operationsList() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
24
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
23
26
  const credential = new DefaultAzureCredential();
24
27
  const client = new BatchManagementClient(credential, subscriptionId);
25
28
  const resArray = new Array();
@@ -46,5 +49,10 @@ function operationsList() {
46
49
  console.log(resArray);
47
50
  });
48
51
  }
49
- operationsList().catch(console.error);
52
+ function main() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ operationsList();
55
+ });
56
+ }
57
+ main().catch(console.error);
50
58
  //# sourceMappingURL=operationsListSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,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CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { BatchManagementClient } from "@azure/arm-batch";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Creates a new pool inside the specified account.
15
17
  *
16
18
  * @summary Creates a new pool inside the specified account.
17
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_SharedImageGallery.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_SharedImageGallery.json
18
20
  */
19
21
  function createPoolCustomImage() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "default-azurebatch-japaneast";
23
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
23
25
  const accountName = "sampleacct";
24
26
  const poolName = "testpool";
25
27
  const parameters = {
@@ -39,17 +41,16 @@ function createPoolCustomImage() {
39
41
  console.log(result);
40
42
  });
41
43
  }
42
- createPoolCustomImage().catch(console.error);
43
44
  /**
44
45
  * This sample demonstrates how to Creates a new pool inside the specified account.
45
46
  *
46
47
  * @summary Creates a new pool inside the specified account.
47
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_CloudServiceConfiguration.json
48
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_CloudServiceConfiguration.json
48
49
  */
49
50
  function createPoolFullCloudServiceConfiguration() {
50
51
  return __awaiter(this, void 0, void 0, function* () {
51
- const subscriptionId = "subid";
52
- const resourceGroupName = "default-azurebatch-japaneast";
52
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
53
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
53
54
  const accountName = "sampleacct";
54
55
  const poolName = "testpool";
55
56
  const parameters = {
@@ -134,17 +135,16 @@ function createPoolFullCloudServiceConfiguration() {
134
135
  console.log(result);
135
136
  });
136
137
  }
137
- createPoolFullCloudServiceConfiguration().catch(console.error);
138
138
  /**
139
139
  * This sample demonstrates how to Creates a new pool inside the specified account.
140
140
  *
141
141
  * @summary Creates a new pool inside the specified account.
142
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_VirtualMachineConfiguration.json
142
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_VirtualMachineConfiguration.json
143
143
  */
144
144
  function createPoolFullVirtualMachineConfiguration() {
145
145
  return __awaiter(this, void 0, void 0, function* () {
146
- const subscriptionId = "subid";
147
- const resourceGroupName = "default-azurebatch-japaneast";
146
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
147
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
148
148
  const accountName = "sampleacct";
149
149
  const poolName = "testpool";
150
150
  const parameters = {
@@ -219,17 +219,16 @@ function createPoolFullVirtualMachineConfiguration() {
219
219
  console.log(result);
220
220
  });
221
221
  }
222
- createPoolFullVirtualMachineConfiguration().catch(console.error);
223
222
  /**
224
223
  * This sample demonstrates how to Creates a new pool inside the specified account.
225
224
  *
226
225
  * @summary Creates a new pool inside the specified account.
227
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
226
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
228
227
  */
229
228
  function createPoolMinimalCloudServiceConfiguration() {
230
229
  return __awaiter(this, void 0, void 0, function* () {
231
- const subscriptionId = "subid";
232
- const resourceGroupName = "default-azurebatch-japaneast";
230
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
231
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
233
232
  const accountName = "sampleacct";
234
233
  const poolName = "testpool";
235
234
  const parameters = {
@@ -243,17 +242,16 @@ function createPoolMinimalCloudServiceConfiguration() {
243
242
  console.log(result);
244
243
  });
245
244
  }
246
- createPoolMinimalCloudServiceConfiguration().catch(console.error);
247
245
  /**
248
246
  * This sample demonstrates how to Creates a new pool inside the specified account.
249
247
  *
250
248
  * @summary Creates a new pool inside the specified account.
251
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
249
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
252
250
  */
253
251
  function createPoolMinimalVirtualMachineConfiguration() {
254
252
  return __awaiter(this, void 0, void 0, function* () {
255
- const subscriptionId = "subid";
256
- const resourceGroupName = "default-azurebatch-japaneast";
253
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
254
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
257
255
  const accountName = "sampleacct";
258
256
  const poolName = "testpool";
259
257
  const parameters = {
@@ -282,17 +280,16 @@ function createPoolMinimalVirtualMachineConfiguration() {
282
280
  console.log(result);
283
281
  });
284
282
  }
285
- createPoolMinimalVirtualMachineConfiguration().catch(console.error);
286
283
  /**
287
284
  * This sample demonstrates how to Creates a new pool inside the specified account.
288
285
  *
289
286
  * @summary Creates a new pool inside the specified account.
290
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_NoPublicIPAddresses.json
287
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_NoPublicIPAddresses.json
291
288
  */
292
289
  function createPoolNoPublicIP() {
293
290
  return __awaiter(this, void 0, void 0, function* () {
294
- const subscriptionId = "subid";
295
- const resourceGroupName = "default-azurebatch-japaneast";
291
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
292
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
296
293
  const accountName = "sampleacct";
297
294
  const poolName = "testpool";
298
295
  const parameters = {
@@ -316,17 +313,16 @@ function createPoolNoPublicIP() {
316
313
  console.log(result);
317
314
  });
318
315
  }
319
- createPoolNoPublicIP().catch(console.error);
320
316
  /**
321
317
  * This sample demonstrates how to Creates a new pool inside the specified account.
322
318
  *
323
319
  * @summary Creates a new pool inside the specified account.
324
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_PublicIPs.json
320
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_PublicIPs.json
325
321
  */
326
322
  function createPoolPublicIPs() {
327
323
  return __awaiter(this, void 0, void 0, function* () {
328
- const subscriptionId = "subid";
329
- const resourceGroupName = "default-azurebatch-japaneast";
324
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
325
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
330
326
  const accountName = "sampleacct";
331
327
  const poolName = "testpool";
332
328
  const parameters = {
@@ -355,17 +351,16 @@ function createPoolPublicIPs() {
355
351
  console.log(result);
356
352
  });
357
353
  }
358
- createPoolPublicIPs().catch(console.error);
359
354
  /**
360
355
  * This sample demonstrates how to Creates a new pool inside the specified account.
361
356
  *
362
357
  * @summary Creates a new pool inside the specified account.
363
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_UserAssignedIdentities.json
358
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_UserAssignedIdentities.json
364
359
  */
365
360
  function createPoolUserAssignedIdentities() {
366
361
  return __awaiter(this, void 0, void 0, function* () {
367
- const subscriptionId = "subid";
368
- const resourceGroupName = "default-azurebatch-japaneast";
362
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
363
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
369
364
  const accountName = "sampleacct";
370
365
  const poolName = "testpool";
371
366
  const parameters = {
@@ -401,17 +396,16 @@ function createPoolUserAssignedIdentities() {
401
396
  console.log(result);
402
397
  });
403
398
  }
404
- createPoolUserAssignedIdentities().catch(console.error);
405
399
  /**
406
400
  * This sample demonstrates how to Creates a new pool inside the specified account.
407
401
  *
408
402
  * @summary Creates a new pool inside the specified account.
409
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
403
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
410
404
  */
411
405
  function createPoolVirtualMachineConfigurationExtensions() {
412
406
  return __awaiter(this, void 0, void 0, function* () {
413
- const subscriptionId = "subid";
414
- const resourceGroupName = "default-azurebatch-japaneast";
407
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
408
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
415
409
  const accountName = "sampleacct";
416
410
  const poolName = "testpool";
417
411
  const parameters = {
@@ -426,14 +420,15 @@ function createPoolVirtualMachineConfigurationExtensions() {
426
420
  extensions: [
427
421
  {
428
422
  name: "batchextension1",
429
- type: "SecurityMonitoringForLinux",
423
+ type: "KeyVaultForLinux",
430
424
  autoUpgradeMinorVersion: true,
431
- protectedSettings: {
432
- protectedSettingsKey: "protectedSettingsValue"
425
+ enableAutomaticUpgrade: true,
426
+ publisher: "Microsoft.Azure.KeyVault",
427
+ settings: {
428
+ authenticationSettingsKey: "authenticationSettingsValue",
429
+ secretsManagementSettingsKey: "secretsManagementSettingsValue"
433
430
  },
434
- publisher: "Microsoft.Azure.Security.Monitoring",
435
- settings: { settingsKey: "settingsValue" },
436
- typeHandlerVersion: "1.0"
431
+ typeHandlerVersion: "2.0"
437
432
  }
438
433
  ]
439
434
  }
@@ -453,5 +448,58 @@ function createPoolVirtualMachineConfigurationExtensions() {
453
448
  console.log(result);
454
449
  });
455
450
  }
456
- createPoolVirtualMachineConfigurationExtensions().catch(console.error);
451
+ /**
452
+ * This sample demonstrates how to Creates a new pool inside the specified account.
453
+ *
454
+ * @summary Creates a new pool inside the specified account.
455
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_AcceleratedNetworking.json
456
+ */
457
+ function createPoolAcceleratedNetworking() {
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
460
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
461
+ const accountName = "sampleacct";
462
+ const poolName = "testpool";
463
+ const parameters = {
464
+ deploymentConfiguration: {
465
+ virtualMachineConfiguration: {
466
+ imageReference: {
467
+ offer: "WindowsServer",
468
+ publisher: "MicrosoftWindowsServer",
469
+ sku: "2016-datacenter-smalldisk",
470
+ version: "latest"
471
+ },
472
+ nodeAgentSkuId: "batch.node.windows amd64"
473
+ }
474
+ },
475
+ networkConfiguration: {
476
+ enableAcceleratedNetworking: true,
477
+ subnetId: "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123"
478
+ },
479
+ scaleSettings: {
480
+ fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }
481
+ },
482
+ vmSize: "STANDARD_D1_V2"
483
+ };
484
+ const credential = new DefaultAzureCredential();
485
+ const client = new BatchManagementClient(credential, subscriptionId);
486
+ const result = yield client.poolOperations.create(resourceGroupName, accountName, poolName, parameters);
487
+ console.log(result);
488
+ });
489
+ }
490
+ function main() {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ createPoolCustomImage();
493
+ createPoolFullCloudServiceConfiguration();
494
+ createPoolFullVirtualMachineConfiguration();
495
+ createPoolMinimalCloudServiceConfiguration();
496
+ createPoolMinimalVirtualMachineConfiguration();
497
+ createPoolNoPublicIP();
498
+ createPoolPublicIPs();
499
+ createPoolUserAssignedIdentities();
500
+ createPoolVirtualMachineConfigurationExtensions();
501
+ createPoolAcceleratedNetworking();
502
+ });
503
+ }
504
+ main().catch(console.error);
457
505
  //# sourceMappingURL=poolCreateSample.js.map