@azure/arm-workloadssapvirtualinstance 1.0.0-alpha.20240322.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 (247) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +6973 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +53 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.js +72 -0
  15. package/dist-esm/samples-dev/sapApplicationServerInstancesCreateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.js +40 -0
  19. package/dist-esm/samples-dev/sapApplicationServerInstancesDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.js +40 -0
  23. package/dist-esm/samples-dev/sapApplicationServerInstancesGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.js +55 -0
  27. package/dist-esm/samples-dev/sapApplicationServerInstancesListSample.js.map +1 -0
  28. package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.js +64 -0
  31. package/dist-esm/samples-dev/sapApplicationServerInstancesStartInstanceSample.js.map +1 -0
  32. package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.js +68 -0
  35. package/dist-esm/samples-dev/sapApplicationServerInstancesStopInstanceSample.js.map +1 -0
  36. package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.js +44 -0
  39. package/dist-esm/samples-dev/sapApplicationServerInstancesUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.js +56 -0
  43. package/dist-esm/samples-dev/sapAvailabilityZoneDetailsSample.js.map +1 -0
  44. package/dist-esm/samples-dev/sapCentralInstancesCreateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/sapCentralInstancesCreateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/sapCentralInstancesCreateSample.js +72 -0
  47. package/dist-esm/samples-dev/sapCentralInstancesCreateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.js +40 -0
  51. package/dist-esm/samples-dev/sapCentralInstancesDeleteSample.js.map +1 -0
  52. package/dist-esm/samples-dev/sapCentralInstancesGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/sapCentralInstancesGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/sapCentralInstancesGetSample.js +40 -0
  55. package/dist-esm/samples-dev/sapCentralInstancesGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/sapCentralInstancesListSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/sapCentralInstancesListSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/sapCentralInstancesListSample.js +55 -0
  59. package/dist-esm/samples-dev/sapCentralInstancesListSample.js.map +1 -0
  60. package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.js +62 -0
  63. package/dist-esm/samples-dev/sapCentralInstancesStartInstanceSample.js.map +1 -0
  64. package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.js +64 -0
  67. package/dist-esm/samples-dev/sapCentralInstancesStopInstanceSample.js.map +1 -0
  68. package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.js +42 -0
  71. package/dist-esm/samples-dev/sapCentralInstancesUpdateSample.js.map +1 -0
  72. package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.js +72 -0
  75. package/dist-esm/samples-dev/sapDatabaseInstancesCreateSample.js.map +1 -0
  76. package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.js +40 -0
  79. package/dist-esm/samples-dev/sapDatabaseInstancesDeleteSample.js.map +1 -0
  80. package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.js +40 -0
  83. package/dist-esm/samples-dev/sapDatabaseInstancesGetSample.js.map +1 -0
  84. package/dist-esm/samples-dev/sapDatabaseInstancesListSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/sapDatabaseInstancesListSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/sapDatabaseInstancesListSample.js +55 -0
  87. package/dist-esm/samples-dev/sapDatabaseInstancesListSample.js.map +1 -0
  88. package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.js +62 -0
  91. package/dist-esm/samples-dev/sapDatabaseInstancesStartInstanceSample.js.map +1 -0
  92. package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.js +64 -0
  95. package/dist-esm/samples-dev/sapDatabaseInstancesStopInstanceSample.js.map +1 -0
  96. package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.js +42 -0
  99. package/dist-esm/samples-dev/sapDatabaseInstancesUpdateSample.js.map +1 -0
  100. package/dist-esm/samples-dev/sapDiskConfigurationsSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/sapDiskConfigurationsSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/sapDiskConfigurationsSample.js +56 -0
  103. package/dist-esm/samples-dev/sapDiskConfigurationsSample.js.map +1 -0
  104. package/dist-esm/samples-dev/sapSizingRecommendationsSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/sapSizingRecommendationsSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/sapSizingRecommendationsSample.js +92 -0
  107. package/dist-esm/samples-dev/sapSizingRecommendationsSample.js.map +1 -0
  108. package/dist-esm/samples-dev/sapSupportedSkuSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/sapSupportedSkuSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/sapSupportedSkuSample.js +92 -0
  111. package/dist-esm/samples-dev/sapSupportedSkuSample.js.map +1 -0
  112. package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.js +2993 -0
  115. package/dist-esm/samples-dev/sapVirtualInstancesCreateSample.js.map +1 -0
  116. package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.js +39 -0
  119. package/dist-esm/samples-dev/sapVirtualInstancesDeleteSample.js.map +1 -0
  120. package/dist-esm/samples-dev/sapVirtualInstancesGetSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/sapVirtualInstancesGetSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/sapVirtualInstancesGetSample.js +58 -0
  123. package/dist-esm/samples-dev/sapVirtualInstancesGetSample.js.map +1 -0
  124. package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.js +54 -0
  127. package/dist-esm/samples-dev/sapVirtualInstancesListByResourceGroupSample.js.map +1 -0
  128. package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.js +53 -0
  131. package/dist-esm/samples-dev/sapVirtualInstancesListBySubscriptionSample.js.map +1 -0
  132. package/dist-esm/samples-dev/sapVirtualInstancesStartSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/sapVirtualInstancesStartSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/sapVirtualInstancesStartSample.js +60 -0
  135. package/dist-esm/samples-dev/sapVirtualInstancesStartSample.js.map +1 -0
  136. package/dist-esm/samples-dev/sapVirtualInstancesStopSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/sapVirtualInstancesStopSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/sapVirtualInstancesStopSample.js +62 -0
  139. package/dist-esm/samples-dev/sapVirtualInstancesStopSample.js.map +1 -0
  140. package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.js +69 -0
  143. package/dist-esm/samples-dev/sapVirtualInstancesUpdateSample.js.map +1 -0
  144. package/dist-esm/src/index.d.ts +6 -0
  145. package/dist-esm/src/index.d.ts.map +1 -0
  146. package/dist-esm/src/index.js +13 -0
  147. package/dist-esm/src/index.js.map +1 -0
  148. package/dist-esm/src/lroImpl.d.ts +11 -0
  149. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  150. package/dist-esm/src/lroImpl.js +21 -0
  151. package/dist-esm/src/lroImpl.js.map +1 -0
  152. package/dist-esm/src/models/index.d.ts +2158 -0
  153. package/dist-esm/src/models/index.d.ts.map +1 -0
  154. package/dist-esm/src/models/index.js +274 -0
  155. package/dist-esm/src/models/index.js.map +1 -0
  156. package/dist-esm/src/models/mappers.d.ts +146 -0
  157. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  158. package/dist-esm/src/models/mappers.js +3364 -0
  159. package/dist-esm/src/models/mappers.js.map +1 -0
  160. package/dist-esm/src/models/parameters.d.ts +28 -0
  161. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  162. package/dist-esm/src/models/parameters.js +212 -0
  163. package/dist-esm/src/models/parameters.js.map +1 -0
  164. package/dist-esm/src/operations/index.d.ts +6 -0
  165. package/dist-esm/src/operations/index.d.ts.map +1 -0
  166. package/dist-esm/src/operations/index.js +13 -0
  167. package/dist-esm/src/operations/index.js.map +1 -0
  168. package/dist-esm/src/operations/operations.d.ts +32 -0
  169. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  170. package/dist-esm/src/operations/operations.js +133 -0
  171. package/dist-esm/src/operations/operations.js.map +1 -0
  172. package/dist-esm/src/operations/sAPApplicationServerInstances.d.ts +127 -0
  173. package/dist-esm/src/operations/sAPApplicationServerInstances.d.ts.map +1 -0
  174. package/dist-esm/src/operations/sAPApplicationServerInstances.js +617 -0
  175. package/dist-esm/src/operations/sAPApplicationServerInstances.js.map +1 -0
  176. package/dist-esm/src/operations/sAPCentralInstances.d.ts +140 -0
  177. package/dist-esm/src/operations/sAPCentralInstances.d.ts.map +1 -0
  178. package/dist-esm/src/operations/sAPCentralInstances.js +630 -0
  179. package/dist-esm/src/operations/sAPCentralInstances.js.map +1 -0
  180. package/dist-esm/src/operations/sAPDatabaseInstances.d.ts +133 -0
  181. package/dist-esm/src/operations/sAPDatabaseInstances.d.ts.map +1 -0
  182. package/dist-esm/src/operations/sAPDatabaseInstances.js +623 -0
  183. package/dist-esm/src/operations/sAPDatabaseInstances.js.map +1 -0
  184. package/dist-esm/src/operations/sAPVirtualInstances.d.ts +133 -0
  185. package/dist-esm/src/operations/sAPVirtualInstances.d.ts.map +1 -0
  186. package/dist-esm/src/operations/sAPVirtualInstances.js +725 -0
  187. package/dist-esm/src/operations/sAPVirtualInstances.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  189. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  190. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  191. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  193. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  196. package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.d.ts +101 -0
  197. package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.d.ts.map +1 -0
  198. package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.js +9 -0
  199. package/dist-esm/src/operationsInterfaces/sAPApplicationServerInstances.js.map +1 -0
  200. package/dist-esm/src/operationsInterfaces/sAPCentralInstances.d.ts +114 -0
  201. package/dist-esm/src/operationsInterfaces/sAPCentralInstances.d.ts.map +1 -0
  202. package/dist-esm/src/operationsInterfaces/sAPCentralInstances.js +9 -0
  203. package/dist-esm/src/operationsInterfaces/sAPCentralInstances.js.map +1 -0
  204. package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.d.ts +108 -0
  205. package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.d.ts.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.js +9 -0
  207. package/dist-esm/src/operationsInterfaces/sAPDatabaseInstances.js.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.d.ts +97 -0
  209. package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.d.ts.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.js +9 -0
  211. package/dist-esm/src/operationsInterfaces/sAPVirtualInstances.js.map +1 -0
  212. package/dist-esm/src/pagingHelper.d.ts +13 -0
  213. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  214. package/dist-esm/src/pagingHelper.js +32 -0
  215. package/dist-esm/src/pagingHelper.js.map +1 -0
  216. package/dist-esm/src/workloadsClient.d.ts +49 -0
  217. package/dist-esm/src/workloadsClient.d.ts.map +1 -0
  218. package/dist-esm/src/workloadsClient.js +229 -0
  219. package/dist-esm/src/workloadsClient.js.map +1 -0
  220. package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.d.ts +4 -0
  221. package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.d.ts.map +1 -0
  222. package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.js +73 -0
  223. package/dist-esm/test/workloadssapvirtualinstance_operations_test.spec.js.map +1 -0
  224. package/package.json +118 -0
  225. package/review/arm-workloadssapvirtualinstance.api.md +1558 -0
  226. package/src/index.ts +13 -0
  227. package/src/lroImpl.ts +42 -0
  228. package/src/models/index.ts +2476 -0
  229. package/src/models/mappers.ts +3615 -0
  230. package/src/models/parameters.ts +258 -0
  231. package/src/operations/index.ts +13 -0
  232. package/src/operations/operations.ts +149 -0
  233. package/src/operations/sAPApplicationServerInstances.ts +852 -0
  234. package/src/operations/sAPCentralInstances.ts +863 -0
  235. package/src/operations/sAPDatabaseInstances.ts +856 -0
  236. package/src/operations/sAPVirtualInstances.ts +964 -0
  237. package/src/operationsInterfaces/index.ts +13 -0
  238. package/src/operationsInterfaces/operations.ts +22 -0
  239. package/src/operationsInterfaces/sAPApplicationServerInstances.ts +199 -0
  240. package/src/operationsInterfaces/sAPCentralInstances.ts +212 -0
  241. package/src/operationsInterfaces/sAPDatabaseInstances.ts +206 -0
  242. package/src/operationsInterfaces/sAPVirtualInstances.ts +196 -0
  243. package/src/pagingHelper.ts +39 -0
  244. package/src/workloadsClient.ts +327 -0
  245. package/tsconfig.json +33 -0
  246. package/types/arm-workloadssapvirtualinstance.d.ts +2888 -0
  247. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=sAPVirtualInstances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sAPVirtualInstances.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/sAPVirtualInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -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
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,49 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { SAPVirtualInstances, SAPCentralInstances, SAPDatabaseInstances, SAPApplicationServerInstances, Operations } from "./operationsInterfaces";
4
+ import { WorkloadsClientOptionalParams, SAPSizingRecommendationsOptionalParams, SAPSizingRecommendationsResponse, SAPSupportedSkuOptionalParams, SAPSupportedSkuResponse, SAPDiskConfigurationsOptionalParams, SAPDiskConfigurationsResponse, SAPAvailabilityZoneDetailsOptionalParams, SAPAvailabilityZoneDetailsResponse } from "./models";
5
+ export declare class WorkloadsClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ subscriptionId: string;
8
+ apiVersion: string;
9
+ /**
10
+ * Initializes a new instance of the WorkloadsClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WorkloadsClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ /**
19
+ * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for
20
+ * database tier
21
+ * @param location The name of Azure region.
22
+ * @param options The options parameters.
23
+ */
24
+ sAPSizingRecommendations(location: string, options?: SAPSizingRecommendationsOptionalParams): Promise<SAPSizingRecommendationsResponse>;
25
+ /**
26
+ * Get a list of SAP supported SKUs for ASCS, Application and Database tier.
27
+ * @param location The name of Azure region.
28
+ * @param options The options parameters.
29
+ */
30
+ sAPSupportedSku(location: string, options?: SAPSupportedSkuOptionalParams): Promise<SAPSupportedSkuResponse>;
31
+ /**
32
+ * Get the SAP Disk Configuration Layout prod/non-prod SAP System.
33
+ * @param location The name of Azure region.
34
+ * @param options The options parameters.
35
+ */
36
+ sAPDiskConfigurations(location: string, options?: SAPDiskConfigurationsOptionalParams): Promise<SAPDiskConfigurationsResponse>;
37
+ /**
38
+ * Get the recommended SAP Availability Zone Pair Details for your region.
39
+ * @param location The name of Azure region.
40
+ * @param options The options parameters.
41
+ */
42
+ sAPAvailabilityZoneDetails(location: string, options?: SAPAvailabilityZoneDetailsOptionalParams): Promise<SAPAvailabilityZoneDetailsResponse>;
43
+ sAPVirtualInstances: SAPVirtualInstances;
44
+ sAPCentralInstances: SAPCentralInstances;
45
+ sAPDatabaseInstances: SAPDatabaseInstances;
46
+ sAPApplicationServerInstances: SAPApplicationServerInstances;
47
+ operations: Operations;
48
+ }
49
+ //# sourceMappingURL=workloadsClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workloadsClient.d.ts","sourceRoot":"","sources":["../../src/workloadsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAQ7C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAC7B,UAAU,EACX,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,6BAA6B,EAC7B,sCAAsC,EACtC,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACvB,mCAAmC,EACnC,6BAA6B,EAC7B,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,UAAU,CAAC;AAElB,qBAAa,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6BAA6B;IAmFzC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;;OAKG;IACH,wBAAwB,CACtB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;OAIG;IACH,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;OAIG;IACH,qBAAqB,CACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;OAIG;IACH,0BAA0B,CACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,6BAA6B,EAAE,6BAA6B,CAAC;IAC7D,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,229 @@
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
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import { SAPVirtualInstancesImpl, SAPCentralInstancesImpl, SAPDatabaseInstancesImpl, SAPApplicationServerInstancesImpl, OperationsImpl, } from "./operations";
12
+ import * as Parameters from "./models/parameters";
13
+ import * as Mappers from "./models/mappers";
14
+ export class WorkloadsClient extends coreClient.ServiceClient {
15
+ /**
16
+ * Initializes a new instance of the WorkloadsClient class.
17
+ * @param credentials Subscription credentials which uniquely identify client subscription.
18
+ * @param subscriptionId The ID of the target subscription.
19
+ * @param options The parameter options
20
+ */
21
+ constructor(credentials, subscriptionId, options) {
22
+ var _a, _b, _c;
23
+ if (credentials === undefined) {
24
+ throw new Error("'credentials' cannot be null");
25
+ }
26
+ if (subscriptionId === undefined) {
27
+ throw new Error("'subscriptionId' cannot be null");
28
+ }
29
+ // Initializing default values for options
30
+ if (!options) {
31
+ options = {};
32
+ }
33
+ const defaults = {
34
+ requestContentType: "application/json; charset=utf-8",
35
+ credential: credentials,
36
+ };
37
+ const packageDetails = `azsdk-js-arm-workloadssapvirtualinstance/1.0.0-beta.1`;
38
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
40
+ : `${packageDetails}`;
41
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ userAgentPrefix,
43
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
44
+ super(optionsWithDefaults);
45
+ let bearerTokenAuthenticationPolicyFound = false;
46
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
47
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
48
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
49
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
+ }
51
+ if (!options ||
52
+ !options.pipeline ||
53
+ options.pipeline.getOrderedPolicies().length == 0 ||
54
+ !bearerTokenAuthenticationPolicyFound) {
55
+ this.pipeline.removePolicy({
56
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
57
+ });
58
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
59
+ credential: credentials,
60
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
61
+ challengeCallbacks: {
62
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
63
+ },
64
+ }));
65
+ }
66
+ // Parameter assignments
67
+ this.subscriptionId = subscriptionId;
68
+ // Assigning values to Constant parameters
69
+ this.$host = options.$host || "https://management.azure.com";
70
+ this.apiVersion = options.apiVersion || "2023-10-01-preview";
71
+ this.sAPVirtualInstances = new SAPVirtualInstancesImpl(this);
72
+ this.sAPCentralInstances = new SAPCentralInstancesImpl(this);
73
+ this.sAPDatabaseInstances = new SAPDatabaseInstancesImpl(this);
74
+ this.sAPApplicationServerInstances = new SAPApplicationServerInstancesImpl(this);
75
+ this.operations = new OperationsImpl(this);
76
+ this.addCustomApiVersionPolicy(options.apiVersion);
77
+ }
78
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
79
+ addCustomApiVersionPolicy(apiVersion) {
80
+ if (!apiVersion) {
81
+ return;
82
+ }
83
+ const apiVersionPolicy = {
84
+ name: "CustomApiVersionPolicy",
85
+ sendRequest(request, next) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const param = request.url.split("?");
88
+ if (param.length > 1) {
89
+ const newParams = param[1].split("&").map((item) => {
90
+ if (item.indexOf("api-version") > -1) {
91
+ return "api-version=" + apiVersion;
92
+ }
93
+ else {
94
+ return item;
95
+ }
96
+ });
97
+ request.url = param[0] + "?" + newParams.join("&");
98
+ }
99
+ return next(request);
100
+ });
101
+ },
102
+ };
103
+ this.pipeline.addPolicy(apiVersionPolicy);
104
+ }
105
+ /**
106
+ * Get SAP sizing recommendations by providing input SAPS for application tier and memory required for
107
+ * database tier
108
+ * @param location The name of Azure region.
109
+ * @param options The options parameters.
110
+ */
111
+ sAPSizingRecommendations(location, options) {
112
+ return this.sendOperationRequest({ location, options }, sAPSizingRecommendationsOperationSpec);
113
+ }
114
+ /**
115
+ * Get a list of SAP supported SKUs for ASCS, Application and Database tier.
116
+ * @param location The name of Azure region.
117
+ * @param options The options parameters.
118
+ */
119
+ sAPSupportedSku(location, options) {
120
+ return this.sendOperationRequest({ location, options }, sAPSupportedSkuOperationSpec);
121
+ }
122
+ /**
123
+ * Get the SAP Disk Configuration Layout prod/non-prod SAP System.
124
+ * @param location The name of Azure region.
125
+ * @param options The options parameters.
126
+ */
127
+ sAPDiskConfigurations(location, options) {
128
+ return this.sendOperationRequest({ location, options }, sAPDiskConfigurationsOperationSpec);
129
+ }
130
+ /**
131
+ * Get the recommended SAP Availability Zone Pair Details for your region.
132
+ * @param location The name of Azure region.
133
+ * @param options The options parameters.
134
+ */
135
+ sAPAvailabilityZoneDetails(location, options) {
136
+ return this.sendOperationRequest({ location, options }, sAPAvailabilityZoneDetailsOperationSpec);
137
+ }
138
+ }
139
+ // Operation Specifications
140
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
141
+ const sAPSizingRecommendationsOperationSpec = {
142
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations",
143
+ httpMethod: "POST",
144
+ responses: {
145
+ 200: {
146
+ bodyMapper: Mappers.SAPSizingRecommendationResult,
147
+ },
148
+ default: {
149
+ bodyMapper: Mappers.ErrorResponse,
150
+ },
151
+ },
152
+ requestBody: Parameters.sAPSizingRecommendation,
153
+ queryParameters: [Parameters.apiVersion],
154
+ urlParameters: [
155
+ Parameters.$host,
156
+ Parameters.subscriptionId,
157
+ Parameters.location,
158
+ ],
159
+ headerParameters: [Parameters.contentType, Parameters.accept],
160
+ mediaType: "json",
161
+ serializer,
162
+ };
163
+ const sAPSupportedSkuOperationSpec = {
164
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSapSupportedSku",
165
+ httpMethod: "POST",
166
+ responses: {
167
+ 200: {
168
+ bodyMapper: Mappers.SAPSupportedResourceSkusResult,
169
+ },
170
+ default: {
171
+ bodyMapper: Mappers.ErrorResponse,
172
+ },
173
+ },
174
+ requestBody: Parameters.sAPSupportedSku,
175
+ queryParameters: [Parameters.apiVersion],
176
+ urlParameters: [
177
+ Parameters.$host,
178
+ Parameters.subscriptionId,
179
+ Parameters.location,
180
+ ],
181
+ headerParameters: [Parameters.contentType, Parameters.accept],
182
+ mediaType: "json",
183
+ serializer,
184
+ };
185
+ const sAPDiskConfigurationsOperationSpec = {
186
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getDiskConfigurations",
187
+ httpMethod: "POST",
188
+ responses: {
189
+ 200: {
190
+ bodyMapper: Mappers.SAPDiskConfigurationsResult,
191
+ },
192
+ default: {
193
+ bodyMapper: Mappers.ErrorResponse,
194
+ },
195
+ },
196
+ requestBody: Parameters.sAPDiskConfigurations,
197
+ queryParameters: [Parameters.apiVersion],
198
+ urlParameters: [
199
+ Parameters.$host,
200
+ Parameters.subscriptionId,
201
+ Parameters.location,
202
+ ],
203
+ headerParameters: [Parameters.contentType, Parameters.accept],
204
+ mediaType: "json",
205
+ serializer,
206
+ };
207
+ const sAPAvailabilityZoneDetailsOperationSpec = {
208
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails",
209
+ httpMethod: "POST",
210
+ responses: {
211
+ 200: {
212
+ bodyMapper: Mappers.SAPAvailabilityZoneDetailsResult,
213
+ },
214
+ default: {
215
+ bodyMapper: Mappers.ErrorResponse,
216
+ },
217
+ },
218
+ requestBody: Parameters.sAPAvailabilityZoneDetails,
219
+ queryParameters: [Parameters.apiVersion],
220
+ urlParameters: [
221
+ Parameters.$host,
222
+ Parameters.subscriptionId,
223
+ Parameters.location,
224
+ ],
225
+ headerParameters: [Parameters.contentType, Parameters.accept],
226
+ mediaType: "json",
227
+ serializer,
228
+ };
229
+ //# sourceMappingURL=workloadsClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workloadsClient.js","sourceRoot":"","sources":["../../src/workloadsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,iCAAiC,EACjC,cAAc,GACf,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAa5C,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAK3D;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuC;;QAEvC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,uDAAuD,CAAC;QAC/E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,C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,UAAU,CAAC,qBAAqB;IAC7C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,0BAA0B;IAClD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=workloadssapvirtualinstance_operations_test.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workloadssapvirtualinstance_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/workloadssapvirtualinstance_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,73 @@
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
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { assert } from "chai";
12
+ import { WorkloadsClient } from "../src/workloadsClient";
13
+ const replaceableVariables = {
14
+ AZURE_CLIENT_ID: "azure_client_id",
15
+ AZURE_CLIENT_SECRET: "azure_client_secret",
16
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
17
+ SUBSCRIPTION_ID: "azure_subscription_id"
18
+ };
19
+ const recorderOptions = {
20
+ envSetupForPlayback: replaceableVariables
21
+ };
22
+ export const testPollingOptions = {
23
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
24
+ };
25
+ describe("Workloads test", () => {
26
+ let recorder;
27
+ let subscriptionId;
28
+ let client;
29
+ let location;
30
+ let resourceGroup;
31
+ let resourcename;
32
+ beforeEach(function () {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ recorder = new Recorder(this.currentTest);
35
+ yield recorder.start(recorderOptions);
36
+ subscriptionId = env.SUBSCRIPTION_ID || '';
37
+ // This is an example of how the environment variables are used
38
+ const credential = createTestCredential();
39
+ client = new WorkloadsClient(credential, subscriptionId, recorder.configureClientOptions({}));
40
+ location = "eastus";
41
+ resourceGroup = "myjstest";
42
+ resourcename = "resourcetest";
43
+ });
44
+ });
45
+ afterEach(function () {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ yield recorder.stop();
48
+ });
49
+ });
50
+ it("operations list test", function () {
51
+ var _a, e_1, _b, _c;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const resArray = new Array();
54
+ try {
55
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
56
+ _c = _f.value;
57
+ _d = false;
58
+ let item = _c;
59
+ resArray.push(item);
60
+ }
61
+ }
62
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
+ finally {
64
+ try {
65
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ assert.notEqual(resArray.length, 0);
70
+ });
71
+ });
72
+ });
73
+ //# sourceMappingURL=workloadssapvirtualinstance_operations_test.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workloadssapvirtualinstance_operations_test.spec.js","sourceRoot":"","sources":["../../test/workloadssapvirtualinstance_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAuB,CAAC;IAC5B,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,eAAe,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YAC9F,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,YAAY,GAAG,cAAc,CAAC;QAEhC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE;;;YACzB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE,CAAC;oBAA3B,cAAwB;oBAAxB,WAAwB;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC;;;;;;;;;YACD,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "name": "@azure/arm-workloadssapvirtualinstance",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for WorkloadsClient.",
6
+ "version": "1.0.0-alpha.20240322.1",
7
+ "engines": {
8
+ "node": ">=18.0.0"
9
+ },
10
+ "dependencies": {
11
+ "@azure/core-lro": "^2.5.4",
12
+ "@azure/abort-controller": "^1.0.0",
13
+ "@azure/core-paging": "^1.2.0",
14
+ "@azure/core-client": "^1.7.0",
15
+ "@azure/core-auth": "^1.6.0",
16
+ "@azure/core-rest-pipeline": "^1.14.0",
17
+ "tslib": "^2.2.0"
18
+ },
19
+ "keywords": [
20
+ "node",
21
+ "azure",
22
+ "typescript",
23
+ "browser",
24
+ "isomorphic"
25
+ ],
26
+ "license": "MIT",
27
+ "main": "./dist/index.js",
28
+ "module": "./dist-esm/src/index.js",
29
+ "types": "./types/arm-workloadssapvirtualinstance.d.ts",
30
+ "devDependencies": {
31
+ "@microsoft/api-extractor": "^7.31.1",
32
+ "mkdirp": "^2.1.2",
33
+ "typescript": "~5.3.3",
34
+ "uglify-js": "^3.4.9",
35
+ "rimraf": "^5.0.0",
36
+ "dotenv": "^16.0.0",
37
+ "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
38
+ "@azure/identity": "^4.0.1",
39
+ "@azure-tools/test-recorder": "^3.0.0",
40
+ "@azure-tools/test-credential": "^1.0.0",
41
+ "mocha": "^10.0.0",
42
+ "@types/mocha": "^10.0.0",
43
+ "esm": "^3.2.18",
44
+ "@types/chai": "^4.2.8",
45
+ "chai": "^4.2.0",
46
+ "cross-env": "^7.0.2",
47
+ "@types/node": "^18.0.0",
48
+ "ts-node": "^10.0.0"
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
53
+ },
54
+ "bugs": {
55
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
56
+ },
57
+ "files": [
58
+ "dist/**/*.js",
59
+ "dist/**/*.js.map",
60
+ "dist/**/*.d.ts",
61
+ "dist/**/*.d.ts.map",
62
+ "dist-esm/**/*.js",
63
+ "dist-esm/**/*.js.map",
64
+ "dist-esm/**/*.d.ts",
65
+ "dist-esm/**/*.d.ts.map",
66
+ "src/**/*.ts",
67
+ "README.md",
68
+ "LICENSE",
69
+ "tsconfig.json",
70
+ "review/*",
71
+ "CHANGELOG.md",
72
+ "types/*"
73
+ ],
74
+ "scripts": {
75
+ "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
76
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
77
+ "prepack": "npm run build",
78
+ "pack": "npm pack 2>&1",
79
+ "extract-api": "api-extractor run --local",
80
+ "lint": "echo skipped",
81
+ "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
82
+ "build:node": "echo skipped",
83
+ "build:browser": "echo skipped",
84
+ "build:test": "echo skipped",
85
+ "build:samples": "echo skipped.",
86
+ "check-format": "echo skipped",
87
+ "execute:samples": "echo skipped",
88
+ "format": "echo skipped",
89
+ "test": "npm run integration-test",
90
+ "test:node": "echo skipped",
91
+ "test:browser": "echo skipped",
92
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
93
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
94
+ "unit-test:browser": "echo skipped",
95
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
96
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
97
+ "integration-test:browser": "echo skipped"
98
+ },
99
+ "sideEffects": false,
100
+ "//metadata": {
101
+ "constantPaths": [
102
+ {
103
+ "path": "src/workloadsClient.ts",
104
+ "prefix": "packageDetails"
105
+ }
106
+ ]
107
+ },
108
+ "autoPublish": true,
109
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/workloads/arm-workloadssapvirtualinstance",
110
+ "//sampleConfiguration": {
111
+ "productName": "",
112
+ "productSlugs": [
113
+ "azure"
114
+ ],
115
+ "disableDocsMs": true,
116
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-workloadssapvirtualinstance?view=azure-node-preview"
117
+ }
118
+ }