@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/CHANGELOG.md CHANGED
@@ -1,8 +1,18 @@
1
1
  # Release History
2
-
2
+
3
+ ## 1.0.0-beta.3 (Unreleased)
4
+
5
+ ### Features Added
6
+
7
+ ### Breaking Changes
8
+
9
+ ### Bugs Fixed
10
+
11
+ ### Other Changes
12
+
3
13
  ## 1.0.0-beta.2 (2023-11-07)
4
14
 
5
- **Features**
15
+ ### Features Added
6
16
 
7
17
  - Added operation group AzureBareMetalStorageInstances
8
18
  - Added operation AzureBareMetalInstances.beginRestart
@@ -63,7 +73,7 @@
63
73
  - Enum KnownAzureBareMetalHardwareTypeNamesEnum has a new value Sdflex
64
74
  - Enum KnownAzureBareMetalInstanceSizeNamesEnum has a new value S448Se
65
75
 
66
- **Breaking Changes**
76
+ ### Breaking Changes
67
77
 
68
78
  - Interface AzureBareMetalInstance no longer has parameter systemData
69
79
  - Type of parameter error of interface ErrorResponse is changed from ErrorDefinition to ErrorDetail
@@ -73,4 +83,4 @@
73
83
 
74
84
  ## 1.0.0-beta.1 (2023-05-23)
75
85
 
76
- The package of @azure/arm-baremetalinfrastructure is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
86
+ The package of @azure/arm-baremetalinfrastructure is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2023 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Bare Metal Infrastructure Management client
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/baremetalinfrastructure/arm-baremetalinfrastructure) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-baremetalinfrastructure) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-baremetalinfrastructure?view=azure-node-preview) |
9
+ [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-baremetalinfrastructure?view=azure-node-preview) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
@@ -46,26 +46,34 @@ npm install @azure/identity
46
46
  You will also need to **register a new AAD application and grant access to Azure bareMetalInfrastructure** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47
47
  Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
48
48
 
49
- For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
49
+ For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
50
 
51
- ```javascript
52
- const { BareMetalInfrastructureClient } = require("@azure/arm-baremetalinfrastructure");
53
- const { DefaultAzureCredential } = require("@azure/identity");
54
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
51
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52
+
53
+ ```ts snippet:ReadmeSampleCreateClient_Node
54
+ import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
55
+ import { DefaultAzureCredential } from "@azure/identity";
55
56
 
56
57
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
57
58
  const client = new BareMetalInfrastructureClient(new DefaultAzureCredential(), subscriptionId);
58
-
59
- // For client-side applications running in the browser, use this code instead:
60
- // const credential = new InteractiveBrowserCredential({
61
- // tenantId: "<YOUR_TENANT_ID>",
62
- // clientId: "<YOUR_CLIENT_ID>"
63
- // });
64
- // const client = new BareMetalInfrastructureClient(credential, subscriptionId);
65
59
  ```
66
60
 
61
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
62
+
63
+ ```ts snippet:ReadmeSampleCreateClient_Browser
64
+ import { InteractiveBrowserCredential } from "@azure/identity";
65
+ import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
66
+
67
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const client = new BareMetalInfrastructureClient(credential, subscriptionId);
73
+ ```
67
74
 
68
75
  ### JavaScript Bundle
76
+
69
77
  To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
70
78
 
71
79
  ## Key concepts
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
80
88
 
81
89
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
82
90
 
83
- ```javascript
84
- const { setLogLevel } = require("@azure/logger");
91
+ ```ts snippet:SetLogLevel
92
+ import { setLogLevel } from "@azure/logger";
93
+
85
94
  setLogLevel("info");
86
95
  ```
87
96
 
@@ -99,9 +108,9 @@ If you'd like to contribute to this library, please read the [contributing guide
99
108
 
100
109
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
101
110
 
102
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fbaremetalinfrastructure%2Farm-baremetalinfrastructure%2FREADME.png)
103
111
 
104
- [azure_cli]: https://docs.microsoft.com/cli/azure
112
+
113
+ [azure_cli]: https://learn.microsoft.com/cli/azure
105
114
  [azure_sub]: https://azure.microsoft.com/free/
106
115
  [azure_sub]: https://azure.microsoft.com/free/
107
116
  [azure_portal]: https://portal.azure.com
