@azure/arm-batch 7.0.1-alpha.20220315.1 → 7.1.0-alpha.20220325.1

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 (222) hide show
  1. package/CHANGELOG.md +19 -11
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +207 -6
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/applicationCreateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/applicationCreateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/applicationCreateSample.js +37 -0
  11. package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/applicationDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/applicationDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/applicationDeleteSample.js +32 -0
  15. package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/applicationGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/applicationGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/applicationGetSample.js +32 -0
  19. package/dist-esm/samples-dev/applicationGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/applicationListSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/applicationListSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/applicationListSample.js +45 -0
  23. package/dist-esm/samples-dev/applicationListSample.js.map +1 -0
  24. package/dist-esm/samples-dev/applicationPackageActivateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/applicationPackageActivateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/applicationPackageActivateSample.js +34 -0
  27. package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/applicationPackageCreateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/applicationPackageCreateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/applicationPackageCreateSample.js +33 -0
  31. package/dist-esm/samples-dev/applicationPackageCreateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/applicationPackageDeleteSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/applicationPackageDeleteSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/applicationPackageDeleteSample.js +33 -0
  35. package/dist-esm/samples-dev/applicationPackageDeleteSample.js.map +1 -0
  36. package/dist-esm/samples-dev/applicationPackageGetSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/applicationPackageGetSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/applicationPackageGetSample.js +33 -0
  39. package/dist-esm/samples-dev/applicationPackageGetSample.js.map +1 -0
  40. package/dist-esm/samples-dev/applicationPackageListSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/applicationPackageListSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/applicationPackageListSample.js +46 -0
  43. package/dist-esm/samples-dev/applicationPackageListSample.js.map +1 -0
  44. package/dist-esm/samples-dev/applicationUpdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/applicationUpdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/applicationUpdateSample.js +37 -0
  47. package/dist-esm/samples-dev/applicationUpdateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/batchAccountCreateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/batchAccountCreateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/batchAccountCreateSample.js +150 -0
  51. package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/batchAccountDeleteSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/batchAccountDeleteSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/batchAccountDeleteSample.js +31 -0
  55. package/dist-esm/samples-dev/batchAccountDeleteSample.js.map +1 -0
  56. package/dist-esm/samples-dev/batchAccountGetDetectorSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/batchAccountGetDetectorSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +32 -0
  59. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js.map +1 -0
  60. package/dist-esm/samples-dev/batchAccountGetKeysSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/batchAccountGetKeysSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/batchAccountGetKeysSample.js +31 -0
  63. package/dist-esm/samples-dev/batchAccountGetKeysSample.js.map +1 -0
  64. package/dist-esm/samples-dev/batchAccountGetSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/batchAccountGetSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/batchAccountGetSample.js +49 -0
  67. package/dist-esm/samples-dev/batchAccountGetSample.js.map +1 -0
  68. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +44 -0
  71. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js.map +1 -0
  72. package/dist-esm/samples-dev/batchAccountListDetectorsSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/batchAccountListDetectorsSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +45 -0
  75. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js.map +1 -0
  76. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +45 -0
  79. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js.map +1 -0
  80. package/dist-esm/samples-dev/batchAccountListSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/batchAccountListSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/batchAccountListSample.js +43 -0
  83. package/dist-esm/samples-dev/batchAccountListSample.js.map +1 -0
  84. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.d.ts +2 -0
  85. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +34 -0
  87. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -0
  88. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +31 -0
  91. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js.map +1 -0
  92. package/dist-esm/samples-dev/batchAccountUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/batchAccountUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/batchAccountUpdateSample.js +36 -0
  95. package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -0
  96. package/dist-esm/samples-dev/certificateCancelDeletionSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/certificateCancelDeletionSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/certificateCancelDeletionSample.js +32 -0
  99. package/dist-esm/samples-dev/certificateCancelDeletionSample.js.map +1 -0
  100. package/dist-esm/samples-dev/certificateCreateSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/certificateCreateSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/certificateCreateSample.js +85 -0
  103. package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -0
  104. package/dist-esm/samples-dev/certificateDeleteSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/certificateDeleteSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/certificateDeleteSample.js +32 -0
  107. package/dist-esm/samples-dev/certificateDeleteSample.js.map +1 -0
  108. package/dist-esm/samples-dev/certificateGetSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/certificateGetSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/certificateGetSample.js +51 -0
  111. package/dist-esm/samples-dev/certificateGetSample.js.map +1 -0
  112. package/dist-esm/samples-dev/certificateListByBatchAccountSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/certificateListByBatchAccountSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +83 -0
  115. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -0
  116. package/dist-esm/samples-dev/certificateUpdateSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/certificateUpdateSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/certificateUpdateSample.js +36 -0
  119. package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -0
  120. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.d.ts +2 -0
  121. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +55 -0
  123. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -0
  124. package/dist-esm/samples-dev/locationGetQuotasSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/locationGetQuotasSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/locationGetQuotasSample.js +30 -0
  127. package/dist-esm/samples-dev/locationGetQuotasSample.js.map +1 -0
  128. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +44 -0
  131. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js.map +1 -0
  132. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +44 -0
  135. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js.map +1 -0
  136. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  139. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  140. package/dist-esm/samples-dev/poolCreateSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/poolCreateSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/poolCreateSample.js +456 -0
  143. package/dist-esm/samples-dev/poolCreateSample.js.map +1 -0
  144. package/dist-esm/samples-dev/poolDeleteSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/poolDeleteSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/poolDeleteSample.js +32 -0
  147. package/dist-esm/samples-dev/poolDeleteSample.js.map +1 -0
  148. package/dist-esm/samples-dev/poolDisableAutoScaleSample.d.ts +2 -0
  149. package/dist-esm/samples-dev/poolDisableAutoScaleSample.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +32 -0
  151. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js.map +1 -0
  152. package/dist-esm/samples-dev/poolGetSample.d.ts +2 -0
  153. package/dist-esm/samples-dev/poolGetSample.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/poolGetSample.js +51 -0
  155. package/dist-esm/samples-dev/poolGetSample.js.map +1 -0
  156. package/dist-esm/samples-dev/poolListByBatchAccountSample.d.ts +2 -0
  157. package/dist-esm/samples-dev/poolListByBatchAccountSample.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/poolListByBatchAccountSample.js +80 -0
  159. package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -0
  160. package/dist-esm/samples-dev/poolStopResizeSample.d.ts +2 -0
  161. package/dist-esm/samples-dev/poolStopResizeSample.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/poolStopResizeSample.js +32 -0
  163. package/dist-esm/samples-dev/poolStopResizeSample.js.map +1 -0
  164. package/dist-esm/samples-dev/poolUpdateSample.d.ts +2 -0
  165. package/dist-esm/samples-dev/poolUpdateSample.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/poolUpdateSample.js +122 -0
  167. package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -0
  168. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.d.ts +2 -0
  169. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +32 -0
  171. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -0
  172. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.d.ts +2 -0
  173. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +45 -0
  175. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js.map +1 -0
  176. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts +2 -0
  177. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts.map +1 -0
  178. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +38 -0
  179. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -0
  180. package/dist-esm/samples-dev/privateLinkResourceGetSample.d.ts +2 -0
  181. package/dist-esm/samples-dev/privateLinkResourceGetSample.d.ts.map +1 -0
  182. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +32 -0
  183. package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -0
  184. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.d.ts +2 -0
  185. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.d.ts.map +1 -0
  186. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +45 -0
  187. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js.map +1 -0
  188. package/dist-esm/src/batchManagementClient.js +2 -2
  189. package/dist-esm/src/models/index.d.ts +35 -4
  190. package/dist-esm/src/models/index.d.ts.map +1 -1
  191. package/dist-esm/src/models/mappers.d.ts +2 -0
  192. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  193. package/dist-esm/src/models/mappers.js +45 -0
  194. package/dist-esm/src/models/mappers.js.map +1 -1
  195. package/dist-esm/src/models/parameters.d.ts +1 -0
  196. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  197. package/dist-esm/src/models/parameters.js +11 -1
  198. package/dist-esm/src/models/parameters.js.map +1 -1
  199. package/dist-esm/src/operations/batchAccountOperations.d.ts +33 -1
  200. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
  201. package/dist-esm/src/operations/batchAccountOperations.js +147 -3
  202. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  203. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +16 -1
  204. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
  205. package/dist-esm/test/{sampleTest.d.ts → batch_examples.d.ts} +1 -1
  206. package/dist-esm/test/batch_examples.d.ts.map +1 -0
  207. package/dist-esm/test/{sampleTest.js → batch_examples.js} +1 -1
  208. package/dist-esm/test/batch_examples.js.map +1 -0
  209. package/package.json +24 -8
  210. package/review/arm-batch.api.md +38 -0
  211. package/rollup.config.js +6 -72
  212. package/src/batchManagementClient.ts +2 -2
  213. package/src/models/index.ts +43 -4
  214. package/src/models/mappers.ts +50 -0
  215. package/src/models/parameters.ts +12 -1
  216. package/src/operations/batchAccountOperations.ts +200 -0
  217. package/src/operationsInterfaces/batchAccountOperations.ts +29 -1
  218. package/tsconfig.json +19 -5
  219. package/types/arm-batch.d.ts +59 -4
  220. package/types/tsdoc-metadata.json +1 -1
  221. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  222. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about the specified Batch account.
