@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/CHANGELOG.md CHANGED
@@ -1,5 +1,86 @@
1
1
  # Release History
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
+
13
+ ## 1.0.0-beta.2 (2023-11-07)
14
+
15
+ ### Features Added
16
+
17
+ - Added operation group AzureBareMetalStorageInstances
18
+ - Added operation AzureBareMetalInstances.beginRestart
19
+ - Added operation AzureBareMetalInstances.beginRestartAndWait
20
+ - Added operation AzureBareMetalInstances.beginShutdown
21
+ - Added operation AzureBareMetalInstances.beginShutdownAndWait
22
+ - Added operation AzureBareMetalInstances.beginStart
23
+ - Added operation AzureBareMetalInstances.beginStartAndWait
24
+ - Added Interface AzureBareMetalInstancesRestartHeaders
25
+ - Added Interface AzureBareMetalInstancesRestartOptionalParams
26
+ - Added Interface AzureBareMetalInstancesShutdownHeaders
27
+ - Added Interface AzureBareMetalInstancesShutdownOptionalParams
28
+ - Added Interface AzureBareMetalInstancesStartHeaders
29
+ - Added Interface AzureBareMetalInstancesStartOptionalParams
30
+ - Added Interface AzureBareMetalStorageInstance
31
+ - Added Interface AzureBareMetalStorageInstancesCreateOptionalParams
32
+ - Added Interface AzureBareMetalStorageInstancesDeleteOptionalParams
33
+ - Added Interface AzureBareMetalStorageInstancesGetOptionalParams
34
+ - Added Interface AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams
35
+ - Added Interface AzureBareMetalStorageInstancesListByResourceGroupOptionalParams
36
+ - Added Interface AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams
37
+ - Added Interface AzureBareMetalStorageInstancesListBySubscriptionOptionalParams
38
+ - Added Interface AzureBareMetalStorageInstancesListResult
39
+ - Added Interface AzureBareMetalStorageInstancesUpdateOptionalParams
40
+ - Added Interface ErrorAdditionalInfo
41
+ - Added Interface ErrorDetail
42
+ - Added Interface ForceState
43
+ - Added Interface NetworkInterface
44
+ - Added Interface OperationDisplay
45
+ - Added Interface OperationListResult
46
+ - Added Interface OperationStatus
47
+ - Added Interface OperationStatusError
48
+ - Added Interface StorageBillingProperties
49
+ - Added Interface StorageProperties
50
+ - Added Type Alias ActionType
51
+ - Added Type Alias AsyncOperationStatus
52
+ - Added Type Alias AzureBareMetalInstanceForcePowerState
53
+ - Added Type Alias AzureBareMetalInstancesRestartResponse
54
+ - Added Type Alias AzureBareMetalInstancesShutdownResponse
55
+ - Added Type Alias AzureBareMetalInstancesStartResponse
56
+ - Added Type Alias AzureBareMetalStorageInstancesCreateResponse
57
+ - Added Type Alias AzureBareMetalStorageInstancesGetResponse
58
+ - Added Type Alias AzureBareMetalStorageInstancesListByResourceGroupNextResponse
59
+ - Added Type Alias AzureBareMetalStorageInstancesListByResourceGroupResponse
60
+ - Added Type Alias AzureBareMetalStorageInstancesListBySubscriptionNextResponse
61
+ - Added Type Alias AzureBareMetalStorageInstancesListBySubscriptionResponse
62
+ - Added Type Alias AzureBareMetalStorageInstancesUpdateResponse
63
+ - Added Type Alias Origin
64
+ - Added Type Alias ProvisioningState
65
+ - Interface Operation has a new optional parameter actionType
66
+ - Interface Operation has a new optional parameter origin
67
+ - Interface Resource has a new optional parameter systemData
68
+ - Added Enum KnownActionType
69
+ - Added Enum KnownAsyncOperationStatus
70
+ - Added Enum KnownAzureBareMetalInstanceForcePowerState
71
+ - Added Enum KnownOrigin
72
+ - Added Enum KnownProvisioningState
73
+ - Enum KnownAzureBareMetalHardwareTypeNamesEnum has a new value Sdflex
74
+ - Enum KnownAzureBareMetalInstanceSizeNamesEnum has a new value S448Se
75
+
76
+ ### Breaking Changes
77
+
78
+ - Interface AzureBareMetalInstance no longer has parameter systemData
79
+ - Type of parameter error of interface ErrorResponse is changed from ErrorDefinition to ErrorDetail
80
+ - Type of parameter networkInterfaces of interface NetworkProfile is changed from IpAddress[] to NetworkInterface[]
81
+ - Type of parameter display of interface Operation is changed from Display to OperationDisplay
82
+
2
83
 