@@ -1,7 +1,7 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { AzureBareMetalInstances, Operations, AzureBareMetalStorageInstances } from "./operationsInterfaces";
4
- import { BareMetalInfrastructureClientOptionalParams } from "./models";
3
+ import { AzureBareMetalInstances, Operations, AzureBareMetalStorageInstances } from "./operationsInterfaces/index.js";
4
+ import { BareMetalInfrastructureClientOptionalParams } from "./models/index.js";
5
5
  export declare class BareMetalInfrastructureClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
7
  apiVersion: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bareMetalInfrastructureClient.d.ts","sourceRoot":"","sources":["../../src/bareMetalInfrastructureClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,8BAA8B,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2CAA2C,EAAE,MAAM,mBAAmB,CAAC;AAEhF,qBAAa,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2CAA2C;IAgFvD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,UAAU,EAAE,UAAU,CAAC;IACvB,8BAA8B,EAAE,8BAA8B,CAAC;CAChE"}
@@ -5,11 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __awaiter } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import { AzureBareMetalInstancesImpl, OperationsImpl, AzureBareMetalStorageInstancesImpl } from "./operations";
10
+ import { AzureBareMetalInstancesImpl, OperationsImpl, AzureBareMetalStorageInstancesImpl } from "./operations/index.js";
12
11
  export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
14
+ subscriptionId;
13
15
  /**
14
16
  * Initializes a new instance of the BareMetalInfrastructureClient class.
15
17
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -17,7 +19,6 @@ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
17
19
  * @param options The parameter options
18
20
  */
19
21
  constructor(credentials, subscriptionId, options) {
20
- var _a, _b, _c;
21
22
  if (credentials === undefined) {
22
23
  throw new Error("'credentials' cannot be null");
23
24
  }
@@ -32,16 +33,21 @@ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
32
33
  requestContentType: "application/json; charset=utf-8",
33
34
  credential: credentials
34
35
  };
35
- const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.2`;
36
+ const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.3`;
36
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
39
  : `${packageDetails}`;
39
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ const optionsWithDefaults = {
41
+ ...defaults,
42
+ ...options,
43
+ userAgentOptions: {
40
44
  userAgentPrefix
41
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
+ },
46
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
47
+ };
42
48
  super(optionsWithDefaults);
43
49
  let bearerTokenAuthenticationPolicyFound = false;
44
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
50
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
45
51
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
46
52
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
47
53
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -55,7 +61,8 @@ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
55
61
  });
56
62
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
57
63
  credential: credentials,
58
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
64
+ scopes: optionsWithDefaults.credentialScopes ??
65
+ `${optionsWithDefaults.endpoint}/.default`,
59
66
  challengeCallbacks: {
60
67
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
61
68
  }
@@ -78,25 +85,26 @@ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
78
85
  }
79
86
  const apiVersionPolicy = {
80
87
  name: "CustomApiVersionPolicy",
81
- sendRequest(request, next) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- const param = request.url.split("?");
84
- if (param.length > 1) {
85
- const newParams = param[1].split("&").map((item) => {
86
- if (item.indexOf("api-version") > -1) {
87
- return "api-version=" + apiVersion;
88
- }
89
- else {
90
- return item;
91
- }
92
- });
93
- request.url = param[0] + "?" + newParams.join("&");
94
- }
95
- return next(request);
96
- });
88
+ async sendRequest(request, next) {
89
+ const param = request.url.split("?");
90
+ if (param.length > 1) {
91
+ const newParams = param[1].split("&").map((item) => {
92
+ if (item.indexOf("api-version") > -1) {
93
+ return "api-version=" + apiVersion;
94
+ }
95
+ else {
96
+ return item;
97
+ }
98
+ });
99
+ request.url = param[0] + "?" + newParams.join("&");
100
+ }
101
+ return next(request);
97
102
  }
98
103
  };
99
104
  this.pipeline.addPolicy(apiVersionPolicy);
100
105
  }
106
+ azureBareMetalInstances;
107
+ operations;
108
+ azureBareMetalStorageInstances;
101
109
  }
