@azure/arm-databox 5.0.1-alpha.20241227.1 → 5.0.1-alpha.20241231.1

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 (363) hide show
  1. package/{dist-esm/src → dist/browser}/dataBoxManagementClient.d.ts +2 -2
  2. package/dist/browser/dataBoxManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/dataBoxManagementClient.js +17 -20
  4. package/dist/browser/dataBoxManagementClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/lroImpl.js.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/dist/browser/operations/index.d.ts +4 -0
  15. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  16. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  17. package/dist/browser/operations/index.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/jobs.d.ts +3 -3
  19. package/dist/browser/operations/jobs.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/jobs.js +113 -125
  21. package/dist/browser/operations/jobs.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  23. package/dist/browser/operations/operations.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  25. package/dist/browser/operations/operations.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/service.d.ts +3 -3
  27. package/dist/browser/operations/service.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/service.js +3 -3
  29. package/dist/browser/operations/service.js.map +1 -0
  30. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  32. package/dist/browser/operationsInterfaces/index.js +11 -0
  33. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/jobs.d.ts +1 -1
  35. package/dist/browser/operationsInterfaces/jobs.d.ts.map +1 -0
  36. package/dist/browser/operationsInterfaces/jobs.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  39. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/service.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/service.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/service.js.map +1 -0
  43. package/dist/browser/package.json +3 -0
  44. package/dist/browser/pagingHelper.js.map +1 -0
  45. package/dist/commonjs/dataBoxManagementClient.d.ts +31 -0
  46. package/dist/commonjs/dataBoxManagementClient.d.ts.map +1 -0
  47. package/dist/commonjs/dataBoxManagementClient.js +140 -0
  48. package/dist/commonjs/dataBoxManagementClient.js.map +1 -0
  49. package/dist/commonjs/index.d.ts +5 -0
  50. package/dist/commonjs/index.d.ts.map +1 -0
  51. package/dist/commonjs/index.js +19 -0
  52. package/dist/commonjs/index.js.map +1 -0
  53. package/dist/commonjs/lroImpl.d.ts +11 -0
  54. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  55. package/dist/commonjs/lroImpl.js +24 -0
  56. package/dist/commonjs/lroImpl.js.map +1 -0
  57. package/{types/arm-databox.d.ts → dist/commonjs/models/index.d.ts} +2491 -2916
  58. package/dist/commonjs/models/index.d.ts.map +1 -0
  59. package/dist/commonjs/models/index.js +239 -0
  60. package/dist/commonjs/models/index.js.map +1 -0
  61. package/dist/commonjs/models/mappers.d.ts +174 -0
  62. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  63. package/dist/commonjs/models/mappers.js +4484 -0
  64. package/dist/commonjs/models/mappers.js.map +1 -0
  65. package/dist/commonjs/models/parameters.d.ts +24 -0
  66. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  67. package/dist/commonjs/models/parameters.js +179 -0
  68. package/dist/commonjs/models/parameters.js.map +1 -0
  69. package/dist/commonjs/operations/index.d.ts +4 -0
  70. package/dist/commonjs/operations/index.d.ts.map +1 -0
  71. package/dist/commonjs/operations/index.js +14 -0
  72. package/dist/commonjs/operations/index.js.map +1 -0
  73. package/dist/commonjs/operations/jobs.d.ts +161 -0
  74. package/dist/commonjs/operations/jobs.d.ts.map +1 -0
  75. package/dist/commonjs/operations/jobs.js +728 -0
  76. package/dist/commonjs/operations/jobs.js.map +1 -0
  77. package/dist/commonjs/operations/operations.d.ts +32 -0
  78. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  79. package/dist/commonjs/operations/operations.js +137 -0
  80. package/dist/commonjs/operations/operations.js.map +1 -0
  81. package/dist/commonjs/operations/service.d.ts +83 -0
  82. package/dist/commonjs/operations/service.d.ts.map +1 -0
  83. package/dist/commonjs/operations/service.js +324 -0
  84. package/dist/commonjs/operations/service.js.map +1 -0
  85. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  86. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  88. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/jobs.d.ts +115 -0
  90. package/dist/commonjs/operationsInterfaces/jobs.d.ts.map +1 -0
  91. package/dist/commonjs/operationsInterfaces/jobs.js +10 -0
  92. package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -0
  93. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  94. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  95. package/{dist-esm/src/operations/index.js → dist/commonjs/operationsInterfaces/operations.js} +3 -4
  96. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  97. package/dist/commonjs/operationsInterfaces/service.d.ts +54 -0
  98. package/dist/commonjs/operationsInterfaces/service.d.ts.map +1 -0
  99. package/dist/commonjs/operationsInterfaces/service.js +10 -0
  100. package/dist/commonjs/operationsInterfaces/service.js.map +1 -0
  101. package/dist/commonjs/package.json +3 -0
  102. package/dist/commonjs/pagingHelper.d.ts +13 -0
  103. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  104. package/dist/commonjs/pagingHelper.js +36 -0
  105. package/dist/commonjs/pagingHelper.js.map +1 -0
  106. package/dist/esm/dataBoxManagementClient.d.ts +31 -0
  107. package/dist/esm/dataBoxManagementClient.d.ts.map +1 -0
  108. package/dist/esm/dataBoxManagementClient.js +135 -0
  109. package/dist/esm/dataBoxManagementClient.js.map +1 -0
  110. package/dist/esm/index.d.ts +5 -0
  111. package/dist/esm/index.d.ts.map +1 -0
  112. package/{src/index.ts → dist/esm/index.js} +5 -5
  113. package/dist/esm/index.js.map +1 -0
  114. package/dist/esm/lroImpl.d.ts +11 -0
  115. package/dist/esm/lroImpl.d.ts.map +1 -0
  116. package/dist/esm/lroImpl.js +21 -0
  117. package/dist/esm/lroImpl.js.map +1 -0
  118. package/dist/esm/models/index.d.ts +2491 -0
  119. package/dist/esm/models/index.d.ts.map +1 -0
  120. package/dist/esm/models/index.js +236 -0
  121. package/dist/esm/models/index.js.map +1 -0
  122. package/dist/esm/models/mappers.d.ts +174 -0
  123. package/dist/esm/models/mappers.d.ts.map +1 -0
  124. package/dist/{index.js → esm/models/mappers.js} +129 -2060
  125. package/dist/esm/models/mappers.js.map +1 -0
  126. package/dist/esm/models/parameters.d.ts +24 -0
  127. package/dist/esm/models/parameters.d.ts.map +1 -0
  128. package/dist/esm/models/parameters.js +176 -0
  129. package/dist/esm/models/parameters.js.map +1 -0
  130. package/dist/esm/operations/index.d.ts +4 -0
  131. package/dist/esm/operations/index.d.ts.map +1 -0
  132. package/dist/esm/operations/index.js +11 -0
  133. package/dist/esm/operations/index.js.map +1 -0
  134. package/dist/esm/operations/jobs.d.ts +161 -0
  135. package/dist/esm/operations/jobs.d.ts.map +1 -0
  136. package/dist/esm/operations/jobs.js +724 -0
  137. package/dist/esm/operations/jobs.js.map +1 -0
  138. package/dist/esm/operations/operations.d.ts +32 -0
  139. package/dist/esm/operations/operations.d.ts.map +1 -0
  140. package/dist/esm/operations/operations.js +133 -0
  141. package/dist/esm/operations/operations.js.map +1 -0
  142. package/dist/esm/operations/service.d.ts +83 -0
  143. package/dist/esm/operations/service.d.ts.map +1 -0
  144. package/dist/esm/operations/service.js +320 -0
  145. package/dist/esm/operations/service.js.map +1 -0
  146. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  147. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  148. package/dist/esm/operationsInterfaces/index.js +11 -0
  149. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  150. package/dist/esm/operationsInterfaces/jobs.d.ts +115 -0
  151. package/dist/esm/operationsInterfaces/jobs.d.ts.map +1 -0
  152. package/{src/operations/index.ts → dist/esm/operationsInterfaces/jobs.js} +2 -4
  153. package/dist/esm/operationsInterfaces/jobs.js.map +1 -0
  154. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  155. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  156. package/dist/esm/operationsInterfaces/operations.js +9 -0
  157. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  158. package/dist/esm/operationsInterfaces/service.d.ts +54 -0
  159. package/dist/esm/operationsInterfaces/service.d.ts.map +1 -0
  160. package/dist/esm/operationsInterfaces/service.js +9 -0
  161. package/dist/esm/operationsInterfaces/service.js.map +1 -0
  162. package/dist/esm/package.json +3 -0
  163. package/dist/esm/pagingHelper.d.ts +13 -0
  164. package/dist/esm/pagingHelper.d.ts.map +1 -0
  165. package/dist/esm/pagingHelper.js +32 -0
  166. package/dist/esm/pagingHelper.js.map +1 -0
  167. package/dist/react-native/dataBoxManagementClient.d.ts +31 -0
  168. package/dist/react-native/dataBoxManagementClient.d.ts.map +1 -0
  169. package/dist/react-native/dataBoxManagementClient.js +135 -0
  170. package/dist/react-native/dataBoxManagementClient.js.map +1 -0
  171. package/dist/react-native/index.d.ts +5 -0
  172. package/dist/react-native/index.d.ts.map +1 -0
  173. package/dist/react-native/index.js +13 -0
  174. package/dist/react-native/index.js.map +1 -0
  175. package/dist/react-native/lroImpl.d.ts +11 -0
  176. package/dist/react-native/lroImpl.d.ts.map +1 -0
  177. package/dist/react-native/lroImpl.js +21 -0
  178. package/dist/react-native/lroImpl.js.map +1 -0
  179. package/dist/react-native/models/index.d.ts +2491 -0
  180. package/dist/react-native/models/index.d.ts.map +1 -0
  181. package/dist/react-native/models/index.js +236 -0
  182. package/dist/react-native/models/index.js.map +1 -0
  183. package/dist/react-native/models/mappers.d.ts +174 -0
  184. package/dist/react-native/models/mappers.d.ts.map +1 -0
  185. package/dist/react-native/models/mappers.js +4479 -0
  186. package/dist/react-native/models/mappers.js.map +1 -0
  187. package/dist/react-native/models/parameters.d.ts +24 -0
  188. package/dist/react-native/models/parameters.d.ts.map +1 -0
  189. package/dist/react-native/models/parameters.js +176 -0
  190. package/dist/react-native/models/parameters.js.map +1 -0
  191. package/dist/react-native/operations/index.d.ts +4 -0
  192. package/dist/react-native/operations/index.d.ts.map +1 -0
  193. package/dist/react-native/operations/index.js +11 -0
  194. package/dist/react-native/operations/index.js.map +1 -0
  195. package/dist/react-native/operations/jobs.d.ts +161 -0
  196. package/dist/react-native/operations/jobs.d.ts.map +1 -0
  197. package/dist/react-native/operations/jobs.js +724 -0
  198. package/dist/react-native/operations/jobs.js.map +1 -0
  199. package/dist/react-native/operations/operations.d.ts +32 -0
  200. package/dist/react-native/operations/operations.d.ts.map +1 -0
  201. package/dist/react-native/operations/operations.js +133 -0
  202. package/dist/react-native/operations/operations.js.map +1 -0
  203. package/dist/react-native/operations/service.d.ts +83 -0
  204. package/dist/react-native/operations/service.d.ts.map +1 -0
  205. package/dist/react-native/operations/service.js +320 -0
  206. package/dist/react-native/operations/service.js.map +1 -0
  207. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  208. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  209. package/dist/react-native/operationsInterfaces/index.js +11 -0
  210. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  211. package/dist/react-native/operationsInterfaces/jobs.d.ts +115 -0
  212. package/dist/react-native/operationsInterfaces/jobs.d.ts.map +1 -0
  213. package/dist/react-native/operationsInterfaces/jobs.js +9 -0
  214. package/dist/react-native/operationsInterfaces/jobs.js.map +1 -0
  215. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  216. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  217. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  218. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  219. package/dist/react-native/operationsInterfaces/service.d.ts +54 -0
  220. package/dist/react-native/operationsInterfaces/service.d.ts.map +1 -0
  221. package/dist/react-native/operationsInterfaces/service.js +9 -0
  222. package/dist/react-native/operationsInterfaces/service.js.map +1 -0
  223. package/dist/react-native/package.json +3 -0
  224. package/dist/react-native/pagingHelper.d.ts +13 -0
  225. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  226. package/dist/react-native/pagingHelper.js +32 -0
  227. package/dist/react-native/pagingHelper.js.map +1 -0
  228. package/package.json +59 -29
  229. package/dist/index.js.map +0 -1
  230. package/dist/index.min.js +0 -1
  231. package/dist/index.min.js.map +0 -1
  232. package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.d.ts +0 -2
  233. package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.d.ts.map +0 -1
  234. package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js +0 -43
  235. package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js.map +0 -1
  236. package/dist-esm/samples-dev/jobsCancelSample.d.ts +0 -2
  237. package/dist-esm/samples-dev/jobsCancelSample.d.ts.map +0 -1
  238. package/dist-esm/samples-dev/jobsCancelSample.js +0 -39
  239. package/dist-esm/samples-dev/jobsCancelSample.js.map +0 -1
  240. package/dist-esm/samples-dev/jobsCreateSample.d.ts +0 -2
  241. package/dist-esm/samples-dev/jobsCreateSample.d.ts.map +0 -1
  242. package/dist-esm/samples-dev/jobsCreateSample.js +0 -289
  243. package/dist-esm/samples-dev/jobsCreateSample.js.map +0 -1
  244. package/dist-esm/samples-dev/jobsDeleteSample.d.ts +0 -2
  245. package/dist-esm/samples-dev/jobsDeleteSample.d.ts.map +0 -1
  246. package/dist-esm/samples-dev/jobsDeleteSample.js +0 -38
  247. package/dist-esm/samples-dev/jobsDeleteSample.js.map +0 -1
  248. package/dist-esm/samples-dev/jobsGetSample.d.ts +0 -2
  249. package/dist-esm/samples-dev/jobsGetSample.d.ts.map +0 -1
  250. package/dist-esm/samples-dev/jobsGetSample.js +0 -120
  251. package/dist-esm/samples-dev/jobsGetSample.js.map +0 -1
  252. package/dist-esm/samples-dev/jobsListByResourceGroupSample.d.ts +0 -2
  253. package/dist-esm/samples-dev/jobsListByResourceGroupSample.d.ts.map +0 -1
  254. package/dist-esm/samples-dev/jobsListByResourceGroupSample.js +0 -53
  255. package/dist-esm/samples-dev/jobsListByResourceGroupSample.js.map +0 -1
  256. package/dist-esm/samples-dev/jobsListCredentialsSample.d.ts +0 -2
  257. package/dist-esm/samples-dev/jobsListCredentialsSample.d.ts.map +0 -1
  258. package/dist-esm/samples-dev/jobsListCredentialsSample.js +0 -54
  259. package/dist-esm/samples-dev/jobsListCredentialsSample.js.map +0 -1
  260. package/dist-esm/samples-dev/jobsListSample.d.ts +0 -2
  261. package/dist-esm/samples-dev/jobsListSample.d.ts.map +0 -1
  262. package/dist-esm/samples-dev/jobsListSample.js +0 -52
  263. package/dist-esm/samples-dev/jobsListSample.js.map +0 -1
  264. package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.d.ts +0 -2
  265. package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.d.ts.map +0 -1
  266. package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js +0 -44
  267. package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js.map +0 -1
  268. package/dist-esm/samples-dev/jobsUpdateSample.d.ts +0 -2
  269. package/dist-esm/samples-dev/jobsUpdateSample.d.ts.map +0 -1
  270. package/dist-esm/samples-dev/jobsUpdateSample.js +0 -124
  271. package/dist-esm/samples-dev/jobsUpdateSample.js.map +0 -1
  272. package/dist-esm/samples-dev/mitigateSample.d.ts +0 -2
  273. package/dist-esm/samples-dev/mitigateSample.d.ts.map +0 -1
  274. package/dist-esm/samples-dev/mitigateSample.js +0 -44
  275. package/dist-esm/samples-dev/mitigateSample.js.map +0 -1
  276. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  277. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  278. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  279. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  280. package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.d.ts +0 -2
  281. package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.d.ts.map +0 -1
  282. package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js +0 -59
  283. package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js.map +0 -1
  284. package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.d.ts +0 -2
  285. package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.d.ts.map +0 -1
  286. package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js +0 -44
  287. package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js.map +0 -1
  288. package/dist-esm/samples-dev/serviceRegionConfigurationSample.d.ts +0 -2
  289. package/dist-esm/samples-dev/serviceRegionConfigurationSample.d.ts.map +0 -1
  290. package/dist-esm/samples-dev/serviceRegionConfigurationSample.js +0 -43
  291. package/dist-esm/samples-dev/serviceRegionConfigurationSample.js.map +0 -1
  292. package/dist-esm/samples-dev/serviceValidateAddressSample.d.ts +0 -2
  293. package/dist-esm/samples-dev/serviceValidateAddressSample.d.ts.map +0 -1
  294. package/dist-esm/samples-dev/serviceValidateAddressSample.js +0 -51
  295. package/dist-esm/samples-dev/serviceValidateAddressSample.js.map +0 -1
  296. package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.d.ts +0 -2
  297. package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.d.ts.map +0 -1
  298. package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js +0 -87
  299. package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js.map +0 -1
  300. package/dist-esm/samples-dev/serviceValidateInputsSample.d.ts +0 -2
  301. package/dist-esm/samples-dev/serviceValidateInputsSample.d.ts.map +0 -1
  302. package/dist-esm/samples-dev/serviceValidateInputsSample.js +0 -86
  303. package/dist-esm/samples-dev/serviceValidateInputsSample.js.map +0 -1
  304. package/dist-esm/src/dataBoxManagementClient.d.ts.map +0 -1
  305. package/dist-esm/src/dataBoxManagementClient.js.map +0 -1
  306. package/dist-esm/src/index.d.ts +0 -5
  307. package/dist-esm/src/index.js.map +0 -1
  308. package/dist-esm/src/lroImpl.js.map +0 -1
  309. package/dist-esm/src/models/index.js.map +0 -1
  310. package/dist-esm/src/models/mappers.js.map +0 -1
  311. package/dist-esm/src/models/parameters.js.map +0 -1
  312. package/dist-esm/src/operations/index.d.ts +0 -4
  313. package/dist-esm/src/operations/index.js.map +0 -1
  314. package/dist-esm/src/operations/jobs.d.ts.map +0 -1
  315. package/dist-esm/src/operations/jobs.js.map +0 -1
  316. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  317. package/dist-esm/src/operations/operations.js.map +0 -1
  318. package/dist-esm/src/operations/service.d.ts.map +0 -1
  319. package/dist-esm/src/operations/service.js.map +0 -1
  320. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  321. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  322. package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +0 -1
  323. package/dist-esm/src/operationsInterfaces/jobs.js.map +0 -1
  324. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  325. package/dist-esm/src/operationsInterfaces/service.d.ts.map +0 -1
  326. package/dist-esm/src/operationsInterfaces/service.js.map +0 -1
  327. package/dist-esm/src/pagingHelper.js.map +0 -1
  328. package/dist-esm/test/databox_operations_test.spec.d.ts +0 -4
  329. package/dist-esm/test/databox_operations_test.spec.d.ts.map +0 -1
  330. package/dist-esm/test/databox_operations_test.spec.js +0 -77
  331. package/dist-esm/test/databox_operations_test.spec.js.map +0 -1
  332. package/src/dataBoxManagementClient.ts +0 -195
  333. package/src/lroImpl.ts +0 -42
  334. package/src/models/index.ts +0 -2800
  335. package/src/models/mappers.ts +0 -4799
  336. package/src/models/parameters.ts +0 -214
  337. package/src/operations/jobs.ts +0 -955
  338. package/src/operations/operations.ts +0 -149
  339. package/src/operations/service.ts +0 -443
  340. package/src/operationsInterfaces/index.ts +0 -11
  341. package/src/operationsInterfaces/jobs.ts +0 -205
  342. package/src/operationsInterfaces/operations.ts +0 -22
  343. package/src/operationsInterfaces/service.ts +0 -107
  344. package/src/pagingHelper.ts +0 -39
  345. package/tsconfig.json +0 -33
  346. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  347. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  348. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  349. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  350. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  351. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  352. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  353. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  354. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  355. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  356. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  357. /package/{dist-esm/src → dist/browser}/operationsInterfaces/jobs.js +0 -0
  358. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  359. /package/{dist-esm/src → dist/browser}/operationsInterfaces/service.js +0 -0
  360. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  361. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  362. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  363. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -1,64 +1,3 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
