@azure/arm-baremetalinfrastructure 1.0.0-beta.2 → 1.0.0-beta.3

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 (354) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/LICENSE +4 -4
  3. package/README.md +26 -17
  4. package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.d.ts +2 -2
  5. package/dist/browser/bareMetalInfrastructureClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.js +32 -24
  7. package/dist/browser/bareMetalInfrastructureClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +4 -4
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  13. package/dist/browser/lroImpl.js +18 -0
  14. package/dist/browser/lroImpl.js.map +1 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/models/mappers.js +37 -17
  17. package/dist/browser/models/mappers.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  19. package/dist/browser/models/parameters.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/azureBareMetalInstances.d.ts +3 -3
  21. package/dist/browser/operations/azureBareMetalInstances.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/azureBareMetalInstances.js +175 -206
  23. package/dist/browser/operations/azureBareMetalInstances.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/azureBareMetalStorageInstances.d.ts +3 -3
  25. package/dist/browser/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/azureBareMetalStorageInstances.js +48 -82
  27. package/dist/browser/operations/azureBareMetalStorageInstances.js.map +1 -0
  28. package/dist/browser/operations/index.d.ts +4 -0
  29. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  30. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  31. package/dist/browser/operations/index.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  33. package/dist/browser/operations/operations.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/operations.js +12 -29
  35. package/dist/browser/operations/operations.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalInstances.d.ts +1 -1
  37. package/dist/browser/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  38. package/dist/browser/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalStorageInstances.d.ts +1 -1
  40. package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  42. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  44. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
  45. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  48. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  49. package/dist/browser/package.json +3 -0
  50. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  51. package/dist/browser/pagingHelper.js.map +1 -0
  52. package/dist/commonjs/bareMetalInfrastructureClient.d.ts +22 -0
  53. package/dist/commonjs/bareMetalInfrastructureClient.d.ts.map +1 -0
  54. package/dist/commonjs/bareMetalInfrastructureClient.js +115 -0
  55. package/dist/commonjs/bareMetalInfrastructureClient.js.map +1 -0
  56. package/dist/commonjs/index.d.ts +5 -0
  57. package/dist/commonjs/index.d.ts.map +1 -0
  58. package/dist/commonjs/index.js +19 -0
  59. package/dist/commonjs/index.js.map +1 -0
  60. package/dist/commonjs/lroImpl.d.ts +11 -0
  61. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  62. package/dist/commonjs/lroImpl.js +21 -0
  63. package/dist/commonjs/lroImpl.js.map +1 -0
  64. package/{types/arm-baremetalinfrastructure.d.ts → dist/commonjs/models/index.d.ts} +808 -1069
  65. package/dist/commonjs/models/index.d.ts.map +1 -0
  66. package/dist/commonjs/models/index.js +215 -0
  67. package/dist/commonjs/models/index.js.map +1 -0
  68. package/dist/commonjs/models/mappers.d.ts +30 -0
  69. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  70. package/dist/commonjs/models/mappers.js +812 -0
  71. package/dist/commonjs/models/mappers.js.map +1 -0
  72. package/dist/commonjs/models/parameters.d.ts +14 -0
  73. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  74. package/dist/commonjs/models/parameters.js +129 -0
  75. package/dist/commonjs/models/parameters.js.map +1 -0
  76. package/dist/commonjs/operations/azureBareMetalInstances.d.ts +124 -0
  77. package/dist/commonjs/operations/azureBareMetalInstances.d.ts.map +1 -0
  78. package/dist/commonjs/operations/azureBareMetalInstances.js +568 -0
  79. package/dist/commonjs/operations/azureBareMetalInstances.js.map +1 -0
  80. package/dist/commonjs/operations/azureBareMetalStorageInstances.d.ts +93 -0
  81. package/dist/commonjs/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  82. package/dist/commonjs/operations/azureBareMetalStorageInstances.js +375 -0
  83. package/dist/commonjs/operations/azureBareMetalStorageInstances.js.map +1 -0
  84. package/dist/commonjs/operations/index.d.ts +4 -0
  85. package/dist/commonjs/operations/index.d.ts.map +1 -0
  86. package/dist/commonjs/operations/index.js +14 -0
  87. package/dist/commonjs/operations/index.js.map +1 -0
  88. package/dist/commonjs/operations/operations.d.ts +26 -0
  89. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  90. package/dist/commonjs/operations/operations.js +84 -0
  91. package/dist/commonjs/operations/operations.js.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  93. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.js +10 -0
  95. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  97. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.js +10 -0
  99. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  101. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  103. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  105. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  106. package/{src/operations/index.ts → dist/commonjs/operationsInterfaces/operations.js} +3 -4
  107. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  108. package/dist/commonjs/package.json +3 -0
  109. package/dist/commonjs/pagingHelper.d.ts +13 -0
  110. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  111. package/dist/commonjs/pagingHelper.js +34 -0
  112. package/dist/commonjs/pagingHelper.js.map +1 -0
  113. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  114. package/dist/esm/bareMetalInfrastructureClient.d.ts +22 -0
  115. package/dist/esm/bareMetalInfrastructureClient.d.ts.map +1 -0
  116. package/dist/esm/bareMetalInfrastructureClient.js +110 -0
  117. package/dist/esm/bareMetalInfrastructureClient.js.map +1 -0
  118. package/dist/esm/index.d.ts +5 -0
  119. package/dist/esm/index.d.ts.map +1 -0
  120. package/{src/index.ts → dist/esm/index.js} +5 -5
  121. package/dist/esm/index.js.map +1 -0
  122. package/dist/esm/lroImpl.d.ts +11 -0
  123. package/dist/esm/lroImpl.d.ts.map +1 -0
  124. package/dist/esm/lroImpl.js +18 -0
  125. package/dist/esm/lroImpl.js.map +1 -0
  126. package/dist/esm/models/index.d.ts +808 -0
  127. package/dist/esm/models/index.d.ts.map +1 -0
  128. package/dist/esm/models/index.js +212 -0
  129. package/dist/esm/models/index.js.map +1 -0
  130. package/dist/esm/models/mappers.d.ts +30 -0
  131. package/dist/esm/models/mappers.d.ts.map +1 -0
  132. package/dist/esm/models/mappers.js +809 -0
  133. package/dist/esm/models/mappers.js.map +1 -0
  134. package/dist/esm/models/parameters.d.ts +14 -0
  135. package/dist/esm/models/parameters.d.ts.map +1 -0
  136. package/dist/esm/models/parameters.js +126 -0
  137. package/dist/esm/models/parameters.js.map +1 -0
  138. package/dist/esm/operations/azureBareMetalInstances.d.ts +124 -0
  139. package/dist/esm/operations/azureBareMetalInstances.d.ts.map +1 -0
  140. package/dist/esm/operations/azureBareMetalInstances.js +563 -0
  141. package/dist/esm/operations/azureBareMetalInstances.js.map +1 -0
  142. package/dist/esm/operations/azureBareMetalStorageInstances.d.ts +93 -0
  143. package/dist/esm/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  144. package/dist/esm/operations/azureBareMetalStorageInstances.js +370 -0
  145. package/dist/esm/operations/azureBareMetalStorageInstances.js.map +1 -0
  146. package/dist/esm/operations/index.d.ts +4 -0
  147. package/dist/esm/operations/index.d.ts.map +1 -0
  148. package/dist/esm/operations/index.js +11 -0
  149. package/dist/esm/operations/index.js.map +1 -0
  150. package/dist/esm/operations/operations.d.ts +26 -0
  151. package/dist/esm/operations/operations.d.ts.map +1 -0
  152. package/dist/esm/operations/operations.js +79 -0
  153. package/dist/esm/operations/operations.js.map +1 -0
  154. package/dist/esm/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  155. package/dist/esm/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  156. package/dist/esm/operationsInterfaces/azureBareMetalInstances.js +9 -0
  157. package/dist/esm/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  158. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  159. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  160. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
  161. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  162. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  163. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  164. package/dist/esm/operationsInterfaces/index.js +11 -0
  165. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  166. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  167. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  168. package/dist/esm/operationsInterfaces/operations.js +9 -0
  169. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  170. package/dist/esm/package.json +3 -0
  171. package/dist/esm/pagingHelper.d.ts +13 -0
  172. package/dist/esm/pagingHelper.d.ts.map +1 -0
  173. package/dist/esm/pagingHelper.js +30 -0
  174. package/dist/esm/pagingHelper.js.map +1 -0
  175. package/dist/react-native/bareMetalInfrastructureClient.d.ts +22 -0
  176. package/dist/react-native/bareMetalInfrastructureClient.d.ts.map +1 -0
  177. package/dist/react-native/bareMetalInfrastructureClient.js +110 -0
  178. package/dist/react-native/bareMetalInfrastructureClient.js.map +1 -0
  179. package/dist/react-native/index.d.ts +5 -0
  180. package/dist/react-native/index.d.ts.map +1 -0
  181. package/dist/react-native/index.js +13 -0
  182. package/dist/react-native/index.js.map +1 -0
  183. package/dist/react-native/lroImpl.d.ts +11 -0
  184. package/dist/react-native/lroImpl.d.ts.map +1 -0
  185. package/dist/react-native/lroImpl.js +18 -0
  186. package/dist/react-native/lroImpl.js.map +1 -0
  187. package/dist/react-native/models/index.d.ts +808 -0
  188. package/dist/react-native/models/index.d.ts.map +1 -0
  189. package/dist/react-native/models/index.js +212 -0
  190. package/dist/react-native/models/index.js.map +1 -0
  191. package/dist/react-native/models/mappers.d.ts +30 -0
  192. package/dist/react-native/models/mappers.d.ts.map +1 -0
  193. package/dist/react-native/models/mappers.js +809 -0
  194. package/dist/react-native/models/mappers.js.map +1 -0
  195. package/dist/react-native/models/parameters.d.ts +14 -0
  196. package/dist/react-native/models/parameters.d.ts.map +1 -0
  197. package/dist/react-native/models/parameters.js +126 -0
  198. package/dist/react-native/models/parameters.js.map +1 -0
  199. package/dist/react-native/operations/azureBareMetalInstances.d.ts +124 -0
  200. package/dist/react-native/operations/azureBareMetalInstances.d.ts.map +1 -0
  201. package/dist/react-native/operations/azureBareMetalInstances.js +563 -0
  202. package/dist/react-native/operations/azureBareMetalInstances.js.map +1 -0
  203. package/dist/react-native/operations/azureBareMetalStorageInstances.d.ts +93 -0
  204. package/dist/react-native/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  205. package/dist/react-native/operations/azureBareMetalStorageInstances.js +370 -0
  206. package/dist/react-native/operations/azureBareMetalStorageInstances.js.map +1 -0
  207. package/dist/react-native/operations/index.d.ts +4 -0
  208. package/dist/react-native/operations/index.d.ts.map +1 -0
  209. package/dist/react-native/operations/index.js +11 -0
  210. package/dist/react-native/operations/index.js.map +1 -0
  211. package/dist/react-native/operations/operations.d.ts +26 -0
  212. package/dist/react-native/operations/operations.d.ts.map +1 -0
  213. package/dist/react-native/operations/operations.js +79 -0
  214. package/dist/react-native/operations/operations.js.map +1 -0
  215. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  216. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  217. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.js +9 -0
  218. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  219. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  220. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  221. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
  222. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  223. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  224. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  225. package/dist/react-native/operationsInterfaces/index.js +11 -0
  226. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  227. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  228. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  229. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  230. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  231. package/dist/react-native/package.json +3 -0
  232. package/dist/react-native/pagingHelper.d.ts +13 -0
  233. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  234. package/dist/react-native/pagingHelper.js +30 -0
  235. package/dist/react-native/pagingHelper.js.map +1 -0
  236. package/package.json +87 -74
  237. package/dist/index.js +0 -2418
  238. package/dist/index.js.map +0 -1
  239. package/dist/index.min.js +0 -1
  240. package/dist/index.min.js.map +0 -1
  241. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts +0 -2
  242. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts.map +0 -1
  243. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +0 -39
  244. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js.map +0 -1
  245. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts +0 -2
  246. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts.map +0 -1
  247. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +0 -54
  248. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +0 -1
  249. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts +0 -2
  250. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts.map +0 -1
  251. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +0 -53
  252. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +0 -1
  253. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts +0 -2
  254. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts.map +0 -1
  255. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js +0 -39
  256. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js.map +0 -1
  257. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts +0 -2
  258. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts.map +0 -1
  259. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js +0 -39
  260. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js.map +0 -1
  261. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts +0 -2
  262. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts.map +0 -1
  263. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js +0 -39
  264. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js.map +0 -1
  265. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts +0 -2
  266. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts.map +0 -1
  267. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +0 -60
  268. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js.map +0 -1
  269. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts +0 -2
  270. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts.map +0 -1
  271. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js +0 -56
  272. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js.map +0 -1
  273. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts +0 -2
  274. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts.map +0 -1
  275. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js +0 -39
  276. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js.map +0 -1
  277. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts +0 -2
  278. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts.map +0 -1
  279. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js +0 -39
  280. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js.map +0 -1
  281. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts +0 -2
  282. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts.map +0 -1
  283. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js +0 -54
  284. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js.map +0 -1
  285. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts +0 -2
  286. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts.map +0 -1
  287. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js +0 -53
  288. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js.map +0 -1
  289. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts +0 -2
  290. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts.map +0 -1
  291. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js +0 -60
  292. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js.map +0 -1
  293. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  294. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  295. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  296. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  297. package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +0 -1
  298. package/dist-esm/src/bareMetalInfrastructureClient.js.map +0 -1
  299. package/dist-esm/src/index.d.ts +0 -6
  300. package/dist-esm/src/index.d.ts.map +0 -1
  301. package/dist-esm/src/index.js.map +0 -1
  302. package/dist-esm/src/lroImpl.js +0 -21
  303. package/dist-esm/src/lroImpl.js.map +0 -1
  304. package/dist-esm/src/models/index.js.map +0 -1
  305. package/dist-esm/src/models/mappers.js.map +0 -1
  306. package/dist-esm/src/models/parameters.js.map +0 -1
  307. package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +0 -1
  308. package/dist-esm/src/operations/azureBareMetalInstances.js.map +0 -1
  309. package/dist-esm/src/operations/azureBareMetalStorageInstances.d.ts.map +0 -1
  310. package/dist-esm/src/operations/azureBareMetalStorageInstances.js.map +0 -1
  311. package/dist-esm/src/operations/index.d.ts +0 -4
  312. package/dist-esm/src/operations/index.js.map +0 -1
  313. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  314. package/dist-esm/src/operations/operations.js.map +0 -1
  315. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +0 -1
  316. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js.map +0 -1
  317. package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +0 -1
  318. package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.js.map +0 -1
  319. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  320. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  321. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  322. package/dist-esm/src/pagingHelper.js.map +0 -1
  323. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts +0 -4
  324. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts.map +0 -1
  325. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +0 -76
  326. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +0 -1
  327. package/src/bareMetalInfrastructureClient.ts +0 -154
  328. package/src/lroImpl.ts +0 -42
  329. package/src/models/index.ts +0 -899
  330. package/src/models/mappers.ts +0 -839
  331. package/src/models/parameters.ts +0 -147
  332. package/src/operations/azureBareMetalInstances.ts +0 -783
  333. package/src/operations/azureBareMetalStorageInstances.ts +0 -498
  334. package/src/operations/operations.ts +0 -103
  335. package/src/operationsInterfaces/azureBareMetalInstances.ts +0 -163
  336. package/src/operationsInterfaces/azureBareMetalStorageInstances.ts +0 -99
  337. package/src/operationsInterfaces/index.ts +0 -11
  338. package/src/operationsInterfaces/operations.ts +0 -22
  339. package/src/pagingHelper.ts +0 -39
  340. package/tsconfig.json +0 -33
  341. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  342. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  343. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  344. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  345. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  346. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  347. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  348. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  349. /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalInstances.js +0 -0
  350. /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalStorageInstances.js +0 -0
  351. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  352. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  353. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  354. /package/review/{arm-baremetalinfrastructure.api.md → arm-baremetalinfrastructure-node.api.md} +0 -0