102
110
  //# sourceMappingURL=bareMetalInfrastructureClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bareMetalInfrastructureClient.js","sourceRoot":"","sources":["../../src/bareMetalInfrastructureClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,kCAAkC,EACnC,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,OAAO,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cA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WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,uBAAuB,CAA0B;IACjD,UAAU,CAAa;IACvB,8BAA8B,CAAiC;CAChE","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AzureBareMetalInstancesImpl,\n OperationsImpl,\n AzureBareMetalStorageInstancesImpl\n} from \"./operations/index.js\";\nimport {\n AzureBareMetalInstances,\n Operations,\n AzureBareMetalStorageInstances\n} from \"./operationsInterfaces/index.js\";\nimport { BareMetalInfrastructureClientOptionalParams } from \"./models/index.js\";\n\nexport class BareMetalInfrastructureClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the BareMetalInfrastructureClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: BareMetalInfrastructureClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: BareMetalInfrastructureClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-08-04-preview\";\n this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);\n this.operations = new OperationsImpl(this);\n this.azureBareMetalStorageInstances = new AzureBareMetalStorageInstancesImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n azureBareMetalInstances: AzureBareMetalInstances;\n operations: Operations;\n azureBareMetalStorageInstances: AzureBareMetalStorageInstances;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { BareMetalInfrastructureClient } from "./bareMetalInfrastructureClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,cAAc,iCAAiC,CAAC"}
