@azure/arm-baremetalinfrastructure 1.0.0-beta.1 → 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 (319) hide show
  1. package/CHANGELOG.md +82 -1
  2. package/LICENSE +4 -4
  3. package/README.md +27 -18
  4. package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.d.ts +4 -3
  5. package/dist/browser/bareMetalInfrastructureClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.js +35 -26
  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/browser/lroImpl.d.ts +11 -0
  13. package/dist/browser/lroImpl.d.ts.map +1 -0
  14. package/dist/browser/lroImpl.js +18 -0
  15. package/dist/browser/lroImpl.js.map +1 -0
  16. package/dist/browser/models/index.d.ts +808 -0
  17. package/dist/browser/models/index.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/models/index.js +60 -0
  19. package/dist/browser/models/index.js.map +1 -0
  20. package/dist/browser/models/mappers.d.ts +30 -0
  21. package/dist/browser/models/mappers.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/models/mappers.js +405 -109
  23. package/dist/browser/models/mappers.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/models/parameters.d.ts +3 -0
  25. package/dist/browser/models/parameters.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/models/parameters.js +27 -6
  27. package/dist/browser/models/parameters.js.map +1 -0
  28. package/dist/browser/operations/azureBareMetalInstances.d.ts +124 -0
  29. package/dist/browser/operations/azureBareMetalInstances.d.ts.map +1 -0
  30. package/dist/browser/operations/azureBareMetalInstances.js +563 -0
  31. package/dist/browser/operations/azureBareMetalInstances.js.map +1 -0
  32. package/dist/browser/operations/azureBareMetalStorageInstances.d.ts +93 -0
  33. package/dist/browser/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  34. package/dist/browser/operations/azureBareMetalStorageInstances.js +370 -0
  35. package/dist/browser/operations/azureBareMetalStorageInstances.js.map +1 -0
  36. package/dist/browser/operations/index.d.ts +4 -0
  37. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  38. package/dist/browser/operations/index.js +11 -0
  39. package/dist/browser/operations/index.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  41. package/dist/browser/operations/operations.d.ts.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operations/operations.js +13 -35
  43. package/dist/browser/operations/operations.js.map +1 -0
  44. package/dist/browser/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  45. package/dist/browser/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  47. package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  48. package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  49. package/{src/operations/index.ts → dist/browser/operationsInterfaces/azureBareMetalStorageInstances.js} +2 -3
  50. package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  51. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  53. package/dist/browser/operationsInterfaces/index.js +11 -0
  54. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  56. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  57. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  58. package/dist/browser/package.json +3 -0
  59. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  60. package/dist/browser/pagingHelper.js.map +1 -0
  61. package/dist/commonjs/bareMetalInfrastructureClient.d.ts +22 -0
  62. package/dist/commonjs/bareMetalInfrastructureClient.d.ts.map +1 -0
  63. package/dist/commonjs/bareMetalInfrastructureClient.js +115 -0
  64. package/dist/commonjs/bareMetalInfrastructureClient.js.map +1 -0
  65. package/dist/commonjs/index.d.ts +5 -0
  66. package/dist/commonjs/index.d.ts.map +1 -0
  67. package/dist/commonjs/index.js +19 -0
  68. package/dist/commonjs/index.js.map +1 -0
  69. package/dist/commonjs/lroImpl.d.ts +11 -0
  70. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  71. package/dist/commonjs/lroImpl.js +21 -0
  72. package/dist/commonjs/lroImpl.js.map +1 -0
  73. package/dist/commonjs/models/index.d.ts +808 -0
  74. package/dist/commonjs/models/index.d.ts.map +1 -0
  75. package/dist/commonjs/models/index.js +215 -0
  76. package/dist/commonjs/models/index.js.map +1 -0
  77. package/dist/commonjs/models/mappers.d.ts +30 -0
  78. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  79. package/dist/commonjs/models/mappers.js +812 -0
  80. package/dist/commonjs/models/mappers.js.map +1 -0
  81. package/dist/commonjs/models/parameters.d.ts +14 -0
  82. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  83. package/dist/commonjs/models/parameters.js +129 -0
  84. package/dist/commonjs/models/parameters.js.map +1 -0
  85. package/dist/commonjs/operations/azureBareMetalInstances.d.ts +124 -0
  86. package/dist/commonjs/operations/azureBareMetalInstances.d.ts.map +1 -0
  87. package/dist/commonjs/operations/azureBareMetalInstances.js +568 -0
  88. package/dist/commonjs/operations/azureBareMetalInstances.js.map +1 -0
  89. package/dist/commonjs/operations/azureBareMetalStorageInstances.d.ts +93 -0
  90. package/dist/commonjs/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  91. package/dist/commonjs/operations/azureBareMetalStorageInstances.js +375 -0
  92. package/dist/commonjs/operations/azureBareMetalStorageInstances.js.map +1 -0
  93. package/dist/commonjs/operations/index.d.ts +4 -0
  94. package/dist/commonjs/operations/index.d.ts.map +1 -0
  95. package/dist/commonjs/operations/index.js +14 -0
  96. package/dist/commonjs/operations/index.js.map +1 -0
  97. package/dist/commonjs/operations/operations.d.ts +26 -0
  98. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  99. package/dist/commonjs/operations/operations.js +84 -0
  100. package/dist/commonjs/operations/operations.js.map +1 -0
  101. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  102. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  103. package/{dist-esm/src/operationsInterfaces/index.js → dist/commonjs/operationsInterfaces/azureBareMetalInstances.js} +3 -3
  104. package/dist/commonjs/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  105. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  106. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  107. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.js +10 -0
  108. package/dist/commonjs/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  110. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  112. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  114. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  115. package/{dist-esm/src/operations/index.js → dist/commonjs/operationsInterfaces/operations.js} +3 -3
  116. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  117. package/dist/commonjs/package.json +3 -0
  118. package/dist/commonjs/pagingHelper.d.ts +13 -0
  119. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  120. package/dist/commonjs/pagingHelper.js +34 -0
  121. package/dist/commonjs/pagingHelper.js.map +1 -0
  122. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  123. package/dist/esm/bareMetalInfrastructureClient.d.ts +22 -0
  124. package/dist/esm/bareMetalInfrastructureClient.d.ts.map +1 -0
  125. package/dist/esm/bareMetalInfrastructureClient.js +110 -0
  126. package/dist/esm/bareMetalInfrastructureClient.js.map +1 -0
  127. package/dist/esm/index.d.ts +5 -0
  128. package/dist/esm/index.d.ts.map +1 -0
  129. package/{src/index.ts → dist/esm/index.js} +5 -5
  130. package/dist/esm/index.js.map +1 -0
  131. package/dist/esm/lroImpl.d.ts +11 -0
  132. package/dist/esm/lroImpl.d.ts.map +1 -0
  133. package/dist/esm/lroImpl.js +18 -0
  134. package/dist/esm/lroImpl.js.map +1 -0
  135. package/dist/esm/models/index.d.ts +808 -0
  136. package/dist/esm/models/index.d.ts.map +1 -0
  137. package/dist/esm/models/index.js +212 -0
  138. package/dist/esm/models/index.js.map +1 -0
  139. package/dist/esm/models/mappers.d.ts +30 -0
  140. package/dist/esm/models/mappers.d.ts.map +1 -0
  141. package/dist/esm/models/mappers.js +809 -0
  142. package/dist/esm/models/mappers.js.map +1 -0
  143. package/dist/esm/models/parameters.d.ts +14 -0
  144. package/dist/esm/models/parameters.d.ts.map +1 -0
  145. package/dist/esm/models/parameters.js +126 -0
  146. package/dist/esm/models/parameters.js.map +1 -0
  147. package/dist/esm/operations/azureBareMetalInstances.d.ts +124 -0
  148. package/dist/esm/operations/azureBareMetalInstances.d.ts.map +1 -0
  149. package/dist/esm/operations/azureBareMetalInstances.js +563 -0
  150. package/dist/esm/operations/azureBareMetalInstances.js.map +1 -0
  151. package/dist/esm/operations/azureBareMetalStorageInstances.d.ts +93 -0
  152. package/dist/esm/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  153. package/dist/esm/operations/azureBareMetalStorageInstances.js +370 -0
  154. package/dist/esm/operations/azureBareMetalStorageInstances.js.map +1 -0
  155. package/dist/esm/operations/index.d.ts +4 -0
  156. package/dist/esm/operations/index.d.ts.map +1 -0
  157. package/dist/esm/operations/index.js +11 -0
  158. package/dist/esm/operations/index.js.map +1 -0
  159. package/dist/esm/operations/operations.d.ts +26 -0
  160. package/dist/esm/operations/operations.d.ts.map +1 -0
  161. package/dist/esm/operations/operations.js +79 -0
  162. package/dist/esm/operations/operations.js.map +1 -0
  163. package/dist/esm/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  164. package/dist/esm/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  165. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/azureBareMetalInstances.js} +2 -3
  166. package/dist/esm/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  167. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  168. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  169. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
  170. package/dist/esm/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  171. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  172. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  173. package/dist/esm/operationsInterfaces/index.js +11 -0
  174. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  175. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  176. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  177. package/dist/esm/operationsInterfaces/operations.js +9 -0
  178. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  179. package/dist/esm/package.json +3 -0
  180. package/dist/esm/pagingHelper.d.ts +13 -0
  181. package/dist/esm/pagingHelper.d.ts.map +1 -0
  182. package/dist/esm/pagingHelper.js +30 -0
  183. package/dist/esm/pagingHelper.js.map +1 -0
  184. package/dist/react-native/bareMetalInfrastructureClient.d.ts +22 -0
  185. package/dist/react-native/bareMetalInfrastructureClient.d.ts.map +1 -0
  186. package/dist/react-native/bareMetalInfrastructureClient.js +110 -0
  187. package/dist/react-native/bareMetalInfrastructureClient.js.map +1 -0
  188. package/dist/react-native/index.d.ts +5 -0
  189. package/dist/react-native/index.d.ts.map +1 -0
  190. package/dist/react-native/index.js +13 -0
  191. package/dist/react-native/index.js.map +1 -0
  192. package/dist/react-native/lroImpl.d.ts +11 -0
  193. package/dist/react-native/lroImpl.d.ts.map +1 -0
  194. package/dist/react-native/lroImpl.js +18 -0
  195. package/dist/react-native/lroImpl.js.map +1 -0
  196. package/dist/react-native/models/index.d.ts +808 -0
  197. package/dist/react-native/models/index.d.ts.map +1 -0
  198. package/dist/react-native/models/index.js +212 -0
  199. package/dist/react-native/models/index.js.map +1 -0
  200. package/dist/react-native/models/mappers.d.ts +30 -0
  201. package/dist/react-native/models/mappers.d.ts.map +1 -0
  202. package/dist/react-native/models/mappers.js +809 -0
  203. package/dist/react-native/models/mappers.js.map +1 -0
  204. package/dist/react-native/models/parameters.d.ts +14 -0
  205. package/dist/react-native/models/parameters.d.ts.map +1 -0
  206. package/dist/react-native/models/parameters.js +126 -0
  207. package/dist/react-native/models/parameters.js.map +1 -0
  208. package/dist/react-native/operations/azureBareMetalInstances.d.ts +124 -0
  209. package/dist/react-native/operations/azureBareMetalInstances.d.ts.map +1 -0
  210. package/dist/react-native/operations/azureBareMetalInstances.js +563 -0
  211. package/dist/react-native/operations/azureBareMetalInstances.js.map +1 -0
  212. package/dist/react-native/operations/azureBareMetalStorageInstances.d.ts +93 -0
  213. package/dist/react-native/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  214. package/dist/react-native/operations/azureBareMetalStorageInstances.js +370 -0
  215. package/dist/react-native/operations/azureBareMetalStorageInstances.js.map +1 -0
  216. package/dist/react-native/operations/index.d.ts +4 -0
  217. package/dist/react-native/operations/index.d.ts.map +1 -0
  218. package/dist/react-native/operations/index.js +11 -0
  219. package/dist/react-native/operations/index.js.map +1 -0
  220. package/dist/react-native/operations/operations.d.ts +26 -0
  221. package/dist/react-native/operations/operations.d.ts.map +1 -0
  222. package/dist/react-native/operations/operations.js +79 -0
  223. package/dist/react-native/operations/operations.js.map +1 -0
  224. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.d.ts +86 -0
  225. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  226. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.js +9 -0
  227. package/dist/react-native/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  228. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  229. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  230. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
  231. package/dist/react-native/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  232. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  233. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  234. package/dist/react-native/operationsInterfaces/index.js +11 -0
  235. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  236. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  237. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  238. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  239. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  240. package/dist/react-native/package.json +3 -0
  241. package/dist/react-native/pagingHelper.d.ts +13 -0
  242. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  243. package/dist/react-native/pagingHelper.js +30 -0
  244. package/dist/react-native/pagingHelper.js.map +1 -0
  245. package/package.json +87 -76
  246. package/review/arm-baremetalinfrastructure-node.api.md +550 -0
  247. package/dist/index.js +0 -1378
  248. package/dist/index.js.map +0 -1
  249. package/dist/index.min.js +0 -1
  250. package/dist/index.min.js.map +0 -1
  251. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts +0 -2
  252. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts.map +0 -1
  253. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +0 -39
  254. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js.map +0 -1
  255. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts +0 -2
  256. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts.map +0 -1
  257. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +0 -59
  258. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +0 -1
  259. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts +0 -2
  260. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts.map +0 -1
  261. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +0 -58
  262. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +0 -1
  263. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts +0 -2
  264. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts.map +0 -1
  265. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +0 -60
  266. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js.map +0 -1
  267. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  268. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  269. package/dist-esm/samples-dev/operationsListSample.js +0 -58
  270. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  271. package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +0 -1
  272. package/dist-esm/src/bareMetalInfrastructureClient.js.map +0 -1
  273. package/dist-esm/src/index.d.ts +0 -6
  274. package/dist-esm/src/index.d.ts.map +0 -1
  275. package/dist-esm/src/index.js.map +0 -1
  276. package/dist-esm/src/models/index.d.ts +0 -519
  277. package/dist-esm/src/models/index.d.ts.map +0 -1
  278. package/dist-esm/src/models/index.js.map +0 -1
  279. package/dist-esm/src/models/mappers.d.ts +0 -20
  280. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  281. package/dist-esm/src/models/mappers.js.map +0 -1
  282. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  283. package/dist-esm/src/models/parameters.js.map +0 -1
  284. package/dist-esm/src/operations/azureBareMetalInstances.d.ts +0 -73
  285. package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +0 -1
  286. package/dist-esm/src/operations/azureBareMetalInstances.js +0 -334
  287. package/dist-esm/src/operations/azureBareMetalInstances.js.map +0 -1
  288. package/dist-esm/src/operations/index.d.ts +0 -3
  289. package/dist-esm/src/operations/index.js.map +0 -1
  290. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  291. package/dist-esm/src/operations/operations.js.map +0 -1
  292. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts +0 -35
  293. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +0 -1
  294. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js.map +0 -1
  295. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  296. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  297. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  298. package/dist-esm/src/pagingHelper.js.map +0 -1
  299. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts +0 -4
  300. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts.map +0 -1
  301. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +0 -78
  302. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +0 -1
  303. package/review/arm-baremetalinfrastructure.api.md +0 -325
  304. package/rollup.config.js +0 -122
  305. package/src/bareMetalInfrastructureClient.ts +0 -142
  306. package/src/models/index.ts +0 -566
  307. package/src/models/mappers.ts +0 -549
  308. package/src/models/parameters.ts +0 -119
  309. package/src/operations/azureBareMetalInstances.ts +0 -395
  310. package/src/operations/operations.ts +0 -103
  311. package/src/operationsInterfaces/azureBareMetalInstances.ts +0 -67
  312. package/src/operationsInterfaces/operations.ts +0 -22
  313. package/src/pagingHelper.ts +0 -39
  314. package/tsconfig.json +0 -33
  315. package/types/arm-baremetalinfrastructure.d.ts +0 -633
  316. /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalInstances.js +0 -0
  317. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  318. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  319. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
