@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
@@ -0,0 +1,93 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { AzureBareMetalStorageInstances } from "../operationsInterfaces/index.js";
3
+ import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient.js";
4
+ import { AzureBareMetalStorageInstance, AzureBareMetalStorageInstancesListBySubscriptionOptionalParams, AzureBareMetalStorageInstancesListByResourceGroupOptionalParams, AzureBareMetalStorageInstancesGetOptionalParams, AzureBareMetalStorageInstancesGetResponse, AzureBareMetalStorageInstancesCreateOptionalParams, AzureBareMetalStorageInstancesCreateResponse, Tags, AzureBareMetalStorageInstancesUpdateOptionalParams, AzureBareMetalStorageInstancesUpdateResponse, AzureBareMetalStorageInstancesDeleteOptionalParams } from "../models/index.js";
5
+ /** Class containing AzureBareMetalStorageInstances operations. */
6
+ export declare class AzureBareMetalStorageInstancesImpl implements AzureBareMetalStorageInstances {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class AzureBareMetalStorageInstances class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BareMetalInfrastructureClient);
13
+ /**
14
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
15
+ * various properties of each Azure Bare Metal Instance.
16
+ * @param options The options parameters.
17
+ */
18
+ listBySubscription(options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureBareMetalStorageInstance>;
19
+ private listBySubscriptionPagingPage;
20
+ private listBySubscriptionPagingAll;
21
+ /**
22
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
23
+ * operations returns various properties of each Azure Bare Metal Instance.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param options The options parameters.
26
+ */
27
+ listByResourceGroup(resourceGroupName: string, options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureBareMetalStorageInstance>;
28
+ private listByResourceGroupPagingPage;
29
+ private listByResourceGroupPagingAll;
30
+ /**
31
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
32
+ * various properties of each Azure Bare Metal Instance.
33
+ * @param options The options parameters.
34
+ */
35
+ private _listBySubscription;
36
+ /**
37
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
38
+ * operations returns various properties of each Azure Bare Metal Instance.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param options The options parameters.
41
+ */
42
+ private _listByResourceGroup;
43
+ /**
44
+ * Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and
45
+ * instance name.
46
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
48
+ * as the ResourceName.
49
+ * @param options The options parameters.
50
+ */
51
+ get(resourceGroupName: string, azureBareMetalStorageInstanceName: string, options?: AzureBareMetalStorageInstancesGetOptionalParams): Promise<AzureBareMetalStorageInstancesGetResponse>;
52
+ /**
53
+ * Create an azure bare metal storage resource.
54
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
56
+ * as the ResourceName.
57
+ * @param requestBodyParameters request body for put call
58
+ * @param options The options parameters.
59
+ */
60
+ create(resourceGroupName: string, azureBareMetalStorageInstanceName: string, requestBodyParameters: AzureBareMetalStorageInstance, options?: AzureBareMetalStorageInstancesCreateOptionalParams): Promise<AzureBareMetalStorageInstancesCreateResponse>;
61
+ /**
62
+ * Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,
63
+ * resource group, and instance name.
64
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
66
+ * as the ResourceName.
67
+ * @param tagsParameter Request body that only contains the new Tags field
68
+ * @param options The options parameters.
69
+ */
70
+ update(resourceGroupName: string, azureBareMetalStorageInstanceName: string, tagsParameter: Tags, options?: AzureBareMetalStorageInstancesUpdateOptionalParams): Promise<AzureBareMetalStorageInstancesUpdateResponse>;
71
+ /**
72
+ * Delete an AzureBareMetalStorageInstance.
73
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
74
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
75
+ * as the ResourceName.
76
+ * @param options The options parameters.
77
+ */
78
+ delete(resourceGroupName: string, azureBareMetalStorageInstanceName: string, options?: AzureBareMetalStorageInstancesDeleteOptionalParams): Promise<void>;
79
+ /**
80
+ * ListBySubscriptionNext
81
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
82
+ * @param options The options parameters.
83
+ */
84
+ private _listBySubscriptionNext;
85
+ /**
86
+ * ListByResourceGroupNext
87
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
88
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
89
+ * @param options The options parameters.
90
+ */
91
+ private _listByResourceGroupNext;
92
+ }
93
+ //# sourceMappingURL=azureBareMetalStorageInstances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBareMetalStorageInstances.d.ts","sourceRoot":"","sources":["../../../src/operations/azureBareMetalStorageInstances.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAIlF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,6BAA6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BAAiB,EAAE,MAAM,EACzB,iCAAiC,EAAE,MAAM,EACzC,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -0,0 +1,375 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AzureBareMetalStorageInstancesImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing AzureBareMetalStorageInstances operations. */
18
+ class AzureBareMetalStorageInstancesImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class AzureBareMetalStorageInstances class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
29
+ * various properties of each Azure Bare Metal Instance.
30
+ * @param options The options parameters.
31
+ */
32
+ listBySubscription(options) {
33
+ const iter = this.listBySubscriptionPagingAll(options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings?.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.listBySubscriptionPagingPage(options, settings);
46
+ }
47
+ };
48
+ }
49
+ async *listBySubscriptionPagingPage(options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listBySubscription(options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listBySubscriptionNext(continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield page;
65
+ }
66
+ }
67
+ async *listBySubscriptionPagingAll(options) {
68
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
69
+ yield* page;
70
+ }
71
+ }
72
+ /**
73
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
74
+ * operations returns various properties of each Azure Bare Metal Instance.
75
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
76
+ * @param options The options parameters.
77
+ */
78
+ listByResourceGroup(resourceGroupName, options) {
79
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: (settings) => {
88
+ if (settings?.maxPageSize) {
89
+ throw new Error("maxPageSize is not supported by this operation.");
90
+ }
91
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
92
+ }
93
+ };
94
+ }
95
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByResourceGroup(resourceGroupName, options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
112
+ }
113
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
114
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
115
+ yield* page;
116
+ }
117
+ }
118
+ /**
119
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
120
+ * various properties of each Azure Bare Metal Instance.
121
+ * @param options The options parameters.
122
+ */
123
+ _listBySubscription(options) {
124
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
125
+ }
126
+ /**
127
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
128
+ * operations returns various properties of each Azure Bare Metal Instance.
129
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
130
+ * @param options The options parameters.
131
+ */
132
+ _listByResourceGroup(resourceGroupName, options) {
133
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
134
+ }
135
+ /**
136
+ * Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and
137
+ * instance name.
138
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
139
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
140
+ * as the ResourceName.
141
+ * @param options The options parameters.
142
+ */
143
+ get(resourceGroupName, azureBareMetalStorageInstanceName, options) {
144
+ return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalStorageInstanceName, options }, getOperationSpec);
145
+ }
146
+ /**
147
+ * Create an azure bare metal storage resource.
148
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
149
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
150
+ * as the ResourceName.
151
+ * @param requestBodyParameters request body for put call
152
+ * @param options The options parameters.
153
+ */
154
+ create(resourceGroupName, azureBareMetalStorageInstanceName, requestBodyParameters, options) {
155
+ return this.client.sendOperationRequest({
156
+ resourceGroupName,
157
+ azureBareMetalStorageInstanceName,
158
+ requestBodyParameters,
159
+ options
160
+ }, createOperationSpec);
161
+ }
162
+ /**
163
+ * Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,
164
+ * resource group, and instance name.
165
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
166
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
167
+ * as the ResourceName.
168
+ * @param tagsParameter Request body that only contains the new Tags field
169
+ * @param options The options parameters.
170
+ */
171
+ update(resourceGroupName, azureBareMetalStorageInstanceName, tagsParameter, options) {
172
+ return this.client.sendOperationRequest({
173
+ resourceGroupName,
174
+ azureBareMetalStorageInstanceName,
175
+ tagsParameter,
176
+ options
177
+ }, updateOperationSpec);
178
+ }
179
+ /**
180
+ * Delete an AzureBareMetalStorageInstance.
181
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
182
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
183
+ * as the ResourceName.
184
+ * @param options The options parameters.
185
+ */
186
+ delete(resourceGroupName, azureBareMetalStorageInstanceName, options) {
187
+ return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalStorageInstanceName, options }, deleteOperationSpec);
188
+ }
189
+ /**
190
+ * ListBySubscriptionNext
191
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
192
+ * @param options The options parameters.
193
+ */
194
+ _listBySubscriptionNext(nextLink, options) {
195
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
196
+ }
197
+ /**
198
+ * ListByResourceGroupNext
199
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
200
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
201
+ * @param options The options parameters.
202
+ */
203
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
204
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
205
+ }
206
+ }
207
+ exports.AzureBareMetalStorageInstancesImpl = AzureBareMetalStorageInstancesImpl;
208
+ // Operation Specifications
209
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
210
+ const listBySubscriptionOperationSpec = {
211
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
212
+ httpMethod: "GET",
213
+ responses: {
214
+ 200: {
215
+ bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
216
+ },
217
+ default: {
218
+ bodyMapper: Mappers.ErrorResponse
219
+ }
220
+ },
221
+ queryParameters: [Parameters.apiVersion],
222
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
223
+ headerParameters: [Parameters.accept],
224
+ serializer
225
+ };
226
+ const listByResourceGroupOperationSpec = {
227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
228
+ httpMethod: "GET",
229
+ responses: {
230
+ 200: {
231
+ bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
232
+ },
233
+ default: {
234
+ bodyMapper: Mappers.ErrorResponse
235
+ }
236
+ },
237
+ queryParameters: [Parameters.apiVersion],
238
+ urlParameters: [
239
+ Parameters.$host,
240
+ Parameters.subscriptionId,
241
+ Parameters.resourceGroupName
242
+ ],
243
+ headerParameters: [Parameters.accept],
244
+ serializer
245
+ };
246
+ const getOperationSpec = {
247
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
248
+ httpMethod: "GET",
249
+ responses: {
250
+ 200: {
251
+ bodyMapper: Mappers.AzureBareMetalStorageInstance
252
+ },
253
+ default: {
254
+ bodyMapper: Mappers.ErrorResponse
255
+ }
256
+ },
257
+ queryParameters: [Parameters.apiVersion],
258
+ urlParameters: [
259
+ Parameters.$host,
260
+ Parameters.subscriptionId,
261
+ Parameters.resourceGroupName,
262
+ Parameters.azureBareMetalStorageInstanceName
263
+ ],
264
+ headerParameters: [Parameters.accept],
265
+ serializer
266
+ };
267
+ const createOperationSpec = {
268
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
269
+ httpMethod: "PUT",
270
+ responses: {
271
+ 200: {
272
+ bodyMapper: Mappers.AzureBareMetalStorageInstance
273
+ },
274
+ 201: {
275
+ bodyMapper: Mappers.AzureBareMetalStorageInstance
276
+ },
277
+ default: {
278
+ bodyMapper: Mappers.ErrorResponse
279
+ }
280
+ },
281
+ requestBody: Parameters.requestBodyParameters,
282
+ queryParameters: [Parameters.apiVersion],
283
+ urlParameters: [
284
+ Parameters.$host,
285
+ Parameters.subscriptionId,
286
+ Parameters.resourceGroupName,
287
+ Parameters.azureBareMetalStorageInstanceName
288
+ ],
289
+ headerParameters: [Parameters.accept, Parameters.contentType],
290
+ mediaType: "json",
291
+ serializer
292
+ };
293
+ const updateOperationSpec = {
294
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
295
+ httpMethod: "PATCH",
296
+ responses: {
297
+ 200: {
298
+ bodyMapper: Mappers.AzureBareMetalStorageInstance
299
+ },
300
+ default: {
301
+ bodyMapper: Mappers.ErrorResponse
302
+ }
303
+ },
304
+ requestBody: Parameters.tagsParameter,
305
+ queryParameters: [Parameters.apiVersion],
306
+ urlParameters: [
307
+ Parameters.$host,
308
+ Parameters.subscriptionId,
309
+ Parameters.resourceGroupName,
310
+ Parameters.azureBareMetalStorageInstanceName
311
+ ],
312
+ headerParameters: [Parameters.accept, Parameters.contentType],
313
+ mediaType: "json",
314
+ serializer
315
+ };
316
+ const deleteOperationSpec = {
317
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
318
+ httpMethod: "DELETE",
319
+ responses: {
320
+ 200: {},
321
+ 204: {},
322
+ default: {
323
+ bodyMapper: Mappers.ErrorResponse
324
+ }
325
+ },
326
+ queryParameters: [Parameters.apiVersion],
327
+ urlParameters: [
328
+ Parameters.$host,
329
+ Parameters.subscriptionId,
330
+ Parameters.resourceGroupName,
331
+ Parameters.azureBareMetalStorageInstanceName
332
+ ],
333
+ headerParameters: [Parameters.accept],
334
+ serializer
335
+ };
336
+ const listBySubscriptionNextOperationSpec = {
337
+ path: "{nextLink}",
338
+ httpMethod: "GET",
339
+ responses: {
340
+ 200: {
341
+ bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
342
+ },
343
+ default: {
344
+ bodyMapper: Mappers.ErrorResponse
345
+ }
346
+ },
347
+ urlParameters: [
348
+ Parameters.$host,
349
+ Parameters.subscriptionId,
350
+ Parameters.nextLink
351
+ ],
352
+ headerParameters: [Parameters.accept],
353
+ serializer
354
+ };
355
+ const listByResourceGroupNextOperationSpec = {
356
+ path: "{nextLink}",
357
+ httpMethod: "GET",
358
+ responses: {
359
+ 200: {
360
+ bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
361
+ },
362
+ default: {
363
+ bodyMapper: Mappers.ErrorResponse
364
+ }
365
+ },
366
+ urlParameters: [
367
+ Parameters.$host,
368
+ Parameters.subscriptionId,
369
+ Parameters.resourceGroupName,
370
+ Parameters.nextLink
371
+ ],
372
+ headerParameters: [Parameters.accept],
373
+ serializer
374
+ };
375
+ //# sourceMappingURL=azureBareMetalStorageInstances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBareMetalStorageInstances.js","sourceRoot":"","sources":["../../../src/operations/azureBareMetalStorageInstances.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4C;AAC5C,kEAAkE;AAClE,MAAa,kCAAkC;IAE5B,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MA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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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureBareMetalStorageInstances } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BareMetalInfrastructureClient } from \"../bareMetalInfrastructureClient.js\";\nimport {\n AzureBareMetalStorageInstance,\n AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams,\n AzureBareMetalStorageInstancesListBySubscriptionOptionalParams,\n AzureBareMetalStorageInstancesListBySubscriptionResponse,\n AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams,\n AzureBareMetalStorageInstancesListByResourceGroupOptionalParams,\n AzureBareMetalStorageInstancesListByResourceGroupResponse,\n AzureBareMetalStorageInstancesGetOptionalParams,\n AzureBareMetalStorageInstancesGetResponse,\n AzureBareMetalStorageInstancesCreateOptionalParams,\n AzureBareMetalStorageInstancesCreateResponse,\n Tags,\n AzureBareMetalStorageInstancesUpdateOptionalParams,\n AzureBareMetalStorageInstancesUpdateResponse,\n AzureBareMetalStorageInstancesDeleteOptionalParams,\n AzureBareMetalStorageInstancesListBySubscriptionNextResponse,\n AzureBareMetalStorageInstancesListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureBareMetalStorageInstances operations. */\nexport class AzureBareMetalStorageInstancesImpl\n implements AzureBareMetalStorageInstances {\n private readonly client: BareMetalInfrastructureClient;\n\n /**\n * Initialize a new instance of the class AzureBareMetalStorageInstances class.\n * @param client Reference to the service client\n */\n constructor(client: BareMetalInfrastructureClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalStorageInstance> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalStorageInstance[]> {\n let result: AzureBareMetalStorageInstancesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<AzureBareMetalStorageInstance> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalStorageInstance> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalStorageInstance[]> {\n let result: AzureBareMetalStorageInstancesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AzureBareMetalStorageInstance> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams\n ): Promise<AzureBareMetalStorageInstancesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams\n ): Promise<AzureBareMetalStorageInstancesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and\n * instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n options?: AzureBareMetalStorageInstancesGetOptionalParams\n ): Promise<AzureBareMetalStorageInstancesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalStorageInstanceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create an azure bare metal storage resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param requestBodyParameters request body for put call\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n requestBodyParameters: AzureBareMetalStorageInstance,\n options?: AzureBareMetalStorageInstancesCreateOptionalParams\n ): Promise<AzureBareMetalStorageInstancesCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n azureBareMetalStorageInstanceName,\n requestBodyParameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,\n * resource group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param tagsParameter Request body that only contains the new Tags field\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n tagsParameter: Tags,\n options?: AzureBareMetalStorageInstancesUpdateOptionalParams\n ): Promise<AzureBareMetalStorageInstancesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n azureBareMetalStorageInstanceName,\n tagsParameter,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Delete an AzureBareMetalStorageInstance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n options?: AzureBareMetalStorageInstancesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalStorageInstanceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams\n ): Promise<AzureBareMetalStorageInstancesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams\n ): Promise<AzureBareMetalStorageInstancesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalStorageInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstance\n },\n 201: {\n bodyMapper: Mappers.AzureBareMetalStorageInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.requestBodyParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalStorageInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.tagsParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalStorageInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalStorageInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./azureBareMetalInstances.js";
2
+ export * from "./operations.js";
3
+ export * from "./azureBareMetalStorageInstances.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./azureBareMetalInstances.js"), exports);
12
+ tslib_1.__exportStar(require("./operations.js"), exports);
13
+ tslib_1.__exportStar(require("./azureBareMetalStorageInstances.js"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uEAA6C;AAC7C,0DAAgC;AAChC,8EAAoD","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\nexport * from \"./azureBareMetalInstances.js\";\nexport * from \"./operations.js\";\nexport * from \"./azureBareMetalStorageInstances.js\";\n"]}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient.js";
4
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BareMetalInfrastructureClient);
13
+ /**
14
+ * Gets a list of AzureBareMetal management operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets a list of AzureBareMetal management operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}