@@ -6,8 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  /// <reference lib="esnext.asynciterable" />
9
- export { getContinuationToken } from "./pagingHelper";
10
- export * from "./models";
11
- export { BareMetalInfrastructureClient } from "./bareMetalInfrastructureClient";
12
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { BareMetalInfrastructureClient } from "./bareMetalInfrastructureClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
13
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { BareMetalInfrastructureClient } from \"./bareMetalInfrastructureClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAo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spec, sendOperationFn } = inputs;
3
+ return {
4
+ requestMethod: spec.httpMethod,
5
+ requestPath: spec.path,
6
+ sendInitialRequest: () => sendOperationFn(args, spec),
7
+ sendPollRequest: (path, options) => {
8
+ const { requestBody, ...restSpec } = spec;
9
+ return sendOperationFn(args, {
10
+ ...restSpec,
11
+ httpMethod: "GET",
12
+ path,
13
+ abortSignal: options?.abortSignal
14
+ });
15
+ }
16
+ };
17
+ }
18
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyXH,6EAA6E;AAC7E,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,iBAAiB;IACjB,sDAAyB,CAAA;IACzB,gBAAgB;IAChB,oDAAuB,CAAA;IACvB,gBAAgB;IAChB,oDAAuB,CAAA;IACvB,aAAa;IACb,8CAAiB,CAAA;AACnB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AAcD,8FAA8F;AAC9F,MAAM,CAAN,IAAY,0CAKX;AALD,WAAY,0CAA0C;IACpD,aAAa;IACb,+DAAiB,CAAA;IACjB,eAAe;IACf,mEAAqB,CAAA;AACvB,CAAC,EALW,0CAA0C,KAA1C,0CAA0C,QAKrD;AAYD,4FAA4F;AAC5F,MAAM,CAAN,IAAY,wCAOX;AAPD,WAAY,wCAAwC;IAClD,eAAe;IACf,kEAAsB,CAAA;IACtB,UAAU;IACV,uDAAW,CAAA;IACX,aAAa;IACb,6DAAiB,CAAA;AACnB,CAAC,EAPW,wCAAwC,KAAxC,wCAAwC,QAOnD;AAaD,4FAA4F;AAC5F,MAAM,CAAN,IAAY,wCAyFX;AAzFD,WAAY,wCAAwC;IAClD,WAAW;IACX,yDAAa,CAAA;IACb,YAAY;IACZ,2DAAe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,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBAiBX;AAjBD,WAAY,sBAAsB;IAChC,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,aAAa;IACb,2CAAiB,CAAA;IACjB,gBAAgB;IAChB,iDAAuB,CAAA;IACvB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,gBAAgB;IAChB,iDAAuB,CAAA;AACzB,CAAC,EAjBW,sBAAsB,KAAtB,sBAAsB,QAiBjC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** The OperationStatus object returns the state of an asynchronous operation. */\nexport interface OperationStatus {\n /** Unique Operation Status Identifier. */\n name?: string;\n /** Status of the operation. */\n status?: AsyncOperationStatus;\n /** Start Time when the operation was initially executed. */\n startTime?: string;\n /** An error from the Azure Bare Metal Infrastructure service. */\n error?: OperationStatusError;\n}\n\n/** An error from the Azure Bare Metal Infrastructure service. */\nexport interface OperationStatusError {\n /** Server-defined set of error codes. */\n code?: string;\n /** Human-readable representation of the error. */\n message?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** The active state empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server */\nexport interface ForceState {\n /** Whether to force restart by shutting all processes. */\n forceState?: AzureBareMetalInstanceForcePowerState;\n}\n\n/** The response from the List Azure Bare Metal Instances operation. */\nexport interface AzureBareMetalInstancesListResult {\n /** The list of Azure Bare Metal Instances. */\n value?: AzureBareMetalInstance[];\n /** The URL to get the next set of Azure Bare Metal Instances. */\n nextLink?: string;\n}\n\n/** Specifies the hardware settings for the Azure Bare Metal Instance. */\nexport interface HardwareProfile {\n /**\n * Name of the hardware type (vendor and/or their product name)\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly hardwareType?: AzureBareMetalHardwareTypeNamesEnum;\n /**\n * Specifies the Azure Bare Metal Instance SKU.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly azureBareMetalInstanceSize?: AzureBareMetalInstanceSizeNamesEnum;\n}\n\n/** Specifies the storage settings for the Azure Bare Metal instance disks. */\nexport interface StorageProfile {\n /**\n * IP Address to connect to storage.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nfsIpAddress?: string;\n /** Specifies information about the operating system disk used by bare metal instance. */\n osDisks?: Disk[];\n}\n\n/** Specifies the disk information fo the Azure Bare Metal Instance */\nexport interface Disk {\n /** The disk name. */\n name?: string;\n /** Specifies the size of an empty data disk in gigabytes. */\n diskSizeGB?: number;\n /**\n * Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lun?: number;\n}\n\n/** Specifies the operating system settings for the Azure Bare Metal instance. */\nexport interface OSProfile {\n /** Specifies the host OS name of the Azure Bare Metal instance. */\n computerName?: string;\n /**\n * This property allows you to specify the type of the OS.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly osType?: string;\n /**\n * Specifies version of operating system.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly version?: string;\n /** Specifies the SSH public key used to access the operating system. */\n sshPublicKey?: string;\n}\n\n/** Specifies the network settings for the Azure Bare Metal Instance disks. */\nexport interface NetworkProfile {\n /** Specifies the network interfaces for the Azure Bare Metal Instance. */\n networkInterfaces?: NetworkInterface[];\n /**\n * Specifies the circuit id for connecting to express route.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly circuitId?: string;\n}\n\n/** Specifies the network interfaces of a bare metal resource. */\nexport interface NetworkInterface {\n /** Specifies the IP address of the network interface. */\n ipAddress?: string;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Azure Resource Manager metadata containing createdBy and modifiedBy information.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface OperationListResult {\n /**\n * List of operations supported by the resource provider\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Operation[];\n /**\n * URL to get the next set of operation list results (if there are any).\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /**\n * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly origin?: Origin;\n /**\n * Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly actionType?: ActionType;\n}\n\n/** Localized display information for this particular operation. */\nexport interface OperationDisplay {\n /**\n * The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provider?: string;\n /**\n * The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly resource?: string;\n /**\n * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly operation?: string;\n /**\n * The short, localized friendly description of the operation; suitable for tool tips and detailed views.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly description?: string;\n}\n\n/** Tags field of the AzureBareMetal/AzureBareMetaStorage instance. */\nexport interface Tags {\n /** Tags field of the AzureBareMetal/AzureBareMetaStorage instance. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The response from the Get AzureBareMetalStorageInstances operation. */\nexport interface AzureBareMetalStorageInstancesListResult {\n /** The list of AzureBareMetalStorage instances. */\n value?: AzureBareMetalStorageInstance[];\n /** The URL to get the next set of AzureBareMetalStorage instances. */\n nextLink?: string;\n}\n\n/** described the storage properties of the azure bare metal storage instance */\nexport interface StorageProperties {\n /** State of provisioning of the AzureBareMetalStorageInstance */\n provisioningState?: ProvisioningState;\n /** the offering type for which the resource is getting provisioned */\n offeringType?: string;\n /** the storage protocol for which the resource is getting provisioned */\n storageType?: string;\n /** the kind of storage instance */\n generation?: string;\n /** the hardware type of the storage instance */\n hardwareType?: string;\n /** the workload for which the resource is getting provisioned */\n workloadType?: string;\n /** the billing related information for the resource */\n storageBillingProperties?: StorageBillingProperties;\n}\n\n/** Describes the billing related details of the AzureBareMetalStorageInstance. */\nexport interface StorageBillingProperties {\n /** the billing mode for the storage instance */\n billingMode?: string;\n /** the SKU type that is provisioned */\n azureBareMetalStorageInstanceSize?: string;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The geo-location where the resource lives */\n location: string;\n}\n\n/** AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) */\nexport interface AzureBareMetalInstance extends TrackedResource {\n /** Specifies the hardware settings for the Azure Bare Metal Instance. */\n hardwareProfile?: HardwareProfile;\n /** Specifies the storage settings for the Azure Bare Metal Instance disks. */\n storageProfile?: StorageProfile;\n /** Specifies the operating system settings for the Azure Bare Metal Instance. */\n osProfile?: OSProfile;\n /** Specifies the network settings for the Azure Bare Metal Instance. */\n networkProfile?: NetworkProfile;\n /**\n * Specifies the Azure Bare Metal Instance unique ID.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly azureBareMetalInstanceId?: string;\n /**\n * Resource power state\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly powerState?: AzureBareMetalInstancePowerStateEnum;\n /**\n * Resource proximity placement group\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly proximityPlacementGroup?: string;\n /**\n * Hardware revision of an Azure Bare Metal Instance\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly hwRevision?: string;\n /** ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance */\n partnerNodeId?: string;\n /**\n * State of provisioning of the AzureBareMetalInstance\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: AzureBareMetalProvisioningStatesEnum;\n}\n\n/** AzureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) */\nexport interface AzureBareMetalStorageInstance extends TrackedResource {\n /** Specifies the AzureBareMetaStorageInstance unique ID. */\n azureBareMetalStorageInstanceUniqueIdentifier?: string;\n /** Specifies the storage properties for the AzureBareMetalStorage instance. */\n storageProperties?: StorageProperties;\n}\n\n/** Defines headers for AzureBareMetalInstances_start operation. */\nexport interface AzureBareMetalInstancesStartHeaders {\n /** URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location. */\n location?: string;\n}\n\n/** Defines headers for AzureBareMetalInstances_restart operation. */\nexport interface AzureBareMetalInstancesRestartHeaders {\n /** URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location. */\n location?: string;\n}\n\n/** Defines headers for AzureBareMetalInstances_shutdown operation. */\nexport interface AzureBareMetalInstancesShutdownHeaders {\n /** URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location. */\n location?: string;\n}\n\n/** Known values of {@link AsyncOperationStatus} that the service accepts. */\nexport enum KnownAsyncOperationStatus {\n /** Requesting */\n Requesting = \"Requesting\",\n /** Executing */\n Executing = \"Executing\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\"\n}\n\n/**\n * Defines values for AsyncOperationStatus. \\\n * {@link KnownAsyncOperationStatus} can be used interchangeably with AsyncOperationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Requesting** \\\n * **Executing** \\\n * **Succeeded** \\\n * **Failed**\n */\nexport type AsyncOperationStatus = string;\n\n/** Known values of {@link AzureBareMetalInstanceForcePowerState} that the service accepts. */\nexport enum KnownAzureBareMetalInstanceForcePowerState {\n /** Active */\n Active = \"active\",\n /** Inactive */\n Inactive = \"inactive\"\n}\n\n/**\n * Defines values for AzureBareMetalInstanceForcePowerState. \\\n * {@link KnownAzureBareMetalInstanceForcePowerState} can be used interchangeably with AzureBareMetalInstanceForcePowerState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **active** \\\n * **inactive**\n */\nexport type AzureBareMetalInstanceForcePowerState = string;\n\n/** Known values of {@link AzureBareMetalHardwareTypeNamesEnum} that the service accepts. */\nexport enum KnownAzureBareMetalHardwareTypeNamesEnum {\n /** CiscoUCS */\n CiscoUCS = \"Cisco_UCS\",\n /** HPE */\n HPE = \"HPE\",\n /** Sdflex */\n Sdflex = \"SDFLEX\"\n}\n\n/**\n * Defines values for AzureBareMetalHardwareTypeNamesEnum. \\\n * {@link KnownAzureBareMetalHardwareTypeNamesEnum} can be used interchangeably with AzureBareMetalHardwareTypeNamesEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Cisco_UCS** \\\n * **HPE** \\\n * **SDFLEX**\n */\nexport type AzureBareMetalHardwareTypeNamesEnum = string;\n\n/** Known values of {@link AzureBareMetalInstanceSizeNamesEnum} that the service accepts. */\nexport enum KnownAzureBareMetalInstanceSizeNamesEnum {\n /** S72M */\n S72M = \"S72m\",\n /** S144M */\n S144M = \"S144m\",\n /** S72 */\n S72 = \"S72\",\n /** S144 */\n S144 = \"S144\",\n /** S192 */\n S192 = \"S192\",\n /** S192M */\n S192M = \"S192m\",\n /** S192Xm */\n S192Xm = \"S192xm\",\n /** S96 */\n S96 = \"S96\",\n /** S112 */\n S112 = \"S112\",\n /** S224 */\n S224 = \"S224\",\n /** S224M */\n S224M = \"S224m\",\n /** S224Om */\n S224Om = \"S224om\",\n /** S224Oo */\n S224Oo = \"S224oo\",\n /** S224Oom */\n S224Oom = \"S224oom\",\n /** S224Ooo */\n S224Ooo = \"S224ooo\",\n /** S384 */\n S384 = \"S384\",\n /** S384M */\n S384M = \"S384m\",\n /** S384Xm */\n S384Xm = \"S384xm\",\n /** S384Xxm */\n S384Xxm = \"S384xxm\",\n /** S448 */\n S448 = \"S448\",\n /** S448M */\n S448M = \"S448m\",\n /** S448Om */\n S448Om = \"S448om\",\n /** S448Oo */\n S448Oo = \"S448oo\",\n /** S448Oom */\n S448Oom = \"S448oom\",\n /** S448Ooo */\n S448Ooo = \"S448ooo\",\n /** S448Se */\n S448Se = \"S448se\",\n /** S576M */\n S576M = \"S576m\",\n /** S576Xm */\n S576Xm = \"S576xm\",\n /** S672 */\n S672 = \"S672\",\n /** S672M */\n S672M = \"S672m\",\n /** S672Om */\n S672Om = \"S672om\",\n /** S672Oo */\n S672Oo = \"S672oo\",\n /** S672Oom */\n S672Oom = \"S672oom\",\n /** S672Ooo */\n S672Ooo = \"S672ooo\",\n /** S768 */\n S768 = \"S768\",\n /** S768M */\n S768M = \"S768m\",\n /** S768Xm */\n S768Xm = \"S768xm\",\n /** S896 */\n S896 = \"S896\",\n /** S896M */\n S896M = \"S896m\",\n /** S896Om */\n S896Om = \"S896om\",\n /** S896Oo */\n S896Oo = \"S896oo\",\n /** S896Oom */\n S896Oom = \"S896oom\",\n /** S896Ooo */\n S896Ooo = \"S896ooo\",\n /** S960M */\n S960M = \"S960m\"\n}\n\n/**\n * Defines values for AzureBareMetalInstanceSizeNamesEnum. \\\n * {@link KnownAzureBareMetalInstanceSizeNamesEnum} can be used interchangeably with AzureBareMetalInstanceSizeNamesEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S72m** \\\n * **S144m** \\\n * **S72** \\\n * **S144** \\\n * **S192** \\\n * **S192m** \\\n * **S192xm** \\\n * **S96** \\\n * **S112** \\\n * **S224** \\\n * **S224m** \\\n * **S224om** \\\n * **S224oo** \\\n * **S224oom** \\\n * **S224ooo** \\\n * **S384** \\\n * **S384m** \\\n * **S384xm** \\\n * **S384xxm** \\\n * **S448** \\\n * **S448m** \\\n * **S448om** \\\n * **S448oo** \\\n * **S448oom** \\\n * **S448ooo** \\\n * **S448se** \\\n * **S576m** \\\n * **S576xm** \\\n * **S672** \\\n * **S672m** \\\n * **S672om** \\\n * **S672oo** \\\n * **S672oom** \\\n * **S672ooo** \\\n * **S768** \\\n * **S768m** \\\n * **S768xm** \\\n * **S896** \\\n * **S896m** \\\n * **S896om** \\\n * **S896oo** \\\n * **S896oom** \\\n * **S896ooo** \\\n * **S960m**\n */\nexport type AzureBareMetalInstanceSizeNamesEnum = string;\n\n/** Known values of {@link AzureBareMetalInstancePowerStateEnum} that the service accepts. */\nexport enum KnownAzureBareMetalInstancePowerStateEnum {\n /** Starting */\n Starting = \"starting\",\n /** Started */\n Started = \"started\",\n /** Stopping */\n Stopping = \"stopping\",\n /** Stopped */\n Stopped = \"stopped\",\n /** Restarting */\n Restarting = \"restarting\",\n /** Unknown */\n Unknown = \"unknown\"\n}\n\n/**\n * Defines values for AzureBareMetalInstancePowerStateEnum. \\\n * {@link KnownAzureBareMetalInstancePowerStateEnum} can be used interchangeably with AzureBareMetalInstancePowerStateEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **starting** \\\n * **started** \\\n * **stopping** \\\n * **stopped** \\\n * **restarting** \\\n * **unknown**\n */\nexport type AzureBareMetalInstancePowerStateEnum = string;\n\n/** Known values of {@link AzureBareMetalProvisioningStatesEnum} that the service accepts. */\nexport enum KnownAzureBareMetalProvisioningStatesEnum {\n /** Accepted */\n Accepted = \"Accepted\",\n /** Creating */\n Creating = \"Creating\",\n /** Updating */\n Updating = \"Updating\",\n /** Failed */\n Failed = \"Failed\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Migrating */\n Migrating = \"Migrating\"\n}\n\n/**\n * Defines values for AzureBareMetalProvisioningStatesEnum. \\\n * {@link KnownAzureBareMetalProvisioningStatesEnum} can be used interchangeably with AzureBareMetalProvisioningStatesEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Accepted** \\\n * **Creating** \\\n * **Updating** \\\n * **Failed** \\\n * **Succeeded** \\\n * **Deleting** \\\n * **Migrating**\n */\nexport type AzureBareMetalProvisioningStatesEnum = string;\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\"\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** User */\n User = \"user\",\n /** System */\n System = \"system\",\n /** UserSystem */\n UserSystem = \"user,system\"\n}\n\n/**\n * Defines values for Origin. \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\"\n}\n\n/**\n * Defines values for ActionType. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Accepted */\n Accepted = \"Accepted\",\n /** Creating */\n Creating = \"Creating\",\n /** Updating */\n Updating = \"Updating\",\n /** Failed */\n Failed = \"Failed\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Migrating */\n Migrating = \"Migrating\"\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Accepted** \\\n * **Creating** \\\n * **Updating** \\\n * **Failed** \\\n * **Succeeded** \\\n * **Deleting** \\\n * **Canceled** \\\n * **Migrating**\n */\nexport type ProvisioningState = string;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesStartOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the start operation. */\nexport type AzureBareMetalInstancesStartResponse = OperationStatus;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesRestartOptionalParams\n extends coreClient.OperationOptions {\n /** When set to 'active', this parameter empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server */\n forceParameter?: ForceState;\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the restart operation. */\nexport type AzureBareMetalInstancesRestartResponse = OperationStatus;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesShutdownOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the shutdown operation. */\nexport type AzureBareMetalInstancesShutdownResponse = OperationStatus;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type AzureBareMetalInstancesListBySubscriptionResponse = AzureBareMetalInstancesListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type AzureBareMetalInstancesListByResourceGroupResponse = AzureBareMetalInstancesListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type AzureBareMetalInstancesGetResponse = AzureBareMetalInstance;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type AzureBareMetalInstancesUpdateResponse = AzureBareMetalInstance;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type AzureBareMetalInstancesListBySubscriptionNextResponse = AzureBareMetalInstancesListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalInstancesListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type AzureBareMetalInstancesListByResourceGroupNextResponse = AzureBareMetalInstancesListResult;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type AzureBareMetalStorageInstancesListBySubscriptionResponse = AzureBareMetalStorageInstancesListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type AzureBareMetalStorageInstancesListByResourceGroupResponse = AzureBareMetalStorageInstancesListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type AzureBareMetalStorageInstancesGetResponse = AzureBareMetalStorageInstance;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type AzureBareMetalStorageInstancesCreateResponse = AzureBareMetalStorageInstance;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type AzureBareMetalStorageInstancesUpdateResponse = AzureBareMetalStorageInstance;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type AzureBareMetalStorageInstancesListBySubscriptionNextResponse = AzureBareMetalStorageInstancesListResult;\n\n/** Optional parameters. */\nexport interface AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type AzureBareMetalStorageInstancesListByResourceGroupNextResponse = AzureBareMetalStorageInstancesListResult;\n\n/** Optional parameters. */\nexport interface BareMetalInfrastructureClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -645,103 +645,123 @@ export const TrackedResource = {
645
645
  type: {
646
646
  name: "Composite",
647
647
  className: "TrackedResource",
648
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
648
+ modelProperties: {
649
+ ...Resource.type.modelProperties,
650
+ tags: {
649
651
  serializedName: "tags",
650
652
  type: {
651
653
  name: "Dictionary",
652
654
  value: { type: { name: "String" } }
653
655
  }
654
- }, location: {
656
+ },
657
+ location: {
655
658
  serializedName: "location",
656
659
  required: true,
657
660
  type: {
658
661
  name: "String"
659
662
  }
660
- } })
663
+ }
664
+ }
661
665
  }
662
666
  };
663
667
  export const AzureBareMetalInstance = {
664
668
  type: {
665
669
  name: "Composite",
666
670
  className: "AzureBareMetalInstance",
667
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { hardwareProfile: {
671
+ modelProperties: {
672
+ ...TrackedResource.type.modelProperties,
673
+ hardwareProfile: {
668
674
  serializedName: "properties.hardwareProfile",
669
675
  type: {
670
676
  name: "Composite",
671
677
  className: "HardwareProfile"
672
678
  }
673
- }, storageProfile: {
679
+ },
680
+ storageProfile: {
674
681
  serializedName: "properties.storageProfile",
675
682
  type: {
676
683
  name: "Composite",
677
684
  className: "StorageProfile"
678
685
  }
679
- }, osProfile: {
686
+ },
687
+ osProfile: {
680
688
  serializedName: "properties.osProfile",
681
689
  type: {
682
690
  name: "Composite",
683
691
  className: "OSProfile"
684
692
  }
685
- }, networkProfile: {
693
+ },
694
+ networkProfile: {
686
695
  serializedName: "properties.networkProfile",
687
696
  type: {
688
697
  name: "Composite",
689
698
  className: "NetworkProfile"
690
699
  }
691
- }, azureBareMetalInstanceId: {
700
+ },
701
+ azureBareMetalInstanceId: {
692
702
  serializedName: "properties.azureBareMetalInstanceId",
693
703
  readOnly: true,
694
704
  type: {
695
705
  name: "String"
696
706
  }
697
- }, powerState: {
707
+ },
708
+ powerState: {
698
709
  serializedName: "properties.powerState",
699
710
  readOnly: true,
700
711
  type: {
701
712
  name: "String"
702
713
  }
703
- }, proximityPlacementGroup: {
714
+ },
715
+ proximityPlacementGroup: {
704
716
  serializedName: "properties.proximityPlacementGroup",
705
717
  readOnly: true,
706
718
  type: {
707
719
  name: "String"
708
720
  }
709
- }, hwRevision: {
721
+ },
722
+ hwRevision: {
710
723
  serializedName: "properties.hwRevision",
711
724
  readOnly: true,
712
725
  type: {
713
726
  name: "String"
714
727
  }
715
- }, partnerNodeId: {
728
+ },
729
+ partnerNodeId: {
716
730
  serializedName: "properties.partnerNodeId",
717
731
  type: {
718
732
  name: "String"
719
733
  }
720
- }, provisioningState: {
734
+ },
735
+ provisioningState: {
721
736
  serializedName: "properties.provisioningState",
722
737
  readOnly: true,
723
738
  type: {
724
739
  name: "String"
725
740
  }
726
- } })
741
+ }
742
+ }
727
743
  }
728
744
  };
729
745
  export const AzureBareMetalStorageInstance = {
730
746
  type: {
731
747
  name: "Composite",
732
748
  className: "AzureBareMetalStorageInstance",
733
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { azureBareMetalStorageInstanceUniqueIdentifier: {
749
+ modelProperties: {
750
+ ...TrackedResource.type.modelProperties,
751
+ azureBareMetalStorageInstanceUniqueIdentifier: {
734
752
  serializedName: "properties.azureBareMetalStorageInstanceUniqueIdentifier",
735
753
  type: {
736
754
  name: "String"
737
755
  }
738
- }, storageProperties: {
756
+ },
757
+ storageProperties: {
739
758
  serializedName: "properties.storageProperties",
740
759
  type: {
741
760
  name: "Composite",
742
761
  className: "StorageProperties"
743
762
  }
744
- } })
763
+ }
764
+ }
745
765
  }
746
766
  };
747
767
  export const AzureBareMetalInstancesStartHeaders = {