package/dist/index.js DELETED
@@ -1,1378 +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
-
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return 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__*/_interopNamespace(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(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 AzureBareMetalHardwareTypeNamesEnum} that the service accepts. */
70
- exports.KnownAzureBareMetalHardwareTypeNamesEnum = void 0;
71
- (function (KnownAzureBareMetalHardwareTypeNamesEnum) {
72
- /** CiscoUCS */
73
- KnownAzureBareMetalHardwareTypeNamesEnum["CiscoUCS"] = "Cisco_UCS";
74
- /** HPE */
75
- KnownAzureBareMetalHardwareTypeNamesEnum["HPE"] = "HPE";
76
- })(exports.KnownAzureBareMetalHardwareTypeNamesEnum || (exports.KnownAzureBareMetalHardwareTypeNamesEnum = {}));
77
- /** Known values of {@link AzureBareMetalInstanceSizeNamesEnum} that the service accepts. */
78
- exports.KnownAzureBareMetalInstanceSizeNamesEnum = void 0;
79
- (function (KnownAzureBareMetalInstanceSizeNamesEnum) {
80
- /** S72M */
81
- KnownAzureBareMetalInstanceSizeNamesEnum["S72M"] = "S72m";
82
- /** S144M */
83
- KnownAzureBareMetalInstanceSizeNamesEnum["S144M"] = "S144m";
84
- /** S72 */
85
- KnownAzureBareMetalInstanceSizeNamesEnum["S72"] = "S72";
86
- /** S144 */
87
- KnownAzureBareMetalInstanceSizeNamesEnum["S144"] = "S144";
88
- /** S192 */
89
- KnownAzureBareMetalInstanceSizeNamesEnum["S192"] = "S192";
90
- /** S192M */
91
- KnownAzureBareMetalInstanceSizeNamesEnum["S192M"] = "S192m";
92
- /** S192Xm */
93
- KnownAzureBareMetalInstanceSizeNamesEnum["S192Xm"] = "S192xm";
94
- /** S96 */
95
- KnownAzureBareMetalInstanceSizeNamesEnum["S96"] = "S96";
96
- /** S112 */
97
- KnownAzureBareMetalInstanceSizeNamesEnum["S112"] = "S112";
98
- /** S224 */
99
- KnownAzureBareMetalInstanceSizeNamesEnum["S224"] = "S224";
100
- /** S224M */
101
- KnownAzureBareMetalInstanceSizeNamesEnum["S224M"] = "S224m";
102
- /** S224Om */
103
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Om"] = "S224om";
104
- /** S224Oo */
105
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Oo"] = "S224oo";
106
- /** S224Oom */
107
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Oom"] = "S224oom";
108
- /** S224Ooo */
109
- KnownAzureBareMetalInstanceSizeNamesEnum["S224Ooo"] = "S224ooo";
110
- /** S384 */
111
- KnownAzureBareMetalInstanceSizeNamesEnum["S384"] = "S384";
112
- /** S384M */
113
- KnownAzureBareMetalInstanceSizeNamesEnum["S384M"] = "S384m";
114
- /** S384Xm */
115
- KnownAzureBareMetalInstanceSizeNamesEnum["S384Xm"] = "S384xm";
116
- /** S384Xxm */
117
- KnownAzureBareMetalInstanceSizeNamesEnum["S384Xxm"] = "S384xxm";
118
- /** S448 */
119
- KnownAzureBareMetalInstanceSizeNamesEnum["S448"] = "S448";
120
- /** S448M */
121
- KnownAzureBareMetalInstanceSizeNamesEnum["S448M"] = "S448m";
122
- /** S448Om */
123
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Om"] = "S448om";
124
- /** S448Oo */
125
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Oo"] = "S448oo";
126
- /** S448Oom */
127
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Oom"] = "S448oom";
128
- /** S448Ooo */
129
- KnownAzureBareMetalInstanceSizeNamesEnum["S448Ooo"] = "S448ooo";
130
- /** S576M */
131
- KnownAzureBareMetalInstanceSizeNamesEnum["S576M"] = "S576m";
132
- /** S576Xm */
133
- KnownAzureBareMetalInstanceSizeNamesEnum["S576Xm"] = "S576xm";
134
- /** S672 */
135
- KnownAzureBareMetalInstanceSizeNamesEnum["S672"] = "S672";
136
- /** S672M */
137
- KnownAzureBareMetalInstanceSizeNamesEnum["S672M"] = "S672m";
138
- /** S672Om */
139
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Om"] = "S672om";
140
- /** S672Oo */
141
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Oo"] = "S672oo";
142
- /** S672Oom */
143
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Oom"] = "S672oom";
144
- /** S672Ooo */
145
- KnownAzureBareMetalInstanceSizeNamesEnum["S672Ooo"] = "S672ooo";
146
- /** S768 */
147
- KnownAzureBareMetalInstanceSizeNamesEnum["S768"] = "S768";
148
- /** S768M */
149
- KnownAzureBareMetalInstanceSizeNamesEnum["S768M"] = "S768m";
150
- /** S768Xm */
151
- KnownAzureBareMetalInstanceSizeNamesEnum["S768Xm"] = "S768xm";
152
- /** S896 */
153
- KnownAzureBareMetalInstanceSizeNamesEnum["S896"] = "S896";
154
- /** S896M */
155
- KnownAzureBareMetalInstanceSizeNamesEnum["S896M"] = "S896m";
156
- /** S896Om */
157
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Om"] = "S896om";
158
- /** S896Oo */
159
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Oo"] = "S896oo";
160
- /** S896Oom */
161
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Oom"] = "S896oom";
162
- /** S896Ooo */
163
- KnownAzureBareMetalInstanceSizeNamesEnum["S896Ooo"] = "S896ooo";
164
- /** S960M */
165
- KnownAzureBareMetalInstanceSizeNamesEnum["S960M"] = "S960m";
166
- })(exports.KnownAzureBareMetalInstanceSizeNamesEnum || (exports.KnownAzureBareMetalInstanceSizeNamesEnum = {}));
167
- /** Known values of {@link AzureBareMetalInstancePowerStateEnum} that the service accepts. */
168
- exports.KnownAzureBareMetalInstancePowerStateEnum = void 0;
169
- (function (KnownAzureBareMetalInstancePowerStateEnum) {
170
- /** Starting */
171
- KnownAzureBareMetalInstancePowerStateEnum["Starting"] = "starting";
172
- /** Started */
173
- KnownAzureBareMetalInstancePowerStateEnum["Started"] = "started";
174
- /** Stopping */
175
- KnownAzureBareMetalInstancePowerStateEnum["Stopping"] = "stopping";
176
- /** Stopped */
177
- KnownAzureBareMetalInstancePowerStateEnum["Stopped"] = "stopped";
178
- /** Restarting */
179
- KnownAzureBareMetalInstancePowerStateEnum["Restarting"] = "restarting";
180
- /** Unknown */
181
- KnownAzureBareMetalInstancePowerStateEnum["Unknown"] = "unknown";
182
- })(exports.KnownAzureBareMetalInstancePowerStateEnum || (exports.KnownAzureBareMetalInstancePowerStateEnum = {}));
183
- /** Known values of {@link AzureBareMetalProvisioningStatesEnum} that the service accepts. */
184
- exports.KnownAzureBareMetalProvisioningStatesEnum = void 0;
185
- (function (KnownAzureBareMetalProvisioningStatesEnum) {
186
- /** Accepted */
187
- KnownAzureBareMetalProvisioningStatesEnum["Accepted"] = "Accepted";
188
- /** Creating */
189
- KnownAzureBareMetalProvisioningStatesEnum["Creating"] = "Creating";
190
- /** Updating */
191
- KnownAzureBareMetalProvisioningStatesEnum["Updating"] = "Updating";
192
- /** Failed */
193
- KnownAzureBareMetalProvisioningStatesEnum["Failed"] = "Failed";
194
- /** Succeeded */
195
- KnownAzureBareMetalProvisioningStatesEnum["Succeeded"] = "Succeeded";
196
- /** Deleting */
197
- KnownAzureBareMetalProvisioningStatesEnum["Deleting"] = "Deleting";
198
- /** Migrating */
199
- KnownAzureBareMetalProvisioningStatesEnum["Migrating"] = "Migrating";
200
- })(exports.KnownAzureBareMetalProvisioningStatesEnum || (exports.KnownAzureBareMetalProvisioningStatesEnum = {}));
201
- /** Known values of {@link CreatedByType} that the service accepts. */
202
- exports.KnownCreatedByType = void 0;
203
- (function (KnownCreatedByType) {
204
- /** User */
205
- KnownCreatedByType["User"] = "User";
206
- /** Application */
207
- KnownCreatedByType["Application"] = "Application";
208
- /** ManagedIdentity */
209
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
210
- /** Key */
211
- KnownCreatedByType["Key"] = "Key";
212
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
213
-
214
- /*
215
- * Copyright (c) Microsoft Corporation.
216
- * Licensed under the MIT License.
217
- *
218
- * Code generated by Microsoft (R) AutoRest Code Generator.
219
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
220
- */
221
- const AzureBareMetalInstancesListResult = {
222
- type: {
223
- name: "Composite",
224
- className: "AzureBareMetalInstancesListResult",
225
- modelProperties: {
226
- value: {
227
- serializedName: "value",
228
- type: {
229
- name: "Sequence",
230
- element: {
231
- type: {
232
- name: "Composite",
233
- className: "AzureBareMetalInstance"
234
- }
235
- }
236
- }
237
- },
238
- nextLink: {
239
- serializedName: "nextLink",
240
- type: {
241
- name: "String"
242
- }
243
- }
244
- }
245
- }
246
- };
247
- const HardwareProfile = {
248
- type: {
249
- name: "Composite",
250
- className: "HardwareProfile",
251
- modelProperties: {
252
- hardwareType: {
253
- serializedName: "hardwareType",
254
- readOnly: true,
255
- type: {
256
- name: "String"
257
- }
258
- },
259
- azureBareMetalInstanceSize: {
260
- serializedName: "azureBareMetalInstanceSize",
261
- readOnly: true,
262
- type: {
263
- name: "String"
264
- }
265
- }
266
- }
267
- }
268
- };
269
- const StorageProfile = {
270
- type: {
271
- name: "Composite",
272
- className: "StorageProfile",
273
- modelProperties: {
274
- nfsIpAddress: {
275
- serializedName: "nfsIpAddress",
276
- readOnly: true,
277
- type: {
278
- name: "String"
279
- }
280
- },
281
- osDisks: {
282
- serializedName: "osDisks",
283
- type: {
284
- name: "Sequence",
285
- element: {
286
- type: {
287
- name: "Composite",
288
- className: "Disk"
289
- }
290
- }
291
- }
292
- }
293
- }
294
- }
295
- };
296
- const Disk = {
297
- type: {
298
- name: "Composite",
299
- className: "Disk",
300
- modelProperties: {
301
- name: {
302
- serializedName: "name",
303
- type: {
304
- name: "String"
305
- }
306
- },
307
- diskSizeGB: {
308
- serializedName: "diskSizeGB",
309
- type: {
310
- name: "Number"
311
- }
312
- },
313
- lun: {
314
- serializedName: "lun",
315
- readOnly: true,
316
- type: {
317
- name: "Number"
318
- }
319
- }
320
- }
321
- }
322
- };
323
- const OSProfile = {
324
- type: {
325
- name: "Composite",
326
- className: "OSProfile",
327
- modelProperties: {
328
- computerName: {
329
- serializedName: "computerName",
330
- type: {
331
- name: "String"
332
- }
333
- },
334
- osType: {
335
- serializedName: "osType",
336
- readOnly: true,
337
- type: {
338
- name: "String"
339
- }
340
- },
341
- version: {
342
- serializedName: "version",
343
- readOnly: true,
344
- type: {
345
- name: "String"
346
- }
347
- },
348
- sshPublicKey: {
349
- serializedName: "sshPublicKey",
350
- type: {
351
- name: "String"
352
- }
353
- }
354
- }
355
- }
356
- };
357
- const NetworkProfile = {
358
- type: {
359
- name: "Composite",
360
- className: "NetworkProfile",
361
- modelProperties: {
362
- networkInterfaces: {
363
- serializedName: "networkInterfaces",
364
- type: {
365
- name: "Sequence",
366
- element: {
367
- type: {
368
- name: "Composite",
369
- className: "IpAddress"
370
- }
371
- }
372
- }
373
- },
374
- circuitId: {
375
- serializedName: "circuitId",
376
- readOnly: true,
377
- type: {
378
- name: "String"
379
- }
380
- }
381
- }
382
- }
383
- };
384
- const IpAddress = {
385
- type: {
386
- name: "Composite",
387
- className: "IpAddress",
388
- modelProperties: {
389
- ipAddress: {
390
- serializedName: "ipAddress",
391
- type: {
392
- name: "String"
393
- }
394
- }
395
- }
396
- }
397
- };
398
- const SystemData = {
399
- type: {
400
- name: "Composite",
401
- className: "SystemData",
402
- modelProperties: {
403
- createdBy: {
404
- serializedName: "createdBy",
405
- type: {
406
- name: "String"
407
- }
408
- },
409
- createdByType: {
410
- serializedName: "createdByType",
411
- type: {
412
- name: "String"
413
- }
414
- },
415
- createdAt: {
416
- serializedName: "createdAt",
417
- type: {
418
- name: "DateTime"
419
- }
420
- },
421
- lastModifiedBy: {
422
- serializedName: "lastModifiedBy",
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- lastModifiedByType: {
428
- serializedName: "lastModifiedByType",
429
- type: {
430
- name: "String"
431
- }
432
- },
433
- lastModifiedAt: {
434
- serializedName: "lastModifiedAt",
435
- type: {
436
- name: "DateTime"
437
- }
438
- }
439
- }
440
- }
441
- };
442
- const Resource = {
443
- type: {
444
- name: "Composite",
445
- className: "Resource",
446
- modelProperties: {
447
- id: {
448
- serializedName: "id",
449
- readOnly: true,
450
- type: {
451
- name: "String"
452
- }
453
- },
454
- name: {
455
- serializedName: "name",
456
- readOnly: true,
457
- type: {
458
- name: "String"
459
- }
460
- },
461
- type: {
462
- serializedName: "type",
463
- readOnly: true,
464
- type: {
465
- name: "String"
466
- }
467
- }
468
- }
469
- }
470
- };
471
- const ErrorResponse = {
472
- type: {
473
- name: "Composite",
474
- className: "ErrorResponse",
475
- modelProperties: {
476
- error: {
477
- serializedName: "error",
478
- type: {
479
- name: "Composite",
480
- className: "ErrorDefinition"
481
- }
482
- }
483
- }
484
- }
485
- };
486
- const ErrorDefinition = {
487
- type: {
488
- name: "Composite",
489
- className: "ErrorDefinition",
490
- modelProperties: {
491
- code: {
492
- serializedName: "code",
493
- readOnly: true,
494
- type: {
495
- name: "String"
496
- }
497
- },
498
- message: {
499
- serializedName: "message",
500
- readOnly: true,
501
- type: {
502
- name: "String"
503
- }
504
- },
505
- details: {
506
- serializedName: "details",
507
- readOnly: true,
508
- type: {
509
- name: "Sequence",
510
- element: {
511
- type: {
512
- name: "Composite",
513
- className: "ErrorDefinition"
514
- }
515
- }
516
- }
517
- }
518
- }
519
- }
520
- };
521
- const OperationList = {
522
- type: {
523
- name: "Composite",
524
- className: "OperationList",
525
- modelProperties: {
526
- value: {
527
- serializedName: "value",
528
- type: {
529
- name: "Sequence",
530
- element: {
531
- type: {
532
- name: "Composite",
533
- className: "Operation"
534
- }
535
- }
536
- }
537
- }
538
- }
539
- }
540
- };
541
- const Operation = {
542
- type: {
543
- name: "Composite",
544
- className: "Operation",
545
- modelProperties: {
546
- name: {
547
- serializedName: "name",
548
- readOnly: true,
549
- type: {
550
- name: "String"
551
- }
552
- },
553
- display: {
554
- serializedName: "display",
555
- type: {
556
- name: "Composite",
557
- className: "Display"
558
- }
559
- },
560
- isDataAction: {
561
- serializedName: "isDataAction",
562
- readOnly: true,
563
- type: {
564
- name: "Boolean"
565
- }
566
- }
567
- }
568
- }
569
- };
570
- const Display = {
571
- type: {
572
- name: "Composite",
573
- className: "Display",
574
- modelProperties: {
575
- provider: {
576
- serializedName: "provider",
577
- readOnly: true,
578
- type: {
579
- name: "String"
580
- }
581
- },
582
- resource: {
583
- serializedName: "resource",
584
- readOnly: true,
585
- type: {
586
- name: "String"
587
- }
588
- },
589
- operation: {
590
- serializedName: "operation",
591
- readOnly: true,
592
- type: {
593
- name: "String"
594
- }
595
- },
596
- description: {
597
- serializedName: "description",
598
- readOnly: true,
599
- type: {
600
- name: "String"
601
- }
602
- }
603
- }
604
- }
605
- };
606
- const Tags = {
607
- type: {
608
- name: "Composite",
609
- className: "Tags",
610
- modelProperties: {
611
- tags: {
612
- serializedName: "tags",
613
- type: {
614
- name: "Dictionary",
615
- value: { type: { name: "String" } }
616
- }
617
- }
618
- }
619
- }
620
- };
621
- const Result = {
622
- type: {
623
- name: "Composite",
624
- className: "Result",
625
- modelProperties: {
626
- sampleProperty: {
627
- serializedName: "sampleProperty",
628
- type: {
629
- name: "String"
630
- }
631
- }
632
- }
633
- }
634
- };
635
- const TrackedResource = {
636
- type: {
637
- name: "Composite",
638
- className: "TrackedResource",
639
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
640
- serializedName: "tags",
641
- type: {
642
- name: "Dictionary",
643
- value: { type: { name: "String" } }
644
- }
645
- }, location: {
646
- serializedName: "location",
647
- required: true,
648
- type: {
649
- name: "String"
650
- }
651
- } })
652
- }
653
- };
654
- const AzureBareMetalInstance = {
655
- type: {
656
- name: "Composite",
657
- className: "AzureBareMetalInstance",
658
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
659
- serializedName: "systemData",
660
- type: {
661
- name: "Composite",
662
- className: "SystemData"
663
- }
664
- }, hardwareProfile: {
665
- serializedName: "properties.hardwareProfile",
666
- type: {
667
- name: "Composite",
668
- className: "HardwareProfile"
669
- }
670
- }, storageProfile: {
671
- serializedName: "properties.storageProfile",
672
- type: {
673
- name: "Composite",
674
- className: "StorageProfile"
675
- }
676
- }, osProfile: {
677
- serializedName: "properties.osProfile",
678
- type: {
679
- name: "Composite",
680
- className: "OSProfile"
681
- }
682
- }, networkProfile: {
683
- serializedName: "properties.networkProfile",
684
- type: {
685
- name: "Composite",
686
- className: "NetworkProfile"
687
- }
688
- }, azureBareMetalInstanceId: {
689
- serializedName: "properties.azureBareMetalInstanceId",
690
- readOnly: true,
691
- type: {
692
- name: "String"
693
- }
694
- }, powerState: {
695
- serializedName: "properties.powerState",
696
- readOnly: true,
697
- type: {
698
- name: "String"
699
- }
700
- }, proximityPlacementGroup: {
701
- serializedName: "properties.proximityPlacementGroup",
702
- readOnly: true,
703
- type: {
704
- name: "String"
705
- }
706
- }, hwRevision: {
707
- serializedName: "properties.hwRevision",
708
- readOnly: true,
709
- type: {
710
- name: "String"
711
- }
712
- }, partnerNodeId: {
713
- serializedName: "properties.partnerNodeId",
714
- type: {
715
- name: "String"
716
- }
717
- }, provisioningState: {
718
- serializedName: "properties.provisioningState",
719
- readOnly: true,
720
- type: {
721
- name: "String"
722
- }
723
- } })
724
- }
725
- };
726
-
727
- var Mappers = /*#__PURE__*/Object.freeze({
728
- __proto__: null,
729
- AzureBareMetalInstancesListResult: AzureBareMetalInstancesListResult,
730
- HardwareProfile: HardwareProfile,
731
- StorageProfile: StorageProfile,
732
- Disk: Disk,
733
- OSProfile: OSProfile,
734
- NetworkProfile: NetworkProfile,
735
- IpAddress: IpAddress,
736
- SystemData: SystemData,
737
- Resource: Resource,
738
- ErrorResponse: ErrorResponse,
739
- ErrorDefinition: ErrorDefinition,
740
- OperationList: OperationList,
741
- Operation: Operation,
742
- Display: Display,
743
- Tags: Tags,
744
- Result: Result,
745
- TrackedResource: TrackedResource,
746
- AzureBareMetalInstance: AzureBareMetalInstance
747
- });
748
-
749
- /*
750
- * Copyright (c) Microsoft Corporation.
751
- * Licensed under the MIT License.
752
- *
753
- * Code generated by Microsoft (R) AutoRest Code Generator.
754
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
755
- */
756
- const accept = {
757
- parameterPath: "accept",
758
- mapper: {
759
- defaultValue: "application/json",
760
- isConstant: true,
761
- serializedName: "Accept",
762
- type: {
763
- name: "String"
764
- }
765
- }
766
- };
767
- const $host = {
768
- parameterPath: "$host",
769
- mapper: {
770
- serializedName: "$host",
771
- required: true,
772
- type: {
773
- name: "String"
774
- }
775
- },
776
- skipEncoding: true
777
- };
778
- const apiVersion = {
779
- parameterPath: "apiVersion",
780
- mapper: {
781
- defaultValue: "2021-08-09",
782
- isConstant: true,
783
- serializedName: "api-version",
784
- type: {
785
- name: "String"
786
- }
787
- }
788
- };
789
- const subscriptionId = {
790
- parameterPath: "subscriptionId",
791
- mapper: {
792
- constraints: {
793
- MinLength: 1
794
- },
795
- serializedName: "subscriptionId",
796
- required: true,
797
- type: {
798
- name: "String"
799
- }
800
- }
801
- };
802
- const resourceGroupName = {
803
- parameterPath: "resourceGroupName",
804
- mapper: {
805
- constraints: {
806
- MaxLength: 90,
807
- MinLength: 1
808
- },
809
- serializedName: "resourceGroupName",
810
- required: true,
811
- type: {
812
- name: "String"
813
- }
814
- }
815
- };
816
- const azureBareMetalInstanceName = {
817
- parameterPath: "azureBareMetalInstanceName",
818
- mapper: {
819
- serializedName: "azureBareMetalInstanceName",
820
- required: true,
821
- type: {
822
- name: "String"
823
- }
824
- }
825
- };
826
- const contentType = {
827
- parameterPath: ["options", "contentType"],
828
- mapper: {
829
- defaultValue: "application/json",
830
- isConstant: true,
831
- serializedName: "Content-Type",
832
- type: {
833
- name: "String"
834
- }
835
- }
836
- };
837
- const tagsParameter = {
838
- parameterPath: "tagsParameter",
839
- mapper: Tags
840
- };
841
- const nextLink = {
842
- parameterPath: "nextLink",
843
- mapper: {
844
- serializedName: "nextLink",
845
- required: true,
846
- type: {
847
- name: "String"
848
- }
849
- },
850
- skipEncoding: true
851
- };
852
-
853
- /*
854
- * Copyright (c) Microsoft Corporation.
855
- * Licensed under the MIT License.
856
- *
857
- * Code generated by Microsoft (R) AutoRest Code Generator.
858
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
859
- */
860
- /// <reference lib="esnext.asynciterable" />
861
- /** Class containing AzureBareMetalInstances operations. */
862
- class AzureBareMetalInstancesImpl {
863
- /**
864
- * Initialize a new instance of the class AzureBareMetalInstances class.
865
- * @param client Reference to the service client
866
- */
867
- constructor(client) {
868
- this.client = client;
869
- }
870
- /**
871
- * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
872
- * various properties of each Azure BareMetal instance.
873
- * @param options The options parameters.
874
- */
875
- listBySubscription(options) {
876
- const iter = this.listBySubscriptionPagingAll(options);
877
- return {
878
- next() {
879
- return iter.next();
880
- },
881
- [Symbol.asyncIterator]() {
882
- return this;
883
- },
884
- byPage: (settings) => {
885
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
886
- throw new Error("maxPageSize is not supported by this operation.");
887
- }
888
- return this.listBySubscriptionPagingPage(options, settings);
889
- }
890
- };
891
- }
892
- listBySubscriptionPagingPage(options, settings) {
893
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
894
- let result;
895
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
896
- if (!continuationToken) {
897
- result = yield tslib.__await(this._listBySubscription(options));
898
- let page = result.value || [];
899
- continuationToken = result.nextLink;
900
- setContinuationToken(page, continuationToken);
901
- yield yield tslib.__await(page);
902
- }
903
- while (continuationToken) {
904
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
905
- continuationToken = result.nextLink;
906
- let page = result.value || [];
907
- setContinuationToken(page, continuationToken);
908
- yield yield tslib.__await(page);
909
- }
910
- });
911
- }
912
- listBySubscriptionPagingAll(options) {
913
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
914
- var _a, e_1, _b, _c;
915
- try {
916
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
917
- _c = _f.value;
918
- _d = false;
919
- try {
920
- const page = _c;
921
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
922
- }
923
- finally {
924
- _d = true;
925
- }
926
- }
927
- }
928
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
929
- finally {
930
- try {
931
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
932
- }
933
- finally { if (e_1) throw e_1.error; }
934
- }
935
- });
936
- }
937
- /**
938
- * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
939
- * operations returns various properties of each Azure BareMetal instance.
940
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
941
- * @param options The options parameters.
942
- */
943
- listByResourceGroup(resourceGroupName, options) {
944
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
945
- return {
946
- next() {
947
- return iter.next();
948
- },
949
- [Symbol.asyncIterator]() {
950
- return this;
951
- },
952
- byPage: (settings) => {
953
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
954
- throw new Error("maxPageSize is not supported by this operation.");
955
- }
956
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
957
- }
958
- };
959
- }
960
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
961
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
962
- let result;
963
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
964
- if (!continuationToken) {
965
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
966
- let page = result.value || [];
967
- continuationToken = result.nextLink;
968
- setContinuationToken(page, continuationToken);
969
- yield yield tslib.__await(page);
970
- }
971
- while (continuationToken) {
972
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
973
- continuationToken = result.nextLink;
974
- let page = result.value || [];
975
- setContinuationToken(page, continuationToken);
976
- yield yield tslib.__await(page);
977
- }
978
- });
979
- }
980
- listByResourceGroupPagingAll(resourceGroupName, options) {
981
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
982
- var _a, e_2, _b, _c;
983
- try {
984
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
985
- _c = _f.value;
986
- _d = false;
987
- try {
988
- const page = _c;
989
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
990
- }
991
- finally {
992
- _d = true;
993
- }
994
- }
995
- }
996
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
997
- finally {
998
- try {
999
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1000
- }
1001
- finally { if (e_2) throw e_2.error; }
1002
- }
1003
- });
1004
- }
1005
- /**
1006
- * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
1007
- * various properties of each Azure BareMetal instance.
1008
- * @param options The options parameters.
1009
- */
1010
- _listBySubscription(options) {
1011
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1012
- }
1013
- /**
1014
- * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
1015
- * operations returns various properties of each Azure BareMetal instance.
1016
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1017
- * @param options The options parameters.
1018
- */
1019
- _listByResourceGroup(resourceGroupName, options) {
1020
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1021
- }
1022
- /**
1023
- * Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
1024
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1025
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
1026
- * @param options The options parameters.
1027
- */
1028
- get(resourceGroupName, azureBareMetalInstanceName, options) {
1029
- return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, options }, getOperationSpec);
1030
- }
1031
- /**
1032
- * Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group,
1033
- * and instance name.
1034
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1035
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
1036
- * @param tagsParameter Request body that only contains the new Tags field
1037
- * @param options The options parameters.
1038
- */
1039
- update(resourceGroupName, azureBareMetalInstanceName, tagsParameter, options) {
1040
- return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options }, updateOperationSpec);
1041
- }
1042
- /**
1043
- * ListBySubscriptionNext
1044
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1045
- * @param options The options parameters.
1046
- */
1047
- _listBySubscriptionNext(nextLink, options) {
1048
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1049
- }
1050
- /**
1051
- * ListByResourceGroupNext
1052
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1053
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1054
- * @param options The options parameters.
1055
- */
1056
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1057
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1058
- }
1059
- }
1060
- // Operation Specifications
1061
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1062
- const listBySubscriptionOperationSpec = {
1063
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
1064
- httpMethod: "GET",
1065
- responses: {
1066
- 200: {
1067
- bodyMapper: AzureBareMetalInstancesListResult
1068
- },
1069
- default: {
1070
- bodyMapper: ErrorResponse
1071
- }
1072
- },
1073
- queryParameters: [apiVersion],
1074
- urlParameters: [$host, subscriptionId],
1075
- headerParameters: [accept],
1076
- serializer: serializer$1
1077
- };
1078
- const listByResourceGroupOperationSpec = {
1079
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
1080
- httpMethod: "GET",
1081
- responses: {
1082
- 200: {
1083
- bodyMapper: AzureBareMetalInstancesListResult
1084
- },
1085
- default: {
1086
- bodyMapper: ErrorResponse
1087
- }
1088
- },
1089
- queryParameters: [apiVersion],
1090
- urlParameters: [
1091
- $host,
1092
- subscriptionId,
1093
- resourceGroupName
1094
- ],
1095
- headerParameters: [accept],
1096
- serializer: serializer$1
1097
- };
1098
- const getOperationSpec = {
1099
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
1100
- httpMethod: "GET",
1101
- responses: {
1102
- 200: {
1103
- bodyMapper: AzureBareMetalInstance
1104
- },
1105
- default: {
1106
- bodyMapper: ErrorResponse
1107
- }
1108
- },
1109
- queryParameters: [apiVersion],
1110
- urlParameters: [
1111
- $host,
1112
- subscriptionId,
1113
- resourceGroupName,
1114
- azureBareMetalInstanceName
1115
- ],
1116
- headerParameters: [accept],
1117
- serializer: serializer$1
1118
- };
1119
- const updateOperationSpec = {
1120
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
1121
- httpMethod: "PATCH",
1122
- responses: {
1123
- 200: {
1124
- bodyMapper: AzureBareMetalInstance
1125
- },
1126
- default: {
1127
- bodyMapper: ErrorResponse
1128
- }
1129
- },
1130
- requestBody: tagsParameter,
1131
- queryParameters: [apiVersion],
1132
- urlParameters: [
1133
- $host,
1134
- subscriptionId,
1135
- resourceGroupName,
1136
- azureBareMetalInstanceName
1137
- ],
1138
- headerParameters: [accept, contentType],
1139
- mediaType: "json",
1140
- serializer: serializer$1
1141
- };
1142
- const listBySubscriptionNextOperationSpec = {
1143
- path: "{nextLink}",
1144
- httpMethod: "GET",
1145
- responses: {
1146
- 200: {
1147
- bodyMapper: AzureBareMetalInstancesListResult
1148
- },
1149
- default: {
1150
- bodyMapper: ErrorResponse
1151
- }
1152
- },
1153
- urlParameters: [
1154
- $host,
1155
- subscriptionId,
1156
- nextLink
1157
- ],
1158
- headerParameters: [accept],
1159
- serializer: serializer$1
1160
- };
1161
- const listByResourceGroupNextOperationSpec = {
1162
- path: "{nextLink}",
1163
- httpMethod: "GET",
1164
- responses: {
1165
- 200: {
1166
- bodyMapper: AzureBareMetalInstancesListResult
1167
- },
1168
- default: {
1169
- bodyMapper: ErrorResponse
1170
- }
1171
- },
1172
- urlParameters: [
1173
- $host,
1174
- subscriptionId,
1175
- resourceGroupName,
1176
- nextLink
1177
- ],
1178
- headerParameters: [accept],
1179
- serializer: serializer$1
1180
- };
1181
-
1182
- /*
1183
- * Copyright (c) Microsoft Corporation.
1184
- * Licensed under the MIT License.
1185
- *
1186
- * Code generated by Microsoft (R) AutoRest Code Generator.
1187
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1188
- */
1189
- /// <reference lib="esnext.asynciterable" />
1190
- /** Class containing Operations operations. */
1191
- class OperationsImpl {
1192
- /**
1193
- * Initialize a new instance of the class Operations class.
1194
- * @param client Reference to the service client
1195
- */
1196
- constructor(client) {
1197
- this.client = client;
1198
- }
1199
- /**
1200
- * Gets a list of AzureBareMetal management operations.
1201
- * @param options The options parameters.
1202
- */
1203
- list(options) {
1204
- const iter = this.listPagingAll(options);
1205
- return {
1206
- next() {
1207
- return iter.next();
1208
- },
1209
- [Symbol.asyncIterator]() {
1210
- return this;
1211
- },
1212
- byPage: (settings) => {
1213
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1214
- throw new Error("maxPageSize is not supported by this operation.");
1215
- }
1216
- return this.listPagingPage(options, settings);
1217
- }
1218
- };
1219
- }
1220
- listPagingPage(options, _settings) {
1221
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1222
- let result;
1223
- result = yield tslib.__await(this._list(options));
1224
- yield yield tslib.__await(result.value || []);
1225
- });
1226
- }
1227
- listPagingAll(options) {
1228
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1229
- var _a, e_1, _b, _c;
1230
- try {
1231
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1232
- _c = _f.value;
1233
- _d = false;
1234
- try {
1235
- const page = _c;
1236
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1237
- }
1238
- finally {
1239
- _d = true;
1240
- }
1241
- }
1242
- }
1243
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1244
- finally {
1245
- try {
1246
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1247
- }
1248
- finally { if (e_1) throw e_1.error; }
1249
- }
1250
- });
1251
- }
1252
- /**
1253
- * Gets a list of AzureBareMetal management operations.
1254
- * @param options The options parameters.
1255
- */
1256
- _list(options) {
1257
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1258
- }
1259
- }
1260
- // Operation Specifications
1261
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1262
- const listOperationSpec = {
1263
- path: "/providers/Microsoft.BareMetalInfrastructure/operations",
1264
- httpMethod: "GET",
1265
- responses: {
1266
- 200: {
1267
- bodyMapper: OperationList
1268
- },
1269
- default: {
1270
- bodyMapper: ErrorResponse
1271
- }
1272
- },
1273
- queryParameters: [apiVersion],
1274
- urlParameters: [$host],
1275
- headerParameters: [accept],
1276
- serializer
1277
- };
1278
-
1279
- /*
1280
- * Copyright (c) Microsoft Corporation.
1281
- * Licensed under the MIT License.
1282
- *
1283
- * Code generated by Microsoft (R) AutoRest Code Generator.
1284
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1285
- */
1286
- class BareMetalInfrastructureClient extends coreClient__namespace.ServiceClient {
1287
- /**
1288
- * Initializes a new instance of the BareMetalInfrastructureClient class.
1289
- * @param credentials Subscription credentials which uniquely identify client subscription.
1290
- * @param subscriptionId The ID of the target subscription.
1291
- * @param options The parameter options
1292
- */
1293
- constructor(credentials, subscriptionId, options) {
1294
- var _a, _b, _c;
1295
- if (credentials === undefined) {
1296
- throw new Error("'credentials' cannot be null");
1297
- }
1298
- if (subscriptionId === undefined) {
1299
- throw new Error("'subscriptionId' cannot be null");
1300
- }
1301
- // Initializing default values for options
1302
- if (!options) {
1303
- options = {};
1304
- }
1305
- const defaults = {
1306
- requestContentType: "application/json; charset=utf-8",
1307
- credential: credentials
1308
- };
1309
- const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.1`;
1310
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1311
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1312
- : `${packageDetails}`;
1313
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1314
- userAgentPrefix
1315
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1316
- super(optionsWithDefaults);
1317
- let bearerTokenAuthenticationPolicyFound = false;
1318
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1319
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1320
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1321
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1322
- }
1323
- if (!options ||
1324
- !options.pipeline ||
1325
- options.pipeline.getOrderedPolicies().length == 0 ||
1326
- !bearerTokenAuthenticationPolicyFound) {
1327
- this.pipeline.removePolicy({
1328
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1329
- });
1330
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1331
- credential: credentials,
1332
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1333
- challengeCallbacks: {
1334
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1335
- }
1336
- }));
1337
- }
1338
- // Parameter assignments
1339
- this.subscriptionId = subscriptionId;
1340
- // Assigning values to Constant parameters
1341
- this.$host = options.$host || "https://management.azure.com";
1342
- this.apiVersion = options.apiVersion || "2021-08-09";
1343
- this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);
1344
- this.operations = new OperationsImpl(this);
1345
- this.addCustomApiVersionPolicy(options.apiVersion);
1346
- }
1347
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1348
- addCustomApiVersionPolicy(apiVersion) {
1349
- if (!apiVersion) {
1350
- return;
1351
- }
1352
- const apiVersionPolicy = {
1353
- name: "CustomApiVersionPolicy",
1354
- sendRequest(request, next) {
1355
- return tslib.__awaiter(this, void 0, void 0, function* () {
1356
- const param = request.url.split("?");
1357
- if (param.length > 1) {
1358
- const newParams = param[1].split("&").map((item) => {
1359
- if (item.indexOf("api-version") > -1) {
1360
- return "api-version=" + apiVersion;
1361
- }
1362
- else {
1363
- return item;
1364
- }
1365
- });
1366
- request.url = param[0] + "?" + newParams.join("&");
1367
- }
1368
- return next(request);
1369
- });
1370
- }
1371
- };
1372
- this.pipeline.addPolicy(apiVersionPolicy);
1373
- }
1374
- }
1375
-
1376
- exports.BareMetalInfrastructureClient = BareMetalInfrastructureClient;
1377
- exports.getContinuationToken = getContinuationToken;
1378
- //# sourceMappingURL=index.js.map