@azure/arm-batch 7.0.1-alpha.20220315.1 → 7.1.0-alpha.20220317.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 (221) 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/dist-esm/test/sampleTest.d.ts.map +0 -1
  221. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificateGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
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 certificate.
15
+ *
16
+ * @summary Gets information about the specified certificate.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateGet.json
18
+ */
19
+ function getCertificate() {
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.get(resourceGroupName, accountName, certificateName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getCertificate().catch(console.error);
32
+ /**
33
+ * This sample demonstrates how to Gets information about the specified certificate.
34
+ *
35
+ * @summary Gets information about the specified certificate.
36
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateGetWithDeletionError.json
37
+ */
38
+ function getCertificateWithDeletionError() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const subscriptionId = "subid";
41
+ const resourceGroupName = "default-azurebatch-japaneast";
42
+ const accountName = "sampleacct";
43
+ const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
44
+ const credential = new DefaultAzureCredential();
45
+ const client = new BatchManagementClient(credential, subscriptionId);
46
+ const result = yield client.certificateOperations.get(resourceGroupName, accountName, certificateName);
47
+ console.log(result);
48
+ });
49
+ }
50
+ getCertificateWithDeletionError().catch(console.error);
51
+ //# sourceMappingURL=certificateGetSample.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certificateListByBatchAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateListByBatchAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,83 @@
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 all of the certificates in the specified account.
15
+ *
16
+ * @summary Lists all of the certificates in the specified account.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateList.json
18
+ */
19
+ function listCertificates() {
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.certificateOperations.listByBatchAccount(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
+ listCertificates().catch(console.error);
45
+ /**
46
+ * This sample demonstrates how to Lists all of the certificates in the specified account.
47
+ *
48
+ * @summary Lists all of the certificates in the specified account.
49
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateListWithFilter.json
50
+ */
51
+ function listCertificatesFilterAndSelect() {
52
+ var e_2, _a;
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const subscriptionId = "subid";
55
+ const resourceGroupName = "default-azurebatch-japaneast";
56
+ const accountName = "sampleacct";
57
+ const select = "properties/format,properties/provisioningState";
58
+ const filter = "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'";
59
+ const options = {
60
+ select,
61
+ filter
62
+ };
63
+ const credential = new DefaultAzureCredential();
64
+ const client = new BatchManagementClient(credential, subscriptionId);
65
+ const resArray = new Array();
66
+ try {
67
+ for (var _b = __asyncValues(client.certificateOperations.listByBatchAccount(resourceGroupName, accountName, options)), _c; _c = yield _b.next(), !_c.done;) {
68
+ let item = _c.value;
69
+ resArray.push(item);
70
+ }
71
+ }
72
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
73
+ finally {
74
+ try {
75
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
76
+ }
77
+ finally { if (e_2) throw e_2.error; }
78
+ }
79
+ console.log(resArray);
80
+ });
81
+ }
82
+ listCertificatesFilterAndSelect().catch(console.error);
83
+ //# sourceMappingURL=certificateListByBatchAccountSample.js.map
@@ -0,0 +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,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gBAAgB;;;QAC7B,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,qBAAqB,CAAC,kBAAkB,CACpE,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,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAExC;;;;;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,MAAM,GAAG,gDAAgD,CAAC;QAChE,MAAM,MAAM,GACV,wGAAwG,CAAC;QAC3G,MAAM,OAAO,GAAgD;YAC3D,MAAM;YACN,MAAM;SACP,CAAC;QACF,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,qBAAqB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAA,IAAA;gBAJU,IAAI,IAAI,WAAA,CAAA;gBAKjB,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=certificateUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certificateUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/certificateUpdateSample.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 certificate.
15
+ *
16
+ * @summary Updates the properties of an existing certificate.
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateUpdate.json
18
+ */
19
+ function updateCertificate() {
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
+ data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
27
+ password: "<ExamplePassword>"
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new BatchManagementClient(credential, subscriptionId);
31
+ const result = yield client.certificateOperations.update(resourceGroupName, accountName, certificateName, parameters);
32
+ console.log(result);
33
+ });
34
+ }
35
+ updateCertificate().catch(console.error);
36
+ //# sourceMappingURL=certificateUpdateSample.js.map
@@ -0,0 +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,MAAM,kBAAkB,CAAC;AAC1B,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,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,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=locationCheckNameAvailabilitySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationCheckNameAvailabilitySample.d.ts","sourceRoot":"","sources":["../../samples-dev/locationCheckNameAvailabilitySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
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 Checks whether the Batch account name is available in the specified region.
15
+ *
16
+ * @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-01-01/examples/LocationCheckNameAvailability_AlreadyExists.json
18
+ */
19
+ function locationCheckNameAvailabilityAlreadyExists() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const locationName = "japaneast";
23
+ const parameters = {
24
+ name: "existingaccountname",
25
+ type: "Microsoft.Batch/batchAccounts"
26
+ };
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new BatchManagementClient(credential, subscriptionId);
29
+ const result = yield client.location.checkNameAvailability(locationName, parameters);
30
+ console.log(result);
31
+ });
32
+ }
33
+ locationCheckNameAvailabilityAlreadyExists().catch(console.error);
34
+ /**
35
+ * This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
36
+ *
37
+ * @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-01-01/examples/LocationCheckNameAvailability_Available.json
39
+ */
40
+ function locationCheckNameAvailabilityAvailable() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ const subscriptionId = "subid";
43
+ const locationName = "japaneast";
44
+ const parameters = {
45
+ name: "newaccountname",
46
+ type: "Microsoft.Batch/batchAccounts"
47
+ };
48
+ const credential = new DefaultAzureCredential();
49
+ const client = new BatchManagementClient(credential, subscriptionId);
50
+ const result = yield client.location.checkNameAvailability(locationName, parameters);
51
+ console.log(result);
52
+ });
53
+ }
54
+ locationCheckNameAvailabilityAvailable().catch(console.error);
55
+ //# sourceMappingURL=locationCheckNameAvailabilitySample.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=locationGetQuotasSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationGetQuotasSample.d.ts","sourceRoot":"","sources":["../../samples-dev/locationGetQuotasSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
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 the Batch service quotas for the specified subscription at the given location.
15
+ *
16
+ * @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-01-01/examples/LocationGetQuotas.json
18
+ */
19
+ function locationGetQuotas() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const locationName = "japaneast";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new BatchManagementClient(credential, subscriptionId);
25
+ const result = yield client.location.getQuotas(locationName);
26
+ console.log(result);
27
+ });
28
+ }
29
+ locationGetQuotas().catch(console.error);
30
+ //# sourceMappingURL=locationGetQuotasSample.js.map
@@ -0,0 +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,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,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,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC7D,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=locationListSupportedCloudServiceSkusSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationListSupportedCloudServiceSkusSample.d.ts","sourceRoot":"","sources":["../../samples-dev/locationListSupportedCloudServiceSkusSample.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 the list of Batch supported Cloud Service VM sizes available at the given location.
15
+ *
16
+ * @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-01-01/examples/LocationListCloudServiceSkus.json
18
+ */
19
+ function locationListCloudServiceSkus() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const locationName = "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.location.listSupportedCloudServiceSkus(locationName)), _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
+ locationListCloudServiceSkus().catch(console.error);
44
+ //# sourceMappingURL=locationListSupportedCloudServiceSkusSample.js.map
@@ -0,0 +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,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAClE,YAAY,CACb,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,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=locationListSupportedVirtualMachineSkusSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationListSupportedVirtualMachineSkusSample.d.ts","sourceRoot":"","sources":["../../samples-dev/locationListSupportedVirtualMachineSkusSample.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 the list of Batch supported Virtual Machine VM sizes available at the given location.
15
+ *
16
+ * @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-01-01/examples/LocationListVirtualMachineSkus.json
18
+ */
19
+ function locationListVirtualMachineSkus() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const locationName = "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.location.listSupportedVirtualMachineSkus(locationName)), _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
+ locationListVirtualMachineSkus().catch(console.error);
44
+ //# sourceMappingURL=locationListSupportedVirtualMachineSkusSample.js.map
@@ -0,0 +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,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,+BAA+B,CACpE,YAAY,CACb,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,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.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 Lists available operations for the Microsoft.Batch provider
15
+ *
16
+ * @summary Lists available operations for the Microsoft.Batch provider
17
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/OperationsList.json
18
+ */
19
+ function operationsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
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.operations.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
+ operationsList().catch(console.error);
43
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +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,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=poolCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/poolCreateSample.ts"],"names":[],"mappings":""}