package/dist/index.js DELETED
@@ -1,2418 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link AsyncOperationStatus} that the service accepts. */
70
- exports.KnownAsyncOperationStatus = void 0;
71
- (function (KnownAsyncOperationStatus) {
72
- /** Requesting */
73
- KnownAsyncOperationStatus["Requesting"] = "Requesting";
74
- /** Executing */
75
- KnownAsyncOperationStatus["Executing"] = "Executing";
76
- /** Succeeded */
77
- KnownAsyncOperationStatus["Succeeded"] = "Succeeded";
78
- /** Failed */
79
- KnownAsyncOperationStatus["Failed"] = "Failed";
80
- })(exports.KnownAsyncOperationStatus || (exports.KnownAsyncOperationStatus = {}));
81
- /** Known values of {@link AzureBareMetalInstanceForcePowerState} that the service accepts. */
82
- exports.KnownAzureBareMetalInstanceForcePowerState = void 0;
83
- (function (KnownAzureBareMetalInstanceForcePowerState) {
84
- /** Active */
85
- KnownAzureBareMetalInstanceForcePowerState["Active"] = "active";
86
- /** Inactive */
87
- KnownAzureBareMetalInstanceForcePowerState["Inactive"] = "inactive";
88
- })(exports.KnownAzureBareMetalInstanceForcePowerState || (exports.KnownAzureBareMetalInstanceForcePowerState = {}));
89
- /** Known values of {@link AzureBareMetalHardwareTypeNamesEnum} that the service accepts. */
90
- exports.KnownAzureBareMetalHardwareTypeNamesEnum = void 0;
91
- (function (KnownAzureBareMetalHardwareTypeNamesEnum) {
92
- /** CiscoUCS */
93
- KnownAzureBareMetalHardwareTypeNamesEnum["CiscoUCS"] = "Cisco_UCS";
94
- /** HPE */
95
- KnownAzureBareMetalHardwareTypeNamesEnum["HPE"] = "HPE";
96
- /** Sdflex */
97
- KnownAzureBareMetalHardwareTypeNamesEnum["Sdflex"] = "SDFLEX";
98
- })(exports.KnownAzureBareMetalHardwareTypeNamesEnum || (exports.KnownAzureBareMetalHardwareTypeNamesEnum = {}));
99
- /** Known values of {@link AzureBareMetalInstanceSizeNamesEnum} that the service accepts. */
100
- exports.KnownAzureBareMetalInstanceSizeNamesEnum = void 0;
101
- (function (KnownAzureBareMetalInstanceSizeNamesEnum) {
102
- /** S72M */
103
- KnownAzureBareMetalInstanceSizeNamesEnum["S72M"] = "S72m";
104
- /** S144M */
105
- KnownAzureBareMetalInstanceSizeNamesEnum["S144M"] = "S144m";
106
- /** S72 */
107
- KnownAzureBareMetalInstanceSizeNamesEnum["S72"] = "S72";
108
- /** S144 */
109
- KnownAzureBareMetalInstanceSizeNamesEnum["S144"] = "S144";
110
- /** S192 */
111
- KnownAzureBareMetalInstanceSizeNamesEnum["S192"] = "S192";
112
- /** S192M */
113
- KnownAzureBareMetalInstanceSizeNamesEnum["S192M"] = "S192m";
114
- /** S192Xm */
115
- KnownAzureBareMetalInstanceSizeNamesEnum["S192Xm"] = "S192xm";
116
- /** S96 */
117
- KnownAzureBareMetalInstanceSizeNamesEnum["S96"] = "S96";
118
- /** S112 */
119
- KnownAzureBareMetalInstanceSizeNamesEnum["S112"] = "S112";
120
- /** S224 */
121
- KnownAzureBareMetalInstanceSizeNamesEnum["S224"] = "S224";
122
- /** S224M */
123
- KnownAzureBareMetalInstanceSizeNamesEnum["S224M"] = "S224m";
124
- /** S224Om */
125
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Om"] = "S224om";
126
- /** S224Oo */
127
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Oo"] = "S224oo";
128
- /** S224Oom */
129
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Oom"] = "S224oom";
130
- /** S224Ooo */
131
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Ooo"] = "S224ooo";
132
- /** S384 */
133
- KnownAzureBareMetalInstanceSizeNamesEnum["S384"] = "S384";
134
- /** S384M */
135
- KnownAzureBareMetalInstanceSizeNamesEnum["S384M"] = "S384m";
136
- /** S384Xm */
137
- KnownAzureBareMetalInstanceSizeNamesEnum["S384Xm"] = "S384xm";
138
- /** S384Xxm */
139
- KnownAzureBareMetalInstanceSizeNamesEnum["S384Xxm"] = "S384xxm";
140
- /** S448 */
141
- KnownAzureBareMetalInstanceSizeNamesEnum["S448"] = "S448";
142
- /** S448M */
143
- KnownAzureBareMetalInstanceSizeNamesEnum["S448M"] = "S448m";
144
- /** S448Om */
145
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Om"] = "S448om";
146
- /** S448Oo */
147
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Oo"] = "S448oo";
148
- /** S448Oom */
149
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Oom"] = "S448oom";
150
- /** S448Ooo */
151
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Ooo"] = "S448ooo";
152
- /** S448Se */
153
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Se"] = "S448se";
154
- /** S576M */
155
- KnownAzureBareMetalInstanceSizeNamesEnum["S576M"] = "S576m";
156
- /** S576Xm */
157
- KnownAzureBareMetalInstanceSizeNamesEnum["S576Xm"] = "S576xm";
158
- /** S672 */
159
- KnownAzureBareMetalInstanceSizeNamesEnum["S672"] = "S672";
160
- /** S672M */
161
- KnownAzureBareMetalInstanceSizeNamesEnum["S672M"] = "S672m";
162
- /** S672Om */
163
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Om"] = "S672om";
164
- /** S672Oo */
165
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Oo"] = "S672oo";
166
- /** S672Oom */
167
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Oom"] = "S672oom";
168
- /** S672Ooo */
169
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Ooo"] = "S672ooo";
170
- /** S768 */
171
- KnownAzureBareMetalInstanceSizeNamesEnum["S768"] = "S768";
172
- /** S768M */
173
- KnownAzureBareMetalInstanceSizeNamesEnum["S768M"] = "S768m";
174
- /** S768Xm */
175
- KnownAzureBareMetalInstanceSizeNamesEnum["S768Xm"] = "S768xm";
176
- /** S896 */
177
- KnownAzureBareMetalInstanceSizeNamesEnum["S896"] = "S896";
178
- /** S896M */
179
- KnownAzureBareMetalInstanceSizeNamesEnum["S896M"] = "S896m";
180
- /** S896Om */
181
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Om"] = "S896om";
182
- /** S896Oo */
183
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Oo"] = "S896oo";
184
- /** S896Oom */
185
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Oom"] = "S896oom";
186
- /** S896Ooo */
187
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Ooo"] = "S896ooo";
188
- /** S960M */
189
- KnownAzureBareMetalInstanceSizeNamesEnum["S960M"] = "S960m";
190
- })(exports.KnownAzureBareMetalInstanceSizeNamesEnum || (exports.KnownAzureBareMetalInstanceSizeNamesEnum = {}));
191
- /** Known values of {@link AzureBareMetalInstancePowerStateEnum} that the service accepts. */
192
- exports.KnownAzureBareMetalInstancePowerStateEnum = void 0;
193
- (function (KnownAzureBareMetalInstancePowerStateEnum) {
194
- /** Starting */
195
- KnownAzureBareMetalInstancePowerStateEnum["Starting"] = "starting";
196
- /** Started */
197
- KnownAzureBareMetalInstancePowerStateEnum["Started"] = "started";
198
- /** Stopping */
199
- KnownAzureBareMetalInstancePowerStateEnum["Stopping"] = "stopping";
200
- /** Stopped */
201
- KnownAzureBareMetalInstancePowerStateEnum["Stopped"] = "stopped";
202
- /** Restarting */
203
- KnownAzureBareMetalInstancePowerStateEnum["Restarting"] = "restarting";
204
- /** Unknown */
205
- KnownAzureBareMetalInstancePowerStateEnum["Unknown"] = "unknown";
206
- })(exports.KnownAzureBareMetalInstancePowerStateEnum || (exports.KnownAzureBareMetalInstancePowerStateEnum = {}));
207
- /** Known values of {@link AzureBareMetalProvisioningStatesEnum} that the service accepts. */
208
- exports.KnownAzureBareMetalProvisioningStatesEnum = void 0;
209
- (function (KnownAzureBareMetalProvisioningStatesEnum) {
210
- /** Accepted */
211
- KnownAzureBareMetalProvisioningStatesEnum["Accepted"] = "Accepted";
212
- /** Creating */
213
- KnownAzureBareMetalProvisioningStatesEnum["Creating"] = "Creating";
214
- /** Updating */
215
- KnownAzureBareMetalProvisioningStatesEnum["Updating"] = "Updating";
216
- /** Failed */
217
- KnownAzureBareMetalProvisioningStatesEnum["Failed"] = "Failed";
218
- /** Succeeded */
219
- KnownAzureBareMetalProvisioningStatesEnum["Succeeded"] = "Succeeded";
220
- /** Deleting */
221
- KnownAzureBareMetalProvisioningStatesEnum["Deleting"] = "Deleting";
222
- /** Migrating */
223
- KnownAzureBareMetalProvisioningStatesEnum["Migrating"] = "Migrating";
224
- })(exports.KnownAzureBareMetalProvisioningStatesEnum || (exports.KnownAzureBareMetalProvisioningStatesEnum = {}));
225
- /** Known values of {@link CreatedByType} that the service accepts. */
226
- exports.KnownCreatedByType = void 0;
227
- (function (KnownCreatedByType) {
228
- /** User */
229
- KnownCreatedByType["User"] = "User";
230
- /** Application */
231
- KnownCreatedByType["Application"] = "Application";
232
- /** ManagedIdentity */
233
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
234
- /** Key */
235
- KnownCreatedByType["Key"] = "Key";
236
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
237
- /** Known values of {@link Origin} that the service accepts. */
238
- exports.KnownOrigin = void 0;
239
- (function (KnownOrigin) {
240
- /** User */
241
- KnownOrigin["User"] = "user";
242
- /** System */
243
- KnownOrigin["System"] = "system";
244
- /** UserSystem */
245
- KnownOrigin["UserSystem"] = "user,system";
246
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
247
- /** Known values of {@link ActionType} that the service accepts. */
248
- exports.KnownActionType = void 0;
249
- (function (KnownActionType) {
250
- /** Internal */
251
- KnownActionType["Internal"] = "Internal";
252
- })(exports.KnownActionType || (exports.KnownActionType = {}));
253
- /** Known values of {@link ProvisioningState} that the service accepts. */
254
- exports.KnownProvisioningState = void 0;
255
- (function (KnownProvisioningState) {
256
- /** Accepted */
257
- KnownProvisioningState["Accepted"] = "Accepted";
258
- /** Creating */
259
- KnownProvisioningState["Creating"] = "Creating";
260
- /** Updating */
261
- KnownProvisioningState["Updating"] = "Updating";
262
- /** Failed */
263
- KnownProvisioningState["Failed"] = "Failed";
264
- /** Succeeded */
265
- KnownProvisioningState["Succeeded"] = "Succeeded";
266
- /** Deleting */
267
- KnownProvisioningState["Deleting"] = "Deleting";
268
- /** Canceled */
269
- KnownProvisioningState["Canceled"] = "Canceled";
270
- /** Migrating */
271
- KnownProvisioningState["Migrating"] = "Migrating";
272
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
273
-
274
- /*
275
- * Copyright (c) Microsoft Corporation.
276
- * Licensed under the MIT License.
277
- *
278
- * Code generated by Microsoft (R) AutoRest Code Generator.
279
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
280
- */
281
- const OperationStatus = {
282
- type: {
283
- name: "Composite",
284
- className: "OperationStatus",
285
- modelProperties: {
286
- name: {
287
- serializedName: "name",
288
- type: {
289
- name: "String"
290
- }
291
- },
292
- status: {
293
- serializedName: "status",
294
- type: {
295
- name: "String"
296
- }
297
- },
298
- startTime: {
299
- serializedName: "startTime",
300
- type: {
301
- name: "String"
302
- }
303
- },
304
- error: {
305
- serializedName: "error",
306
- type: {
307
- name: "Composite",
308
- className: "OperationStatusError"
309
- }
310
- }
311
- }
312
- }
313
- };
314
- const OperationStatusError = {
315
- type: {
316
- name: "Composite",
317
- className: "OperationStatusError",
318
- modelProperties: {
319
- code: {
320
- serializedName: "code",
321
- type: {
322
- name: "String"
323
- }
324
- },
325
- message: {
326
- serializedName: "message",
327
- type: {
328
- name: "String"
329
- }
330
- }
331
- }
332
- }
333
- };
334
- const ErrorResponse = {
335
- type: {
336
- name: "Composite",
337
- className: "ErrorResponse",
338
- modelProperties: {
339
- error: {
340
- serializedName: "error",
341
- type: {
342
- name: "Composite",
343
- className: "ErrorDetail"
344
- }
345
- }
346
- }
347
- }
348
- };
349
- const ErrorDetail = {
350
- type: {
351
- name: "Composite",
352
- className: "ErrorDetail",
353
- modelProperties: {
354
- code: {
355
- serializedName: "code",
356
- readOnly: true,
357
- type: {
358
- name: "String"
359
- }
360
- },
361
- message: {
362
- serializedName: "message",
363
- readOnly: true,
364
- type: {
365
- name: "String"
366
- }
367
- },
368
- target: {
369
- serializedName: "target",
370
- readOnly: true,
371
- type: {
372
- name: "String"
373
- }
374
- },
375
- details: {
376
- serializedName: "details",
377
- readOnly: true,
378
- type: {
379
- name: "Sequence",
380
- element: {
381
- type: {
382
- name: "Composite",
383
- className: "ErrorDetail"
384
- }
385
- }
386
- }
387
- },
388
- additionalInfo: {
389
- serializedName: "additionalInfo",
390
- readOnly: true,
391
- type: {
392
- name: "Sequence",
393
- element: {
394
- type: {
395
- name: "Composite",
396
- className: "ErrorAdditionalInfo"
397
- }
398
- }
399
- }
400
- }
401
- }
402
- }
403
- };
404
- const ErrorAdditionalInfo = {
405
- type: {
406
- name: "Composite",
407
- className: "ErrorAdditionalInfo",
408
- modelProperties: {
409
- type: {
410
- serializedName: "type",
411
- readOnly: true,
412
- type: {
413
- name: "String"
414
- }
415
- },
416
- info: {
417
- serializedName: "info",
418
- readOnly: true,
419
- type: {
420
- name: "Dictionary",
421
- value: { type: { name: "any" } }
422
- }
423
- }
424
- }
425
- }
426
- };
427
- const ForceState = {
428
- type: {
429
- name: "Composite",
430
- className: "ForceState",
431
- modelProperties: {
432
- forceState: {
433
- serializedName: "forceState",
434
- type: {
435
- name: "String"
436
- }
437
- }
438
- }
439
- }
440
- };
441
- const AzureBareMetalInstancesListResult = {
442
- type: {
443
- name: "Composite",
444
- className: "AzureBareMetalInstancesListResult",
445
- modelProperties: {
446
- value: {
447
- serializedName: "value",
448
- type: {
449
- name: "Sequence",
450
- element: {
451
- type: {
452
- name: "Composite",
453
- className: "AzureBareMetalInstance"
454
- }
455
- }
456
- }
457
- },
458
- nextLink: {
459
- serializedName: "nextLink",
460
- type: {
461
- name: "String"
462
- }
463
- }
464
- }
465
- }
466
- };
467
- const HardwareProfile = {
468
- type: {
469
- name: "Composite",
470
- className: "HardwareProfile",
471
- modelProperties: {
472
- hardwareType: {
473
- serializedName: "hardwareType",
474
- readOnly: true,
475
- type: {
476
- name: "String"
477
- }
478
- },
479
- azureBareMetalInstanceSize: {
480
- serializedName: "azureBareMetalInstanceSize",
481
- readOnly: true,
482
- type: {
483
- name: "String"
484
- }
485
- }
486
- }
487
- }
488
- };
489
- const StorageProfile = {
490
- type: {
491
- name: "Composite",
492
- className: "StorageProfile",
493
- modelProperties: {
494
- nfsIpAddress: {
495
- serializedName: "nfsIpAddress",
496
- readOnly: true,
497
- type: {
498
- name: "String"
499
- }
500
- },
501
- osDisks: {
502
- serializedName: "osDisks",
503
- type: {
504
- name: "Sequence",
505
- element: {
506
- type: {
507
- name: "Composite",
508
- className: "Disk"
509
- }
510
- }
511
- }
512
- }
513
- }
514
- }
515
- };
516
- const Disk = {
517
- type: {
518
- name: "Composite",
519
- className: "Disk",
520
- modelProperties: {
521
- name: {
522
- serializedName: "name",
523
- type: {
524
- name: "String"
525
- }
526
- },
527
- diskSizeGB: {
528
- serializedName: "diskSizeGB",
529
- type: {
530
- name: "Number"
531
- }
532
- },
533
- lun: {
534
- serializedName: "lun",
535
- readOnly: true,
536
- type: {
537
- name: "Number"
538
- }
539
- }
540
- }
541
- }
542
- };
543
- const OSProfile = {
544
- type: {
545
- name: "Composite",
546
- className: "OSProfile",
547
- modelProperties: {
548
- computerName: {
549
- serializedName: "computerName",
550
- type: {
551
- name: "String"
552
- }
553
- },
554
- osType: {
555
- serializedName: "osType",
556
- readOnly: true,
557
- type: {
558
- name: "String"
559
- }
560
- },
561
- version: {
562
- serializedName: "version",
563
- readOnly: true,
564
- type: {
565
- name: "String"
566
- }
567
- },
568
- sshPublicKey: {
569
- serializedName: "sshPublicKey",
570
- type: {
571
- name: "String"
572
- }
573
- }
574
- }
575
- }
576
- };
577
- const NetworkProfile = {
578
- type: {
579
- name: "Composite",
580
- className: "NetworkProfile",
581
- modelProperties: {
582
- networkInterfaces: {
583
- serializedName: "networkInterfaces",
584
- type: {
585
- name: "Sequence",
586
- element: {
587
- type: {
588
- name: "Composite",
589
- className: "NetworkInterface"
590
- }
591
- }
592
- }
593
- },
594
- circuitId: {
595
- serializedName: "circuitId",
596
- readOnly: true,
597
- type: {
598
- name: "String"
599
- }
600
- }
601
- }
602
- }
603
- };
604
- const NetworkInterface = {
605
- type: {
606
- name: "Composite",
607
- className: "NetworkInterface",
608
- modelProperties: {
609
- ipAddress: {
610
- serializedName: "ipAddress",
611
- type: {
612
- name: "String"
613
- }
614
- }
615
- }
616
- }
617
- };
618
- const Resource = {
619
- type: {
620
- name: "Composite",
621
- className: "Resource",
622
- modelProperties: {
623
- id: {
624
- serializedName: "id",
625
- readOnly: true,
626
- type: {
627
- name: "String"
628
- }
629
- },
630
- name: {
631
- serializedName: "name",
632
- readOnly: true,
633
- type: {
634
- name: "String"
635
- }
636
- },
637
- type: {
638
- serializedName: "type",
639
- readOnly: true,
640
- type: {
641
- name: "String"
642
- }
643
- },
644
- systemData: {
645
- serializedName: "systemData",
646
- type: {
647
- name: "Composite",
648
- className: "SystemData"
649
- }
650
- }
651
- }
652
- }
653
- };
654
- const SystemData = {
655
- type: {
656
- name: "Composite",
657
- className: "SystemData",
658
- modelProperties: {
659
- createdBy: {
660
- serializedName: "createdBy",
661
- type: {
662
- name: "String"
663
- }
664
- },
665
- createdByType: {
666
- serializedName: "createdByType",
667
- type: {
668
- name: "String"
669
- }
670
- },
671
- createdAt: {
672
- serializedName: "createdAt",
673
- type: {
674
- name: "DateTime"
675
- }
676
- },
677
- lastModifiedBy: {
678
- serializedName: "lastModifiedBy",
679
- type: {
680
- name: "String"
681
- }
682
- },
683
- lastModifiedByType: {
684
- serializedName: "lastModifiedByType",
685
- type: {
686
- name: "String"
687
- }
688
- },
689
- lastModifiedAt: {
690
- serializedName: "lastModifiedAt",
691
- type: {
692
- name: "DateTime"
693
- }
694
- }
695
- }
696
- }
697
- };
698
- const OperationListResult = {
699
- type: {
700
- name: "Composite",
701
- className: "OperationListResult",
702
- modelProperties: {
703
- value: {
704
- serializedName: "value",
705
- readOnly: true,
706
- type: {
707
- name: "Sequence",
708
- element: {
709
- type: {
710
- name: "Composite",
711
- className: "Operation"
712
- }
713
- }
714
- }
715
- },
716
- nextLink: {
717
- serializedName: "nextLink",
718
- readOnly: true,
719
- type: {
720
- name: "String"
721
- }
722
- }
723
- }
724
- }
725
- };
726
- const Operation = {
727
- type: {
728
- name: "Composite",
729
- className: "Operation",
730
- modelProperties: {
731
- name: {
732
- serializedName: "name",
733
- readOnly: true,
734
- type: {
735
- name: "String"
736
- }
737
- },
738
- isDataAction: {
739
- serializedName: "isDataAction",
740
- readOnly: true,
741
- type: {
742
- name: "Boolean"
743
- }
744
- },
745
- display: {
746
- serializedName: "display",
747
- type: {
748
- name: "Composite",
749
- className: "OperationDisplay"
750
- }
751
- },
752
- origin: {
753
- serializedName: "origin",
754
- readOnly: true,
755
- type: {
756
- name: "String"
757
- }
758
- },
759
- actionType: {
760
- serializedName: "actionType",
761
- readOnly: true,
762
- type: {
763
- name: "String"
764
- }
765
- }
766
- }
767
- }
768
- };
769
- const OperationDisplay = {
770
- type: {
771
- name: "Composite",
772
- className: "OperationDisplay",
773
- modelProperties: {
774
- provider: {
775
- serializedName: "provider",
776
- readOnly: true,
777
- type: {
778
- name: "String"
779
- }
780
- },
781
- resource: {
782
- serializedName: "resource",
783
- readOnly: true,
784
- type: {
785
- name: "String"
786
- }
787
- },
788
- operation: {
789
- serializedName: "operation",
790
- readOnly: true,
791
- type: {
792
- name: "String"
793
- }
794
- },
795
- description: {
796
- serializedName: "description",
797
- readOnly: true,
798
- type: {
799
- name: "String"
800
- }
801
- }
802
- }
803
- }
804
- };
805
- const Tags = {
806
- type: {
807
- name: "Composite",
808
- className: "Tags",
809
- modelProperties: {
810
- tags: {
811
- serializedName: "tags",
812
- type: {
813
- name: "Dictionary",
814
- value: { type: { name: "String" } }
815
- }
816
- }
817
- }
818
- }
819
- };
820
- const AzureBareMetalStorageInstancesListResult = {
821
- type: {
822
- name: "Composite",
823
- className: "AzureBareMetalStorageInstancesListResult",
824
- modelProperties: {
825
- value: {
826
- serializedName: "value",
827
- type: {
828
- name: "Sequence",
829
- element: {
830
- type: {
831
- name: "Composite",
832
- className: "AzureBareMetalStorageInstance"
833
- }
834
- }
835
- }
836
- },
837
- nextLink: {
838
- serializedName: "nextLink",
839
- type: {
840
- name: "String"
841
- }
842
- }
843
- }
844
- }
845
- };
846
- const StorageProperties = {
847
- type: {
848
- name: "Composite",
849
- className: "StorageProperties",
850
- modelProperties: {
851
- provisioningState: {
852
- serializedName: "provisioningState",
853
- type: {
854
- name: "String"
855
- }
856
- },
857
- offeringType: {
858
- serializedName: "offeringType",
859
- type: {
860
- name: "String"
861
- }
862
- },
863
- storageType: {
864
- serializedName: "storageType",
865
- type: {
866
- name: "String"
867
- }
868
- },
869
- generation: {
870
- serializedName: "generation",
871
- type: {
872
- name: "String"
873
- }
874
- },
875
- hardwareType: {
876
- serializedName: "hardwareType",
877
- type: {
878
- name: "String"
879
- }
880
- },
881
- workloadType: {
882
- serializedName: "workloadType",
883
- type: {
884
- name: "String"
885
- }
886
- },
887
- storageBillingProperties: {
888
- serializedName: "storageBillingProperties",
889
- type: {
890
- name: "Composite",
891
- className: "StorageBillingProperties"
892
- }
893
- }
894
- }
895
- }
896
- };
897
- const StorageBillingProperties = {
898
- type: {
899
- name: "Composite",
900
- className: "StorageBillingProperties",
901
- modelProperties: {
902
- billingMode: {
903
- serializedName: "billingMode",
904
- type: {
905
- name: "String"
906
- }
907
- },
908
- azureBareMetalStorageInstanceSize: {
909
- serializedName: "azureBareMetalStorageInstanceSize",
910
- type: {
911
- name: "String"
912
- }
913
- }
914
- }
915
- }
916
- };
917
- const TrackedResource = {
918
- type: {
919
- name: "Composite",
920
- className: "TrackedResource",
921
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
922
- serializedName: "tags",
923
- type: {
924
- name: "Dictionary",
925
- value: { type: { name: "String" } }
926
- }
927
- }, location: {
928
- serializedName: "location",
929
- required: true,
930
- type: {
931
- name: "String"
932
- }
933
- } })
934
- }
935
- };
936
- const AzureBareMetalInstance = {
937
- type: {
938
- name: "Composite",
939
- className: "AzureBareMetalInstance",
940
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { hardwareProfile: {
941
- serializedName: "properties.hardwareProfile",
942
- type: {
943
- name: "Composite",
944
- className: "HardwareProfile"
945
- }
946
- }, storageProfile: {
947
- serializedName: "properties.storageProfile",
948
- type: {
949
- name: "Composite",
950
- className: "StorageProfile"
951
- }
952
- }, osProfile: {
953
- serializedName: "properties.osProfile",
954
- type: {
955
- name: "Composite",
956
- className: "OSProfile"
957
- }
958
- }, networkProfile: {
959
- serializedName: "properties.networkProfile",
960
- type: {
961
- name: "Composite",
962
- className: "NetworkProfile"
963
- }
964
- }, azureBareMetalInstanceId: {
965
- serializedName: "properties.azureBareMetalInstanceId",
966
- readOnly: true,
967
- type: {
968
- name: "String"
969
- }
970
- }, powerState: {
971
- serializedName: "properties.powerState",
972
- readOnly: true,
973
- type: {
974
- name: "String"
975
- }
976
- }, proximityPlacementGroup: {
977
- serializedName: "properties.proximityPlacementGroup",
978
- readOnly: true,
979
- type: {
980
- name: "String"
981
- }
982
- }, hwRevision: {
983
- serializedName: "properties.hwRevision",
984
- readOnly: true,
985
- type: {
986
- name: "String"
987
- }
988
- }, partnerNodeId: {
989
- serializedName: "properties.partnerNodeId",
990
- type: {
991
- name: "String"
992
- }
993
- }, provisioningState: {
994
- serializedName: "properties.provisioningState",
995
- readOnly: true,
996
- type: {
997
- name: "String"
998
- }
999
- } })
1000
- }
1001
- };
1002
- const AzureBareMetalStorageInstance = {
1003
- type: {
1004
- name: "Composite",
1005
- className: "AzureBareMetalStorageInstance",
1006
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { azureBareMetalStorageInstanceUniqueIdentifier: {
1007
- serializedName: "properties.azureBareMetalStorageInstanceUniqueIdentifier",
1008
- type: {
1009
- name: "String"
1010
- }
1011
- }, storageProperties: {
1012
- serializedName: "properties.storageProperties",
1013
- type: {
1014
- name: "Composite",
1015
- className: "StorageProperties"
1016
- }
1017
- } })
1018
- }
1019
- };
1020
- const AzureBareMetalInstancesStartHeaders = {
1021
- type: {
1022
- name: "Composite",
1023
- className: "AzureBareMetalInstancesStartHeaders",
1024
- modelProperties: {
1025
- location: {
1026
- serializedName: "location",
1027
- type: {
1028
- name: "String"
1029
- }
1030
- }
1031
- }
1032
- }
1033
- };
1034
- const AzureBareMetalInstancesRestartHeaders = {
1035
- type: {
1036
- name: "Composite",
1037
- className: "AzureBareMetalInstancesRestartHeaders",
1038
- modelProperties: {
1039
- location: {
1040
- serializedName: "location",
1041
- type: {
1042
- name: "String"
1043
- }
1044
- }
1045
- }
1046
- }
1047
- };
1048
- const AzureBareMetalInstancesShutdownHeaders = {
1049
- type: {
1050
- name: "Composite",
1051
- className: "AzureBareMetalInstancesShutdownHeaders",
1052
- modelProperties: {
1053
- location: {
1054
- serializedName: "location",
1055
- type: {
1056
- name: "String"
1057
- }
1058
- }
1059
- }
1060
- }
1061
- };
1062
-
1063
- var Mappers = /*#__PURE__*/Object.freeze({
1064
- __proto__: null,
1065
- AzureBareMetalInstance: AzureBareMetalInstance,
1066
- AzureBareMetalInstancesListResult: AzureBareMetalInstancesListResult,
1067
- AzureBareMetalInstancesRestartHeaders: AzureBareMetalInstancesRestartHeaders,
1068
- AzureBareMetalInstancesShutdownHeaders: AzureBareMetalInstancesShutdownHeaders,
1069
- AzureBareMetalInstancesStartHeaders: AzureBareMetalInstancesStartHeaders,
1070
- AzureBareMetalStorageInstance: AzureBareMetalStorageInstance,
1071
- AzureBareMetalStorageInstancesListResult: AzureBareMetalStorageInstancesListResult,
1072
- Disk: Disk,
1073
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1074
- ErrorDetail: ErrorDetail,
1075
- ErrorResponse: ErrorResponse,
1076
- ForceState: ForceState,
1077
- HardwareProfile: HardwareProfile,
1078
- NetworkInterface: NetworkInterface,
1079
- NetworkProfile: NetworkProfile,
1080
- OSProfile: OSProfile,
1081
- Operation: Operation,
1082
- OperationDisplay: OperationDisplay,
1083
- OperationListResult: OperationListResult,
1084
- OperationStatus: OperationStatus,
1085
- OperationStatusError: OperationStatusError,
1086
- Resource: Resource,
1087
- StorageBillingProperties: StorageBillingProperties,
1088
- StorageProfile: StorageProfile,
1089
- StorageProperties: StorageProperties,
1090
- SystemData: SystemData,
1091
- Tags: Tags,
1092
- TrackedResource: TrackedResource
1093
- });
1094
-
1095
- /*
1096
- * Copyright (c) Microsoft Corporation.
1097
- * Licensed under the MIT License.
1098
- *
1099
- * Code generated by Microsoft (R) AutoRest Code Generator.
1100
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1101
- */
1102
- const accept = {
1103
- parameterPath: "accept",
1104
- mapper: {
1105
- defaultValue: "application/json",
1106
- isConstant: true,
1107
- serializedName: "Accept",
1108
- type: {
1109
- name: "String"
1110
- }
1111
- }
1112
- };
1113
- const $host = {
1114
- parameterPath: "$host",
1115
- mapper: {
1116
- serializedName: "$host",
1117
- required: true,
1118
- type: {
1119
- name: "String"
1120
- }
1121
- },
1122
- skipEncoding: true
1123
- };
1124
- const apiVersion = {
1125
- parameterPath: "apiVersion",
1126
- mapper: {
1127
- defaultValue: "2023-08-04-preview",
1128
- isConstant: true,
1129
- serializedName: "api-version",
1130
- type: {
1131
- name: "String"
1132
- }
1133
- }
1134
- };
1135
- const subscriptionId = {
1136
- parameterPath: "subscriptionId",
1137
- mapper: {
1138
- serializedName: "subscriptionId",
1139
- required: true,
1140
- type: {
1141
- name: "Uuid"
1142
- }
1143
- }
1144
- };
1145
- const resourceGroupName = {
1146
- parameterPath: "resourceGroupName",
1147
- mapper: {
1148
- constraints: {
1149
- MaxLength: 90,
1150
- MinLength: 1
1151
- },
1152
- serializedName: "resourceGroupName",
1153
- required: true,
1154
- type: {
1155
- name: "String"
1156
- }
1157
- }
1158
- };
1159
- const azureBareMetalInstanceName = {
1160
- parameterPath: "azureBareMetalInstanceName",
1161
- mapper: {
1162
- constraints: {
1163
- Pattern: new RegExp("^[a-zA-Z0-9]+$")
1164
- },
1165
- serializedName: "azureBareMetalInstanceName",
1166
- required: true,
1167
- type: {
1168
- name: "String"
1169
- }
1170
- }
1171
- };
1172
- const contentType = {
1173
- parameterPath: ["options", "contentType"],
1174
- mapper: {
1175
- defaultValue: "application/json",
1176
- isConstant: true,
1177
- serializedName: "Content-Type",
1178
- type: {
1179
- name: "String"
1180
- }
1181
- }
1182
- };
1183
- const forceParameter = {
1184
- parameterPath: ["options", "forceParameter"],
1185
- mapper: ForceState
1186
- };
1187
- const tagsParameter = {
1188
- parameterPath: "tagsParameter",
1189
- mapper: Tags
1190
- };
1191
- const nextLink = {
1192
- parameterPath: "nextLink",
1193
- mapper: {
1194
- serializedName: "nextLink",
1195
- required: true,
1196
- type: {
1197
- name: "String"
1198
- }
1199
- },
1200
- skipEncoding: true
1201
- };
1202
- const azureBareMetalStorageInstanceName = {
1203
- parameterPath: "azureBareMetalStorageInstanceName",
1204
- mapper: {
1205
- constraints: {
1206
- Pattern: new RegExp(".*")
1207
- },
1208
- serializedName: "azureBareMetalStorageInstanceName",
1209
- required: true,
1210
- type: {
1211
- name: "String"
1212
- }
1213
- }
1214
- };
1215
- const requestBodyParameters = {
1216
- parameterPath: "requestBodyParameters",
1217
- mapper: AzureBareMetalStorageInstance
1218
- };
1219
-
1220
- /*
1221
- * Copyright (c) Microsoft Corporation.
1222
- * Licensed under the MIT License.
1223
- *
1224
- * Code generated by Microsoft (R) AutoRest Code Generator.
1225
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1226
- */
1227
- function createLroSpec(inputs) {
1228
- const { args, spec, sendOperationFn } = inputs;
1229
- return {
1230
- requestMethod: spec.httpMethod,
1231
- requestPath: spec.path,
1232
- sendInitialRequest: () => sendOperationFn(args, spec),
1233
- sendPollRequest: (path, options) => {
1234
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1235
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1236
- }
1237
- };
1238
- }
1239
-
1240
- /*
1241
- * Copyright (c) Microsoft Corporation.
1242
- * Licensed under the MIT License.
1243
- *
1244
- * Code generated by Microsoft (R) AutoRest Code Generator.
1245
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1246
- */
1247
- /// <reference lib="esnext.asynciterable" />
1248
- /** Class containing AzureBareMetalInstances operations. */
1249
- class AzureBareMetalInstancesImpl {
1250
- /**
1251
- * Initialize a new instance of the class AzureBareMetalInstances class.
1252
- * @param client Reference to the service client
1253
- */
1254
- constructor(client) {
1255
- this.client = client;
1256
- }
1257
- /**
1258
- * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
1259
- * various properties of each Azure Bare Metal Instance.
1260
- * @param options The options parameters.
1261
- */
1262
- listBySubscription(options) {
1263
- const iter = this.listBySubscriptionPagingAll(options);
1264
- return {
1265
- next() {
1266
- return iter.next();
1267
- },
1268
- [Symbol.asyncIterator]() {
1269
- return this;
1270
- },
1271
- byPage: (settings) => {
1272
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1273
- throw new Error("maxPageSize is not supported by this operation.");
1274
- }
1275
- return this.listBySubscriptionPagingPage(options, settings);
1276
- }
1277
- };
1278
- }
1279
- listBySubscriptionPagingPage(options, settings) {
1280
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1281
- let result;
1282
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1283
- if (!continuationToken) {
1284
- result = yield tslib.__await(this._listBySubscription(options));
1285
- let page = result.value || [];
1286
- continuationToken = result.nextLink;
1287
- setContinuationToken(page, continuationToken);
1288
- yield yield tslib.__await(page);
1289
- }
1290
- while (continuationToken) {
1291
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1292
- continuationToken = result.nextLink;
1293
- let page = result.value || [];
1294
- setContinuationToken(page, continuationToken);
1295
- yield yield tslib.__await(page);
1296
- }
1297
- });
1298
- }
1299
- listBySubscriptionPagingAll(options) {
1300
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1301
- var _a, e_1, _b, _c;
1302
- try {
1303
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1304
- _c = _f.value;
1305
- _d = false;
1306
- const page = _c;
1307
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1308
- }
1309
- }
1310
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1311
- finally {
1312
- try {
1313
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1314
- }
1315
- finally { if (e_1) throw e_1.error; }
1316
- }
1317
- });
1318
- }
1319
- /**
1320
- * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
1321
- * operations returns various properties of each Azure Bare Metal Instance.
1322
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1323
- * @param options The options parameters.
1324
- */
1325
- listByResourceGroup(resourceGroupName, options) {
1326
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1327
- return {
1328
- next() {
1329
- return iter.next();
1330
- },
1331
- [Symbol.asyncIterator]() {
1332
- return this;
1333
- },
1334
- byPage: (settings) => {
1335
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1336
- throw new Error("maxPageSize is not supported by this operation.");
1337
- }
1338
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1339
- }
1340
- };
1341
- }
1342
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1343
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1344
- let result;
1345
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1346
- if (!continuationToken) {
1347
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1348
- let page = result.value || [];
1349
- continuationToken = result.nextLink;
1350
- setContinuationToken(page, continuationToken);
1351
- yield yield tslib.__await(page);
1352
- }
1353
- while (continuationToken) {
1354
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1355
- continuationToken = result.nextLink;
1356
- let page = result.value || [];
1357
- setContinuationToken(page, continuationToken);
1358
- yield yield tslib.__await(page);
1359
- }
1360
- });
1361
- }
1362
- listByResourceGroupPagingAll(resourceGroupName, options) {
1363
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1364
- var _a, e_2, _b, _c;
1365
- try {
1366
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1367
- _c = _f.value;
1368
- _d = false;
1369
- const page = _c;
1370
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1371
- }
1372
- }
1373
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1374
- finally {
1375
- try {
1376
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1377
- }
1378
- finally { if (e_2) throw e_2.error; }
1379
- }
1380
- });
1381
- }
1382
- /**
1383
- * The operation to start an Azure Bare Metal instance
1384
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1385
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1386
- * ResourceName.
1387
- * @param options The options parameters.
1388
- */
1389
- beginStart(resourceGroupName, azureBareMetalInstanceName, options) {
1390
- return tslib.__awaiter(this, void 0, void 0, function* () {
1391
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1392
- return this.client.sendOperationRequest(args, spec);
1393
- });
1394
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1395
- var _a;
1396
- let currentRawResponse = undefined;
1397
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1398
- const callback = (rawResponse, flatResponse) => {
1399
- currentRawResponse = rawResponse;
1400
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1401
- };
1402
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1403
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1404
- return {
1405
- flatResponse,
1406
- rawResponse: {
1407
- statusCode: currentRawResponse.status,
1408
- body: currentRawResponse.parsedBody,
1409
- headers: currentRawResponse.headers.toJSON()
1410
- }
1411
- };
1412
- });
1413
- const lro = createLroSpec({
1414
- sendOperationFn,
1415
- args: { resourceGroupName, azureBareMetalInstanceName, options },
1416
- spec: startOperationSpec
1417
- });
1418
- const poller = yield coreLro.createHttpPoller(lro, {
1419
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1420
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1421
- resourceLocationConfig: "location"
1422
- });
1423
- yield poller.poll();
1424
- return poller;
1425
- });
1426
- }
1427
- /**
1428
- * The operation to start an Azure Bare Metal instance
1429
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1430
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1431
- * ResourceName.
1432
- * @param options The options parameters.
1433
- */
1434
- beginStartAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
1435
- return tslib.__awaiter(this, void 0, void 0, function* () {
1436
- const poller = yield this.beginStart(resourceGroupName, azureBareMetalInstanceName, options);
1437
- return poller.pollUntilDone();
1438
- });
1439
- }
1440
- /**
1441
- * The operation to restart an Azure Bare Metal Instance
1442
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1443
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1444
- * ResourceName.
1445
- * @param options The options parameters.
1446
- */
1447
- beginRestart(resourceGroupName, azureBareMetalInstanceName, options) {
1448
- return tslib.__awaiter(this, void 0, void 0, function* () {
1449
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1450
- return this.client.sendOperationRequest(args, spec);
1451
- });
1452
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1453
- var _a;
1454
- let currentRawResponse = undefined;
1455
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1456
- const callback = (rawResponse, flatResponse) => {
1457
- currentRawResponse = rawResponse;
1458
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1459
- };
1460
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1461
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1462
- return {
1463
- flatResponse,
1464
- rawResponse: {
1465
- statusCode: currentRawResponse.status,
1466
- body: currentRawResponse.parsedBody,
1467
- headers: currentRawResponse.headers.toJSON()
1468
- }
1469
- };
1470
- });
1471
- const lro = createLroSpec({
1472
- sendOperationFn,
1473
- args: { resourceGroupName, azureBareMetalInstanceName, options },
1474
- spec: restartOperationSpec
1475
- });
1476
- const poller = yield coreLro.createHttpPoller(lro, {
1477
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1478
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1479
- resourceLocationConfig: "location"
1480
- });
1481
- yield poller.poll();
1482
- return poller;
1483
- });
1484
- }
1485
- /**
1486
- * The operation to restart an Azure Bare Metal Instance
1487
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1488
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1489
- * ResourceName.
1490
- * @param options The options parameters.
1491
- */
1492
- beginRestartAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
1493
- return tslib.__awaiter(this, void 0, void 0, function* () {
1494
- const poller = yield this.beginRestart(resourceGroupName, azureBareMetalInstanceName, options);
1495
- return poller.pollUntilDone();
1496
- });
1497
- }
1498
- /**
1499
- * The operation to shutdown an Azure Bare Metal Instance
1500
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1501
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1502
- * ResourceName.
1503
- * @param options The options parameters.
1504
- */
1505
- beginShutdown(resourceGroupName, azureBareMetalInstanceName, options) {
1506
- return tslib.__awaiter(this, void 0, void 0, function* () {
1507
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1508
- return this.client.sendOperationRequest(args, spec);
1509
- });
1510
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1511
- var _a;
1512
- let currentRawResponse = undefined;
1513
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1514
- const callback = (rawResponse, flatResponse) => {
1515
- currentRawResponse = rawResponse;
1516
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1517
- };
1518
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1519
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1520
- return {
1521
- flatResponse,
1522
- rawResponse: {
1523
- statusCode: currentRawResponse.status,
1524
- body: currentRawResponse.parsedBody,
1525
- headers: currentRawResponse.headers.toJSON()
1526
- }
1527
- };
1528
- });
1529
- const lro = createLroSpec({
1530
- sendOperationFn,
1531
- args: { resourceGroupName, azureBareMetalInstanceName, options },
1532
- spec: shutdownOperationSpec
1533
- });
1534
- const poller = yield coreLro.createHttpPoller(lro, {
1535
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1536
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1537
- resourceLocationConfig: "location"
1538
- });
1539
- yield poller.poll();
1540
- return poller;
1541
- });
1542
- }
1543
- /**
1544
- * The operation to shutdown an Azure Bare Metal Instance
1545
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1546
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1547
- * ResourceName.
1548
- * @param options The options parameters.
1549
- */
1550
- beginShutdownAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
1551
- return tslib.__awaiter(this, void 0, void 0, function* () {
1552
- const poller = yield this.beginShutdown(resourceGroupName, azureBareMetalInstanceName, options);
1553
- return poller.pollUntilDone();
1554
- });
1555
- }
1556
- /**
1557
- * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
1558
- * various properties of each Azure Bare Metal Instance.
1559
- * @param options The options parameters.
1560
- */
1561
- _listBySubscription(options) {
1562
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
1563
- }
1564
- /**
1565
- * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
1566
- * operations returns various properties of each Azure Bare Metal Instance.
1567
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1568
- * @param options The options parameters.
1569
- */
1570
- _listByResourceGroup(resourceGroupName, options) {
1571
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
1572
- }
1573
- /**
1574
- * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
1575
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1576
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1577
- * ResourceName.
1578
- * @param options The options parameters.
1579
- */
1580
- get(resourceGroupName, azureBareMetalInstanceName, options) {
1581
- return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, options }, getOperationSpec$1);
1582
- }
1583
- /**
1584
- * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource
1585
- * group, and instance name.
1586
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1587
- * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
1588
- * ResourceName.
1589
- * @param tagsParameter Request body that only contains the new Tags field
1590
- * @param options The options parameters.
1591
- */
1592
- update(resourceGroupName, azureBareMetalInstanceName, tagsParameter, options) {
1593
- return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options }, updateOperationSpec$1);
1594
- }
1595
- /**
1596
- * ListBySubscriptionNext
1597
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1598
- * @param options The options parameters.
1599
- */
1600
- _listBySubscriptionNext(nextLink, options) {
1601
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
1602
- }
1603
- /**
1604
- * ListByResourceGroupNext
1605
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1606
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1607
- * @param options The options parameters.
1608
- */
1609
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1610
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
1611
- }
1612
- }
1613
- // Operation Specifications
1614
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1615
- const startOperationSpec = {
1616
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start",
1617
- httpMethod: "POST",
1618
- responses: {
1619
- 200: {
1620
- bodyMapper: OperationStatus
1621
- },
1622
- 201: {
1623
- bodyMapper: OperationStatus
1624
- },
1625
- 202: {
1626
- bodyMapper: OperationStatus
1627
- },
1628
- 204: {
1629
- bodyMapper: OperationStatus
1630
- },
1631
- default: {
1632
- bodyMapper: ErrorResponse
1633
- }
1634
- },
1635
- queryParameters: [apiVersion],
1636
- urlParameters: [
1637
- $host,
1638
- subscriptionId,
1639
- resourceGroupName,
1640
- azureBareMetalInstanceName
1641
- ],
1642
- headerParameters: [accept],
1643
- serializer: serializer$2
1644
- };
1645
- const restartOperationSpec = {
1646
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart",
1647
- httpMethod: "POST",
1648
- responses: {
1649
- 200: {
1650
- bodyMapper: OperationStatus
1651
- },
1652
- 201: {
1653
- bodyMapper: OperationStatus
1654
- },
1655
- 202: {
1656
- bodyMapper: OperationStatus
1657
- },
1658
- 204: {
1659
- bodyMapper: OperationStatus
1660
- },
1661
- default: {
1662
- bodyMapper: ErrorResponse
1663
- }
1664
- },
1665
- requestBody: forceParameter,
1666
- queryParameters: [apiVersion],
1667
- urlParameters: [
1668
- $host,
1669
- subscriptionId,
1670
- resourceGroupName,
1671
- azureBareMetalInstanceName
1672
- ],
1673
- headerParameters: [accept, contentType],
1674
- mediaType: "json",
1675
- serializer: serializer$2
1676
- };
1677
- const shutdownOperationSpec = {
1678
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown",
1679
- httpMethod: "POST",
1680
- responses: {
1681
- 200: {
1682
- bodyMapper: OperationStatus
1683
- },
1684
- 201: {
1685
- bodyMapper: OperationStatus
1686
- },
1687
- 202: {
1688
- bodyMapper: OperationStatus
1689
- },
1690
- 204: {
1691
- bodyMapper: OperationStatus
1692
- },
1693
- default: {
1694
- bodyMapper: ErrorResponse
1695
- }
1696
- },
1697
- queryParameters: [apiVersion],
1698
- urlParameters: [
1699
- $host,
1700
- subscriptionId,
1701
- resourceGroupName,
1702
- azureBareMetalInstanceName
1703
- ],
1704
- headerParameters: [accept],
1705
- serializer: serializer$2
1706
- };
1707
- const listBySubscriptionOperationSpec$1 = {
1708
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
1709
- httpMethod: "GET",
1710
- responses: {
1711
- 200: {
1712
- bodyMapper: AzureBareMetalInstancesListResult
1713
- },
1714
- default: {
1715
- bodyMapper: ErrorResponse
1716
- }
1717
- },
1718
- queryParameters: [apiVersion],
1719
- urlParameters: [$host, subscriptionId],
1720
- headerParameters: [accept],
1721
- serializer: serializer$2
1722
- };
1723
- const listByResourceGroupOperationSpec$1 = {
1724
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
1725
- httpMethod: "GET",
1726
- responses: {
1727
- 200: {
1728
- bodyMapper: AzureBareMetalInstancesListResult
1729
- },
1730
- default: {
1731
- bodyMapper: ErrorResponse
1732
- }
1733
- },
1734
- queryParameters: [apiVersion],
1735
- urlParameters: [
1736
- $host,
1737
- subscriptionId,
1738
- resourceGroupName
1739
- ],
1740
- headerParameters: [accept],
1741
- serializer: serializer$2
1742
- };
1743
- const getOperationSpec$1 = {
1744
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
1745
- httpMethod: "GET",
1746
- responses: {
1747
- 200: {
1748
- bodyMapper: AzureBareMetalInstance
1749
- },
1750
- default: {
1751
- bodyMapper: ErrorResponse
1752
- }
1753
- },
1754
- queryParameters: [apiVersion],
1755
- urlParameters: [
1756
- $host,
1757
- subscriptionId,
1758
- resourceGroupName,
1759
- azureBareMetalInstanceName
1760
- ],
1761
- headerParameters: [accept],
1762
- serializer: serializer$2
1763
- };
1764
- const updateOperationSpec$1 = {
1765
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
1766
- httpMethod: "PATCH",
1767
- responses: {
1768
- 200: {
1769
- bodyMapper: AzureBareMetalInstance
1770
- },
1771
- default: {
1772
- bodyMapper: ErrorResponse
1773
- }
1774
- },
1775
- requestBody: tagsParameter,
1776
- queryParameters: [apiVersion],
1777
- urlParameters: [
1778
- $host,
1779
- subscriptionId,
1780
- resourceGroupName,
1781
- azureBareMetalInstanceName
1782
- ],
1783
- headerParameters: [accept, contentType],
1784
- mediaType: "json",
1785
- serializer: serializer$2
1786
- };
1787
- const listBySubscriptionNextOperationSpec$1 = {
1788
- path: "{nextLink}",
1789
- httpMethod: "GET",
1790
- responses: {
1791
- 200: {
1792
- bodyMapper: AzureBareMetalInstancesListResult
1793
- },
1794
- default: {
1795
- bodyMapper: ErrorResponse
1796
- }
1797
- },
1798
- urlParameters: [
1799
- $host,
1800
- subscriptionId,
1801
- nextLink
1802
- ],
1803
- headerParameters: [accept],
1804
- serializer: serializer$2
1805
- };
1806
- const listByResourceGroupNextOperationSpec$1 = {
1807
- path: "{nextLink}",
1808
- httpMethod: "GET",
1809
- responses: {
1810
- 200: {
1811
- bodyMapper: AzureBareMetalInstancesListResult
1812
- },
1813
- default: {
1814
- bodyMapper: ErrorResponse
1815
- }
1816
- },
1817
- urlParameters: [
1818
- $host,
1819
- subscriptionId,
1820
- resourceGroupName,
1821
- nextLink
1822
- ],
1823
- headerParameters: [accept],
1824
- serializer: serializer$2
1825
- };
1826
-
1827
- /*
1828
- * Copyright (c) Microsoft Corporation.
1829
- * Licensed under the MIT License.
1830
- *
1831
- * Code generated by Microsoft (R) AutoRest Code Generator.
1832
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1833
- */
1834
- /// <reference lib="esnext.asynciterable" />
1835
- /** Class containing Operations operations. */
1836
- class OperationsImpl {
1837
- /**
1838
- * Initialize a new instance of the class Operations class.
1839
- * @param client Reference to the service client
1840
- */
1841
- constructor(client) {
1842
- this.client = client;
1843
- }
1844
- /**
1845
- * Gets a list of AzureBareMetal management operations.
1846
- * @param options The options parameters.
1847
- */
1848
- list(options) {
1849
- const iter = this.listPagingAll(options);
1850
- return {
1851
- next() {
1852
- return iter.next();
1853
- },
1854
- [Symbol.asyncIterator]() {
1855
- return this;
1856
- },
1857
- byPage: (settings) => {
1858
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1859
- throw new Error("maxPageSize is not supported by this operation.");
1860
- }
1861
- return this.listPagingPage(options, settings);
1862
- }
1863
- };
1864
- }
1865
- listPagingPage(options, _settings) {
1866
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1867
- let result;
1868
- result = yield tslib.__await(this._list(options));
1869
- yield yield tslib.__await(result.value || []);
1870
- });
1871
- }
1872
- listPagingAll(options) {
1873
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1874
- var _a, e_1, _b, _c;
1875
- try {
1876
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1877
- _c = _f.value;
1878
- _d = false;
1879
- const page = _c;
1880
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1881
- }
1882
- }
1883
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1884
- finally {
1885
- try {
1886
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1887
- }
1888
- finally { if (e_1) throw e_1.error; }
1889
- }
1890
- });
1891
- }
1892
- /**
1893
- * Gets a list of AzureBareMetal management operations.
1894
- * @param options The options parameters.
1895
- */
1896
- _list(options) {
1897
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1898
- }
1899
- }
1900
- // Operation Specifications
1901
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1902
- const listOperationSpec = {
1903
- path: "/providers/Microsoft.BareMetalInfrastructure/operations",
1904
- httpMethod: "GET",
1905
- responses: {
1906
- 200: {
1907
- bodyMapper: OperationListResult
1908
- },
1909
- default: {
1910
- bodyMapper: ErrorResponse
1911
- }
1912
- },
1913
- queryParameters: [apiVersion],
1914
- urlParameters: [$host],
1915
- headerParameters: [accept],
1916
- serializer: serializer$1
1917
- };
1918
-
1919
- /*
1920
- * Copyright (c) Microsoft Corporation.
1921
- * Licensed under the MIT License.
1922
- *
1923
- * Code generated by Microsoft (R) AutoRest Code Generator.
1924
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1925
- */
1926
- /// <reference lib="esnext.asynciterable" />
1927
- /** Class containing AzureBareMetalStorageInstances operations. */
1928
- class AzureBareMetalStorageInstancesImpl {
1929
- /**
1930
- * Initialize a new instance of the class AzureBareMetalStorageInstances class.
1931
- * @param client Reference to the service client
1932
- */
1933
- constructor(client) {
1934
- this.client = client;
1935
- }
1936
- /**
1937
- * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
1938
- * various properties of each Azure Bare Metal Instance.
1939
- * @param options The options parameters.
1940
- */
1941
- listBySubscription(options) {
1942
- const iter = this.listBySubscriptionPagingAll(options);
1943
- return {
1944
- next() {
1945
- return iter.next();
1946
- },
1947
- [Symbol.asyncIterator]() {
1948
- return this;
1949
- },
1950
- byPage: (settings) => {
1951
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1952
- throw new Error("maxPageSize is not supported by this operation.");
1953
- }
1954
- return this.listBySubscriptionPagingPage(options, settings);
1955
- }
1956
- };
1957
- }
1958
- listBySubscriptionPagingPage(options, settings) {
1959
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1960
- let result;
1961
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1962
- if (!continuationToken) {
1963
- result = yield tslib.__await(this._listBySubscription(options));
1964
- let page = result.value || [];
1965
- continuationToken = result.nextLink;
1966
- setContinuationToken(page, continuationToken);
1967
- yield yield tslib.__await(page);
1968
- }
1969
- while (continuationToken) {
1970
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1971
- continuationToken = result.nextLink;
1972
- let page = result.value || [];
1973
- setContinuationToken(page, continuationToken);
1974
- yield yield tslib.__await(page);
1975
- }
1976
- });
1977
- }
1978
- listBySubscriptionPagingAll(options) {
1979
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1980
- var _a, e_1, _b, _c;
1981
- try {
1982
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1983
- _c = _f.value;
1984
- _d = false;
1985
- const page = _c;
1986
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1987
- }
1988
- }
1989
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1990
- finally {
1991
- try {
1992
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1993
- }
1994
- finally { if (e_1) throw e_1.error; }
1995
- }
1996
- });
1997
- }
1998
- /**
1999
- * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
2000
- * operations returns various properties of each Azure Bare Metal Instance.
2001
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2002
- * @param options The options parameters.
2003
- */
2004
- listByResourceGroup(resourceGroupName, options) {
2005
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2006
- return {
2007
- next() {
2008
- return iter.next();
2009
- },
2010
- [Symbol.asyncIterator]() {
2011
- return this;
2012
- },
2013
- byPage: (settings) => {
2014
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2015
- throw new Error("maxPageSize is not supported by this operation.");
2016
- }
2017
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2018
- }
2019
- };
2020
- }
2021
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2022
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2023
- let result;
2024
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2025
- if (!continuationToken) {
2026
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2027
- let page = result.value || [];
2028
- continuationToken = result.nextLink;
2029
- setContinuationToken(page, continuationToken);
2030
- yield yield tslib.__await(page);
2031
- }
2032
- while (continuationToken) {
2033
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2034
- continuationToken = result.nextLink;
2035
- let page = result.value || [];
2036
- setContinuationToken(page, continuationToken);
2037
- yield yield tslib.__await(page);
2038
- }
2039
- });
2040
- }
2041
- listByResourceGroupPagingAll(resourceGroupName, options) {
2042
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2043
- var _a, e_2, _b, _c;
2044
- try {
2045
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2046
- _c = _f.value;
2047
- _d = false;
2048
- const page = _c;
2049
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2050
- }
2051
- }
2052
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2053
- finally {
2054
- try {
2055
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2056
- }
2057
- finally { if (e_2) throw e_2.error; }
2058
- }
2059
- });
2060
- }
2061
- /**
2062
- * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
2063
- * various properties of each Azure Bare Metal Instance.
2064
- * @param options The options parameters.
2065
- */
2066
- _listBySubscription(options) {
2067
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2068
- }
2069
- /**
2070
- * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
2071
- * operations returns various properties of each Azure Bare Metal Instance.
2072
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2073
- * @param options The options parameters.
2074
- */
2075
- _listByResourceGroup(resourceGroupName, options) {
2076
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2077
- }
2078
- /**
2079
- * Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and
2080
- * instance name.
2081
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2082
- * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
2083
- * as the ResourceName.
2084
- * @param options The options parameters.
2085
- */
2086
- get(resourceGroupName, azureBareMetalStorageInstanceName, options) {
2087
- return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalStorageInstanceName, options }, getOperationSpec);
2088
- }
2089
- /**
2090
- * Create an azure bare metal storage resource.
2091
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2092
- * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
2093
- * as the ResourceName.
2094
- * @param requestBodyParameters request body for put call
2095
- * @param options The options parameters.
2096
- */
2097
- create(resourceGroupName, azureBareMetalStorageInstanceName, requestBodyParameters, options) {
2098
- return this.client.sendOperationRequest({
2099
- resourceGroupName,
2100
- azureBareMetalStorageInstanceName,
2101
- requestBodyParameters,
2102
- options
2103
- }, createOperationSpec);
2104
- }
2105
- /**
2106
- * Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,
2107
- * resource group, and instance name.
2108
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2109
- * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
2110
- * as the ResourceName.
2111
- * @param tagsParameter Request body that only contains the new Tags field
2112
- * @param options The options parameters.
2113
- */
2114
- update(resourceGroupName, azureBareMetalStorageInstanceName, tagsParameter, options) {
2115
- return this.client.sendOperationRequest({
2116
- resourceGroupName,
2117
- azureBareMetalStorageInstanceName,
2118
- tagsParameter,
2119
- options
2120
- }, updateOperationSpec);
2121
- }
2122
- /**
2123
- * Delete an AzureBareMetalStorageInstance.
2124
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2125
- * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
2126
- * as the ResourceName.
2127
- * @param options The options parameters.
2128
- */
2129
- delete(resourceGroupName, azureBareMetalStorageInstanceName, options) {
2130
- return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalStorageInstanceName, options }, deleteOperationSpec);
2131
- }
2132
- /**
2133
- * ListBySubscriptionNext
2134
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2135
- * @param options The options parameters.
2136
- */
2137
- _listBySubscriptionNext(nextLink, options) {
2138
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2139
- }
2140
- /**
2141
- * ListByResourceGroupNext
2142
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2143
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2144
- * @param options The options parameters.
2145
- */
2146
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2147
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2148
- }
2149
- }
2150
- // Operation Specifications
2151
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2152
- const listBySubscriptionOperationSpec = {
2153
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
2154
- httpMethod: "GET",
2155
- responses: {
2156
- 200: {
2157
- bodyMapper: AzureBareMetalStorageInstancesListResult
2158
- },
2159
- default: {
2160
- bodyMapper: ErrorResponse
2161
- }
2162
- },
2163
- queryParameters: [apiVersion],
2164
- urlParameters: [$host, subscriptionId],
2165
- headerParameters: [accept],
2166
- serializer
2167
- };
2168
- const listByResourceGroupOperationSpec = {
2169
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
2170
- httpMethod: "GET",
2171
- responses: {
2172
- 200: {
2173
- bodyMapper: AzureBareMetalStorageInstancesListResult
2174
- },
2175
- default: {
2176
- bodyMapper: ErrorResponse
2177
- }
2178
- },
2179
- queryParameters: [apiVersion],
2180
- urlParameters: [
2181
- $host,
2182
- subscriptionId,
2183
- resourceGroupName
2184
- ],
2185
- headerParameters: [accept],
2186
- serializer
2187
- };
2188
- const getOperationSpec = {
2189
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
2190
- httpMethod: "GET",
2191
- responses: {
2192
- 200: {
2193
- bodyMapper: AzureBareMetalStorageInstance
2194
- },
2195
- default: {
2196
- bodyMapper: ErrorResponse
2197
- }
2198
- },
2199
- queryParameters: [apiVersion],
2200
- urlParameters: [
2201
- $host,
2202
- subscriptionId,
2203
- resourceGroupName,
2204
- azureBareMetalStorageInstanceName
2205
- ],
2206
- headerParameters: [accept],
2207
- serializer
2208
- };
2209
- const createOperationSpec = {
2210
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
2211
- httpMethod: "PUT",
2212
- responses: {
2213
- 200: {
2214
- bodyMapper: AzureBareMetalStorageInstance
2215
- },
2216
- 201: {
2217
- bodyMapper: AzureBareMetalStorageInstance
2218
- },
2219
- default: {
2220
- bodyMapper: ErrorResponse
2221
- }
2222
- },
2223
- requestBody: requestBodyParameters,
2224
- queryParameters: [apiVersion],
2225
- urlParameters: [
2226
- $host,
2227
- subscriptionId,
2228
- resourceGroupName,
2229
- azureBareMetalStorageInstanceName
2230
- ],
2231
- headerParameters: [accept, contentType],
2232
- mediaType: "json",
2233
- serializer
2234
- };
2235
- const updateOperationSpec = {
2236
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
2237
- httpMethod: "PATCH",
2238
- responses: {
2239
- 200: {
2240
- bodyMapper: AzureBareMetalStorageInstance
2241
- },
2242
- default: {
2243
- bodyMapper: ErrorResponse
2244
- }
2245
- },
2246
- requestBody: tagsParameter,
2247
- queryParameters: [apiVersion],
2248
- urlParameters: [
2249
- $host,
2250
- subscriptionId,
2251
- resourceGroupName,
2252
- azureBareMetalStorageInstanceName
2253
- ],
2254
- headerParameters: [accept, contentType],
2255
- mediaType: "json",
2256
- serializer
2257
- };
2258
- const deleteOperationSpec = {
2259
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
2260
- httpMethod: "DELETE",
2261
- responses: {
2262
- 200: {},
2263
- 204: {},
2264
- default: {
2265
- bodyMapper: ErrorResponse
2266
- }
2267
- },
2268
- queryParameters: [apiVersion],
2269
- urlParameters: [
2270
- $host,
2271
- subscriptionId,
2272
- resourceGroupName,
2273
- azureBareMetalStorageInstanceName
2274
- ],
2275
- headerParameters: [accept],
2276
- serializer
2277
- };
2278
- const listBySubscriptionNextOperationSpec = {
2279
- path: "{nextLink}",
2280
- httpMethod: "GET",
2281
- responses: {
2282
- 200: {
2283
- bodyMapper: AzureBareMetalStorageInstancesListResult
2284
- },
2285
- default: {
2286
- bodyMapper: ErrorResponse
2287
- }
2288
- },
2289
- urlParameters: [
2290
- $host,
2291
- subscriptionId,
2292
- nextLink
2293
- ],
2294
- headerParameters: [accept],
2295
- serializer
2296
- };
2297
- const listByResourceGroupNextOperationSpec = {
2298
- path: "{nextLink}",
2299
- httpMethod: "GET",
2300
- responses: {
2301
- 200: {
2302
- bodyMapper: AzureBareMetalStorageInstancesListResult
2303
- },
2304
- default: {
2305
- bodyMapper: ErrorResponse
2306
- }
2307
- },
2308
- urlParameters: [
2309
- $host,
2310
- subscriptionId,
2311
- resourceGroupName,
2312
- nextLink
2313
- ],
2314
- headerParameters: [accept],
2315
- serializer
2316
- };
2317
-
2318
- /*
2319
- * Copyright (c) Microsoft Corporation.
2320
- * Licensed under the MIT License.
2321
- *
2322
- * Code generated by Microsoft (R) AutoRest Code Generator.
2323
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2324
- */
2325
- class BareMetalInfrastructureClient extends coreClient__namespace.ServiceClient {
2326
- /**
2327
- * Initializes a new instance of the BareMetalInfrastructureClient class.
2328
- * @param credentials Subscription credentials which uniquely identify client subscription.
2329
- * @param subscriptionId The ID of the target subscription. The value must be an UUID.
2330
- * @param options The parameter options
2331
- */
2332
- constructor(credentials, subscriptionId, options) {
2333
- var _a, _b, _c;
2334
- if (credentials === undefined) {
2335
- throw new Error("'credentials' cannot be null");
2336
- }
2337
- if (subscriptionId === undefined) {
2338
- throw new Error("'subscriptionId' cannot be null");
2339
- }
2340
- // Initializing default values for options
2341
- if (!options) {
2342
- options = {};
2343
- }
2344
- const defaults = {
2345
- requestContentType: "application/json; charset=utf-8",
2346
- credential: credentials
2347
- };
2348
- const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.2`;
2349
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2350
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2351
- : `${packageDetails}`;
2352
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2353
- userAgentPrefix
2354
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2355
- super(optionsWithDefaults);
2356
- let bearerTokenAuthenticationPolicyFound = false;
2357
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2358
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2359
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2360
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2361
- }
2362
- if (!options ||
2363
- !options.pipeline ||
2364
- options.pipeline.getOrderedPolicies().length == 0 ||
2365
- !bearerTokenAuthenticationPolicyFound) {
2366
- this.pipeline.removePolicy({
2367
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2368
- });
2369
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2370
- credential: credentials,
2371
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
2372
- challengeCallbacks: {
2373
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2374
- }
2375
- }));
2376
- }
2377
- // Parameter assignments
2378
- this.subscriptionId = subscriptionId;
2379
- // Assigning values to Constant parameters
2380
- this.$host = options.$host || "https://management.azure.com";
2381
- this.apiVersion = options.apiVersion || "2023-08-04-preview";
2382
- this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);
2383
- this.operations = new OperationsImpl(this);
2384
- this.azureBareMetalStorageInstances = new AzureBareMetalStorageInstancesImpl(this);
2385
- this.addCustomApiVersionPolicy(options.apiVersion);
2386
- }
2387
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2388
- addCustomApiVersionPolicy(apiVersion) {
2389
- if (!apiVersion) {
2390
- return;
2391
- }
2392
- const apiVersionPolicy = {
2393
- name: "CustomApiVersionPolicy",
2394
- sendRequest(request, next) {
2395
- return tslib.__awaiter(this, void 0, void 0, function* () {
2396
- const param = request.url.split("?");
2397
- if (param.length > 1) {
2398
- const newParams = param[1].split("&").map((item) => {
2399
- if (item.indexOf("api-version") > -1) {
2400
- return "api-version=" + apiVersion;
2401
- }
2402
- else {
2403
- return item;
2404
- }
2405
- });
2406
- request.url = param[0] + "?" + newParams.join("&");
2407
- }
2408
- return next(request);
2409
- });
2410
- }
2411
- };
2412
- this.pipeline.addPolicy(apiVersionPolicy);
2413
- }
2414
- }
2415
-
2416
- exports.BareMetalInfrastructureClient = BareMetalInfrastructureClient;
2417
- exports.getContinuationToken = getContinuationToken;
2418
- //# sourceMappingURL=index.js.map