1
  /*
63
2
  * Copyright (c) Microsoft Corporation.
64
3
  * Licensed under the MIT License.
@@ -66,243 +5,7 @@ function setContinuationToken(page, continuationToken) {
66
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
67
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
7
  */
69
- /** Known values of {@link StageName} that the service accepts. */
70
- exports.KnownStageName = void 0;
71
- (function (KnownStageName) {
72
- /** An order has been created. */
73
- KnownStageName["DeviceOrdered"] = "DeviceOrdered";
74
- /** A device has been prepared for the order. */
75
- KnownStageName["DevicePrepared"] = "DevicePrepared";
76
- /** Device has been dispatched to the user of the order. */
77
- KnownStageName["Dispatched"] = "Dispatched";
78
- /** Device has been delivered to the user of the order. */
79
- KnownStageName["Delivered"] = "Delivered";
80
- /** Device has been picked up from user and in transit to Azure datacenter. */
81
- KnownStageName["PickedUp"] = "PickedUp";
82
- /** Device has been received at Azure datacenter from the user. */
83
- KnownStageName["AtAzureDC"] = "AtAzureDC";
84
- /** Data copy from the device at Azure datacenter. */
85
- KnownStageName["DataCopy"] = "DataCopy";
86
- /** Order has completed. */
87
- KnownStageName["Completed"] = "Completed";
88
- /** Order has completed with errors. */
89
- KnownStageName["CompletedWithErrors"] = "CompletedWithErrors";
90
- /** Order has been cancelled. */
91
- KnownStageName["Cancelled"] = "Cancelled";
92
- /** Order has failed due to issue reported by user. */
93
- KnownStageName["FailedIssueReportedAtCustomer"] = "Failed_IssueReportedAtCustomer";
94
- /** Order has failed due to issue detected at Azure datacenter. */
95
- KnownStageName["FailedIssueDetectedAtAzureDC"] = "Failed_IssueDetectedAtAzureDC";
96
- /** Order has been aborted. */
97
- KnownStageName["Aborted"] = "Aborted";
98
- /** Order has completed with warnings. */
99
- KnownStageName["CompletedWithWarnings"] = "CompletedWithWarnings";
100
- /** Device is ready to be handed to customer from Azure DC. */
101
- KnownStageName["ReadyToDispatchFromAzureDC"] = "ReadyToDispatchFromAzureDC";
102
- /** Device can be dropped off at Azure DC. */
103
- KnownStageName["ReadyToReceiveAtAzureDC"] = "ReadyToReceiveAtAzureDC";
104
- /** Job created by the customer. */
105
- KnownStageName["Created"] = "Created";
106
- /** User shipped the device to AzureDC. */
107
- KnownStageName["ShippedToAzureDC"] = "ShippedToAzureDC";
108
- /** Awaiting shipment details of device from customer. */
109
- KnownStageName["AwaitingShipmentDetails"] = "AwaitingShipmentDetails";
110
- /** Preparing the device to ship to customer. */
111
- KnownStageName["PreparingToShipFromAzureDC"] = "PreparingToShipFromAzureDC";
112
- /** Shipped the device to customer. */
113
- KnownStageName["ShippedToCustomer"] = "ShippedToCustomer";
114
- })(exports.KnownStageName || (exports.KnownStageName = {}));
115
- /** Known values of {@link NotificationStageName} that the service accepts. */
116
- exports.KnownNotificationStageName = void 0;
117
- (function (KnownNotificationStageName) {
118
- /** Notification at device prepared stage. */
119
- KnownNotificationStageName["DevicePrepared"] = "DevicePrepared";
120
- /** Notification at device dispatched stage. */
121
- KnownNotificationStageName["Dispatched"] = "Dispatched";
122
- /** Notification at device delivered stage. */
123
- KnownNotificationStageName["Delivered"] = "Delivered";
124
- /** Notification at device picked up from user stage. */
125
- KnownNotificationStageName["PickedUp"] = "PickedUp";
126
- /** Notification at device received at Azure datacenter stage. */
127
- KnownNotificationStageName["AtAzureDC"] = "AtAzureDC";
128
- /** Notification at data copy started stage. */
129
- KnownNotificationStageName["DataCopy"] = "DataCopy";
130
- /** Notification at job created stage. */
131
- KnownNotificationStageName["Created"] = "Created";
132
- /** Notification at shipped devices to customer stage. */
133
- KnownNotificationStageName["ShippedToCustomer"] = "ShippedToCustomer";
134
- })(exports.KnownNotificationStageName || (exports.KnownNotificationStageName = {}));
135
- /** Known values of {@link DataCenterCode} that the service accepts. */
136
- exports.KnownDataCenterCode = void 0;
137
- (function (KnownDataCenterCode) {
138
- /** Invalid */
139
- KnownDataCenterCode["Invalid"] = "Invalid";
140
- /** BY2 */
141
- KnownDataCenterCode["BY2"] = "BY2";
142
- /** BY1 */
143
- KnownDataCenterCode["BY1"] = "BY1";
144
- /** ORK70 */
145
- KnownDataCenterCode["ORK70"] = "ORK70";
146
- /** AM2 */
147
- KnownDataCenterCode["AM2"] = "AM2";
148
- /** AMS20 */
149
- KnownDataCenterCode["AMS20"] = "AMS20";
150
- /** BY21 */
151
- KnownDataCenterCode["BY21"] = "BY21";
152
- /** BY24 */
153
- KnownDataCenterCode["BY24"] = "BY24";
154
- /** MWH01 */
155
- KnownDataCenterCode["MWH01"] = "MWH01";
156
- /** AMS06 */
157
- KnownDataCenterCode["AMS06"] = "AMS06";
158
- /** SSE90 */
159
- KnownDataCenterCode["SSE90"] = "SSE90";
160
- /** SYD03 */
161
- KnownDataCenterCode["SYD03"] = "SYD03";
162
- /** SYD23 */
163
- KnownDataCenterCode["SYD23"] = "SYD23";
164
- /** CBR20 */
165
- KnownDataCenterCode["CBR20"] = "CBR20";
166
- /** YTO20 */
167
- KnownDataCenterCode["YTO20"] = "YTO20";
168
- /** CWL20 */
169
- KnownDataCenterCode["CWL20"] = "CWL20";
170
- /** LON24 */
171
- KnownDataCenterCode["LON24"] = "LON24";
172
- /** BOM01 */
173
- KnownDataCenterCode["BOM01"] = "BOM01";
174
- /** BL20 */
175
- KnownDataCenterCode["BL20"] = "BL20";
176
- /** BL7 */
177
- KnownDataCenterCode["BL7"] = "BL7";
178
- /** SEL20 */
179
- KnownDataCenterCode["SEL20"] = "SEL20";
180
- /** TYO01 */
181
- KnownDataCenterCode["TYO01"] = "TYO01";
182
- /** BN1 */
183
- KnownDataCenterCode["BN1"] = "BN1";
184
- /** SN5 */
185
- KnownDataCenterCode["SN5"] = "SN5";
186
- /** CYS04 */
187
- KnownDataCenterCode["CYS04"] = "CYS04";
188
- /** TYO22 */
189
- KnownDataCenterCode["TYO22"] = "TYO22";
190
- /** YTO21 */
191
- KnownDataCenterCode["YTO21"] = "YTO21";
192
- /** YQB20 */
193
- KnownDataCenterCode["YQB20"] = "YQB20";
194
- /** FRA22 */
195
- KnownDataCenterCode["FRA22"] = "FRA22";
196
- /** MAA01 */
197
- KnownDataCenterCode["MAA01"] = "MAA01";
198
- /** CPQ02 */
199
- KnownDataCenterCode["CPQ02"] = "CPQ02";
200
- /** CPQ20 */
201
- KnownDataCenterCode["CPQ20"] = "CPQ20";
202
- /** SIN20 */
203
- KnownDataCenterCode["SIN20"] = "SIN20";
204
- /** HKG20 */
205
- KnownDataCenterCode["HKG20"] = "HKG20";
206
- /** SG2 */
207
- KnownDataCenterCode["SG2"] = "SG2";
208
- /** MEL23 */
209
- KnownDataCenterCode["MEL23"] = "MEL23";
210
- /** SEL21 */
211
- KnownDataCenterCode["SEL21"] = "SEL21";
212
- /** OSA20 */
213
- KnownDataCenterCode["OSA20"] = "OSA20";
214
- /** SHA03 */
215
- KnownDataCenterCode["SHA03"] = "SHA03";
216
- /** BJB */
217
- KnownDataCenterCode["BJB"] = "BJB";
218
- /** JNB22 */
219
- KnownDataCenterCode["JNB22"] = "JNB22";
220
- /** JNB21 */
221
- KnownDataCenterCode["JNB21"] = "JNB21";
222
- /** MNZ21 */
223
- KnownDataCenterCode["MNZ21"] = "MNZ21";
224
- /** SN8 */
225
- KnownDataCenterCode["SN8"] = "SN8";
226
- /** AUH20 */
227
- KnownDataCenterCode["AUH20"] = "AUH20";
228
- /** ZRH20 */
229
- KnownDataCenterCode["ZRH20"] = "ZRH20";
230
- /** PUS20 */
231
- KnownDataCenterCode["PUS20"] = "PUS20";
232
- /** AdHoc */
233
- KnownDataCenterCode["AdHoc"] = "AdHoc";
234
- /** CH1 */
235
- KnownDataCenterCode["CH1"] = "CH1";
236
- /** DSM05 */
237
- KnownDataCenterCode["DSM05"] = "DSM05";
238
- /** DUB07 */
239
- KnownDataCenterCode["DUB07"] = "DUB07";
240
- /** PNQ01 */
241
- KnownDataCenterCode["PNQ01"] = "PNQ01";
242
- /** SVG20 */
243
- KnownDataCenterCode["SVG20"] = "SVG20";
244
- /** OSA02 */
245
- KnownDataCenterCode["OSA02"] = "OSA02";
246
- /** OSA22 */
247
- KnownDataCenterCode["OSA22"] = "OSA22";
248
- /** PAR22 */
249
- KnownDataCenterCode["PAR22"] = "PAR22";
250
- /** BN7 */
251
- KnownDataCenterCode["BN7"] = "BN7";
252
- /** SN6 */
253
- KnownDataCenterCode["SN6"] = "SN6";
254
- /** BJS20 */
255
- KnownDataCenterCode["BJS20"] = "BJS20";
256
- })(exports.KnownDataCenterCode || (exports.KnownDataCenterCode = {}));
257
- /** Known values of {@link CopyStatus} that the service accepts. */
258
- exports.KnownCopyStatus = void 0;
259
- (function (KnownCopyStatus) {
260
- /** Data copy hasn't started yet. */
261
- KnownCopyStatus["NotStarted"] = "NotStarted";
262
- /** Data copy is in progress. */
263
- KnownCopyStatus["InProgress"] = "InProgress";
264
- /** Data copy completed. */
265
- KnownCopyStatus["Completed"] = "Completed";
266
- /** Data copy completed with errors. */
267
- KnownCopyStatus["CompletedWithErrors"] = "CompletedWithErrors";
268
- /** Data copy failed. No data was copied. */
269
- KnownCopyStatus["Failed"] = "Failed";
270
- /** No copy triggered as device was not returned. */
271
- KnownCopyStatus["NotReturned"] = "NotReturned";
272
- /** The Device has hit hardware issues. */
273
- KnownCopyStatus["HardwareError"] = "HardwareError";
274
- /** Data copy failed. The Device was formatted by user. */
275
- KnownCopyStatus["DeviceFormatted"] = "DeviceFormatted";
276
- /** Data copy failed. Device metadata was modified by user. */
277
- KnownCopyStatus["DeviceMetadataModified"] = "DeviceMetadataModified";
278
- /** Data copy failed. Storage Account was not accessible during copy. */
279
- KnownCopyStatus["StorageAccountNotAccessible"] = "StorageAccountNotAccessible";
280
- /** Data copy failed. The Device data content is not supported. */
281
- KnownCopyStatus["UnsupportedData"] = "UnsupportedData";
282
- /** No copy triggered as device was not received. */
283
- KnownCopyStatus["DriveNotReceived"] = "DriveNotReceived";
284
- /** No copy triggered as device type is not supported. */
285
- KnownCopyStatus["UnsupportedDrive"] = "UnsupportedDrive";
286
- /** Copy failed due to service error. */
287
- KnownCopyStatus["OtherServiceError"] = "OtherServiceError";
288
- /** Copy failed due to user error. */
289
- KnownCopyStatus["OtherUserError"] = "OtherUserError";
290
- /** Copy failed due to disk detection error. */
291
- KnownCopyStatus["DriveNotDetected"] = "DriveNotDetected";
292
- /** Copy failed due to corrupted drive. */
293
- KnownCopyStatus["DriveCorrupted"] = "DriveCorrupted";
294
- /** Copy failed due to modified or removed metadata files. */
295
- KnownCopyStatus["MetadataFilesModifiedOrRemoved"] = "MetadataFilesModifiedOrRemoved";
296
- })(exports.KnownCopyStatus || (exports.KnownCopyStatus = {}));
297
-
298
- /*
299
- * Copyright (c) Microsoft Corporation.
300
- * Licensed under the MIT License.
301
- *
302
- * Code generated by Microsoft (R) AutoRest Code Generator.
303
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
304
- */
305
- const OperationList = {
8
+ export const OperationList = {
306
9
  type: {
307
10
  name: "Composite",
308
11
  className: "OperationList",
@@ -329,7 +32,7 @@ const OperationList = {
329
32
  }
330
33
  }
331
34
  };
332
- const Operation = {
35
+ export const Operation = {
333
36
  type: {
334
37
  name: "Composite",
335
38
  className: "Operation",
@@ -372,7 +75,7 @@ const Operation = {
372
75
  }
373
76
  }
374
77
  };
375
- const OperationDisplay = {
78
+ export const OperationDisplay = {
376
79
  type: {
377
80
  name: "Composite",
378
81
  className: "OperationDisplay",
@@ -404,7 +107,7 @@ const OperationDisplay = {
404
107
  }
405
108
  }
406
109
  };
407
- const ApiError = {
110
+ export const ApiError = {
408
111
  type: {
409
112
  name: "Composite",
410
113
  className: "ApiError",
@@ -419,7 +122,7 @@ const ApiError = {
419
122
  }
420
123
  }
421
124
  };
422
- const ErrorDetail = {
125
+ export const ErrorDetail = {
423
126
  type: {
424
127
  name: "Composite",
425
128
  className: "ErrorDetail",
@@ -459,7 +162,7 @@ const ErrorDetail = {
459
162
  }
460
163
  }
461
164
  };
462
- const Details = {
165
+ export const Details = {
463
166
  type: {
464
167
  name: "Composite",
465
168
  className: "Details",
@@ -481,7 +184,7 @@ const Details = {
481
184
  }
482
185
  }
483
186
  };
484
- const JobResourceList = {
187
+ export const JobResourceList = {
485
188
  type: {
486
189
  name: "Composite",
487
190
  className: "JobResourceList",
@@ -507,7 +210,7 @@ const JobResourceList = {
507
210
  }
508
211
  }
509
212
  };
510
- const CloudError = {
213
+ export const CloudError = {
511
214
  type: {
512
215
  name: "Composite",
513
216
  className: "CloudError",
@@ -559,7 +262,7 @@ const CloudError = {
559
262
  }
560
263
  }
561
264
  };
562
- const AdditionalErrorInfo = {
265
+ export const AdditionalErrorInfo = {
563
266
  type: {
564
267
  name: "Composite",
565
268
  className: "AdditionalErrorInfo",
@@ -580,7 +283,7 @@ const AdditionalErrorInfo = {
580
283
  }
581
284
  }
582
285
  };
583
- const JobDetails = {
286
+ export const JobDetails = {
584
287
  type: {
585
288
  name: "Composite",
586
289
  className: "JobDetails",
@@ -772,7 +475,7 @@ const JobDetails = {
772
475
  }
773
476
  }
774
477
  };
775
- const JobStages = {
478
+ export const JobStages = {
776
479
  type: {
777
480
  name: "Composite",
778
481
  className: "JobStages",
@@ -831,7 +534,7 @@ const JobStages = {
831
534
  }
832
535
  }
833
536
  };
834
- const ContactDetails = {
537
+ export const ContactDetails = {
835
538
  type: {
836
539
  name: "Composite",
837
540
  className: "ContactDetails",
@@ -889,7 +592,7 @@ const ContactDetails = {
889
592
  }
890
593
  }
891
594
  };
892
- const NotificationPreference = {
595
+ export const NotificationPreference = {
893
596
  type: {
894
597
  name: "Composite",
895
598
  className: "NotificationPreference",
@@ -912,7 +615,7 @@ const NotificationPreference = {
912
615
  }
913
616
  }
914
617
  };
915
- const ShippingAddress = {
618
+ export const ShippingAddress = {
916
619
  type: {
917
620
  name: "Composite",
918
621
  className: "ShippingAddress",
@@ -996,7 +699,7 @@ const ShippingAddress = {
996
699
  }
997
700
  }
998
701
  };
999
- const PackageShippingDetails = {
702
+ export const PackageShippingDetails = {
1000
703
  type: {
1001
704
  name: "Composite",
1002
705
  className: "PackageShippingDetails",
@@ -1025,7 +728,7 @@ const PackageShippingDetails = {
1025
728
  }
1026
729
  }
1027
730
  };
1028
- const DataImportDetails = {
731
+ export const DataImportDetails = {
1029
732
  type: {
1030
733
  name: "Composite",
1031
734
  className: "DataImportDetails",
@@ -1047,7 +750,7 @@ const DataImportDetails = {
1047
750
  }
1048
751
  }
1049
752
  };
1050
- const DataAccountDetails = {
753
+ export const DataAccountDetails = {
1051
754
  type: {
1052
755
  name: "Composite",
1053
756
  className: "DataAccountDetails",
@@ -1074,7 +777,7 @@ const DataAccountDetails = {
1074
777
  }
1075
778
  }
1076
779
  };
1077
- const DataExportDetails = {
780
+ export const DataExportDetails = {
1078
781
  type: {
1079
782
  name: "Composite",
1080
783
  className: "DataExportDetails",
@@ -1103,7 +806,7 @@ const DataExportDetails = {
1103
806
  }
1104
807
  }
1105
808
  };
1106
- const TransferConfiguration = {
809
+ export const TransferConfiguration = {
1107
810
  type: {
1108
811
  name: "Composite",
1109
812
  className: "TransferConfiguration",
@@ -1133,7 +836,7 @@ const TransferConfiguration = {
1133
836
  }
1134
837
  }
1135
838
  };
1136
- const TransferConfigurationTransferFilterDetails = {
839
+ export const TransferConfigurationTransferFilterDetails = {
1137
840
  type: {
1138
841
  name: "Composite",
1139
842
  className: "TransferConfigurationTransferFilterDetails",
@@ -1148,7 +851,7 @@ const TransferConfigurationTransferFilterDetails = {
1148
851
  }
1149
852
  }
1150
853
  };
1151
- const TransferFilterDetails = {
854
+ export const TransferFilterDetails = {
1152
855
  type: {
1153
856
  name: "Composite",
1154
857
  className: "TransferFilterDetails",
@@ -1190,7 +893,7 @@ const TransferFilterDetails = {
1190
893
  }
1191
894
  }
1192
895
  };
1193
- const BlobFilterDetails = {
896
+ export const BlobFilterDetails = {
1194
897
  type: {
1195
898
  name: "Composite",
1196
899
  className: "BlobFilterDetails",
@@ -1231,7 +934,7 @@ const BlobFilterDetails = {
1231
934
  }
1232
935
  }
1233
936
  };
1234
- const AzureFileFilterDetails = {
937
+ export const AzureFileFilterDetails = {
1235
938
  type: {
1236
939
  name: "Composite",
1237
940
  className: "AzureFileFilterDetails",
@@ -1272,7 +975,7 @@ const AzureFileFilterDetails = {
1272
975
  }
1273
976
  }
1274
977
  };
1275
- const FilterFileDetails = {
978
+ export const FilterFileDetails = {
1276
979
  type: {
1277
980
  name: "Composite",
1278
981
  className: "FilterFileDetails",
@@ -1295,7 +998,7 @@ const FilterFileDetails = {
1295
998
  }
1296
999
  }
1297
1000
  };
1298
- const TransferConfigurationTransferAllDetails = {
1001
+ export const TransferConfigurationTransferAllDetails = {
1299
1002
  type: {
1300
1003
  name: "Composite",
1301
1004
  className: "TransferConfigurationTransferAllDetails",
@@ -1310,7 +1013,7 @@ const TransferConfigurationTransferAllDetails = {
1310
1013
  }
1311
1014
  }
1312
1015
  };
1313
- const TransferAllDetails = {
1016
+ export const TransferAllDetails = {
1314
1017
  type: {
1315
1018
  name: "Composite",
1316
1019
  className: "TransferAllDetails",
@@ -1338,7 +1041,7 @@ const TransferAllDetails = {
1338
1041
  }
1339
1042
  }
1340
1043
  };
1341
- const Preferences = {
1044
+ export const Preferences = {
1342
1045
  type: {
1343
1046
  name: "Composite",
1344
1047
  className: "Preferences",
@@ -1391,7 +1094,7 @@ const Preferences = {
1391
1094
  }
1392
1095
  }
1393
1096
  };
1394
- const TransportPreferences = {
1097
+ export const TransportPreferences = {
1395
1098
  type: {
1396
1099
  name: "Composite",
1397
1100
  className: "TransportPreferences",
@@ -1414,7 +1117,7 @@ const TransportPreferences = {
1414
1117
  }
1415
1118
  }
1416
1119
  };
1417
- const EncryptionPreferences = {
1120
+ export const EncryptionPreferences = {
1418
1121
  type: {
1419
1122
  name: "Composite",
1420
1123
  className: "EncryptionPreferences",
@@ -1437,7 +1140,7 @@ const EncryptionPreferences = {
1437
1140
  }
1438
1141
  }
1439
1142
  };
1440
- const ReverseShippingDetails = {
1143
+ export const ReverseShippingDetails = {
1441
1144
  type: {
1442
1145
  name: "Composite",
1443
1146
  className: "ReverseShippingDetails",
@@ -1466,7 +1169,7 @@ const ReverseShippingDetails = {
1466
1169
  }
1467
1170
  }
1468
1171
  };
1469
- const ContactInfo = {
1172
+ export const ContactInfo = {
1470
1173
  type: {
1471
1174
  name: "Composite",
1472
1175
  className: "ContactInfo",
@@ -1506,7 +1209,7 @@ const ContactInfo = {
1506
1209
  }
1507
1210
  }
1508
1211
  };
1509
- const CopyLogDetails = {
1212
+ export const CopyLogDetails = {
1510
1213
  type: {
1511
1214
  name: "Composite",
1512
1215
  className: "CopyLogDetails",
@@ -1532,7 +1235,7 @@ const CopyLogDetails = {
1532
1235
  }
1533
1236
  }
1534
1237
  };
1535
- const DeviceErasureDetails = {
1238
+ export const DeviceErasureDetails = {
1536
1239
  type: {
1537
1240
  name: "Composite",
1538
1241
  className: "DeviceErasureDetails",
@@ -1569,7 +1272,7 @@ const DeviceErasureDetails = {
1569
1272
  }
1570
1273
  }
1571
1274
  };
1572
- const KeyEncryptionKey = {
1275
+ export const KeyEncryptionKey = {
1573
1276
  type: {
1574
1277
  name: "Composite",
1575
1278
  className: "KeyEncryptionKey",
@@ -1605,7 +1308,7 @@ const KeyEncryptionKey = {
1605
1308
  }
1606
1309
  }
1607
1310
  };
1608
- const IdentityProperties = {
1311
+ export const IdentityProperties = {
1609
1312
  type: {
1610
1313
  name: "Composite",
1611
1314
  className: "IdentityProperties",
@@ -1626,7 +1329,7 @@ const IdentityProperties = {
1626
1329
  }
1627
1330
  }
1628
1331
  };
1629
- const UserAssignedProperties = {
1332
+ export const UserAssignedProperties = {
1630
1333
  type: {
1631
1334
  name: "Composite",
1632
1335
  className: "UserAssignedProperties",
@@ -1640,7 +1343,7 @@ const UserAssignedProperties = {
1640
1343
  }
1641
1344
  }
1642
1345
  };
1643
- const LastMitigationActionOnJob = {
1346
+ export const LastMitigationActionOnJob = {
1644
1347
  type: {
1645
1348
  name: "Composite",
1646
1349
  className: "LastMitigationActionOnJob",
@@ -1673,7 +1376,7 @@ const LastMitigationActionOnJob = {
1673
1376
  }
1674
1377
  }
1675
1378
  };
1676
- const DatacenterAddressResponse = {
1379
+ export const DatacenterAddressResponse = {
1677
1380
  type: {
1678
1381
  name: "Composite",
1679
1382
  className: "DatacenterAddressResponse",
@@ -1716,7 +1419,7 @@ const DatacenterAddressResponse = {
1716
1419
  }
1717
1420
  }
1718
1421
  };
1719
- const JobDeliveryInfo = {
1422
+ export const JobDeliveryInfo = {
1720
1423
  type: {
1721
1424
  name: "Composite",
1722
1425
  className: "JobDeliveryInfo",
@@ -1730,7 +1433,7 @@ const JobDeliveryInfo = {
1730
1433
  }
1731
1434
  }
1732
1435
  };
1733
- const SystemData = {
1436
+ export const SystemData = {
1734
1437
  type: {
1735
1438
  name: "Composite",
1736
1439
  className: "SystemData",
@@ -1780,7 +1483,7 @@ const SystemData = {
1780
1483
  }
1781
1484
  }
1782
1485
  };
1783
- const Resource = {
1486
+ export const Resource = {
1784
1487
  type: {
1785
1488
  name: "Composite",
1786
1489
  className: "Resource",
@@ -1816,7 +1519,7 @@ const Resource = {
1816
1519
  }
1817
1520
  }
1818
1521
  };
1819
- const Sku = {
1522
+ export const Sku = {
1820
1523
  type: {
1821
1524
  name: "Composite",
1822
1525
  className: "Sku",
@@ -1849,7 +1552,7 @@ const Sku = {
1849
1552
  }
1850
1553
  }
1851
1554
  };
1852
- const ResourceIdentity = {
1555
+ export const ResourceIdentity = {
1853
1556
  type: {
1854
1557
  name: "Composite",
1855
1558
  className: "ResourceIdentity",
@@ -1887,7 +1590,7 @@ const ResourceIdentity = {
1887
1590
  }
1888
1591
  }
1889
1592
  };
1890
- const UserAssignedIdentity = {
1593
+ export const UserAssignedIdentity = {
1891
1594
  type: {
1892
1595
  name: "Composite",
1893
1596
  className: "UserAssignedIdentity",
@@ -1909,7 +1612,7 @@ const UserAssignedIdentity = {
1909
1612
  }
1910
1613
  }
1911
1614
  };
1912
- const MitigateJobRequest = {
1615
+ export const MitigateJobRequest = {
1913
1616
  type: {
1914
1617
  name: "Composite",
1915
1618
  className: "MitigateJobRequest",
@@ -1948,7 +1651,7 @@ const MitigateJobRequest = {
1948
1651
  }
1949
1652
  }
1950
1653
  };
1951
- const MarkDevicesShippedRequest = {
1654
+ export const MarkDevicesShippedRequest = {
1952
1655
  type: {
1953
1656
  name: "Composite",
1954
1657
  className: "MarkDevicesShippedRequest",
@@ -1963,7 +1666,7 @@ const MarkDevicesShippedRequest = {
1963
1666
  }
1964
1667
  }
1965
1668
  };
1966
- const PackageCarrierInfo = {
1669
+ export const PackageCarrierInfo = {
1967
1670
  type: {
1968
1671
  name: "Composite",
1969
1672
  className: "PackageCarrierInfo",
@@ -1983,7 +1686,7 @@ const PackageCarrierInfo = {
1983
1686
  }
1984
1687
  }
1985
1688
  };
1986
- const AvailableSkuRequest = {
1689
+ export const AvailableSkuRequest = {
1987
1690
  type: {
1988
1691
  name: "Composite",
1989
1692
  className: "AvailableSkuRequest",
@@ -2030,7 +1733,7 @@ const AvailableSkuRequest = {
2030
1733
  }
2031
1734
  }
2032
1735
  };
2033
- const AvailableSkusResult = {
1736
+ export const AvailableSkusResult = {
2034
1737
  type: {
2035
1738
  name: "Composite",
2036
1739
  className: "AvailableSkusResult",
@@ -2057,7 +1760,7 @@ const AvailableSkusResult = {
2057
1760
  }
2058
1761
  }
2059
1762
  };
2060
- const SkuInformation = {
1763
+ export const SkuInformation = {
2061
1764
  type: {
2062
1765
  name: "Composite",
2063
1766
  className: "SkuInformation",
@@ -2165,7 +1868,7 @@ const SkuInformation = {
2165
1868
  }
2166
1869
  }
2167
1870
  };
2168
- const DataLocationToServiceLocationMap = {
1871
+ export const DataLocationToServiceLocationMap = {
2169
1872
  type: {
2170
1873
  name: "Composite",
2171
1874
  className: "DataLocationToServiceLocationMap",
@@ -2187,7 +1890,7 @@ const DataLocationToServiceLocationMap = {
2187
1890
  }
2188
1891
  }
2189
1892
  };
2190
- const SkuCapacity = {
1893
+ export const SkuCapacity = {
2191
1894
  type: {
2192
1895
  name: "Composite",
2193
1896
  className: "SkuCapacity",
@@ -2209,7 +1912,7 @@ const SkuCapacity = {
2209
1912
  }
2210
1913
  }
2211
1914
  };
2212
- const SkuCost = {
1915
+ export const SkuCost = {
2213
1916
  type: {
2214
1917
  name: "Composite",
2215
1918
  className: "SkuCost",
@@ -2238,7 +1941,7 @@ const SkuCost = {
2238
1941
  }
2239
1942
  }
2240
1943
  };
2241
- const ValidationInputRequest = {
1944
+ export const ValidationInputRequest = {
2242
1945
  type: {
2243
1946
  name: "Composite",
2244
1947
  className: "ValidationInputRequest",
@@ -2266,7 +1969,7 @@ const ValidationInputRequest = {
2266
1969
  }
2267
1970
  }
2268
1971
  };
2269
- const AddressValidationOutput = {
1972
+ export const AddressValidationOutput = {
2270
1973
  type: {
2271
1974
  name: "Composite",
2272
1975
  className: "AddressValidationOutput",
@@ -2316,7 +2019,7 @@ const AddressValidationOutput = {
2316
2019
  }
2317
2020
  }
2318
2021
  };
2319
- const ValidationInputResponse = {
2022
+ export const ValidationInputResponse = {
2320
2023
  type: {
2321
2024
  name: "Composite",
2322
2025
  className: "ValidationInputResponse",
@@ -2351,7 +2054,7 @@ const ValidationInputResponse = {
2351
2054
  }
2352
2055
  }
2353
2056
  };
2354
- const ValidationRequest = {
2057
+ export const ValidationRequest = {
2355
2058
  type: {
2356
2059
  name: "Composite",
2357
2060
  className: "ValidationRequest",
@@ -2385,7 +2088,7 @@ const ValidationRequest = {
2385
2088
  }
2386
2089
  }
2387
2090
  };
2388
- const ValidationResponse = {
2091
+ export const ValidationResponse = {
2389
2092
  type: {
2390
2093
  name: "Composite",
2391
2094
  className: "ValidationResponse",
@@ -2418,7 +2121,7 @@ const ValidationResponse = {
2418
2121
  }
2419
2122
  }
2420
2123
  };
2421
- const JobResourceUpdateParameter = {
2124
+ export const JobResourceUpdateParameter = {
2422
2125
  type: {
2423
2126
  name: "Composite",
2424
2127
  className: "JobResourceUpdateParameter",
@@ -2447,7 +2150,7 @@ const JobResourceUpdateParameter = {
2447
2150
  }
2448
2151
  }
2449
2152
  };
2450
- const UpdateJobDetails = {
2153
+ export const UpdateJobDetails = {
2451
2154
  type: {
2452
2155
  name: "Composite",
2453
2156
  className: "UpdateJobDetails",
@@ -2497,7 +2200,7 @@ const UpdateJobDetails = {
2497
2200
  }
2498
2201
  }
2499
2202
  };
2500
- const PackageCarrierDetails = {
2203
+ export const PackageCarrierDetails = {
2501
2204
  type: {
2502
2205
  name: "Composite",
2503
2206
  className: "PackageCarrierDetails",
@@ -2523,7 +2226,7 @@ const PackageCarrierDetails = {
2523
2226
  }
2524
2227
  }
2525
2228
  };
2526
- const ShipmentPickUpRequest = {
2229
+ export const ShipmentPickUpRequest = {
2527
2230
  type: {
2528
2231
  name: "Composite",
2529
2232
  className: "ShipmentPickUpRequest",
@@ -2552,7 +2255,7 @@ const ShipmentPickUpRequest = {
2552
2255
  }
2553
2256
  }
2554
2257
  };
2555
- const ShipmentPickUpResponse = {
2258
+ export const ShipmentPickUpResponse = {
2556
2259
  type: {
2557
2260
  name: "Composite",
2558
2261
  className: "ShipmentPickUpResponse",
@@ -2574,7 +2277,7 @@ const ShipmentPickUpResponse = {
2574
2277
  }
2575
2278
  }
2576
2279
  };
2577
- const CancellationReason = {
2280
+ export const CancellationReason = {
2578
2281
  type: {
2579
2282
  name: "Composite",
2580
2283
  className: "CancellationReason",
@@ -2589,7 +2292,7 @@ const CancellationReason = {
2589
2292
  }
2590
2293
  }
2591
2294
  };
2592
- const UnencryptedCredentialsList = {
2295
+ export const UnencryptedCredentialsList = {
2593
2296
  type: {
2594
2297
  name: "Composite",
2595
2298
  className: "UnencryptedCredentialsList",
@@ -2615,7 +2318,7 @@ const UnencryptedCredentialsList = {
2615
2318
  }
2616
2319
  }
2617
2320
  };
2618
- const UnencryptedCredentials = {
2321
+ export const UnencryptedCredentials = {
2619
2322
  type: {
2620
2323
  name: "Composite",
2621
2324
  className: "UnencryptedCredentials",
@@ -2637,7 +2340,7 @@ const UnencryptedCredentials = {
2637
2340
  }
2638
2341
  }
2639
2342
  };
2640
- const JobSecrets = {
2343
+ export const JobSecrets = {
2641
2344
  type: {
2642
2345
  name: "Composite",
2643
2346
  className: "JobSecrets",
@@ -2677,7 +2380,7 @@ const JobSecrets = {
2677
2380
  }
2678
2381
  }
2679
2382
  };
2680
- const DcAccessSecurityCode = {
2383
+ export const DcAccessSecurityCode = {
2681
2384
  type: {
2682
2385
  name: "Composite",
2683
2386
  className: "DcAccessSecurityCode",
@@ -2697,7 +2400,7 @@ const DcAccessSecurityCode = {
2697
2400
  }
2698
2401
  }
2699
2402
  };
2700
- const RegionConfigurationRequest = {
2403
+ export const RegionConfigurationRequest = {
2701
2404
  type: {
2702
2405
  name: "Composite",
2703
2406
  className: "RegionConfigurationRequest",
@@ -2726,7 +2429,7 @@ const RegionConfigurationRequest = {
2726
2429
  }
2727
2430
  }
2728
2431
  };
2729
- const ScheduleAvailabilityRequest = {
2432
+ export const ScheduleAvailabilityRequest = {
2730
2433
  type: {
2731
2434
  name: "Composite",
2732
2435
  className: "ScheduleAvailabilityRequest",
@@ -2765,7 +2468,7 @@ const ScheduleAvailabilityRequest = {
2765
2468
  }
2766
2469
  }
2767
2470
  };
2768
- const TransportAvailabilityRequest = {
2471
+ export const TransportAvailabilityRequest = {
2769
2472
  type: {
2770
2473
  name: "Composite",
2771
2474
  className: "TransportAvailabilityRequest",
@@ -2785,7 +2488,7 @@ const TransportAvailabilityRequest = {
2785
2488
  }
2786
2489
  }
2787
2490
  };
2788
- const DatacenterAddressRequest = {
2491
+ export const DatacenterAddressRequest = {
2789
2492
  type: {
2790
2493
  name: "Composite",
2791
2494
  className: "DatacenterAddressRequest",
@@ -2813,7 +2516,7 @@ const DatacenterAddressRequest = {
2813
2516
  }
2814
2517
  }
2815
2518
  };
2816
- const RegionConfigurationResponse = {
2519
+ export const RegionConfigurationResponse = {
2817
2520
  type: {
2818
2521
  name: "Composite",
2819
2522
  className: "RegionConfigurationResponse",
@@ -2842,7 +2545,7 @@ const RegionConfigurationResponse = {
2842
2545
  }
2843
2546
  }
2844
2547
  };
2845
- const ScheduleAvailabilityResponse = {
2548
+ export const ScheduleAvailabilityResponse = {
2846
2549
  type: {
2847
2550
  name: "Composite",
2848
2551
  className: "ScheduleAvailabilityResponse",
@@ -2862,7 +2565,7 @@ const ScheduleAvailabilityResponse = {
2862
2565
  }
2863
2566
  }
2864
2567
  };
2865
- const TransportAvailabilityResponse = {
2568
+ export const TransportAvailabilityResponse = {
2866
2569
  type: {
2867
2570
  name: "Composite",
2868
2571
  className: "TransportAvailabilityResponse",
@@ -2883,7 +2586,7 @@ const TransportAvailabilityResponse = {
2883
2586
  }
2884
2587
  }
2885
2588
  };
2886
- const TransportAvailabilityDetails = {
2589
+ export const TransportAvailabilityDetails = {
2887
2590
  type: {
2888
2591
  name: "Composite",
2889
2592
  className: "TransportAvailabilityDetails",
@@ -2899,7 +2602,7 @@ const TransportAvailabilityDetails = {
2899
2602
  }
2900
2603
  }
2901
2604
  };
2902
- const AccountCredentialDetails = {
2605
+ export const AccountCredentialDetails = {
2903
2606
  type: {
2904
2607
  name: "Composite",
2905
2608
  className: "AccountCredentialDetails",
@@ -2942,7 +2645,7 @@ const AccountCredentialDetails = {
2942
2645
  }
2943
2646
  }
2944
2647
  };
2945
- const ShareCredentialDetails = {
2648
+ export const ShareCredentialDetails = {
2946
2649
  type: {
2947
2650
  name: "Composite",
2948
2651
  className: "ShareCredentialDetails",
@@ -2999,7 +2702,7 @@ const ShareCredentialDetails = {
2999
2702
  }
3000
2703
  }
3001
2704
  };
3002
- const ApplianceNetworkConfiguration = {
2705
+ export const ApplianceNetworkConfiguration = {
3003
2706
  type: {
3004
2707
  name: "Composite",
3005
2708
  className: "ApplianceNetworkConfiguration",
@@ -3021,7 +2724,7 @@ const ApplianceNetworkConfiguration = {
3021
2724
  }
3022
2725
  }
3023
2726
  };
3024
- const ArmBaseObject = {
2727
+ export const ArmBaseObject = {
3025
2728
  type: {
3026
2729
  name: "Composite",
3027
2730
  className: "ArmBaseObject",
@@ -3050,7 +2753,7 @@ const ArmBaseObject = {
3050
2753
  }
3051
2754
  }
3052
2755
  };
3053
- const GranularCopyLogDetails = {
2756
+ export const GranularCopyLogDetails = {
3054
2757
  type: {
3055
2758
  name: "Composite",
3056
2759
  className: "GranularCopyLogDetails",
@@ -3076,7 +2779,7 @@ const GranularCopyLogDetails = {
3076
2779
  }
3077
2780
  }
3078
2781
  };
3079
- const CopyProgress = {
2782
+ export const CopyProgress = {
3080
2783
  type: {
3081
2784
  name: "Composite",
3082
2785
  className: "CopyProgress",
@@ -3217,7 +2920,7 @@ const CopyProgress = {
3217
2920
  }
3218
2921
  }
3219
2922
  };
3220
- const GranularCopyProgress = {
2923
+ export const GranularCopyProgress = {
3221
2924
  type: {
3222
2925
  name: "Composite",
3223
2926
  className: "GranularCopyProgress",
@@ -3358,7 +3061,7 @@ const GranularCopyProgress = {
3358
3061
  }
3359
3062
  }
3360
3063
  };
3361
- const ImportDiskDetails = {
3064
+ export const ImportDiskDetails = {
3362
3065
  type: {
3363
3066
  name: "Composite",
3364
3067
  className: "ImportDiskDetails",
@@ -3394,7 +3097,7 @@ const ImportDiskDetails = {
3394
3097
  }
3395
3098
  }
3396
3099
  };
3397
- const ExportDiskDetails = {
3100
+ export const ExportDiskDetails = {
3398
3101
  type: {
3399
3102
  name: "Composite",
3400
3103
  className: "ExportDiskDetails",
@@ -3423,7 +3126,7 @@ const ExportDiskDetails = {
3423
3126
  }
3424
3127
  }
3425
3128
  };
3426
- const DiskSecret = {
3129
+ export const DiskSecret = {
3427
3130
  type: {
3428
3131
  name: "Composite",
3429
3132
  className: "DiskSecret",
@@ -3445,7 +3148,7 @@ const DiskSecret = {
3445
3148
  }
3446
3149
  }
3447
3150
  };
3448
- const DataBoxDiskCopyProgress = {
3151
+ export const DataBoxDiskCopyProgress = {
3449
3152
  type: {
3450
3153
  name: "Composite",
3451
3154
  className: "DataBoxDiskCopyProgress",
@@ -3507,7 +3210,7 @@ const DataBoxDiskCopyProgress = {
3507
3210
  }
3508
3211
  }
3509
3212
  };
3510
- const DataBoxHeavySecret = {
3213
+ export const DataBoxHeavySecret = {
3511
3214
  type: {
3512
3215
  name: "Composite",
3513
3216
  className: "DataBoxHeavySecret",
@@ -3562,7 +3265,7 @@ const DataBoxHeavySecret = {
3562
3265
  }
3563
3266
  }
3564
3267
  };
3565
- const DataBoxSecret = {
3268
+ export const DataBoxSecret = {
3566
3269
  type: {
3567
3270
  name: "Composite",
3568
3271
  className: "DataBoxSecret",
@@ -3617,7 +3320,7 @@ const DataBoxSecret = {
3617
3320
  }
3618
3321
  }
3619
3322
  };
3620
- const DataBoxCustomerDiskJobDetails = {
3323
+ export const DataBoxCustomerDiskJobDetails = {
3621
3324
  serializedName: "DataBoxCustomerDisk",
3622
3325
  type: {
3623
3326
  name: "Composite",
@@ -3670,7 +3373,7 @@ const DataBoxCustomerDiskJobDetails = {
3670
3373
  } })
3671
3374
  }
3672
3375
  };
3673
- const DataBoxDiskJobDetails = {
3376
+ export const DataBoxDiskJobDetails = {
3674
3377
  serializedName: "DataBoxDisk",
3675
3378
  type: {
3676
3379
  name: "Composite",
@@ -3734,7 +3437,7 @@ const DataBoxDiskJobDetails = {
3734
3437
  } })
3735
3438
  }
3736
3439
  };
3737
- const DataBoxHeavyJobDetails = {
3440
+ export const DataBoxHeavyJobDetails = {
3738
3441
  serializedName: "DataBoxHeavy",
3739
3442
  type: {
3740
3443
  name: "Composite",
@@ -3761,7 +3464,7 @@ const DataBoxHeavyJobDetails = {
3761
3464
  } })
3762
3465
  }
3763
3466
  };
3764
- const DataBoxJobDetails = {
3467
+ export const DataBoxJobDetails = {
3765
3468
  serializedName: "DataBox",
3766
3469
  type: {
3767
3470
  name: "Composite",
@@ -3788,7 +3491,7 @@ const DataBoxJobDetails = {
3788
3491
  } })
3789
3492
  }
3790
3493
  };
3791
- const ManagedDiskDetails = {
3494
+ export const ManagedDiskDetails = {
3792
3495
  serializedName: "ManagedDisk",
3793
3496
  type: {
3794
3497
  name: "Composite",
@@ -3810,7 +3513,7 @@ const ManagedDiskDetails = {
3810
3513
  } })
3811
3514
  }
3812
3515
  };
3813
- const StorageAccountDetails = {
3516
+ export const StorageAccountDetails = {
3814
3517
  serializedName: "StorageAccount",
3815
3518
  type: {
3816
3519
  name: "Composite",
@@ -3826,7 +3529,7 @@ const StorageAccountDetails = {
3826
3529
  } })
3827
3530
  }
3828
3531
  };
3829
- const DataBoxAccountCopyLogDetails = {
3532
+ export const DataBoxAccountCopyLogDetails = {
3830
3533
  serializedName: "DataBox",
3831
3534
  type: {
3832
3535
  name: "Composite",
@@ -3854,7 +3557,7 @@ const DataBoxAccountCopyLogDetails = {
3854
3557
  } })
3855
3558
  }
3856
3559
  };
3857
- const DataBoxCustomerDiskCopyLogDetails = {
3560
+ export const DataBoxCustomerDiskCopyLogDetails = {
3858
3561
  serializedName: "DataBoxCustomerDisk",
3859
3562
  type: {
3860
3563
  name: "Composite",
@@ -3882,7 +3585,7 @@ const DataBoxCustomerDiskCopyLogDetails = {
3882
3585
  } })
3883
3586
  }
3884
3587
  };
3885
- const DataBoxDiskCopyLogDetails = {
3588
+ export const DataBoxDiskCopyLogDetails = {
3886
3589
  serializedName: "DataBoxDisk",
3887
3590
  type: {
3888
3591
  name: "Composite",
@@ -3910,7 +3613,7 @@ const DataBoxDiskCopyLogDetails = {
3910
3613
  } })
3911
3614
  }
3912
3615
  };
3913
- const DataBoxHeavyAccountCopyLogDetails = {
3616
+ export const DataBoxHeavyAccountCopyLogDetails = {
3914
3617
  serializedName: "DataBoxHeavy",
3915
3618
  type: {
3916
3619
  name: "Composite",
@@ -3948,7 +3651,7 @@ const DataBoxHeavyAccountCopyLogDetails = {
3948
3651
  } })
3949
3652
  }
3950
3653
  };
3951
- const DatacenterAddressInstructionResponse = {
3654
+ export const DatacenterAddressInstructionResponse = {
3952
3655
  serializedName: "DatacenterAddressInstruction",
3953
3656
  type: {
3954
3657
  name: "Composite",
@@ -3964,7 +3667,7 @@ const DatacenterAddressInstructionResponse = {
3964
3667
  } })
3965
3668
  }
3966
3669
  };
3967
- const DatacenterAddressLocationResponse = {
3670
+ export const DatacenterAddressLocationResponse = {
3968
3671
  serializedName: "DatacenterAddressLocation",
3969
3672
  type: {
3970
3673
  name: "Composite",
@@ -4052,7 +3755,7 @@ const DatacenterAddressLocationResponse = {
4052
3755
  } })
4053
3756
  }
4054
3757
  };
4055
- const JobResource = {
3758
+ export const JobResource = {
4056
3759
  type: {
4057
3760
  name: "Composite",
4058
3761
  className: "JobResource",
@@ -4177,7 +3880,7 @@ const JobResource = {
4177
3880
  } })
4178
3881
  }
4179
3882
  };
4180
- const ValidateAddress = {
3883
+ export const ValidateAddress = {
4181
3884
  serializedName: "ValidateAddress",
4182
3885
  type: {
4183
3886
  name: "Composite",
@@ -4211,7 +3914,7 @@ const ValidateAddress = {
4211
3914
  } })
4212
3915
  }
4213
3916
  };
4214
- const CreateOrderLimitForSubscriptionValidationRequest = {
3917
+ export const CreateOrderLimitForSubscriptionValidationRequest = {
4215
3918
  serializedName: "ValidateCreateOrderLimit",
4216
3919
  type: {
4217
3920
  name: "Composite",
@@ -4233,7 +3936,7 @@ const CreateOrderLimitForSubscriptionValidationRequest = {
4233
3936
  } })
4234
3937
  }
4235
3938
  };
4236
- const DataTransferDetailsValidationRequest = {
3939
+ export const DataTransferDetailsValidationRequest = {
4237
3940
  serializedName: "ValidateDataTransferDetails",
4238
3941
  type: {
4239
3942
  name: "Composite",
@@ -4284,7 +3987,7 @@ const DataTransferDetailsValidationRequest = {
4284
3987
  } })
4285
3988
  }
4286
3989
  };
4287
- const PreferencesValidationRequest = {
3990
+ export const PreferencesValidationRequest = {
4288
3991
  serializedName: "ValidatePreferences",
4289
3992
  type: {
4290
3993
  name: "Composite",
@@ -4312,7 +4015,7 @@ const PreferencesValidationRequest = {
4312
4015
  } })
4313
4016
  }
4314
4017
  };
4315
- const SkuAvailabilityValidationRequest = {
4018
+ export const SkuAvailabilityValidationRequest = {
4316
4019
  serializedName: "ValidateSkuAvailability",
4317
4020
  type: {
4318
4021
  name: "Composite",
@@ -4353,7 +4056,7 @@ const SkuAvailabilityValidationRequest = {
4353
4056
  } })
4354
4057
  }
4355
4058
  };
4356
- const SubscriptionIsAllowedToCreateJobValidationRequest = {
4059
+ export const SubscriptionIsAllowedToCreateJobValidationRequest = {
4357
4060
  serializedName: "ValidateSubscriptionIsAllowedToCreateJob",
4358
4061
  type: {
4359
4062
  name: "Composite",
@@ -4363,7 +4066,7 @@ const SubscriptionIsAllowedToCreateJobValidationRequest = {
4363
4066
  modelProperties: Object.assign({}, ValidationInputRequest.type.modelProperties)
4364
4067
  }
4365
4068
  };
4366
- const AddressValidationProperties = {
4069
+ export const AddressValidationProperties = {
4367
4070
  serializedName: "ValidateAddress",
4368
4071
  type: {
4369
4072
  name: "Composite",
@@ -4392,7 +4095,7 @@ const AddressValidationProperties = {
4392
4095
  } })
4393
4096
  }
4394
4097
  };
4395
- const CreateOrderLimitForSubscriptionValidationResponseProperties = {
4098
+ export const CreateOrderLimitForSubscriptionValidationResponseProperties = {
4396
4099
  serializedName: "ValidateCreateOrderLimit",
4397
4100
  type: {
4398
4101
  name: "Composite",
@@ -4409,7 +4112,7 @@ const CreateOrderLimitForSubscriptionValidationResponseProperties = {
4409
4112
  } })
4410
4113
  }
4411
4114
  };
4412
- const DataTransferDetailsValidationResponseProperties = {
4115
+ export const DataTransferDetailsValidationResponseProperties = {
4413
4116
  serializedName: "ValidateDataTransferDetails",
4414
4117
  type: {
4415
4118
  name: "Composite",
@@ -4426,7 +4129,7 @@ const DataTransferDetailsValidationResponseProperties = {
4426
4129
  } })
4427
4130
  }
4428
4131
  };
4429
- const PreferencesValidationResponseProperties = {
4132
+ export const PreferencesValidationResponseProperties = {
4430
4133
  serializedName: "ValidatePreferences",
4431
4134
  type: {
4432
4135
  name: "Composite",
@@ -4443,7 +4146,7 @@ const PreferencesValidationResponseProperties = {
4443
4146
  } })
4444
4147
  }
4445
4148
  };
4446
- const SkuAvailabilityValidationResponseProperties = {
4149
+ export const SkuAvailabilityValidationResponseProperties = {
4447
4150
  serializedName: "ValidateSkuAvailability",
4448
4151
  type: {
4449
4152
  name: "Composite",
@@ -4460,7 +4163,7 @@ const SkuAvailabilityValidationResponseProperties = {
4460
4163
  } })
4461
4164
  }
4462
4165
  };
4463
- const SubscriptionIsAllowedToCreateJobValidationResponseProperties = {
4166
+ export const SubscriptionIsAllowedToCreateJobValidationResponseProperties = {
4464
4167
  serializedName: "ValidateSubscriptionIsAllowedToCreateJob",
4465
4168
  type: {
4466
4169
  name: "Composite",
@@ -4477,7 +4180,7 @@ const SubscriptionIsAllowedToCreateJobValidationResponseProperties = {
4477
4180
  } })
4478
4181
  }
4479
4182
  };
4480
- const CreateJobValidations = {
4183
+ export const CreateJobValidations = {
4481
4184
  serializedName: "JobCreationValidation",
4482
4185
  type: {
4483
4186
  name: "Composite",
@@ -4487,7 +4190,7 @@ const CreateJobValidations = {
4487
4190
  modelProperties: Object.assign({}, ValidationRequest.type.modelProperties)
4488
4191
  }
4489
4192
  };
4490
- const CustomerDiskJobSecrets = {
4193
+ export const CustomerDiskJobSecrets = {
4491
4194
  serializedName: "DataBoxCustomerDisk",
4492
4195
  type: {
4493
4196
  name: "Composite",
@@ -4515,7 +4218,7 @@ const CustomerDiskJobSecrets = {
4515
4218
  } })
4516
4219
  }
4517
4220
  };
4518
- const DataBoxDiskJobSecrets = {
4221
+ export const DataBoxDiskJobSecrets = {
4519
4222
  serializedName: "DataBoxDisk",
4520
4223
  type: {
4521
4224
  name: "Composite",
@@ -4549,7 +4252,7 @@ const DataBoxDiskJobSecrets = {
4549
4252
  } })
4550
4253
  }
4551
4254
  };
4552
- const DataBoxHeavyJobSecrets = {
4255
+ export const DataBoxHeavyJobSecrets = {
4553
4256
  serializedName: "DataBoxHeavy",
4554
4257
  type: {
4555
4258
  name: "Composite",
@@ -4571,7 +4274,7 @@ const DataBoxHeavyJobSecrets = {
4571
4274
  } })
4572
4275
  }
4573
4276
  };
4574
- const DataboxJobSecrets = {
4277
+ export const DataboxJobSecrets = {
4575
4278
  serializedName: "DataBox",
4576
4279
  type: {
4577
4280
  name: "Composite",
@@ -4592,7 +4295,7 @@ const DataboxJobSecrets = {
4592
4295
  } })
4593
4296
  }
4594
4297
  };
4595
- const DataBoxScheduleAvailabilityRequest = {
4298
+ export const DataBoxScheduleAvailabilityRequest = {
4596
4299
  serializedName: "DataBox",
4597
4300
  type: {
4598
4301
  name: "Composite",
@@ -4602,7 +4305,7 @@ const DataBoxScheduleAvailabilityRequest = {
4602
4305
  modelProperties: Object.assign({}, ScheduleAvailabilityRequest.type.modelProperties)
4603
4306
  }
4604
4307
  };
4605
- const DiskScheduleAvailabilityRequest = {
4308
+ export const DiskScheduleAvailabilityRequest = {
4606
4309
  serializedName: "DataBoxDisk",
4607
4310
  type: {
4608
4311
  name: "Composite",
@@ -4618,7 +4321,7 @@ const DiskScheduleAvailabilityRequest = {
4618
4321
  } })
4619
4322
  }
4620
4323
  };
4621
- const HeavyScheduleAvailabilityRequest = {
4324
+ export const HeavyScheduleAvailabilityRequest = {
4622
4325
  serializedName: "DataBoxHeavy",
4623
4326
  type: {
4624
4327
  name: "Composite",
@@ -4628,7 +4331,7 @@ const HeavyScheduleAvailabilityRequest = {
4628
4331
  modelProperties: Object.assign({}, ScheduleAvailabilityRequest.type.modelProperties)
4629
4332
  }
4630
4333
  };
4631
- const DataBoxDiskGranularCopyLogDetails = {
4334
+ export const DataBoxDiskGranularCopyLogDetails = {
4632
4335
  serializedName: "DataBoxCustomerDisk",
4633
4336
  type: {
4634
4337
  name: "Composite",
@@ -4662,7 +4365,7 @@ const DataBoxDiskGranularCopyLogDetails = {
4662
4365
  } })
4663
4366
  }
4664
4367
  };
4665
- const DataBoxCustomerDiskCopyProgress = {
4368
+ export const DataBoxCustomerDiskCopyProgress = {
4666
4369
  type: {
4667
4370
  name: "Composite",
4668
4371
  className: "DataBoxCustomerDiskCopyProgress",
@@ -4681,7 +4384,7 @@ const DataBoxCustomerDiskCopyProgress = {
4681
4384
  } })
4682
4385
  }
4683
4386
  };
4684
- const DataBoxDiskGranularCopyProgress = {
4387
+ export const DataBoxDiskGranularCopyProgress = {
4685
4388
  type: {
4686
4389
  name: "Composite",
4687
4390
  className: "DataBoxDiskGranularCopyProgress",
@@ -4700,7 +4403,7 @@ const DataBoxDiskGranularCopyProgress = {
4700
4403
  } })
4701
4404
  }
4702
4405
  };
4703
- const JobsDeleteHeaders = {
4406
+ export const JobsDeleteHeaders = {
4704
4407
  type: {
4705
4408
  name: "Composite",
4706
4409
  className: "JobsDeleteHeaders",
@@ -4714,7 +4417,7 @@ const JobsDeleteHeaders = {
4714
4417
  }
4715
4418
  }
4716
4419
  };
4717
- const JobsUpdateHeaders = {
4420
+ export const JobsUpdateHeaders = {
4718
4421
  type: {
4719
4422
  name: "Composite",
4720
4423
  className: "JobsUpdateHeaders",
@@ -4728,7 +4431,7 @@ const JobsUpdateHeaders = {
4728
4431
  }
4729
4432
  }
4730
4433
  };
4731
- let discriminators = {
4434
+ export let discriminators = {
4732
4435
  JobDetails: JobDetails,
4733
4436
  DataAccountDetails: DataAccountDetails,
4734
4437
  CopyLogDetails: CopyLogDetails,
@@ -4773,1638 +4476,4 @@ let discriminators = {
4773
4476
  "ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest,
4774
4477
  "GranularCopyLogDetails.DataBoxCustomerDisk": DataBoxDiskGranularCopyLogDetails
4775
4478
  };
4776
-
4777
- var Mappers = /*#__PURE__*/Object.freeze({
4778
- __proto__: null,
4779
- AccountCredentialDetails: AccountCredentialDetails,
4780
- AdditionalErrorInfo: AdditionalErrorInfo,
4781
- AddressValidationOutput: AddressValidationOutput,
4782
- AddressValidationProperties: AddressValidationProperties,
4783
- ApiError: ApiError,
4784
- ApplianceNetworkConfiguration: ApplianceNetworkConfiguration,
4785
- ArmBaseObject: ArmBaseObject,
4786
- AvailableSkuRequest: AvailableSkuRequest,
4787
- AvailableSkusResult: AvailableSkusResult,
4788
- AzureFileFilterDetails: AzureFileFilterDetails,
4789
- BlobFilterDetails: BlobFilterDetails,
4790
- CancellationReason: CancellationReason,
4791
- CloudError: CloudError,
4792
- ContactDetails: ContactDetails,
4793
- ContactInfo: ContactInfo,
4794
- CopyLogDetails: CopyLogDetails,
4795
- CopyProgress: CopyProgress,
4796
- CreateJobValidations: CreateJobValidations,
4797
- CreateOrderLimitForSubscriptionValidationRequest: CreateOrderLimitForSubscriptionValidationRequest,
4798
- CreateOrderLimitForSubscriptionValidationResponseProperties: CreateOrderLimitForSubscriptionValidationResponseProperties,
4799
- CustomerDiskJobSecrets: CustomerDiskJobSecrets,
4800
- DataAccountDetails: DataAccountDetails,
4801
- DataBoxAccountCopyLogDetails: DataBoxAccountCopyLogDetails,
4802
- DataBoxCustomerDiskCopyLogDetails: DataBoxCustomerDiskCopyLogDetails,
4803
- DataBoxCustomerDiskCopyProgress: DataBoxCustomerDiskCopyProgress,
4804
- DataBoxCustomerDiskJobDetails: DataBoxCustomerDiskJobDetails,
4805
- DataBoxDiskCopyLogDetails: DataBoxDiskCopyLogDetails,
4806
- DataBoxDiskCopyProgress: DataBoxDiskCopyProgress,
4807
- DataBoxDiskGranularCopyLogDetails: DataBoxDiskGranularCopyLogDetails,
4808
- DataBoxDiskGranularCopyProgress: DataBoxDiskGranularCopyProgress,
4809
- DataBoxDiskJobDetails: DataBoxDiskJobDetails,
4810
- DataBoxDiskJobSecrets: DataBoxDiskJobSecrets,
4811
- DataBoxHeavyAccountCopyLogDetails: DataBoxHeavyAccountCopyLogDetails,
4812
- DataBoxHeavyJobDetails: DataBoxHeavyJobDetails,
4813
- DataBoxHeavyJobSecrets: DataBoxHeavyJobSecrets,
4814
- DataBoxHeavySecret: DataBoxHeavySecret,
4815
- DataBoxJobDetails: DataBoxJobDetails,
4816
- DataBoxScheduleAvailabilityRequest: DataBoxScheduleAvailabilityRequest,
4817
- DataBoxSecret: DataBoxSecret,
4818
- DataExportDetails: DataExportDetails,
4819
- DataImportDetails: DataImportDetails,
4820
- DataLocationToServiceLocationMap: DataLocationToServiceLocationMap,
4821
- DataTransferDetailsValidationRequest: DataTransferDetailsValidationRequest,
4822
- DataTransferDetailsValidationResponseProperties: DataTransferDetailsValidationResponseProperties,
4823
- DataboxJobSecrets: DataboxJobSecrets,
4824
- DatacenterAddressInstructionResponse: DatacenterAddressInstructionResponse,
4825
- DatacenterAddressLocationResponse: DatacenterAddressLocationResponse,
4826
- DatacenterAddressRequest: DatacenterAddressRequest,
4827
- DatacenterAddressResponse: DatacenterAddressResponse,
4828
- DcAccessSecurityCode: DcAccessSecurityCode,
4829
- Details: Details,
4830
- DeviceErasureDetails: DeviceErasureDetails,
4831
- DiskScheduleAvailabilityRequest: DiskScheduleAvailabilityRequest,
4832
- DiskSecret: DiskSecret,
4833
- EncryptionPreferences: EncryptionPreferences,
4834
- ErrorDetail: ErrorDetail,
4835
- ExportDiskDetails: ExportDiskDetails,
4836
- FilterFileDetails: FilterFileDetails,
4837
- GranularCopyLogDetails: GranularCopyLogDetails,
4838
- GranularCopyProgress: GranularCopyProgress,
4839
- HeavyScheduleAvailabilityRequest: HeavyScheduleAvailabilityRequest,
4840
- IdentityProperties: IdentityProperties,
4841
- ImportDiskDetails: ImportDiskDetails,
4842
- JobDeliveryInfo: JobDeliveryInfo,
4843
- JobDetails: JobDetails,
4844
- JobResource: JobResource,
4845
- JobResourceList: JobResourceList,
4846
- JobResourceUpdateParameter: JobResourceUpdateParameter,
4847
- JobSecrets: JobSecrets,
4848
- JobStages: JobStages,
4849
- JobsDeleteHeaders: JobsDeleteHeaders,
4850
- JobsUpdateHeaders: JobsUpdateHeaders,
4851
- KeyEncryptionKey: KeyEncryptionKey,
4852
- LastMitigationActionOnJob: LastMitigationActionOnJob,
4853
- ManagedDiskDetails: ManagedDiskDetails,
4854
- MarkDevicesShippedRequest: MarkDevicesShippedRequest,
4855
- MitigateJobRequest: MitigateJobRequest,
4856
- NotificationPreference: NotificationPreference,
4857
- Operation: Operation,
4858
- OperationDisplay: OperationDisplay,
4859
- OperationList: OperationList,
4860
- PackageCarrierDetails: PackageCarrierDetails,
4861
- PackageCarrierInfo: PackageCarrierInfo,
4862
- PackageShippingDetails: PackageShippingDetails,
4863
- Preferences: Preferences,
4864
- PreferencesValidationRequest: PreferencesValidationRequest,
4865
- PreferencesValidationResponseProperties: PreferencesValidationResponseProperties,
4866
- RegionConfigurationRequest: RegionConfigurationRequest,
4867
- RegionConfigurationResponse: RegionConfigurationResponse,
4868
- Resource: Resource,
4869
- ResourceIdentity: ResourceIdentity,
4870
- ReverseShippingDetails: ReverseShippingDetails,
4871
- ScheduleAvailabilityRequest: ScheduleAvailabilityRequest,
4872
- ScheduleAvailabilityResponse: ScheduleAvailabilityResponse,
4873
- ShareCredentialDetails: ShareCredentialDetails,
4874
- ShipmentPickUpRequest: ShipmentPickUpRequest,
4875
- ShipmentPickUpResponse: ShipmentPickUpResponse,
4876
- ShippingAddress: ShippingAddress,
4877
- Sku: Sku,
4878
- SkuAvailabilityValidationRequest: SkuAvailabilityValidationRequest,
4879
- SkuAvailabilityValidationResponseProperties: SkuAvailabilityValidationResponseProperties,
4880
- SkuCapacity: SkuCapacity,
4881
- SkuCost: SkuCost,
4882
- SkuInformation: SkuInformation,
4883
- StorageAccountDetails: StorageAccountDetails,
4884
- SubscriptionIsAllowedToCreateJobValidationRequest: SubscriptionIsAllowedToCreateJobValidationRequest,
4885
- SubscriptionIsAllowedToCreateJobValidationResponseProperties: SubscriptionIsAllowedToCreateJobValidationResponseProperties,
4886
- SystemData: SystemData,
4887
- TransferAllDetails: TransferAllDetails,
4888
- TransferConfiguration: TransferConfiguration,
4889
- TransferConfigurationTransferAllDetails: TransferConfigurationTransferAllDetails,
4890
- TransferConfigurationTransferFilterDetails: TransferConfigurationTransferFilterDetails,
4891
- TransferFilterDetails: TransferFilterDetails,
4892
- TransportAvailabilityDetails: TransportAvailabilityDetails,
4893
- TransportAvailabilityRequest: TransportAvailabilityRequest,
4894
- TransportAvailabilityResponse: TransportAvailabilityResponse,
4895
- TransportPreferences: TransportPreferences,
4896
- UnencryptedCredentials: UnencryptedCredentials,
4897
- UnencryptedCredentialsList: UnencryptedCredentialsList,
4898
- UpdateJobDetails: UpdateJobDetails,
4899
- UserAssignedIdentity: UserAssignedIdentity,
4900
- UserAssignedProperties: UserAssignedProperties,
4901
- ValidateAddress: ValidateAddress,
4902
- ValidationInputRequest: ValidationInputRequest,
4903
- ValidationInputResponse: ValidationInputResponse,
4904
- ValidationRequest: ValidationRequest,
4905
- ValidationResponse: ValidationResponse,
4906
- discriminators: discriminators
4907
- });
4908
-
4909
- /*
4910
- * Copyright (c) Microsoft Corporation.
4911
- * Licensed under the MIT License.
4912
- *
4913
- * Code generated by Microsoft (R) AutoRest Code Generator.
4914
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4915
- */
4916
- const accept = {
4917
- parameterPath: "accept",
4918
- mapper: {
4919
- defaultValue: "application/json",
4920
- isConstant: true,
4921
- serializedName: "Accept",
4922
- type: {
4923
- name: "String"
4924
- }
4925
- }
4926
- };
4927
- const $host = {
4928
- parameterPath: "$host",
4929
- mapper: {
4930
- serializedName: "$host",
4931
- required: true,
4932
- type: {
4933
- name: "String"
4934
- }
4935
- },
4936
- skipEncoding: true
4937
- };
4938
- const apiVersion = {
4939
- parameterPath: "apiVersion",
4940
- mapper: {
4941
- defaultValue: "2022-12-01",
4942
- isConstant: true,
4943
- serializedName: "api-version",
4944
- type: {
4945
- name: "String"
4946
- }
4947
- }
4948
- };
4949
- const nextLink = {
4950
- parameterPath: "nextLink",
4951
- mapper: {
4952
- serializedName: "nextLink",
4953
- required: true,
4954
- type: {
4955
- name: "String"
4956
- }
4957
- },
4958
- skipEncoding: true
4959
- };
4960
- const subscriptionId = {
4961
- parameterPath: "subscriptionId",
4962
- mapper: {
4963
- serializedName: "subscriptionId",
4964
- required: true,
4965
- type: {
4966
- name: "String"
4967
- }
4968
- }
4969
- };
4970
- const skipToken = {
4971
- parameterPath: ["options", "skipToken"],
4972
- mapper: {
4973
- serializedName: "$skipToken",
4974
- type: {
4975
- name: "String"
4976
- }
4977
- }
4978
- };
4979
- const contentType = {
4980
- parameterPath: ["options", "contentType"],
4981
- mapper: {
4982
- defaultValue: "application/json",
4983
- isConstant: true,
4984
- serializedName: "Content-Type",
4985
- type: {
4986
- name: "String"
4987
- }
4988
- }
4989
- };
4990
- const markDevicesShippedRequest = {
4991
- parameterPath: "markDevicesShippedRequest",
4992
- mapper: MarkDevicesShippedRequest
4993
- };
4994
- const jobName = {
4995
- parameterPath: "jobName",
4996
- mapper: {
4997
- constraints: {
4998
- Pattern: new RegExp("^[-\\w\\.]+$"),
4999
- MaxLength: 24,
5000
- MinLength: 3
5001
- },
5002
- serializedName: "jobName",
5003
- required: true,
5004
- type: {
5005
- name: "String"
5006
- }
5007
- }
5008
- };
5009
- const resourceGroupName = {
5010
- parameterPath: "resourceGroupName",
5011
- mapper: {
5012
- serializedName: "resourceGroupName",
5013
- required: true,
5014
- type: {
5015
- name: "String"
5016
- }
5017
- }
5018
- };
5019
- const expand = {
5020
- parameterPath: ["options", "expand"],
5021
- mapper: {
5022
- serializedName: "$expand",
5023
- type: {
5024
- name: "String"
5025
- }
5026
- }
5027
- };
5028
- const jobResource = {
5029
- parameterPath: "jobResource",
5030
- mapper: JobResource
5031
- };
5032
- const jobResourceUpdateParameter = {
5033
- parameterPath: "jobResourceUpdateParameter",
5034
- mapper: JobResourceUpdateParameter
5035
- };
5036
- const ifMatch = {
5037
- parameterPath: ["options", "ifMatch"],
5038
- mapper: {
5039
- serializedName: "If-Match",
5040
- type: {
5041
- name: "String"
5042
- }
5043
- }
5044
- };
5045
- const shipmentPickUpRequest = {
5046
- parameterPath: "shipmentPickUpRequest",
5047
- mapper: ShipmentPickUpRequest
5048
- };
5049
- const cancellationReason = {
5050
- parameterPath: "cancellationReason",
5051
- mapper: CancellationReason
5052
- };
5053
- const mitigateJobRequest = {
5054
- parameterPath: "mitigateJobRequest",
5055
- mapper: MitigateJobRequest
5056
- };
5057
- const availableSkuRequest = {
5058
- parameterPath: "availableSkuRequest",
5059
- mapper: AvailableSkuRequest
5060
- };
5061
- const location = {
5062
- parameterPath: "location",
5063
- mapper: {
5064
- serializedName: "location",
5065
- required: true,
5066
- type: {
5067
- name: "String"
5068
- }
5069
- }
5070
- };
5071
- const validateAddress = {
5072
- parameterPath: "validateAddress",
5073
- mapper: ValidateAddress
5074
- };
5075
- const validationRequest = {
5076
- parameterPath: "validationRequest",
5077
- mapper: ValidationRequest
5078
- };
5079
- const regionConfigurationRequest = {
5080
- parameterPath: "regionConfigurationRequest",
5081
- mapper: RegionConfigurationRequest
5082
- };
5083
-
5084
- /*
5085
- * Copyright (c) Microsoft Corporation.
5086
- * Licensed under the MIT License.
5087
- *
5088
- * Code generated by Microsoft (R) AutoRest Code Generator.
5089
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5090
- */
5091
- /// <reference lib="esnext.asynciterable" />
5092
- /** Class containing Operations operations. */
5093
- class OperationsImpl {
5094
- /**
5095
- * Initialize a new instance of the class Operations class.
5096
- * @param client Reference to the service client
5097
- */
5098
- constructor(client) {
5099
- this.client = client;
5100
- }
5101
- /**
5102
- * This method gets all the operations.
5103
- * @param options The options parameters.
5104
- */
5105
- list(options) {
5106
- const iter = this.listPagingAll(options);
5107
- return {
5108
- next() {
5109
- return iter.next();
5110
- },
5111
- [Symbol.asyncIterator]() {
5112
- return this;
5113
- },
5114
- byPage: (settings) => {
5115
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5116
- throw new Error("maxPageSize is not supported by this operation.");
5117
- }
5118
- return this.listPagingPage(options, settings);
5119
- }
5120
- };
5121
- }
5122
- listPagingPage(options, settings) {
5123
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5124
- let result;
5125
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5126
- if (!continuationToken) {
5127
- result = yield tslib.__await(this._list(options));
5128
- let page = result.value || [];
5129
- continuationToken = result.nextLink;
5130
- setContinuationToken(page, continuationToken);
5131
- yield yield tslib.__await(page);
5132
- }
5133
- while (continuationToken) {
5134
- result = yield tslib.__await(this._listNext(continuationToken, options));
5135
- continuationToken = result.nextLink;
5136
- let page = result.value || [];
5137
- setContinuationToken(page, continuationToken);
5138
- yield yield tslib.__await(page);
5139
- }
5140
- });
5141
- }
5142
- listPagingAll(options) {
5143
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
5144
- var _a, e_1, _b, _c;
5145
- try {
5146
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
5147
- _c = _f.value;
5148
- _d = false;
5149
- const page = _c;
5150
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5151
- }
5152
- }
5153
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
5154
- finally {
5155
- try {
5156
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5157
- }
5158
- finally { if (e_1) throw e_1.error; }
5159
- }
5160
- });
5161
- }
5162
- /**
5163
- * This method gets all the operations.
5164
- * @param options The options parameters.
5165
- */
5166
- _list(options) {
5167
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
5168
- }
5169
- /**
5170
- * ListNext
5171
- * @param nextLink The nextLink from the previous successful call to the List method.
5172
- * @param options The options parameters.
5173
- */
5174
- _listNext(nextLink, options) {
5175
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
5176
- }
5177
- }
5178
- // Operation Specifications
5179
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5180
- const listOperationSpec$1 = {
5181
- path: "/providers/Microsoft.DataBox/operations",
5182
- httpMethod: "GET",
5183
- responses: {
5184
- 200: {
5185
- bodyMapper: OperationList
5186
- },
5187
- default: {
5188
- bodyMapper: ApiError
5189
- }
5190
- },
5191
- queryParameters: [apiVersion],
5192
- urlParameters: [$host],
5193
- headerParameters: [accept],
5194
- serializer: serializer$3
5195
- };
5196
- const listNextOperationSpec$1 = {
5197
- path: "{nextLink}",
5198
- httpMethod: "GET",
5199
- responses: {
5200
- 200: {
5201
- bodyMapper: OperationList
5202
- },
5203
- default: {
5204
- bodyMapper: ApiError
5205
- }
5206
- },
5207
- urlParameters: [$host, nextLink],
5208
- headerParameters: [accept],
5209
- serializer: serializer$3
5210
- };
5211
-
5212
- /*
5213
- * Copyright (c) Microsoft Corporation.
5214
- * Licensed under the MIT License.
5215
- *
5216
- * Code generated by Microsoft (R) AutoRest Code Generator.
5217
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5218
- */
5219
- function createLroSpec(inputs) {
5220
- const { args, spec, sendOperationFn } = inputs;
5221
- return {
5222
- requestMethod: spec.httpMethod,
5223
- requestPath: spec.path,
5224
- sendInitialRequest: () => sendOperationFn(args, spec),
5225
- sendPollRequest: (path, options) => {
5226
- const restSpec = tslib.__rest(spec, ["requestBody"]);
5227
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
5228
- }
5229
- };
5230
- }
5231
-
5232
- /*
5233
- * Copyright (c) Microsoft Corporation.
5234
- * Licensed under the MIT License.
5235
- *
5236
- * Code generated by Microsoft (R) AutoRest Code Generator.
5237
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5238
- */
5239
- /// <reference lib="esnext.asynciterable" />
5240
- /** Class containing Jobs operations. */
5241
- class JobsImpl {
5242
- /**
5243
- * Initialize a new instance of the class Jobs class.
5244
- * @param client Reference to the service client
5245
- */
5246
- constructor(client) {
5247
- this.client = client;
5248
- }
5249
- /**
5250
- * Lists all the jobs available under the subscription.
5251
- * @param options The options parameters.
5252
- */
5253
- list(options) {
5254
- const iter = this.listPagingAll(options);
5255
- return {
5256
- next() {
5257
- return iter.next();
5258
- },
5259
- [Symbol.asyncIterator]() {
5260
- return this;
5261
- },
5262
- byPage: (settings) => {
5263
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5264
- throw new Error("maxPageSize is not supported by this operation.");
5265
- }
5266
- return this.listPagingPage(options, settings);
5267
- }
5268
- };
5269
- }
5270
- listPagingPage(options, settings) {
5271
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5272
- let result;
5273
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5274
- if (!continuationToken) {
5275
- result = yield tslib.__await(this._list(options));
5276
- let page = result.value || [];
5277
- continuationToken = result.nextLink;
5278
- setContinuationToken(page, continuationToken);
5279
- yield yield tslib.__await(page);
5280
- }
5281
- while (continuationToken) {
5282
- result = yield tslib.__await(this._listNext(continuationToken, options));
5283
- continuationToken = result.nextLink;
5284
- let page = result.value || [];
5285
- setContinuationToken(page, continuationToken);
5286
- yield yield tslib.__await(page);
5287
- }
5288
- });
5289
- }
5290
- listPagingAll(options) {
5291
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
5292
- var _a, e_1, _b, _c;
5293
- try {
5294
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
5295
- _c = _f.value;
5296
- _d = false;
5297
- const page = _c;
5298
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5299
- }
5300
- }
5301
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
5302
- finally {
5303
- try {
5304
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5305
- }
5306
- finally { if (e_1) throw e_1.error; }
5307
- }
5308
- });
5309
- }
5310
- /**
5311
- * Lists all the jobs available under the given resource group.
5312
- * @param resourceGroupName The Resource Group Name
5313
- * @param options The options parameters.
5314
- */
5315
- listByResourceGroup(resourceGroupName, options) {
5316
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
5317
- return {
5318
- next() {
5319
- return iter.next();
5320
- },
5321
- [Symbol.asyncIterator]() {
5322
- return this;
5323
- },
5324
- byPage: (settings) => {
5325
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5326
- throw new Error("maxPageSize is not supported by this operation.");
5327
- }
5328
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
5329
- }
5330
- };
5331
- }
5332
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
5333
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
5334
- let result;
5335
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5336
- if (!continuationToken) {
5337
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
5338
- let page = result.value || [];
5339
- continuationToken = result.nextLink;
5340
- setContinuationToken(page, continuationToken);
5341
- yield yield tslib.__await(page);
5342
- }
5343
- while (continuationToken) {
5344
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
5345
- continuationToken = result.nextLink;
5346
- let page = result.value || [];
5347
- setContinuationToken(page, continuationToken);
5348
- yield yield tslib.__await(page);
5349
- }
5350
- });
5351
- }
5352
- listByResourceGroupPagingAll(resourceGroupName, options) {
5353
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
5354
- var _a, e_2, _b, _c;
5355
- try {
5356
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
5357
- _c = _f.value;
5358
- _d = false;
5359
- const page = _c;
5360
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5361
- }
5362
- }
5363
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
5364
- finally {
5365
- try {
5366
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5367
- }
5368
- finally { if (e_2) throw e_2.error; }
5369
- }
5370
- });
5371
- }
5372
- /**
5373
- * This method gets the unencrypted secrets related to the job.
5374
- * @param resourceGroupName The Resource Group Name
5375
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5376
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5377
- * @param options The options parameters.
5378
- */
5379
- listCredentials(resourceGroupName, jobName, options) {
5380
- const iter = this.listCredentialsPagingAll(resourceGroupName, jobName, options);
5381
- return {
5382
- next() {
5383
- return iter.next();
5384
- },
5385
- [Symbol.asyncIterator]() {
5386
- return this;
5387
- },
5388
- byPage: (settings) => {
5389
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5390
- throw new Error("maxPageSize is not supported by this operation.");
5391
- }
5392
- return this.listCredentialsPagingPage(resourceGroupName, jobName, options, settings);
5393
- }
5394
- };
5395
- }
5396
- listCredentialsPagingPage(resourceGroupName, jobName, options, _settings) {
5397
- return tslib.__asyncGenerator(this, arguments, function* listCredentialsPagingPage_1() {
5398
- let result;
5399
- result = yield tslib.__await(this._listCredentials(resourceGroupName, jobName, options));
5400
- yield yield tslib.__await(result.value || []);
5401
- });
5402
- }
5403
- listCredentialsPagingAll(resourceGroupName, jobName, options) {
5404
- return tslib.__asyncGenerator(this, arguments, function* listCredentialsPagingAll_1() {
5405
- var _a, e_3, _b, _c;
5406
- try {
5407
- for (var _d = true, _e = tslib.__asyncValues(this.listCredentialsPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
5408
- _c = _f.value;
5409
- _d = false;
5410
- const page = _c;
5411
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5412
- }
5413
- }
5414
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
5415
- finally {
5416
- try {
5417
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5418
- }
5419
- finally { if (e_3) throw e_3.error; }
5420
- }
5421
- });
5422
- }
5423
- /**
5424
- * Lists all the jobs available under the subscription.
5425
- * @param options The options parameters.
5426
- */
5427
- _list(options) {
5428
- return this.client.sendOperationRequest({ options }, listOperationSpec);
5429
- }
5430
- /**
5431
- * Request to mark devices for a given job as shipped
5432
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5433
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5434
- * @param resourceGroupName The Resource Group Name
5435
- * @param markDevicesShippedRequest Mark Devices Shipped Request
5436
- * @param options The options parameters.
5437
- */
5438
- markDevicesShipped(jobName, resourceGroupName, markDevicesShippedRequest, options) {
5439
- return this.client.sendOperationRequest({ jobName, resourceGroupName, markDevicesShippedRequest, options }, markDevicesShippedOperationSpec);
5440
- }
5441
- /**
5442
- * Lists all the jobs available under the given resource group.
5443
- * @param resourceGroupName The Resource Group Name
5444
- * @param options The options parameters.
5445
- */
5446
- _listByResourceGroup(resourceGroupName, options) {
5447
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
5448
- }
5449
- /**
5450
- * Gets information about the specified job.
5451
- * @param resourceGroupName The Resource Group Name
5452
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5453
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5454
- * @param options The options parameters.
5455
- */
5456
- get(resourceGroupName, jobName, options) {
5457
- return this.client.sendOperationRequest({ resourceGroupName, jobName, options }, getOperationSpec);
5458
- }
5459
- /**
5460
- * Creates a new job with the specified parameters. Existing job cannot be updated with this API and
5461
- * should instead be updated with the Update job API.
5462
- * @param resourceGroupName The Resource Group Name
5463
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5464
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5465
- * @param jobResource Job details from request body.
5466
- * @param options The options parameters.
5467
- */
5468
- beginCreate(resourceGroupName, jobName, jobResource, options) {
5469
- return tslib.__awaiter(this, void 0, void 0, function* () {
5470
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5471
- return this.client.sendOperationRequest(args, spec);
5472
- });
5473
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5474
- var _a;
5475
- let currentRawResponse = undefined;
5476
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5477
- const callback = (rawResponse, flatResponse) => {
5478
- currentRawResponse = rawResponse;
5479
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5480
- };
5481
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5482
- const flatResponse = yield directSendOperation(updatedArgs, spec);
5483
- return {
5484
- flatResponse,
5485
- rawResponse: {
5486
- statusCode: currentRawResponse.status,
5487
- body: currentRawResponse.parsedBody,
5488
- headers: currentRawResponse.headers.toJSON()
5489
- }
5490
- };
5491
- });
5492
- const lro = createLroSpec({
5493
- sendOperationFn,
5494
- args: { resourceGroupName, jobName, jobResource, options },
5495
- spec: createOperationSpec
5496
- });
5497
- const poller = yield coreLro.createHttpPoller(lro, {
5498
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5499
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5500
- });
5501
- yield poller.poll();
5502
- return poller;
5503
- });
5504
- }
5505
- /**
5506
- * Creates a new job with the specified parameters. Existing job cannot be updated with this API and
5507
- * should instead be updated with the Update job API.
5508
- * @param resourceGroupName The Resource Group Name
5509
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5510
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5511
- * @param jobResource Job details from request body.
5512
- * @param options The options parameters.
5513
- */
5514
- beginCreateAndWait(resourceGroupName, jobName, jobResource, options) {
5515
- return tslib.__awaiter(this, void 0, void 0, function* () {
5516
- const poller = yield this.beginCreate(resourceGroupName, jobName, jobResource, options);
5517
- return poller.pollUntilDone();
5518
- });
5519
- }
5520
- /**
5521
- * Deletes a job.
5522
- * @param resourceGroupName The Resource Group Name
5523
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5524
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5525
- * @param options The options parameters.
5526
- */
5527
- beginDelete(resourceGroupName, jobName, options) {
5528
- return tslib.__awaiter(this, void 0, void 0, function* () {
5529
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5530
- return this.client.sendOperationRequest(args, spec);
5531
- });
5532
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5533
- var _a;
5534
- let currentRawResponse = undefined;
5535
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5536
- const callback = (rawResponse, flatResponse) => {
5537
- currentRawResponse = rawResponse;
5538
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5539
- };
5540
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5541
- const flatResponse = yield directSendOperation(updatedArgs, spec);
5542
- return {
5543
- flatResponse,
5544
- rawResponse: {
5545
- statusCode: currentRawResponse.status,
5546
- body: currentRawResponse.parsedBody,
5547
- headers: currentRawResponse.headers.toJSON()
5548
- }
5549
- };
5550
- });
5551
- const lro = createLroSpec({
5552
- sendOperationFn,
5553
- args: { resourceGroupName, jobName, options },
5554
- spec: deleteOperationSpec
5555
- });
5556
- const poller = yield coreLro.createHttpPoller(lro, {
5557
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5558
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5559
- });
5560
- yield poller.poll();
5561
- return poller;
5562
- });
5563
- }
5564
- /**
5565
- * Deletes a job.
5566
- * @param resourceGroupName The Resource Group Name
5567
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5568
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5569
- * @param options The options parameters.
5570
- */
5571
- beginDeleteAndWait(resourceGroupName, jobName, options) {
5572
- return tslib.__awaiter(this, void 0, void 0, function* () {
5573
- const poller = yield this.beginDelete(resourceGroupName, jobName, options);
5574
- return poller.pollUntilDone();
5575
- });
5576
- }
5577
- /**
5578
- * Updates the properties of an existing job.
5579
- * @param resourceGroupName The Resource Group Name
5580
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5581
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5582
- * @param jobResourceUpdateParameter Job update parameters from request body.
5583
- * @param options The options parameters.
5584
- */
5585
- beginUpdate(resourceGroupName, jobName, jobResourceUpdateParameter, options) {
5586
- return tslib.__awaiter(this, void 0, void 0, function* () {
5587
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5588
- return this.client.sendOperationRequest(args, spec);
5589
- });
5590
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5591
- var _a;
5592
- let currentRawResponse = undefined;
5593
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5594
- const callback = (rawResponse, flatResponse) => {
5595
- currentRawResponse = rawResponse;
5596
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5597
- };
5598
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5599
- const flatResponse = yield directSendOperation(updatedArgs, spec);
5600
- return {
5601
- flatResponse,
5602
- rawResponse: {
5603
- statusCode: currentRawResponse.status,
5604
- body: currentRawResponse.parsedBody,
5605
- headers: currentRawResponse.headers.toJSON()
5606
- }
5607
- };
5608
- });
5609
- const lro = createLroSpec({
5610
- sendOperationFn,
5611
- args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },
5612
- spec: updateOperationSpec
5613
- });
5614
- const poller = yield coreLro.createHttpPoller(lro, {
5615
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5616
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5617
- });
5618
- yield poller.poll();
5619
- return poller;
5620
- });
5621
- }
5622
- /**
5623
- * Updates the properties of an existing job.
5624
- * @param resourceGroupName The Resource Group Name
5625
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5626
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5627
- * @param jobResourceUpdateParameter Job update parameters from request body.
5628
- * @param options The options parameters.
5629
- */
5630
- beginUpdateAndWait(resourceGroupName, jobName, jobResourceUpdateParameter, options) {
5631
- return tslib.__awaiter(this, void 0, void 0, function* () {
5632
- const poller = yield this.beginUpdate(resourceGroupName, jobName, jobResourceUpdateParameter, options);
5633
- return poller.pollUntilDone();
5634
- });
5635
- }
5636
- /**
5637
- * Book shipment pick up.
5638
- * @param resourceGroupName The Resource Group Name
5639
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5640
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5641
- * @param shipmentPickUpRequest Details of shipment pick up request.
5642
- * @param options The options parameters.
5643
- */
5644
- bookShipmentPickUp(resourceGroupName, jobName, shipmentPickUpRequest, options) {
5645
- return this.client.sendOperationRequest({ resourceGroupName, jobName, shipmentPickUpRequest, options }, bookShipmentPickUpOperationSpec);
5646
- }
5647
- /**
5648
- * CancelJob.
5649
- * @param resourceGroupName The Resource Group Name
5650
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5651
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5652
- * @param cancellationReason Reason for cancellation.
5653
- * @param options The options parameters.
5654
- */
5655
- cancel(resourceGroupName, jobName, cancellationReason, options) {
5656
- return this.client.sendOperationRequest({ resourceGroupName, jobName, cancellationReason, options }, cancelOperationSpec);
5657
- }
5658
- /**
5659
- * This method gets the unencrypted secrets related to the job.
5660
- * @param resourceGroupName The Resource Group Name
5661
- * @param jobName The name of the job Resource within the specified resource group. job names must be
5662
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
5663
- * @param options The options parameters.
5664
- */
5665
- _listCredentials(resourceGroupName, jobName, options) {
5666
- return this.client.sendOperationRequest({ resourceGroupName, jobName, options }, listCredentialsOperationSpec);
5667
- }
5668
- /**
5669
- * ListNext
5670
- * @param nextLink The nextLink from the previous successful call to the List method.
5671
- * @param options The options parameters.
5672
- */
5673
- _listNext(nextLink, options) {
5674
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
5675
- }
5676
- /**
5677
- * ListByResourceGroupNext
5678
- * @param resourceGroupName The Resource Group Name
5679
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
5680
- * @param options The options parameters.
5681
- */
5682
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
5683
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
5684
- }
5685
- }
5686
- // Operation Specifications
5687
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5688
- const listOperationSpec = {
5689
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs",
5690
- httpMethod: "GET",
5691
- responses: {
5692
- 200: {
5693
- bodyMapper: JobResourceList
5694
- },
5695
- default: {
5696
- bodyMapper: ApiError
5697
- }
5698
- },
5699
- queryParameters: [apiVersion, skipToken],
5700
- urlParameters: [$host, subscriptionId],
5701
- headerParameters: [accept],
5702
- serializer: serializer$2
5703
- };
5704
- const markDevicesShippedOperationSpec = {
5705
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped",
5706
- httpMethod: "POST",
5707
- responses: {
5708
- 204: {},
5709
- default: {
5710
- bodyMapper: ApiError
5711
- }
5712
- },
5713
- requestBody: markDevicesShippedRequest,
5714
- queryParameters: [apiVersion],
5715
- urlParameters: [
5716
- $host,
5717
- subscriptionId,
5718
- jobName,
5719
- resourceGroupName
5720
- ],
5721
- headerParameters: [accept, contentType],
5722
- mediaType: "json",
5723
- serializer: serializer$2
5724
- };
5725
- const listByResourceGroupOperationSpec = {
5726
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs",
5727
- httpMethod: "GET",
5728
- responses: {
5729
- 200: {
5730
- bodyMapper: JobResourceList
5731
- },
5732
- default: {
5733
- bodyMapper: ApiError
5734
- }
5735
- },
5736
- queryParameters: [apiVersion, skipToken],
5737
- urlParameters: [
5738
- $host,
5739
- subscriptionId,
5740
- resourceGroupName
5741
- ],
5742
- headerParameters: [accept],
5743
- serializer: serializer$2
5744
- };
5745
- const getOperationSpec = {
5746
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
5747
- httpMethod: "GET",
5748
- responses: {
5749
- 200: {
5750
- bodyMapper: JobResource
5751
- },
5752
- default: {
5753
- bodyMapper: ApiError
5754
- }
5755
- },
5756
- queryParameters: [apiVersion, expand],
5757
- urlParameters: [
5758
- $host,
5759
- subscriptionId,
5760
- jobName,
5761
- resourceGroupName
5762
- ],
5763
- headerParameters: [accept],
5764
- serializer: serializer$2
5765
- };
5766
- const createOperationSpec = {
5767
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
5768
- httpMethod: "PUT",
5769
- responses: {
5770
- 200: {
5771
- bodyMapper: JobResource
5772
- },
5773
- 201: {
5774
- bodyMapper: JobResource
5775
- },
5776
- 202: {
5777
- bodyMapper: JobResource
5778
- },
5779
- 204: {
5780
- bodyMapper: JobResource
5781
- },
5782
- default: {
5783
- bodyMapper: ApiError
5784
- }
5785
- },
5786
- requestBody: jobResource,
5787
- queryParameters: [apiVersion],
5788
- urlParameters: [
5789
- $host,
5790
- subscriptionId,
5791
- jobName,
5792
- resourceGroupName
5793
- ],
5794
- headerParameters: [accept, contentType],
5795
- mediaType: "json",
5796
- serializer: serializer$2
5797
- };
5798
- const deleteOperationSpec = {
5799
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
5800
- httpMethod: "DELETE",
5801
- responses: {
5802
- 200: {},
5803
- 201: {},
5804
- 202: {},
5805
- 204: {},
5806
- default: {
5807
- bodyMapper: ApiError
5808
- }
5809
- },
5810
- queryParameters: [apiVersion],
5811
- urlParameters: [
5812
- $host,
5813
- subscriptionId,
5814
- jobName,
5815
- resourceGroupName
5816
- ],
5817
- headerParameters: [accept],
5818
- serializer: serializer$2
5819
- };
5820
- const updateOperationSpec = {
5821
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
5822
- httpMethod: "PATCH",
5823
- responses: {
5824
- 200: {
5825
- bodyMapper: JobResource
5826
- },
5827
- 201: {
5828
- bodyMapper: JobResource
5829
- },
5830
- 202: {
5831
- bodyMapper: JobResource
5832
- },
5833
- 204: {
5834
- bodyMapper: JobResource
5835
- },
5836
- default: {
5837
- bodyMapper: ApiError
5838
- }
5839
- },
5840
- requestBody: jobResourceUpdateParameter,
5841
- queryParameters: [apiVersion],
5842
- urlParameters: [
5843
- $host,
5844
- subscriptionId,
5845
- jobName,
5846
- resourceGroupName
5847
- ],
5848
- headerParameters: [
5849
- accept,
5850
- contentType,
5851
- ifMatch
5852
- ],
5853
- mediaType: "json",
5854
- serializer: serializer$2
5855
- };
5856
- const bookShipmentPickUpOperationSpec = {
5857
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp",
5858
- httpMethod: "POST",
5859
- responses: {
5860
- 200: {
5861
- bodyMapper: ShipmentPickUpResponse
5862
- },
5863
- default: {
5864
- bodyMapper: ApiError
5865
- }
5866
- },
5867
- requestBody: shipmentPickUpRequest,
5868
- queryParameters: [apiVersion],
5869
- urlParameters: [
5870
- $host,
5871
- subscriptionId,
5872
- jobName,
5873
- resourceGroupName
5874
- ],
5875
- headerParameters: [accept, contentType],
5876
- mediaType: "json",
5877
- serializer: serializer$2
5878
- };
5879
- const cancelOperationSpec = {
5880
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel",
5881
- httpMethod: "POST",
5882
- responses: {
5883
- 204: {},
5884
- default: {
5885
- bodyMapper: ApiError
5886
- }
5887
- },
5888
- requestBody: cancellationReason,
5889
- queryParameters: [apiVersion],
5890
- urlParameters: [
5891
- $host,
5892
- subscriptionId,
5893
- jobName,
5894
- resourceGroupName
5895
- ],
5896
- headerParameters: [accept, contentType],
5897
- mediaType: "json",
5898
- serializer: serializer$2
5899
- };
5900
- const listCredentialsOperationSpec = {
5901
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials",
5902
- httpMethod: "POST",
5903
- responses: {
5904
- 200: {
5905
- bodyMapper: UnencryptedCredentialsList
5906
- },
5907
- default: {
5908
- bodyMapper: ApiError
5909
- }
5910
- },
5911
- queryParameters: [apiVersion],
5912
- urlParameters: [
5913
- $host,
5914
- subscriptionId,
5915
- jobName,
5916
- resourceGroupName
5917
- ],
5918
- headerParameters: [accept],
5919
- serializer: serializer$2
5920
- };
5921
- const listNextOperationSpec = {
5922
- path: "{nextLink}",
5923
- httpMethod: "GET",
5924
- responses: {
5925
- 200: {
5926
- bodyMapper: JobResourceList
5927
- },
5928
- default: {
5929
- bodyMapper: ApiError
5930
- }
5931
- },
5932
- urlParameters: [
5933
- $host,
5934
- nextLink,
5935
- subscriptionId
5936
- ],
5937
- headerParameters: [accept],
5938
- serializer: serializer$2
5939
- };
5940
- const listByResourceGroupNextOperationSpec = {
5941
- path: "{nextLink}",
5942
- httpMethod: "GET",
5943
- responses: {
5944
- 200: {
5945
- bodyMapper: JobResourceList
5946
- },
5947
- default: {
5948
- bodyMapper: ApiError
5949
- }
5950
- },
5951
- urlParameters: [
5952
- $host,
5953
- nextLink,
5954
- subscriptionId,
5955
- resourceGroupName
5956
- ],
5957
- headerParameters: [accept],
5958
- serializer: serializer$2
5959
- };
5960
-
5961
- /*
5962
- * Copyright (c) Microsoft Corporation.
5963
- * Licensed under the MIT License.
5964
- *
5965
- * Code generated by Microsoft (R) AutoRest Code Generator.
5966
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5967
- */
5968
- /// <reference lib="esnext.asynciterable" />
5969
- /** Class containing Service operations. */
5970
- class ServiceImpl {
5971
- /**
5972
- * Initialize a new instance of the class Service class.
5973
- * @param client Reference to the service client
5974
- */
5975
- constructor(client) {
5976
- this.client = client;
5977
- }
5978
- /**
5979
- * This method provides the list of available skus for the given subscription, resource group and
5980
- * location.
5981
- * @param resourceGroupName The Resource Group Name
5982
- * @param location The location of the resource
5983
- * @param availableSkuRequest Filters for showing the available skus.
5984
- * @param options The options parameters.
5985
- */
5986
- listAvailableSkusByResourceGroup(resourceGroupName, location, availableSkuRequest, options) {
5987
- const iter = this.listAvailableSkusByResourceGroupPagingAll(resourceGroupName, location, availableSkuRequest, options);
5988
- return {
5989
- next() {
5990
- return iter.next();
5991
- },
5992
- [Symbol.asyncIterator]() {
5993
- return this;
5994
- },
5995
- byPage: (settings) => {
5996
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5997
- throw new Error("maxPageSize is not supported by this operation.");
5998
- }
5999
- return this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings);
6000
- }
6001
- };
6002
- }
6003
- listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings) {
6004
- return tslib.__asyncGenerator(this, arguments, function* listAvailableSkusByResourceGroupPagingPage_1() {
6005
- let result;
6006
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6007
- if (!continuationToken) {
6008
- result = yield tslib.__await(this._listAvailableSkusByResourceGroup(resourceGroupName, location, availableSkuRequest, options));
6009
- let page = result.value || [];
6010
- continuationToken = result.nextLink;
6011
- setContinuationToken(page, continuationToken);
6012
- yield yield tslib.__await(page);
6013
- }
6014
- while (continuationToken) {
6015
- result = yield tslib.__await(this._listAvailableSkusByResourceGroupNext(resourceGroupName, location, availableSkuRequest, continuationToken, options));
6016
- continuationToken = result.nextLink;
6017
- let page = result.value || [];
6018
- setContinuationToken(page, continuationToken);
6019
- yield yield tslib.__await(page);
6020
- }
6021
- });
6022
- }
6023
- listAvailableSkusByResourceGroupPagingAll(resourceGroupName, location, availableSkuRequest, options) {
6024
- return tslib.__asyncGenerator(this, arguments, function* listAvailableSkusByResourceGroupPagingAll_1() {
6025
- var _a, e_1, _b, _c;
6026
- try {
6027
- for (var _d = true, _e = tslib.__asyncValues(this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
6028
- _c = _f.value;
6029
- _d = false;
6030
- const page = _c;
6031
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
6032
- }
6033
- }
6034
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
6035
- finally {
6036
- try {
6037
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
6038
- }
6039
- finally { if (e_1) throw e_1.error; }
6040
- }
6041
- });
6042
- }
6043
- /**
6044
- * This method provides the list of available skus for the given subscription, resource group and
6045
- * location.
6046
- * @param resourceGroupName The Resource Group Name
6047
- * @param location The location of the resource
6048
- * @param availableSkuRequest Filters for showing the available skus.
6049
- * @param options The options parameters.
6050
- */
6051
- _listAvailableSkusByResourceGroup(resourceGroupName, location, availableSkuRequest, options) {
6052
- return this.client.sendOperationRequest({ resourceGroupName, location, availableSkuRequest, options }, listAvailableSkusByResourceGroupOperationSpec);
6053
- }
6054
- /**
6055
- * [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer
6056
- * shipping address and provide alternate addresses if any.
6057
- * @param location The location of the resource
6058
- * @param validateAddress Shipping address of the customer.
6059
- * @param options The options parameters.
6060
- */
6061
- validateAddress(location, validateAddress, options) {
6062
- return this.client.sendOperationRequest({ location, validateAddress, options }, validateAddressOperationSpec);
6063
- }
6064
- /**
6065
- * This method does all necessary pre-job creation validation under resource group.
6066
- * @param resourceGroupName The Resource Group Name
6067
- * @param location The location of the resource
6068
- * @param validationRequest Inputs of the customer.
6069
- * @param options The options parameters.
6070
- */
6071
- validateInputsByResourceGroup(resourceGroupName, location, validationRequest, options) {
6072
- return this.client.sendOperationRequest({ resourceGroupName, location, validationRequest, options }, validateInputsByResourceGroupOperationSpec);
6073
- }
6074
- /**
6075
- * This method does all necessary pre-job creation validation under subscription.
6076
- * @param location The location of the resource
6077
- * @param validationRequest Inputs of the customer.
6078
- * @param options The options parameters.
6079
- */
6080
- validateInputs(location, validationRequest, options) {
6081
- return this.client.sendOperationRequest({ location, validationRequest, options }, validateInputsOperationSpec);
6082
- }
6083
- /**
6084
- * This API provides configuration details specific to given region/location at Subscription level.
6085
- * @param location The location of the resource
6086
- * @param regionConfigurationRequest Request body to get the configuration for the region.
6087
- * @param options The options parameters.
6088
- */
6089
- regionConfiguration(location, regionConfigurationRequest, options) {
6090
- return this.client.sendOperationRequest({ location, regionConfigurationRequest, options }, regionConfigurationOperationSpec);
6091
- }
6092
- /**
6093
- * This API provides configuration details specific to given region/location at Resource group level.
6094
- * @param resourceGroupName The Resource Group Name
6095
- * @param location The location of the resource
6096
- * @param regionConfigurationRequest Request body to get the configuration for the region at resource
6097
- * group level.
6098
- * @param options The options parameters.
6099
- */
6100
- regionConfigurationByResourceGroup(resourceGroupName, location, regionConfigurationRequest, options) {
6101
- return this.client.sendOperationRequest({ resourceGroupName, location, regionConfigurationRequest, options }, regionConfigurationByResourceGroupOperationSpec);
6102
- }
6103
- /**
6104
- * ListAvailableSkusByResourceGroupNext
6105
- * @param resourceGroupName The Resource Group Name
6106
- * @param location The location of the resource
6107
- * @param availableSkuRequest Filters for showing the available skus.
6108
- * @param nextLink The nextLink from the previous successful call to the
6109
- * ListAvailableSkusByResourceGroup method.
6110
- * @param options The options parameters.
6111
- */
6112
- _listAvailableSkusByResourceGroupNext(resourceGroupName, location, availableSkuRequest, nextLink, options) {
6113
- return this.client.sendOperationRequest({ resourceGroupName, location, availableSkuRequest, nextLink, options }, listAvailableSkusByResourceGroupNextOperationSpec);
6114
- }
6115
- }
6116
- // Operation Specifications
6117
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6118
- const listAvailableSkusByResourceGroupOperationSpec = {
6119
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus",
6120
- httpMethod: "POST",
6121
- responses: {
6122
- 200: {
6123
- bodyMapper: AvailableSkusResult
6124
- },
6125
- default: {
6126
- bodyMapper: ApiError
6127
- }
6128
- },
6129
- requestBody: availableSkuRequest,
6130
- queryParameters: [apiVersion],
6131
- urlParameters: [
6132
- $host,
6133
- subscriptionId,
6134
- resourceGroupName,
6135
- location
6136
- ],
6137
- headerParameters: [accept, contentType],
6138
- mediaType: "json",
6139
- serializer: serializer$1
6140
- };
6141
- const validateAddressOperationSpec = {
6142
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress",
6143
- httpMethod: "POST",
6144
- responses: {
6145
- 200: {
6146
- bodyMapper: AddressValidationOutput
6147
- },
6148
- default: {
6149
- bodyMapper: ApiError
6150
- }
6151
- },
6152
- requestBody: validateAddress,
6153
- queryParameters: [apiVersion],
6154
- urlParameters: [
6155
- $host,
6156
- subscriptionId,
6157
- location
6158
- ],
6159
- headerParameters: [accept, contentType],
6160
- mediaType: "json",
6161
- serializer: serializer$1
6162
- };
6163
- const validateInputsByResourceGroupOperationSpec = {
6164
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs",
6165
- httpMethod: "POST",
6166
- responses: {
6167
- 200: {
6168
- bodyMapper: ValidationResponse
6169
- },
6170
- default: {
6171
- bodyMapper: ApiError
6172
- }
6173
- },
6174
- requestBody: validationRequest,
6175
- queryParameters: [apiVersion],
6176
- urlParameters: [
6177
- $host,
6178
- subscriptionId,
6179
- resourceGroupName,
6180
- location
6181
- ],
6182
- headerParameters: [accept, contentType],
6183
- mediaType: "json",
6184
- serializer: serializer$1
6185
- };
6186
- const validateInputsOperationSpec = {
6187
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs",
6188
- httpMethod: "POST",
6189
- responses: {
6190
- 200: {
6191
- bodyMapper: ValidationResponse
6192
- },
6193
- default: {
6194
- bodyMapper: ApiError
6195
- }
6196
- },
6197
- requestBody: validationRequest,
6198
- queryParameters: [apiVersion],
6199
- urlParameters: [
6200
- $host,
6201
- subscriptionId,
6202
- location
6203
- ],
6204
- headerParameters: [accept, contentType],
6205
- mediaType: "json",
6206
- serializer: serializer$1
6207
- };
6208
- const regionConfigurationOperationSpec = {
6209
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration",
6210
- httpMethod: "POST",
6211
- responses: {
6212
- 200: {
6213
- bodyMapper: RegionConfigurationResponse
6214
- },
6215
- default: {
6216
- bodyMapper: ApiError
6217
- }
6218
- },
6219
- requestBody: regionConfigurationRequest,
6220
- queryParameters: [apiVersion],
6221
- urlParameters: [
6222
- $host,
6223
- subscriptionId,
6224
- location
6225
- ],
6226
- headerParameters: [accept, contentType],
6227
- mediaType: "json",
6228
- serializer: serializer$1
6229
- };
6230
- const regionConfigurationByResourceGroupOperationSpec = {
6231
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration",
6232
- httpMethod: "POST",
6233
- responses: {
6234
- 200: {
6235
- bodyMapper: RegionConfigurationResponse
6236
- },
6237
- default: {
6238
- bodyMapper: ApiError
6239
- }
6240
- },
6241
- requestBody: regionConfigurationRequest,
6242
- queryParameters: [apiVersion],
6243
- urlParameters: [
6244
- $host,
6245
- subscriptionId,
6246
- resourceGroupName,
6247
- location
6248
- ],
6249
- headerParameters: [accept, contentType],
6250
- mediaType: "json",
6251
- serializer: serializer$1
6252
- };
6253
- const listAvailableSkusByResourceGroupNextOperationSpec = {
6254
- path: "{nextLink}",
6255
- httpMethod: "GET",
6256
- responses: {
6257
- 200: {
6258
- bodyMapper: AvailableSkusResult
6259
- },
6260
- default: {
6261
- bodyMapper: ApiError
6262
- }
6263
- },
6264
- urlParameters: [
6265
- $host,
6266
- nextLink,
6267
- subscriptionId,
6268
- resourceGroupName,
6269
- location
6270
- ],
6271
- headerParameters: [accept, contentType],
6272
- mediaType: "json",
6273
- serializer: serializer$1
6274
- };
6275
-
6276
- /*
6277
- * Copyright (c) Microsoft Corporation.
6278
- * Licensed under the MIT License.
6279
- *
6280
- * Code generated by Microsoft (R) AutoRest Code Generator.
6281
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6282
- */
6283
- class DataBoxManagementClient extends coreClient__namespace.ServiceClient {
6284
- /**
6285
- * Initializes a new instance of the DataBoxManagementClient class.
6286
- * @param credentials Subscription credentials which uniquely identify client subscription.
6287
- * @param subscriptionId The Subscription Id
6288
- * @param options The parameter options
6289
- */
6290
- constructor(credentials, subscriptionId, options) {
6291
- var _a, _b, _c;
6292
- if (credentials === undefined) {
6293
- throw new Error("'credentials' cannot be null");
6294
- }
6295
- if (subscriptionId === undefined) {
6296
- throw new Error("'subscriptionId' cannot be null");
6297
- }
6298
- // Initializing default values for options
6299
- if (!options) {
6300
- options = {};
6301
- }
6302
- const defaults = {
6303
- requestContentType: "application/json; charset=utf-8",
6304
- credential: credentials
6305
- };
6306
- const packageDetails = `azsdk-js-arm-databox/5.0.1`;
6307
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6308
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
6309
- : `${packageDetails}`;
6310
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
6311
- userAgentPrefix
6312
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6313
- super(optionsWithDefaults);
6314
- let bearerTokenAuthenticationPolicyFound = false;
6315
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6316
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
6317
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6318
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
6319
- }
6320
- if (!options ||
6321
- !options.pipeline ||
6322
- options.pipeline.getOrderedPolicies().length == 0 ||
6323
- !bearerTokenAuthenticationPolicyFound) {
6324
- this.pipeline.removePolicy({
6325
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
6326
- });
6327
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6328
- credential: credentials,
6329
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
6330
- challengeCallbacks: {
6331
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6332
- }
6333
- }));
6334
- }
6335
- // Parameter assignments
6336
- this.subscriptionId = subscriptionId;
6337
- // Assigning values to Constant parameters
6338
- this.$host = options.$host || "https://management.azure.com";
6339
- this.apiVersion = options.apiVersion || "2022-12-01";
6340
- this.operations = new OperationsImpl(this);
6341
- this.jobs = new JobsImpl(this);
6342
- this.service = new ServiceImpl(this);
6343
- this.addCustomApiVersionPolicy(options.apiVersion);
6344
- }
6345
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
6346
- addCustomApiVersionPolicy(apiVersion) {
6347
- if (!apiVersion) {
6348
- return;
6349
- }
6350
- const apiVersionPolicy = {
6351
- name: "CustomApiVersionPolicy",
6352
- sendRequest(request, next) {
6353
- return tslib.__awaiter(this, void 0, void 0, function* () {
6354
- const param = request.url.split("?");
6355
- if (param.length > 1) {
6356
- const newParams = param[1].split("&").map((item) => {
6357
- if (item.indexOf("api-version") > -1) {
6358
- return "api-version=" + apiVersion;
6359
- }
6360
- else {
6361
- return item;
6362
- }
6363
- });
6364
- request.url = param[0] + "?" + newParams.join("&");
6365
- }
6366
- return next(request);
6367
- });
6368
- }
6369
- };
6370
- this.pipeline.addPolicy(apiVersionPolicy);
6371
- }
6372
- /**
6373
- * Request to mitigate for a given job
6374
- * @param jobName The name of the job Resource within the specified resource group. job names must be
6375
- * between 3 and 24 characters in length and use any alphanumeric and underscore only
6376
- * @param resourceGroupName The Resource Group Name
6377
- * @param mitigateJobRequest Mitigation Request
6378
- * @param options The options parameters.
6379
- */
6380
- mitigate(jobName, resourceGroupName, mitigateJobRequest, options) {
6381
- return this.sendOperationRequest({ jobName, resourceGroupName, mitigateJobRequest, options }, mitigateOperationSpec);
6382
- }
6383
- }
6384
- // Operation Specifications
6385
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6386
- const mitigateOperationSpec = {
6387
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/mitigate",
6388
- httpMethod: "POST",
6389
- responses: {
6390
- 204: {},
6391
- default: {
6392
- bodyMapper: ApiError
6393
- }
6394
- },
6395
- requestBody: mitigateJobRequest,
6396
- queryParameters: [apiVersion],
6397
- urlParameters: [
6398
- $host,
6399
- subscriptionId,
6400
- jobName,
6401
- resourceGroupName
6402
- ],
6403
- headerParameters: [accept, contentType],
6404
- mediaType: "json",
6405
- serializer
6406
- };
6407
-
6408
- exports.DataBoxManagementClient = DataBoxManagementClient;
6409
- exports.getContinuationToken = getContinuationToken;
6410
- //# sourceMappingURL=index.js.map
4479
+ //# sourceMappingURL=mappers.js.map