3
84
  ## 1.0.0-beta.1 (2023-05-23)
4
85
 
5
- 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
@@ -2,11 +2,11 @@
2
2
 
3
3
  This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure bareMetalInfrastructure client.
4
4
 
5
- The BareMetalInfrastructure Management client
5
+ 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) |
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 } 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;
@@ -9,7 +9,7 @@ export declare class BareMetalInfrastructureClient extends coreClient.ServiceCli
9
9
  /**
10
10
  * Initializes a new instance of the BareMetalInfrastructureClient class.
11
11
  * @param credentials Subscription credentials which uniquely identify client subscription.
12
- * @param subscriptionId The ID of the target subscription.
12
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
13
13
  * @param options The parameter options
14
14
  */
15
15
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: BareMetalInfrastructureClientOptionalParams);
@@ -17,5 +17,6 @@ export declare class BareMetalInfrastructureClient extends coreClient.ServiceCli
17
17
  private addCustomApiVersionPolicy;
18
18
  azureBareMetalInstances: AzureBareMetalInstances;
19
19
  operations: Operations;
20
+ azureBareMetalStorageInstances: AzureBareMetalStorageInstances;
20
21
  }
21
22
  //# sourceMappingURL=bareMetalInfrastructureClient.d.ts.map
@@ -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,19 +5,20 @@
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 } 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.
16
- * @param subscriptionId The ID of the target subscription.
18
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
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.1`;
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
  }
@@ -65,9 +72,10 @@ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
65
72
  this.subscriptionId = subscriptionId;
66
73
  // Assigning values to Constant parameters
67
74
  this.$host = options.$host || "https://management.azure.com";
68
- this.apiVersion = options.apiVersion || "2021-08-09";
75
+ this.apiVersion = options.apiVersion || "2023-08-04-preview";
69
76
  this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);
70
77
  this.operations = new OperationsImpl(this);
78
+ this.azureBareMetalStorageInstances = new AzureBareMetalStorageInstancesImpl(this);
71
79
  this.addCustomApiVersionPolicy(options.apiVersion);
72
80
  }
73
81
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
@@ -77,25 +85,26 @@ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
77
85
  }
78
86
  const apiVersionPolicy = {
79
87
  name: "CustomApiVersionPolicy",
80
- sendRequest(request, next) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- const param = request.url.split("?");
83
- if (param.length > 1) {
84
- const newParams = param[1].split("&").map((item) => {
85
- if (item.indexOf("api-version") > -1) {
86
- return "api-version=" + apiVersion;
87
- }
88
- else {
89
- return item;
90
- }
91
- });
92
- request.url = param[0] + "?" + newParams.join("&");
93
- }
94
- return next(request);
95
- });
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);
96
102
  }
97
103
  };
98
104
  this.pipeline.addPolicy(apiVersionPolicy);
99
105
  }
106
+ azureBareMetalInstances;
107
+ operations;
108
+ azureBareMetalStorageInstances;
100
109
  }
101
110
  //# sourceMappingURL=bareMetalInfrastructureClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bareMetalInfrastructureClient.js","sourceRoot":"","sources":["../../src/bareMetalInfrastructureClient.ts"],"names":[],"mappings":"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","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"]}
@@ -0,0 +1,11 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare function createLroSpec<T>(inputs: {
3
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
+ args: Record<string, unknown>;
5
+ spec: {
6
+ readonly requestBody?: unknown;
7
+ readonly path?: string;
8
+ readonly httpMethod: string;
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
11
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
@@ -0,0 +1,18 @@
1
+ export function createLroSpec(inputs) {
2
+ const { args, 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"]}