15
+ *
16
+ * @summary Gets information about the specified Batch account.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountGet.json
18
+ */
19
+ function batchAccountGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BatchManagementClient(credential, subscriptionId);
26
+ const result = yield client.batchAccountOperations.get(resourceGroupName, accountName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ batchAccountGet().catch(console.error);
31
+ /**
32
+ * This sample demonstrates how to Gets information about the specified Batch account.
33
+ *
34
+ * @summary Gets information about the specified Batch account.
35
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PrivateBatchAccountGet.json
36
+ */
37
+ function privateBatchAccountGet() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const subscriptionId = "subid";
40
+ const resourceGroupName = "default-azurebatch-japaneast";
41
+ const accountName = "sampleacct";
42
+ const credential = new DefaultAzureCredential();
43
+ const client = new BatchManagementClient(credential, subscriptionId);
44
+ const result = yield client.batchAccountOperations.get(resourceGroupName, accountName);
45
+ console.log(result);
46
+ });
47
+ }
48
+ privateBatchAccountGet().catch(console.error);
49
+ //# sourceMappingURL=batchAccountGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountGetSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountGetSample.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,eAAe;;QAC5B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,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,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,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,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountListByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
15
+ *
16
+ * @summary Gets information about the Batch accounts associated with the specified resource group.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountListByResourceGroup.json
18
+ */
19
+ function batchAccountListByResourceGroup() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const resourceGroupName = "default-azurebatch-japaneast";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BatchManagementClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.batchAccountOperations.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ batchAccountListByResourceGroup().catch(console.error);
44
+ //# sourceMappingURL=batchAccountListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountListByResourceGroupSample.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,+BAA+B;;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,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,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,mBAAmB,CACtE,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountListDetectorsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListDetectorsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountListDetectorsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about the detectors available for a given Batch account.
15
+ *
16
+ * @summary Gets information about the detectors available for a given Batch account.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/DetectorList.json
18
+ */
19
+ function listDetectors() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const resourceGroupName = "default-azurebatch-japaneast";
24
+ const accountName = "sampleacct";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BatchManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.batchAccountOperations.listDetectors(resourceGroupName, accountName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listDetectors().catch(console.error);
45
+ //# sourceMappingURL=batchAccountListDetectorsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListDetectorsSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountListDetectorsSample.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,aAAa;;;QAC1B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,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,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,aAAa,CAChE,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountListOutboundNetworkDependenciesEndpointsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListOutboundNetworkDependenciesEndpointsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
15
+ *
16
+ * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
18
+ */
19
+ function listOutboundNetworkDependencies() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const resourceGroupName = "default-azurebatch-japaneast";
24
+ const accountName = "sampleacct";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BatchManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints(resourceGroupName, accountName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listOutboundNetworkDependencies().catch(console.error);
45
+ //# sourceMappingURL=batchAccountListOutboundNetworkDependenciesEndpointsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListOutboundNetworkDependenciesEndpointsSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.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,+BAA+B;;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,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,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,wCAAwC,CAC3F,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
15
+ *
16
+ * @summary Gets information about the Batch accounts associated with the subscription.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountList.json
18
+ */
19
+ function batchAccountList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new BatchManagementClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.batchAccountOperations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ batchAccountList().catch(console.error);
43
+ //# sourceMappingURL=batchAccountListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountListSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountListSample.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,gBAAgB;;;QAC7B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,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,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAhD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountRegenerateKeySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountRegenerateKeySample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountRegenerateKeySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
15
+ *
16
+ * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountRegenerateKey.json
18
+ */
19
+ function batchAccountRegenerateKey() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const parameters = {
25
+ keyName: "Primary"
26
+ };
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new BatchManagementClient(credential, subscriptionId);
29
+ const result = yield client.batchAccountOperations.regenerateKey(resourceGroupName, accountName, parameters);
30
+ console.log(result);
31
+ });
32
+ }
33
+ batchAccountRegenerateKey().catch(console.error);
34
+ //# sourceMappingURL=batchAccountRegenerateKeySample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountRegenerateKeySample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountRegenerateKeySample.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,yBAAyB;;QACtC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAwC;YACtD,OAAO,EAAE,SAAS;SACnB,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,sBAAsB,CAAC,aAAa,CAC9D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountSynchronizeAutoStorageKeysSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountSynchronizeAutoStorageKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
15
+ *
16
+ * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
18
+ */
19
+ function batchAccountSynchronizeAutoStorageKeys() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new BatchManagementClient(credential, subscriptionId);
26
+ const result = yield client.batchAccountOperations.synchronizeAutoStorageKeys(resourceGroupName, accountName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ batchAccountSynchronizeAutoStorageKeys().catch(console.error);
31
+ //# sourceMappingURL=batchAccountSynchronizeAutoStorageKeysSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountSynchronizeAutoStorageKeysSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountSynchronizeAutoStorageKeysSample.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,sCAAsC;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,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,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,0BAA0B,CAC3E,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=batchAccountUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/batchAccountUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the properties of an existing Batch account.
15
+ *
16
+ * @summary Updates the properties of an existing Batch account.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountUpdate.json
18
+ */
19
+ function batchAccountUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const parameters = {
25
+ autoStorage: {
26
+ storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
27
+ }
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new BatchManagementClient(credential, subscriptionId);
31
+ const result = yield client.batchAccountOperations.update(resourceGroupName, accountName, parameters);
32
+ console.log(result);
33
+ });
34
+ }
35
+ batchAccountUpdate().catch(console.error);
36
+ //# sourceMappingURL=batchAccountUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAccountUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountUpdateSample.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,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;QACzD,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAiC;YAC/C,WAAW,EAAE;gBACX,gBAAgB,EACd,4HAA4H;aAC/H;SACF,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,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificateCancelDeletionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateCancelDeletionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificateCancelDeletionSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
15
+ *
16
+ * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCancelDeletion.json
18
+ */
19
+ function certificateCancelDeletion() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BatchManagementClient(credential, subscriptionId);
27
+ const result = yield client.certificateOperations.cancelDeletion(resourceGroupName, accountName, certificateName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ certificateCancelDeletion().catch(console.error);
32
+ //# sourceMappingURL=certificateCancelDeletionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateCancelDeletionSample.js","sourceRoot":"","sources":["../../samples-dev/certificateCancelDeletionSample.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,yBAAyB;;QACtC,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,cAAc,CAC9D,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificateCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificateCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates a new certificate inside the specified account.
15
+ *
16
+ * @summary Creates a new certificate inside the specified account.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_Full.json
18
+ */
19
+ function createCertificateFull() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
25
+ const parameters = {
26
+ format: "Pfx",
27
+ data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
28
+ password: "<ExamplePassword>",
29
+ thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
30
+ thumbprintAlgorithm: "sha1"
31
+ };
32
+ const credential = new DefaultAzureCredential();
33
+ const client = new BatchManagementClient(credential, subscriptionId);
34
+ const result = yield client.certificateOperations.create(resourceGroupName, accountName, certificateName, parameters);
35
+ console.log(result);
36
+ });
37
+ }
38
+ createCertificateFull().catch(console.error);
39
+ /**
40
+ * This sample demonstrates how to Creates a new certificate inside the specified account.
41
+ *
42
+ * @summary Creates a new certificate inside the specified account.
43
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_MinimalCer.json
44
+ */
45
+ function createCertificateMinimalCer() {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ const subscriptionId = "subid";
48
+ const resourceGroupName = "default-azurebatch-japaneast";
49
+ const accountName = "sampleacct";
50
+ const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
51
+ const parameters = {
52
+ format: "Cer",
53
+ data: "MIICrjCCAZagAwI..."
54
+ };
55
+ const credential = new DefaultAzureCredential();
56
+ const client = new BatchManagementClient(credential, subscriptionId);
57
+ const result = yield client.certificateOperations.create(resourceGroupName, accountName, certificateName, parameters);
58
+ console.log(result);
59
+ });
60
+ }
61
+ createCertificateMinimalCer().catch(console.error);
62
+ /**
63
+ * This sample demonstrates how to Creates a new certificate inside the specified account.
64
+ *
65
+ * @summary Creates a new certificate inside the specified account.
66
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_Minimal.json
67
+ */
68
+ function createCertificateMinimalPfx() {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const subscriptionId = "subid";
71
+ const resourceGroupName = "default-azurebatch-japaneast";
72
+ const accountName = "sampleacct";
73
+ const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
74
+ const parameters = {
75
+ data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
76
+ password: "<ExamplePassword>"
77
+ };
78
+ const credential = new DefaultAzureCredential();
79
+ const client = new BatchManagementClient(credential, subscriptionId);
80
+ const result = yield client.certificateOperations.create(resourceGroupName, accountName, certificateName, parameters);
81
+ console.log(result);
82
+ });
83
+ }
84
+ createCertificateMinimalPfx().catch(console.error);
85
+ //# sourceMappingURL=certificateCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateCreateSample.js","sourceRoot":"","sources":["../../samples-dev/certificateCreateSample.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,qBAAqB;;QAClC,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,GAAwC;YACtD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,gCAAgC;YACtC,QAAQ,EAAE,mBAAmB;YAC7B,UAAU,EAAE,0CAA0C;YACtD,mBAAmB,EAAE,MAAM;SAC5B,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,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,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,GAAwC;YACtD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,oBAAoB;SAC3B,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,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,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,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,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificateDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificateDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes the specified certificate.
15
+ *
16
+ * @summary Deletes the specified certificate.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateDelete.json
18
+ */
19
+ function certificateDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "default-azurebatch-japaneast";
23
+ const accountName = "sampleacct";
24
+ const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new BatchManagementClient(credential, subscriptionId);
27
+ const result = yield client.certificateOperations.beginDeleteAndWait(resourceGroupName, accountName, certificateName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ certificateDelete().catch(console.error);
32
+ //# sourceMappingURL=certificateDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/certificateDeleteSample.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,iBAAiB;;QAC9B,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,kBAAkB,CAClE,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificateGetSample.d.ts.map