@azure/arm-resourceconnector 1.0.0 → 2.0.0-beta.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 (336) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +29 -23
  3. package/dist/browser/api/appliances/index.d.ts +3 -0
  4. package/dist/browser/api/appliances/index.js +4 -0
  5. package/dist/browser/api/appliances/index.js.map +1 -0
  6. package/dist/browser/api/appliances/operations.d.ts +56 -0
  7. package/dist/browser/api/appliances/operations.js +321 -0
  8. package/dist/browser/api/appliances/operations.js.map +1 -0
  9. package/dist/browser/api/appliances/options.d.ts +43 -0
  10. package/dist/browser/api/appliances/options.js +4 -0
  11. package/dist/browser/api/appliances/options.js.map +1 -0
  12. package/dist/browser/api/index.d.ts +2 -0
  13. package/dist/browser/api/index.js +4 -0
  14. package/dist/browser/api/index.js.map +1 -0
  15. package/dist/browser/api/resourceConnectorManagementContext.d.ts +22 -0
  16. package/dist/browser/api/resourceConnectorManagementContext.js +37 -0
  17. package/dist/browser/api/resourceConnectorManagementContext.js.map +1 -0
  18. package/dist/browser/classic/appliances/index.d.ts +37 -0
  19. package/dist/browser/classic/appliances/index.js +24 -0
  20. package/dist/browser/classic/appliances/index.js.map +1 -0
  21. package/dist/browser/classic/index.d.ts +2 -0
  22. package/dist/browser/classic/index.js +4 -0
  23. package/dist/browser/classic/index.js.map +1 -0
  24. package/dist/browser/index.d.ts +11 -0
  25. package/dist/browser/index.js +8 -0
  26. package/dist/browser/index.js.map +1 -0
  27. package/dist/browser/logger.d.ts +2 -0
  28. package/dist/browser/logger.js +5 -0
  29. package/dist/browser/logger.js.map +1 -0
  30. package/dist/browser/models/index.d.ts +2 -0
  31. package/dist/browser/models/index.js +4 -0
  32. package/dist/browser/models/index.js.map +1 -0
  33. package/dist/browser/models/models.d.ts +651 -0
  34. package/dist/browser/models/models.js +600 -0
  35. package/dist/browser/models/models.js.map +1 -0
  36. package/dist/browser/package.json +3 -0
  37. package/dist/browser/resourceConnectorManagementClient.d.ts +15 -0
  38. package/dist/browser/resourceConnectorManagementClient.js +33 -0
  39. package/dist/browser/resourceConnectorManagementClient.js.map +1 -0
  40. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  41. package/dist/browser/restorePollerHelpers.js +89 -0
  42. package/dist/browser/restorePollerHelpers.js.map +1 -0
  43. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  44. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  45. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  46. package/dist/browser/static-helpers/pagingHelpers.d.ts +73 -0
  47. package/dist/browser/static-helpers/pagingHelpers.js +121 -0
  48. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  49. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  50. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  51. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  52. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  53. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  54. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  55. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  56. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  57. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  58. package/dist/commonjs/api/appliances/index.d.ts +3 -0
  59. package/dist/commonjs/api/appliances/index.js +18 -0
  60. package/dist/commonjs/api/appliances/index.js.map +1 -0
  61. package/dist/commonjs/api/appliances/operations.d.ts +56 -0
  62. package/dist/commonjs/api/appliances/operations.js +356 -0
  63. package/dist/commonjs/api/appliances/operations.js.map +1 -0
  64. package/dist/commonjs/api/appliances/options.d.ts +43 -0
  65. package/dist/commonjs/api/appliances/options.js +5 -0
  66. package/dist/commonjs/api/appliances/options.js.map +1 -0
  67. package/dist/commonjs/api/index.d.ts +2 -0
  68. package/dist/commonjs/api/index.js +8 -0
  69. package/dist/commonjs/api/index.js.map +1 -0
  70. package/dist/commonjs/api/resourceConnectorManagementContext.d.ts +22 -0
  71. package/dist/commonjs/api/resourceConnectorManagementContext.js +40 -0
  72. package/dist/commonjs/api/resourceConnectorManagementContext.js.map +1 -0
  73. package/dist/commonjs/classic/appliances/index.d.ts +37 -0
  74. package/dist/commonjs/classic/appliances/index.js +27 -0
  75. package/dist/commonjs/classic/appliances/index.js.map +1 -0
  76. package/dist/commonjs/classic/index.d.ts +2 -0
  77. package/dist/commonjs/classic/index.js +5 -0
  78. package/dist/commonjs/classic/index.js.map +1 -0
  79. package/dist/commonjs/index.d.ts +11 -0
  80. package/dist/commonjs/index.js +22 -0
  81. package/dist/commonjs/index.js.map +1 -0
  82. package/dist/commonjs/logger.d.ts +2 -0
  83. package/dist/commonjs/logger.js +8 -0
  84. package/dist/commonjs/logger.js.map +1 -0
  85. package/dist/commonjs/models/index.d.ts +2 -0
  86. package/dist/commonjs/models/index.js +16 -0
  87. package/dist/commonjs/models/index.js.map +1 -0
  88. package/dist/commonjs/models/models.d.ts +651 -0
  89. package/dist/commonjs/models/models.js +659 -0
  90. package/dist/commonjs/models/models.js.map +1 -0
  91. package/dist/commonjs/package.json +3 -0
  92. package/dist/commonjs/resourceConnectorManagementClient.d.ts +15 -0
  93. package/dist/commonjs/resourceConnectorManagementClient.js +37 -0
  94. package/dist/commonjs/resourceConnectorManagementClient.js.map +1 -0
  95. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  96. package/dist/commonjs/restorePollerHelpers.js +92 -0
  97. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  98. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  99. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  100. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  101. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +73 -0
  102. package/dist/commonjs/static-helpers/pagingHelpers.js +124 -0
  103. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  104. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  105. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  106. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  107. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  108. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +20 -0
  109. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  110. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  111. package/dist/commonjs/static-helpers/urlTemplate.js +203 -0
  112. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  113. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  114. package/dist/esm/api/appliances/index.d.ts +3 -0
  115. package/dist/esm/api/appliances/index.js +4 -0
  116. package/dist/esm/api/appliances/index.js.map +1 -0
  117. package/dist/esm/api/appliances/operations.d.ts +56 -0
  118. package/dist/esm/api/appliances/operations.js +321 -0
  119. package/dist/esm/api/appliances/operations.js.map +1 -0
  120. package/dist/esm/api/appliances/options.d.ts +43 -0
  121. package/dist/esm/api/appliances/options.js +4 -0
  122. package/dist/esm/api/appliances/options.js.map +1 -0
  123. package/dist/esm/api/index.d.ts +2 -0
  124. package/dist/esm/api/index.js +4 -0
  125. package/dist/esm/api/index.js.map +1 -0
  126. package/dist/esm/api/resourceConnectorManagementContext.d.ts +22 -0
  127. package/dist/esm/api/resourceConnectorManagementContext.js +37 -0
  128. package/dist/esm/api/resourceConnectorManagementContext.js.map +1 -0
  129. package/dist/esm/classic/appliances/index.d.ts +37 -0
  130. package/dist/esm/classic/appliances/index.js +24 -0
  131. package/dist/esm/classic/appliances/index.js.map +1 -0
  132. package/dist/esm/classic/index.d.ts +2 -0
  133. package/dist/esm/classic/index.js +4 -0
  134. package/dist/esm/classic/index.js.map +1 -0
  135. package/dist/esm/index.d.ts +11 -0
  136. package/dist/esm/index.js +8 -0
  137. package/dist/esm/index.js.map +1 -0
  138. package/dist/esm/logger.d.ts +2 -0
  139. package/dist/esm/logger.js +5 -0
  140. package/dist/esm/logger.js.map +1 -0
  141. package/dist/esm/models/index.d.ts +2 -0
  142. package/dist/esm/models/index.js +4 -0
  143. package/dist/esm/models/index.js.map +1 -0
  144. package/dist/esm/models/models.d.ts +651 -0
  145. package/dist/esm/models/models.js +600 -0
  146. package/dist/esm/models/models.js.map +1 -0
  147. package/dist/esm/package.json +3 -0
  148. package/dist/esm/resourceConnectorManagementClient.d.ts +15 -0
  149. package/dist/esm/resourceConnectorManagementClient.js +33 -0
  150. package/dist/esm/resourceConnectorManagementClient.js.map +1 -0
  151. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  152. package/dist/esm/restorePollerHelpers.js +89 -0
  153. package/dist/esm/restorePollerHelpers.js.map +1 -0
  154. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  155. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  156. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  157. package/dist/esm/static-helpers/pagingHelpers.d.ts +73 -0
  158. package/dist/esm/static-helpers/pagingHelpers.js +121 -0
  159. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  160. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  161. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  162. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  163. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  164. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  165. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  166. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  167. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  168. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  169. package/dist/react-native/api/appliances/index.d.ts +3 -0
  170. package/dist/react-native/api/appliances/index.js +4 -0
  171. package/dist/react-native/api/appliances/index.js.map +1 -0
  172. package/dist/react-native/api/appliances/operations.d.ts +56 -0
  173. package/dist/react-native/api/appliances/operations.js +321 -0
  174. package/dist/react-native/api/appliances/operations.js.map +1 -0
  175. package/dist/react-native/api/appliances/options.d.ts +43 -0
  176. package/dist/react-native/api/appliances/options.js +4 -0
  177. package/dist/react-native/api/appliances/options.js.map +1 -0
  178. package/dist/react-native/api/index.d.ts +2 -0
  179. package/dist/react-native/api/index.js +4 -0
  180. package/dist/react-native/api/index.js.map +1 -0
  181. package/dist/react-native/api/resourceConnectorManagementContext.d.ts +22 -0
  182. package/dist/react-native/api/resourceConnectorManagementContext.js +37 -0
  183. package/dist/react-native/api/resourceConnectorManagementContext.js.map +1 -0
  184. package/dist/react-native/classic/appliances/index.d.ts +37 -0
  185. package/dist/react-native/classic/appliances/index.js +24 -0
  186. package/dist/react-native/classic/appliances/index.js.map +1 -0
  187. package/dist/react-native/classic/index.d.ts +2 -0
  188. package/dist/react-native/classic/index.js +4 -0
  189. package/dist/react-native/classic/index.js.map +1 -0
  190. package/dist/react-native/index.d.ts +11 -0
  191. package/dist/react-native/index.js +8 -0
  192. package/dist/react-native/index.js.map +1 -0
  193. package/dist/react-native/logger.d.ts +2 -0
  194. package/dist/react-native/logger.js +5 -0
  195. package/dist/react-native/logger.js.map +1 -0
  196. package/dist/react-native/models/index.d.ts +2 -0
  197. package/dist/react-native/models/index.js +4 -0
  198. package/dist/react-native/models/index.js.map +1 -0
  199. package/dist/react-native/models/models.d.ts +651 -0
  200. package/dist/react-native/models/models.js +600 -0
  201. package/dist/react-native/models/models.js.map +1 -0
  202. package/dist/react-native/package.json +3 -0
  203. package/dist/react-native/resourceConnectorManagementClient.d.ts +15 -0
  204. package/dist/react-native/resourceConnectorManagementClient.js +33 -0
  205. package/dist/react-native/resourceConnectorManagementClient.js.map +1 -0
  206. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  207. package/dist/react-native/restorePollerHelpers.js +89 -0
  208. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  209. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  210. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  211. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  212. package/dist/react-native/static-helpers/pagingHelpers.d.ts +73 -0
  213. package/dist/react-native/static-helpers/pagingHelpers.js +121 -0
  214. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  215. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  216. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  217. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  218. package/dist/react-native/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  219. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js +17 -0
  220. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  221. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  222. package/dist/react-native/static-helpers/urlTemplate.js +200 -0
  223. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  224. package/package.json +166 -92
  225. package/CHANGELOG.md +0 -5
  226. package/dist/index.js +0 -1958
  227. package/dist/index.js.map +0 -1
  228. package/dist/index.min.js +0 -1
  229. package/dist/index.min.js.map +0 -1
  230. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +0 -44
  233. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +0 -1
  234. package/dist-esm/samples-dev/appliancesDeleteSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/appliancesDeleteSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/appliancesDeleteSample.js +0 -39
  237. package/dist-esm/samples-dev/appliancesDeleteSample.js.map +0 -1
  238. package/dist-esm/samples-dev/appliancesGetSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/appliancesGetSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/appliancesGetSample.js +0 -39
  241. package/dist-esm/samples-dev/appliancesGetSample.js.map +0 -1
  242. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +0 -37
  245. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +0 -1
  246. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +0 -40
  249. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +0 -1
  250. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +0 -59
  253. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +0 -1
  254. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts +0 -2
  255. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +0 -58
  257. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +0 -1
  258. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts +0 -2
  259. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts.map +0 -1
  260. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +0 -39
  261. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +0 -1
  262. package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +0 -2
  263. package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/appliancesListKeysSample.js +0 -39
  265. package/dist-esm/samples-dev/appliancesListKeysSample.js.map +0 -1
  266. package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts +0 -2
  267. package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts.map +0 -1
  268. package/dist-esm/samples-dev/appliancesListOperationsSample.js +0 -56
  269. package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +0 -1
  270. package/dist-esm/samples-dev/appliancesUpdateSample.d.ts +0 -2
  271. package/dist-esm/samples-dev/appliancesUpdateSample.d.ts.map +0 -1
  272. package/dist-esm/samples-dev/appliancesUpdateSample.js +0 -41
  273. package/dist-esm/samples-dev/appliancesUpdateSample.js.map +0 -1
  274. package/dist-esm/src/index.d.ts +0 -6
  275. package/dist-esm/src/index.d.ts.map +0 -1
  276. package/dist-esm/src/index.js +0 -13
  277. package/dist-esm/src/index.js.map +0 -1
  278. package/dist-esm/src/lroImpl.d.ts +0 -11
  279. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  280. package/dist-esm/src/lroImpl.js +0 -21
  281. package/dist-esm/src/lroImpl.js.map +0 -1
  282. package/dist-esm/src/models/index.d.ts +0 -715
  283. package/dist-esm/src/models/index.d.ts.map +0 -1
  284. package/dist-esm/src/models/index.js +0 -132
  285. package/dist-esm/src/models/index.js.map +0 -1
  286. package/dist-esm/src/models/mappers.d.ts +0 -28
  287. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  288. package/dist-esm/src/models/mappers.js +0 -771
  289. package/dist-esm/src/models/mappers.js.map +0 -1
  290. package/dist-esm/src/models/parameters.d.ts +0 -13
  291. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  292. package/dist-esm/src/models/parameters.js +0 -124
  293. package/dist-esm/src/models/parameters.js.map +0 -1
  294. package/dist-esm/src/operations/appliances.d.ts +0 -149
  295. package/dist-esm/src/operations/appliances.d.ts.map +0 -1
  296. package/dist-esm/src/operations/appliances.js +0 -734
  297. package/dist-esm/src/operations/appliances.js.map +0 -1
  298. package/dist-esm/src/operations/index.d.ts +0 -2
  299. package/dist-esm/src/operations/index.d.ts.map +0 -1
  300. package/dist-esm/src/operations/index.js +0 -9
  301. package/dist-esm/src/operations/index.js.map +0 -1
  302. package/dist-esm/src/operationsInterfaces/appliances.d.ts +0 -98
  303. package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +0 -1
  304. package/dist-esm/src/operationsInterfaces/appliances.js +0 -9
  305. package/dist-esm/src/operationsInterfaces/appliances.js.map +0 -1
  306. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  307. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  308. package/dist-esm/src/operationsInterfaces/index.js +0 -9
  309. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  310. package/dist-esm/src/pagingHelper.d.ts +0 -13
  311. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  312. package/dist-esm/src/pagingHelper.js +0 -32
  313. package/dist-esm/src/pagingHelper.js.map +0 -1
  314. package/dist-esm/src/resourceConnectorManagementClient.d.ts +0 -21
  315. package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +0 -1
  316. package/dist-esm/src/resourceConnectorManagementClient.js +0 -98
  317. package/dist-esm/src/resourceConnectorManagementClient.js.map +0 -1
  318. package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts +0 -4
  319. package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts.map +0 -1
  320. package/dist-esm/test/resourceconnnector__operations_test.spec.js +0 -123
  321. package/dist-esm/test/resourceconnnector__operations_test.spec.js.map +0 -1
  322. package/review/arm-resourceconnector.api.md +0 -448
  323. package/rollup.config.js +0 -122
  324. package/src/index.ts +0 -13
  325. package/src/lroImpl.ts +0 -42
  326. package/src/models/index.ts +0 -786
  327. package/src/models/mappers.ts +0 -811
  328. package/src/models/parameters.ts +0 -145
  329. package/src/operations/appliances.ts +0 -916
  330. package/src/operations/index.ts +0 -9
  331. package/src/operationsInterfaces/appliances.ts +0 -181
  332. package/src/operationsInterfaces/index.ts +0 -9
  333. package/src/pagingHelper.ts +0 -39
  334. package/src/resourceConnectorManagementClient.ts +0 -156
  335. package/tsconfig.json +0 -33
  336. package/types/arm-resourceconnector.d.ts +0 -911
package/dist/index.js DELETED
@@ -1,1958 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n["default"] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
-
31
- /*
32
- * Copyright (c) Microsoft Corporation.
33
- * Licensed under the MIT License.
34
- *
35
- * Code generated by Microsoft (R) AutoRest Code Generator.
36
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
- */
38
- const pageMap = new WeakMap();
39
- /**
40
- * Given the last `.value` produced by the `byPage` iterator,
41
- * returns a continuation token that can be used to begin paging from
42
- * that point later.
43
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
- * @returns The continuation token that can be passed into byPage() during future calls.
45
- */
46
- function getContinuationToken(page) {
47
- var _a;
48
- if (typeof page !== "object" || page === null) {
49
- return undefined;
50
- }
51
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
- }
53
- function setContinuationToken(page, continuationToken) {
54
- var _a;
55
- if (typeof page !== "object" || page === null || !continuationToken) {
56
- return;
57
- }
58
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
- pageInfo.continuationToken = continuationToken;
60
- pageMap.set(page, pageInfo);
61
- }
62
-
63
- /*
64
- * Copyright (c) Microsoft Corporation.
65
- * Licensed under the MIT License.
66
- *
67
- * Code generated by Microsoft (R) AutoRest Code Generator.
68
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
- */
70
- /** Known values of {@link ResourceIdentityType} that the service accepts. */
71
- exports.KnownResourceIdentityType = void 0;
72
- (function (KnownResourceIdentityType) {
73
- /** SystemAssigned */
74
- KnownResourceIdentityType["SystemAssigned"] = "SystemAssigned";
75
- /** None */
76
- KnownResourceIdentityType["None"] = "None";
77
- })(exports.KnownResourceIdentityType || (exports.KnownResourceIdentityType = {}));
78
- /** Known values of {@link Distro} that the service accepts. */
79
- exports.KnownDistro = void 0;
80
- (function (KnownDistro) {
81
- /** AKSEdge */
82
- KnownDistro["AKSEdge"] = "AKSEdge";
83
- })(exports.KnownDistro || (exports.KnownDistro = {}));
84
- /** Known values of {@link Provider} that the service accepts. */
85
- exports.KnownProvider = void 0;
86
- (function (KnownProvider) {
87
- /** VMWare */
88
- KnownProvider["VMWare"] = "VMWare";
89
- /** HCI */
90
- KnownProvider["HCI"] = "HCI";
91
- /** Scvmm */
92
- KnownProvider["Scvmm"] = "SCVMM";
93
- /** KubeVirt */
94
- KnownProvider["KubeVirt"] = "KubeVirt";
95
- /** OpenStack */
96
- KnownProvider["OpenStack"] = "OpenStack";
97
- })(exports.KnownProvider || (exports.KnownProvider = {}));
98
- /** Known values of {@link Status} that the service accepts. */
99
- exports.KnownStatus = void 0;
100
- (function (KnownStatus) {
101
- /** WaitingForHeartbeat */
102
- KnownStatus["WaitingForHeartbeat"] = "WaitingForHeartbeat";
103
- /** Validating */
104
- KnownStatus["Validating"] = "Validating";
105
- /** Connecting */
106
- KnownStatus["Connecting"] = "Connecting";
107
- /** Connected */
108
- KnownStatus["Connected"] = "Connected";
109
- /** Running */
110
- KnownStatus["Running"] = "Running";
111
- /** PreparingForUpgrade */
112
- KnownStatus["PreparingForUpgrade"] = "PreparingForUpgrade";
113
- /** UpgradePrerequisitesCompleted */
114
- KnownStatus["UpgradePrerequisitesCompleted"] = "UpgradePrerequisitesCompleted";
115
- /** PreUpgrade */
116
- KnownStatus["PreUpgrade"] = "PreUpgrade";
117
- /** UpgradingKvaio */
118
- KnownStatus["UpgradingKvaio"] = "UpgradingKVAIO";
119
- /** WaitingForKvaio */
120
- KnownStatus["WaitingForKvaio"] = "WaitingForKVAIO";
121
- /** ImagePending */
122
- KnownStatus["ImagePending"] = "ImagePending";
123
- /** ImageProvisioning */
124
- KnownStatus["ImageProvisioning"] = "ImageProvisioning";
125
- /** ImageProvisioned */
126
- KnownStatus["ImageProvisioned"] = "ImageProvisioned";
127
- /** ImageDownloading */
128
- KnownStatus["ImageDownloading"] = "ImageDownloading";
129
- /** ImageDownloaded */
130
- KnownStatus["ImageDownloaded"] = "ImageDownloaded";
131
- /** ImageDeprovisioning */
132
- KnownStatus["ImageDeprovisioning"] = "ImageDeprovisioning";
133
- /** ImageUnknown */
134
- KnownStatus["ImageUnknown"] = "ImageUnknown";
135
- /** UpdatingCloudOperator */
136
- KnownStatus["UpdatingCloudOperator"] = "UpdatingCloudOperator";
137
- /** WaitingForCloudOperator */
138
- KnownStatus["WaitingForCloudOperator"] = "WaitingForCloudOperator";
139
- /** UpdatingCapi */
140
- KnownStatus["UpdatingCapi"] = "UpdatingCAPI";
141
- /** UpdatingCluster */
142
- KnownStatus["UpdatingCluster"] = "UpdatingCluster";
143
- /** PostUpgrade */
144
- KnownStatus["PostUpgrade"] = "PostUpgrade";
145
- /** UpgradeComplete */
146
- KnownStatus["UpgradeComplete"] = "UpgradeComplete";
147
- /** UpgradeClusterExtensionFailedToDelete */
148
- KnownStatus["UpgradeClusterExtensionFailedToDelete"] = "UpgradeClusterExtensionFailedToDelete";
149
- /** UpgradeFailed */
150
- KnownStatus["UpgradeFailed"] = "UpgradeFailed";
151
- /** Offline */
152
- KnownStatus["Offline"] = "Offline";
153
- /** None */
154
- KnownStatus["None"] = "None";
155
- })(exports.KnownStatus || (exports.KnownStatus = {}));
156
- /** Known values of {@link CreatedByType} that the service accepts. */
157
- exports.KnownCreatedByType = void 0;
158
- (function (KnownCreatedByType) {
159
- /** User */
160
- KnownCreatedByType["User"] = "User";
161
- /** Application */
162
- KnownCreatedByType["Application"] = "Application";
163
- /** ManagedIdentity */
164
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
165
- /** Key */
166
- KnownCreatedByType["Key"] = "Key";
167
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
168
- /** Known values of {@link AccessProfileType} that the service accepts. */
169
- exports.KnownAccessProfileType = void 0;
170
- (function (KnownAccessProfileType) {
171
- /** ClusterUser */
172
- KnownAccessProfileType["ClusterUser"] = "clusterUser";
173
- /** ClusterCustomerUser */
174
- KnownAccessProfileType["ClusterCustomerUser"] = "clusterCustomerUser";
175
- })(exports.KnownAccessProfileType || (exports.KnownAccessProfileType = {}));
176
- /** Known values of {@link ArtifactType} that the service accepts. */
177
- exports.KnownArtifactType = void 0;
178
- (function (KnownArtifactType) {
179
- /** LogsArtifactType */
180
- KnownArtifactType["LogsArtifactType"] = "LogsArtifactType";
181
- })(exports.KnownArtifactType || (exports.KnownArtifactType = {}));
182
- /** Known values of {@link SSHKeyType} that the service accepts. */
183
- exports.KnownSSHKeyType = void 0;
184
- (function (KnownSSHKeyType) {
185
- /** SSHCustomerUser */
186
- KnownSSHKeyType["SSHCustomerUser"] = "SSHCustomerUser";
187
- /** ManagementCAKey */
188
- KnownSSHKeyType["ManagementCAKey"] = "ManagementCAKey";
189
- /** LogsKey */
190
- KnownSSHKeyType["LogsKey"] = "LogsKey";
191
- /** ScopedAccessKey */
192
- KnownSSHKeyType["ScopedAccessKey"] = "ScopedAccessKey";
193
- })(exports.KnownSSHKeyType || (exports.KnownSSHKeyType = {}));
194
-
195
- /*
196
- * Copyright (c) Microsoft Corporation.
197
- * Licensed under the MIT License.
198
- *
199
- * Code generated by Microsoft (R) AutoRest Code Generator.
200
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
201
- */
202
- const ApplianceOperationsList = {
203
- type: {
204
- name: "Composite",
205
- className: "ApplianceOperationsList",
206
- modelProperties: {
207
- nextLink: {
208
- serializedName: "nextLink",
209
- type: {
210
- name: "String"
211
- }
212
- },
213
- value: {
214
- serializedName: "value",
215
- required: true,
216
- type: {
217
- name: "Sequence",
218
- element: {
219
- type: {
220
- name: "Composite",
221
- className: "ApplianceOperation"
222
- }
223
- }
224
- }
225
- }
226
- }
227
- }
228
- };
229
- const ApplianceOperation = {
230
- type: {
231
- name: "Composite",
232
- className: "ApplianceOperation",
233
- modelProperties: {
234
- isDataAction: {
235
- serializedName: "isDataAction",
236
- readOnly: true,
237
- type: {
238
- name: "Boolean"
239
- }
240
- },
241
- name: {
242
- serializedName: "name",
243
- readOnly: true,
244
- type: {
245
- name: "String"
246
- }
247
- },
248
- origin: {
249
- serializedName: "origin",
250
- readOnly: true,
251
- type: {
252
- name: "String"
253
- }
254
- },
255
- description: {
256
- serializedName: "display.description",
257
- readOnly: true,
258
- type: {
259
- name: "String"
260
- }
261
- },
262
- operation: {
263
- serializedName: "display.operation",
264
- readOnly: true,
265
- type: {
266
- name: "String"
267
- }
268
- },
269
- provider: {
270
- serializedName: "display.provider",
271
- readOnly: true,
272
- type: {
273
- name: "String"
274
- }
275
- },
276
- resource: {
277
- serializedName: "display.resource",
278
- readOnly: true,
279
- type: {
280
- name: "String"
281
- }
282
- }
283
- }
284
- }
285
- };
286
- const ErrorResponse = {
287
- type: {
288
- name: "Composite",
289
- className: "ErrorResponse",
290
- modelProperties: {
291
- error: {
292
- serializedName: "error",
293
- type: {
294
- name: "Composite",
295
- className: "ErrorDetail"
296
- }
297
- }
298
- }
299
- }
300
- };
301
- const ErrorDetail = {
302
- type: {
303
- name: "Composite",
304
- className: "ErrorDetail",
305
- modelProperties: {
306
- code: {
307
- serializedName: "code",
308
- readOnly: true,
309
- type: {
310
- name: "String"
311
- }
312
- },
313
- message: {
314
- serializedName: "message",
315
- readOnly: true,
316
- type: {
317
- name: "String"
318
- }
319
- },
320
- target: {
321
- serializedName: "target",
322
- readOnly: true,
323
- type: {
324
- name: "String"
325
- }
326
- },
327
- details: {
328
- serializedName: "details",
329
- readOnly: true,
330
- type: {
331
- name: "Sequence",
332
- element: {
333
- type: {
334
- name: "Composite",
335
- className: "ErrorDetail"
336
- }
337
- }
338
- }
339
- },
340
- additionalInfo: {
341
- serializedName: "additionalInfo",
342
- readOnly: true,
343
- type: {
344
- name: "Sequence",
345
- element: {
346
- type: {
347
- name: "Composite",
348
- className: "ErrorAdditionalInfo"
349
- }
350
- }
351
- }
352
- }
353
- }
354
- }
355
- };
356
- const ErrorAdditionalInfo = {
357
- type: {
358
- name: "Composite",
359
- className: "ErrorAdditionalInfo",
360
- modelProperties: {
361
- type: {
362
- serializedName: "type",
363
- readOnly: true,
364
- type: {
365
- name: "String"
366
- }
367
- },
368
- info: {
369
- serializedName: "info",
370
- readOnly: true,
371
- type: {
372
- name: "Dictionary",
373
- value: { type: { name: "any" } }
374
- }
375
- }
376
- }
377
- }
378
- };
379
- const ApplianceListResult = {
380
- type: {
381
- name: "Composite",
382
- className: "ApplianceListResult",
383
- modelProperties: {
384
- nextLink: {
385
- serializedName: "nextLink",
386
- readOnly: true,
387
- type: {
388
- name: "String"
389
- }
390
- },
391
- value: {
392
- serializedName: "value",
393
- readOnly: true,
394
- type: {
395
- name: "Sequence",
396
- element: {
397
- type: {
398
- name: "Composite",
399
- className: "Appliance"
400
- }
401
- }
402
- }
403
- }
404
- }
405
- }
406
- };
407
- const Identity = {
408
- type: {
409
- name: "Composite",
410
- className: "Identity",
411
- modelProperties: {
412
- principalId: {
413
- serializedName: "principalId",
414
- readOnly: true,
415
- type: {
416
- name: "String"
417
- }
418
- },
419
- tenantId: {
420
- serializedName: "tenantId",
421
- readOnly: true,
422
- type: {
423
- name: "String"
424
- }
425
- },
426
- type: {
427
- serializedName: "type",
428
- type: {
429
- name: "String"
430
- }
431
- }
432
- }
433
- }
434
- };
435
- const AppliancePropertiesInfrastructureConfig = {
436
- type: {
437
- name: "Composite",
438
- className: "AppliancePropertiesInfrastructureConfig",
439
- modelProperties: {
440
- provider: {
441
- serializedName: "provider",
442
- type: {
443
- name: "String"
444
- }
445
- }
446
- }
447
- }
448
- };
449
- const Resource = {
450
- type: {
451
- name: "Composite",
452
- className: "Resource",
453
- modelProperties: {
454
- id: {
455
- serializedName: "id",
456
- readOnly: true,
457
- type: {
458
- name: "String"
459
- }
460
- },
461
- name: {
462
- serializedName: "name",
463
- readOnly: true,
464
- type: {
465
- name: "String"
466
- }
467
- },
468
- type: {
469
- serializedName: "type",
470
- readOnly: true,
471
- type: {
472
- name: "String"
473
- }
474
- },
475
- systemData: {
476
- serializedName: "systemData",
477
- type: {
478
- name: "Composite",
479
- className: "SystemData"
480
- }
481
- }
482
- }
483
- }
484
- };
485
- const SystemData = {
486
- type: {
487
- name: "Composite",
488
- className: "SystemData",
489
- modelProperties: {
490
- createdBy: {
491
- serializedName: "createdBy",
492
- type: {
493
- name: "String"
494
- }
495
- },
496
- createdByType: {
497
- serializedName: "createdByType",
498
- type: {
499
- name: "String"
500
- }
501
- },
502
- createdAt: {
503
- serializedName: "createdAt",
504
- type: {
505
- name: "DateTime"
506
- }
507
- },
508
- lastModifiedBy: {
509
- serializedName: "lastModifiedBy",
510
- type: {
511
- name: "String"
512
- }
513
- },
514
- lastModifiedByType: {
515
- serializedName: "lastModifiedByType",
516
- type: {
517
- name: "String"
518
- }
519
- },
520
- lastModifiedAt: {
521
- serializedName: "lastModifiedAt",
522
- type: {
523
- name: "DateTime"
524
- }
525
- }
526
- }
527
- }
528
- };
529
- const ApplianceGetTelemetryConfigResult = {
530
- type: {
531
- name: "Composite",
532
- className: "ApplianceGetTelemetryConfigResult",
533
- modelProperties: {
534
- telemetryInstrumentationKey: {
535
- serializedName: "telemetryInstrumentationKey",
536
- readOnly: true,
537
- type: {
538
- name: "String"
539
- }
540
- }
541
- }
542
- }
543
- };
544
- const PatchableAppliance = {
545
- type: {
546
- name: "Composite",
547
- className: "PatchableAppliance",
548
- modelProperties: {
549
- tags: {
550
- serializedName: "tags",
551
- type: {
552
- name: "Dictionary",
553
- value: { type: { name: "String" } }
554
- }
555
- }
556
- }
557
- }
558
- };
559
- const ApplianceListCredentialResults = {
560
- type: {
561
- name: "Composite",
562
- className: "ApplianceListCredentialResults",
563
- modelProperties: {
564
- hybridConnectionConfig: {
565
- serializedName: "hybridConnectionConfig",
566
- type: {
567
- name: "Composite",
568
- className: "HybridConnectionConfig"
569
- }
570
- },
571
- kubeconfigs: {
572
- serializedName: "kubeconfigs",
573
- readOnly: true,
574
- type: {
575
- name: "Sequence",
576
- element: {
577
- type: {
578
- name: "Composite",
579
- className: "ApplianceCredentialKubeconfig"
580
- }
581
- }
582
- }
583
- }
584
- }
585
- }
586
- };
587
- const HybridConnectionConfig = {
588
- type: {
589
- name: "Composite",
590
- className: "HybridConnectionConfig",
591
- modelProperties: {
592
- expirationTime: {
593
- serializedName: "expirationTime",
594
- readOnly: true,
595
- type: {
596
- name: "Number"
597
- }
598
- },
599
- hybridConnectionName: {
600
- serializedName: "hybridConnectionName",
601
- readOnly: true,
602
- type: {
603
- name: "String"
604
- }
605
- },
606
- relay: {
607
- serializedName: "relay",
608
- readOnly: true,
609
- type: {
610
- name: "String"
611
- }
612
- },
613
- token: {
614
- serializedName: "token",
615
- readOnly: true,
616
- type: {
617
- name: "String"
618
- }
619
- }
620
- }
621
- }
622
- };
623
- const ApplianceCredentialKubeconfig = {
624
- type: {
625
- name: "Composite",
626
- className: "ApplianceCredentialKubeconfig",
627
- modelProperties: {
628
- name: {
629
- serializedName: "name",
630
- readOnly: true,
631
- type: {
632
- name: "String"
633
- }
634
- },
635
- value: {
636
- serializedName: "value",
637
- readOnly: true,
638
- type: {
639
- name: "String"
640
- }
641
- }
642
- }
643
- }
644
- };
645
- const ApplianceListKeysResults = {
646
- type: {
647
- name: "Composite",
648
- className: "ApplianceListKeysResults",
649
- modelProperties: {
650
- artifactProfiles: {
651
- serializedName: "artifactProfiles",
652
- readOnly: true,
653
- type: {
654
- name: "Dictionary",
655
- value: { type: { name: "Composite", className: "ArtifactProfile" } }
656
- }
657
- },
658
- kubeconfigs: {
659
- serializedName: "kubeconfigs",
660
- readOnly: true,
661
- type: {
662
- name: "Sequence",
663
- element: {
664
- type: {
665
- name: "Composite",
666
- className: "ApplianceCredentialKubeconfig"
667
- }
668
- }
669
- }
670
- },
671
- sshKeys: {
672
- serializedName: "sshKeys",
673
- readOnly: true,
674
- type: {
675
- name: "Dictionary",
676
- value: { type: { name: "Composite", className: "SSHKey" } }
677
- }
678
- }
679
- }
680
- }
681
- };
682
- const ArtifactProfile = {
683
- type: {
684
- name: "Composite",
685
- className: "ArtifactProfile",
686
- modelProperties: {
687
- endpoint: {
688
- serializedName: "endpoint",
689
- readOnly: true,
690
- type: {
691
- name: "String"
692
- }
693
- }
694
- }
695
- }
696
- };
697
- const SSHKey = {
698
- type: {
699
- name: "Composite",
700
- className: "SSHKey",
701
- modelProperties: {
702
- certificate: {
703
- serializedName: "certificate",
704
- readOnly: true,
705
- type: {
706
- name: "String"
707
- }
708
- },
709
- creationTimeStamp: {
710
- serializedName: "creationTimeStamp",
711
- readOnly: true,
712
- type: {
713
- name: "Number"
714
- }
715
- },
716
- expirationTimeStamp: {
717
- serializedName: "expirationTimeStamp",
718
- readOnly: true,
719
- type: {
720
- name: "Number"
721
- }
722
- },
723
- privateKey: {
724
- serializedName: "privateKey",
725
- readOnly: true,
726
- type: {
727
- name: "String"
728
- }
729
- },
730
- publicKey: {
731
- serializedName: "publicKey",
732
- readOnly: true,
733
- type: {
734
- name: "String"
735
- }
736
- }
737
- }
738
- }
739
- };
740
- const UpgradeGraph = {
741
- type: {
742
- name: "Composite",
743
- className: "UpgradeGraph",
744
- modelProperties: {
745
- id: {
746
- serializedName: "id",
747
- readOnly: true,
748
- type: {
749
- name: "String"
750
- }
751
- },
752
- name: {
753
- serializedName: "name",
754
- readOnly: true,
755
- type: {
756
- name: "String"
757
- }
758
- },
759
- properties: {
760
- serializedName: "properties",
761
- type: {
762
- name: "Composite",
763
- className: "UpgradeGraphProperties"
764
- }
765
- }
766
- }
767
- }
768
- };
769
- const UpgradeGraphProperties = {
770
- type: {
771
- name: "Composite",
772
- className: "UpgradeGraphProperties",
773
- modelProperties: {
774
- applianceVersion: {
775
- serializedName: "applianceVersion",
776
- readOnly: true,
777
- type: {
778
- name: "String"
779
- }
780
- },
781
- supportedVersions: {
782
- serializedName: "supportedVersions",
783
- readOnly: true,
784
- type: {
785
- name: "Sequence",
786
- element: {
787
- type: {
788
- name: "Composite",
789
- className: "SupportedVersion"
790
- }
791
- }
792
- }
793
- }
794
- }
795
- }
796
- };
797
- const SupportedVersion = {
798
- type: {
799
- name: "Composite",
800
- className: "SupportedVersion",
801
- modelProperties: {
802
- metadata: {
803
- serializedName: "metadata",
804
- type: {
805
- name: "Composite",
806
- className: "SupportedVersionMetadata"
807
- }
808
- },
809
- version: {
810
- serializedName: "version",
811
- readOnly: true,
812
- type: {
813
- name: "String"
814
- }
815
- }
816
- }
817
- }
818
- };
819
- const SupportedVersionMetadata = {
820
- type: {
821
- name: "Composite",
822
- className: "SupportedVersionMetadata",
823
- modelProperties: {
824
- catalogVersion: {
825
- serializedName: "catalogVersion",
826
- type: {
827
- name: "Composite",
828
- className: "SupportedVersionCatalogVersion"
829
- }
830
- }
831
- }
832
- }
833
- };
834
- const SupportedVersionCatalogVersion = {
835
- type: {
836
- name: "Composite",
837
- className: "SupportedVersionCatalogVersion",
838
- modelProperties: {
839
- data: {
840
- serializedName: "data",
841
- type: {
842
- name: "Composite",
843
- className: "SupportedVersionCatalogVersionData"
844
- }
845
- },
846
- name: {
847
- serializedName: "name",
848
- readOnly: true,
849
- type: {
850
- name: "String"
851
- }
852
- },
853
- namespace: {
854
- serializedName: "namespace",
855
- readOnly: true,
856
- type: {
857
- name: "String"
858
- }
859
- }
860
- }
861
- }
862
- };
863
- const SupportedVersionCatalogVersionData = {
864
- type: {
865
- name: "Composite",
866
- className: "SupportedVersionCatalogVersionData",
867
- modelProperties: {
868
- audience: {
869
- serializedName: "audience",
870
- readOnly: true,
871
- type: {
872
- name: "String"
873
- }
874
- },
875
- catalog: {
876
- serializedName: "catalog",
877
- readOnly: true,
878
- type: {
879
- name: "String"
880
- }
881
- },
882
- offer: {
883
- serializedName: "offer",
884
- readOnly: true,
885
- type: {
886
- name: "String"
887
- }
888
- },
889
- version: {
890
- serializedName: "version",
891
- readOnly: true,
892
- type: {
893
- name: "String"
894
- }
895
- }
896
- }
897
- }
898
- };
899
- const TrackedResource = {
900
- type: {
901
- name: "Composite",
902
- className: "TrackedResource",
903
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
904
- serializedName: "tags",
905
- type: {
906
- name: "Dictionary",
907
- value: { type: { name: "String" } }
908
- }
909
- }, location: {
910
- serializedName: "location",
911
- required: true,
912
- type: {
913
- name: "String"
914
- }
915
- } })
916
- }
917
- };
918
- const Appliance = {
919
- type: {
920
- name: "Composite",
921
- className: "Appliance",
922
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
923
- serializedName: "identity",
924
- type: {
925
- name: "Composite",
926
- className: "Identity"
927
- }
928
- }, distro: {
929
- defaultValue: "AKSEdge",
930
- serializedName: "properties.distro",
931
- type: {
932
- name: "String"
933
- }
934
- }, infrastructureConfig: {
935
- serializedName: "properties.infrastructureConfig",
936
- type: {
937
- name: "Composite",
938
- className: "AppliancePropertiesInfrastructureConfig"
939
- }
940
- }, provisioningState: {
941
- serializedName: "properties.provisioningState",
942
- readOnly: true,
943
- type: {
944
- name: "String"
945
- }
946
- }, publicKey: {
947
- serializedName: "properties.publicKey",
948
- type: {
949
- name: "String"
950
- }
951
- }, status: {
952
- serializedName: "properties.status",
953
- readOnly: true,
954
- type: {
955
- name: "String"
956
- }
957
- }, version: {
958
- serializedName: "properties.version",
959
- type: {
960
- name: "String"
961
- }
962
- } })
963
- }
964
- };
965
-
966
- var Mappers = /*#__PURE__*/Object.freeze({
967
- __proto__: null,
968
- ApplianceOperationsList: ApplianceOperationsList,
969
- ApplianceOperation: ApplianceOperation,
970
- ErrorResponse: ErrorResponse,
971
- ErrorDetail: ErrorDetail,
972
- ErrorAdditionalInfo: ErrorAdditionalInfo,
973
- ApplianceListResult: ApplianceListResult,
974
- Identity: Identity,
975
- AppliancePropertiesInfrastructureConfig: AppliancePropertiesInfrastructureConfig,
976
- Resource: Resource,
977
- SystemData: SystemData,
978
- ApplianceGetTelemetryConfigResult: ApplianceGetTelemetryConfigResult,
979
- PatchableAppliance: PatchableAppliance,
980
- ApplianceListCredentialResults: ApplianceListCredentialResults,
981
- HybridConnectionConfig: HybridConnectionConfig,
982
- ApplianceCredentialKubeconfig: ApplianceCredentialKubeconfig,
983
- ApplianceListKeysResults: ApplianceListKeysResults,
984
- ArtifactProfile: ArtifactProfile,
985
- SSHKey: SSHKey,
986
- UpgradeGraph: UpgradeGraph,
987
- UpgradeGraphProperties: UpgradeGraphProperties,
988
- SupportedVersion: SupportedVersion,
989
- SupportedVersionMetadata: SupportedVersionMetadata,
990
- SupportedVersionCatalogVersion: SupportedVersionCatalogVersion,
991
- SupportedVersionCatalogVersionData: SupportedVersionCatalogVersionData,
992
- TrackedResource: TrackedResource,
993
- Appliance: Appliance
994
- });
995
-
996
- /*
997
- * Copyright (c) Microsoft Corporation.
998
- * Licensed under the MIT License.
999
- *
1000
- * Code generated by Microsoft (R) AutoRest Code Generator.
1001
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1002
- */
1003
- const accept = {
1004
- parameterPath: "accept",
1005
- mapper: {
1006
- defaultValue: "application/json",
1007
- isConstant: true,
1008
- serializedName: "Accept",
1009
- type: {
1010
- name: "String"
1011
- }
1012
- }
1013
- };
1014
- const $host = {
1015
- parameterPath: "$host",
1016
- mapper: {
1017
- serializedName: "$host",
1018
- required: true,
1019
- type: {
1020
- name: "String"
1021
- }
1022
- },
1023
- skipEncoding: true
1024
- };
1025
- const apiVersion = {
1026
- parameterPath: "apiVersion",
1027
- mapper: {
1028
- defaultValue: "2022-10-27",
1029
- isConstant: true,
1030
- serializedName: "api-version",
1031
- type: {
1032
- name: "String"
1033
- }
1034
- }
1035
- };
1036
- const subscriptionId = {
1037
- parameterPath: "subscriptionId",
1038
- mapper: {
1039
- constraints: {
1040
- MinLength: 1
1041
- },
1042
- serializedName: "subscriptionId",
1043
- required: true,
1044
- type: {
1045
- name: "String"
1046
- }
1047
- }
1048
- };
1049
- const resourceGroupName = {
1050
- parameterPath: "resourceGroupName",
1051
- mapper: {
1052
- constraints: {
1053
- MaxLength: 90,
1054
- MinLength: 1
1055
- },
1056
- serializedName: "resourceGroupName",
1057
- required: true,
1058
- type: {
1059
- name: "String"
1060
- }
1061
- }
1062
- };
1063
- const resourceName = {
1064
- parameterPath: "resourceName",
1065
- mapper: {
1066
- constraints: {
1067
- Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
1068
- MaxLength: 63,
1069
- MinLength: 1
1070
- },
1071
- serializedName: "resourceName",
1072
- required: true,
1073
- type: {
1074
- name: "String"
1075
- }
1076
- }
1077
- };
1078
- const contentType = {
1079
- parameterPath: ["options", "contentType"],
1080
- mapper: {
1081
- defaultValue: "application/json",
1082
- isConstant: true,
1083
- serializedName: "Content-Type",
1084
- type: {
1085
- name: "String"
1086
- }
1087
- }
1088
- };
1089
- const parameters = {
1090
- parameterPath: "parameters",
1091
- mapper: Appliance
1092
- };
1093
- const upgradeGraph = {
1094
- parameterPath: "upgradeGraph",
1095
- mapper: {
1096
- serializedName: "upgradeGraph",
1097
- required: true,
1098
- type: {
1099
- name: "String"
1100
- }
1101
- }
1102
- };
1103
- const nextLink = {
1104
- parameterPath: "nextLink",
1105
- mapper: {
1106
- serializedName: "nextLink",
1107
- required: true,
1108
- type: {
1109
- name: "String"
1110
- }
1111
- },
1112
- skipEncoding: true
1113
- };
1114
-
1115
- /*
1116
- * Copyright (c) Microsoft Corporation.
1117
- * Licensed under the MIT License.
1118
- *
1119
- * Code generated by Microsoft (R) AutoRest Code Generator.
1120
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1121
- */
1122
- function createLroSpec(inputs) {
1123
- const { args, spec, sendOperationFn } = inputs;
1124
- return {
1125
- requestMethod: spec.httpMethod,
1126
- requestPath: spec.path,
1127
- sendInitialRequest: () => sendOperationFn(args, spec),
1128
- sendPollRequest: (path, options) => {
1129
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1130
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1131
- }
1132
- };
1133
- }
1134
-
1135
- /*
1136
- * Copyright (c) Microsoft Corporation.
1137
- * Licensed under the MIT License.
1138
- *
1139
- * Code generated by Microsoft (R) AutoRest Code Generator.
1140
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1141
- */
1142
- /// <reference lib="esnext.asynciterable" />
1143
- /** Class containing Appliances operations. */
1144
- class AppliancesImpl {
1145
- /**
1146
- * Initialize a new instance of the class Appliances class.
1147
- * @param client Reference to the service client
1148
- */
1149
- constructor(client) {
1150
- this.client = client;
1151
- }
1152
- /**
1153
- * Lists all available Appliances operations.
1154
- * @param options The options parameters.
1155
- */
1156
- listOperations(options) {
1157
- const iter = this.listOperationsPagingAll(options);
1158
- return {
1159
- next() {
1160
- return iter.next();
1161
- },
1162
- [Symbol.asyncIterator]() {
1163
- return this;
1164
- },
1165
- byPage: (settings) => {
1166
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1167
- throw new Error("maxPageSize is not supported by this operation.");
1168
- }
1169
- return this.listOperationsPagingPage(options, settings);
1170
- }
1171
- };
1172
- }
1173
- listOperationsPagingPage(options, settings) {
1174
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
1175
- let result;
1176
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1177
- if (!continuationToken) {
1178
- result = yield tslib.__await(this._listOperations(options));
1179
- let page = result.value || [];
1180
- continuationToken = result.nextLink;
1181
- setContinuationToken(page, continuationToken);
1182
- yield yield tslib.__await(page);
1183
- }
1184
- while (continuationToken) {
1185
- result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
1186
- continuationToken = result.nextLink;
1187
- let page = result.value || [];
1188
- setContinuationToken(page, continuationToken);
1189
- yield yield tslib.__await(page);
1190
- }
1191
- });
1192
- }
1193
- listOperationsPagingAll(options) {
1194
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
1195
- var _a, e_1, _b, _c;
1196
- try {
1197
- for (var _d = true, _e = tslib.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1198
- _c = _f.value;
1199
- _d = false;
1200
- try {
1201
- const page = _c;
1202
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1203
- }
1204
- finally {
1205
- _d = true;
1206
- }
1207
- }
1208
- }
1209
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1210
- finally {
1211
- try {
1212
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1213
- }
1214
- finally { if (e_1) throw e_1.error; }
1215
- }
1216
- });
1217
- }
1218
- /**
1219
- * Gets a list of Appliances in the specified subscription. The operation returns properties of each
1220
- * Appliance
1221
- * @param options The options parameters.
1222
- */
1223
- listBySubscription(options) {
1224
- const iter = this.listBySubscriptionPagingAll(options);
1225
- return {
1226
- next() {
1227
- return iter.next();
1228
- },
1229
- [Symbol.asyncIterator]() {
1230
- return this;
1231
- },
1232
- byPage: (settings) => {
1233
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1234
- throw new Error("maxPageSize is not supported by this operation.");
1235
- }
1236
- return this.listBySubscriptionPagingPage(options, settings);
1237
- }
1238
- };
1239
- }
1240
- listBySubscriptionPagingPage(options, settings) {
1241
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1242
- let result;
1243
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1244
- if (!continuationToken) {
1245
- result = yield tslib.__await(this._listBySubscription(options));
1246
- let page = result.value || [];
1247
- continuationToken = result.nextLink;
1248
- setContinuationToken(page, continuationToken);
1249
- yield yield tslib.__await(page);
1250
- }
1251
- while (continuationToken) {
1252
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1253
- continuationToken = result.nextLink;
1254
- let page = result.value || [];
1255
- setContinuationToken(page, continuationToken);
1256
- yield yield tslib.__await(page);
1257
- }
1258
- });
1259
- }
1260
- listBySubscriptionPagingAll(options) {
1261
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1262
- var _a, e_2, _b, _c;
1263
- try {
1264
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1265
- _c = _f.value;
1266
- _d = false;
1267
- try {
1268
- const page = _c;
1269
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1270
- }
1271
- finally {
1272
- _d = true;
1273
- }
1274
- }
1275
- }
1276
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1277
- finally {
1278
- try {
1279
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1280
- }
1281
- finally { if (e_2) throw e_2.error; }
1282
- }
1283
- });
1284
- }
1285
- /**
1286
- * Gets a list of Appliances in the specified subscription and resource group. The operation returns
1287
- * properties of each Appliance.
1288
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1289
- * @param options The options parameters.
1290
- */
1291
- listByResourceGroup(resourceGroupName, options) {
1292
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1293
- return {
1294
- next() {
1295
- return iter.next();
1296
- },
1297
- [Symbol.asyncIterator]() {
1298
- return this;
1299
- },
1300
- byPage: (settings) => {
1301
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1302
- throw new Error("maxPageSize is not supported by this operation.");
1303
- }
1304
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1305
- }
1306
- };
1307
- }
1308
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1309
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1310
- let result;
1311
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1312
- if (!continuationToken) {
1313
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1314
- let page = result.value || [];
1315
- continuationToken = result.nextLink;
1316
- setContinuationToken(page, continuationToken);
1317
- yield yield tslib.__await(page);
1318
- }
1319
- while (continuationToken) {
1320
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1321
- continuationToken = result.nextLink;
1322
- let page = result.value || [];
1323
- setContinuationToken(page, continuationToken);
1324
- yield yield tslib.__await(page);
1325
- }
1326
- });
1327
- }
1328
- listByResourceGroupPagingAll(resourceGroupName, options) {
1329
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1330
- var _a, e_3, _b, _c;
1331
- try {
1332
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1333
- _c = _f.value;
1334
- _d = false;
1335
- try {
1336
- const page = _c;
1337
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1338
- }
1339
- finally {
1340
- _d = true;
1341
- }
1342
- }
1343
- }
1344
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1345
- finally {
1346
- try {
1347
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1348
- }
1349
- finally { if (e_3) throw e_3.error; }
1350
- }
1351
- });
1352
- }
1353
- /**
1354
- * Lists all available Appliances operations.
1355
- * @param options The options parameters.
1356
- */
1357
- _listOperations(options) {
1358
- return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
1359
- }
1360
- /**
1361
- * Gets a list of Appliances in the specified subscription. The operation returns properties of each
1362
- * Appliance
1363
- * @param options The options parameters.
1364
- */
1365
- _listBySubscription(options) {
1366
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1367
- }
1368
- /**
1369
- * Gets the telemetry config.
1370
- * @param options The options parameters.
1371
- */
1372
- getTelemetryConfig(options) {
1373
- return this.client.sendOperationRequest({ options }, getTelemetryConfigOperationSpec);
1374
- }
1375
- /**
1376
- * Gets a list of Appliances in the specified subscription and resource group. The operation returns
1377
- * properties of each Appliance.
1378
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1379
- * @param options The options parameters.
1380
- */
1381
- _listByResourceGroup(resourceGroupName, options) {
1382
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1383
- }
1384
- /**
1385
- * Gets the details of an Appliance with a specified resource group and name.
1386
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1387
- * @param resourceName Appliances name.
1388
- * @param options The options parameters.
1389
- */
1390
- get(resourceGroupName, resourceName, options) {
1391
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
1392
- }
1393
- /**
1394
- * Creates or updates an Appliance in the specified Subscription and Resource Group.
1395
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1396
- * @param resourceName Appliances name.
1397
- * @param parameters Parameters supplied to create or update an Appliance.
1398
- * @param options The options parameters.
1399
- */
1400
- beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
1401
- return tslib.__awaiter(this, void 0, void 0, function* () {
1402
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1403
- return this.client.sendOperationRequest(args, spec);
1404
- });
1405
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1406
- var _a;
1407
- let currentRawResponse = undefined;
1408
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1409
- const callback = (rawResponse, flatResponse) => {
1410
- currentRawResponse = rawResponse;
1411
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1412
- };
1413
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1414
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1415
- return {
1416
- flatResponse,
1417
- rawResponse: {
1418
- statusCode: currentRawResponse.status,
1419
- body: currentRawResponse.parsedBody,
1420
- headers: currentRawResponse.headers.toJSON()
1421
- }
1422
- };
1423
- });
1424
- const lro = createLroSpec({
1425
- sendOperationFn,
1426
- args: { resourceGroupName, resourceName, parameters, options },
1427
- spec: createOrUpdateOperationSpec
1428
- });
1429
- const poller = yield coreLro.createHttpPoller(lro, {
1430
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1431
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1432
- resourceLocationConfig: "azure-async-operation"
1433
- });
1434
- yield poller.poll();
1435
- return poller;
1436
- });
1437
- }
1438
- /**
1439
- * Creates or updates an Appliance in the specified Subscription and Resource Group.
1440
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1441
- * @param resourceName Appliances name.
1442
- * @param parameters Parameters supplied to create or update an Appliance.
1443
- * @param options The options parameters.
1444
- */
1445
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
1446
- return tslib.__awaiter(this, void 0, void 0, function* () {
1447
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
1448
- return poller.pollUntilDone();
1449
- });
1450
- }
1451
- /**
1452
- * Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
1453
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1454
- * @param resourceName Appliances name.
1455
- * @param options The options parameters.
1456
- */
1457
- beginDelete(resourceGroupName, resourceName, options) {
1458
- return tslib.__awaiter(this, void 0, void 0, function* () {
1459
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1460
- return this.client.sendOperationRequest(args, spec);
1461
- });
1462
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1463
- var _a;
1464
- let currentRawResponse = undefined;
1465
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1466
- const callback = (rawResponse, flatResponse) => {
1467
- currentRawResponse = rawResponse;
1468
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1469
- };
1470
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1471
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1472
- return {
1473
- flatResponse,
1474
- rawResponse: {
1475
- statusCode: currentRawResponse.status,
1476
- body: currentRawResponse.parsedBody,
1477
- headers: currentRawResponse.headers.toJSON()
1478
- }
1479
- };
1480
- });
1481
- const lro = createLroSpec({
1482
- sendOperationFn,
1483
- args: { resourceGroupName, resourceName, options },
1484
- spec: deleteOperationSpec
1485
- });
1486
- const poller = yield coreLro.createHttpPoller(lro, {
1487
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1488
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1489
- resourceLocationConfig: "azure-async-operation"
1490
- });
1491
- yield poller.poll();
1492
- return poller;
1493
- });
1494
- }
1495
- /**
1496
- * Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
1497
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1498
- * @param resourceName Appliances name.
1499
- * @param options The options parameters.
1500
- */
1501
- beginDeleteAndWait(resourceGroupName, resourceName, options) {
1502
- return tslib.__awaiter(this, void 0, void 0, function* () {
1503
- const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
1504
- return poller.pollUntilDone();
1505
- });
1506
- }
1507
- /**
1508
- * Updates an Appliance with the specified Resource Name in the specified Resource Group and
1509
- * Subscription.
1510
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1511
- * @param resourceName Appliances name.
1512
- * @param options The options parameters.
1513
- */
1514
- update(resourceGroupName, resourceName, options) {
1515
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
1516
- }
1517
- /**
1518
- * Returns the cluster user credentials for the dedicated appliance.
1519
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1520
- * @param resourceName Appliances name.
1521
- * @param options The options parameters.
1522
- */
1523
- listClusterUserCredential(resourceGroupName, resourceName, options) {
1524
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
1525
- }
1526
- /**
1527
- * Returns the cluster customer credentials for the dedicated appliance.
1528
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1529
- * @param resourceName Appliances name.
1530
- * @param options The options parameters.
1531
- */
1532
- listKeys(resourceGroupName, resourceName, options) {
1533
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
1534
- }
1535
- /**
1536
- * Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
1537
- * train.
1538
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1539
- * @param resourceName Appliances name.
1540
- * @param upgradeGraph Upgrade graph version, ex - stable
1541
- * @param options The options parameters.
1542
- */
1543
- getUpgradeGraph(resourceGroupName, resourceName, upgradeGraph, options) {
1544
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, upgradeGraph, options }, getUpgradeGraphOperationSpec);
1545
- }
1546
- /**
1547
- * ListOperationsNext
1548
- * @param nextLink The nextLink from the previous successful call to the ListOperations method.
1549
- * @param options The options parameters.
1550
- */
1551
- _listOperationsNext(nextLink, options) {
1552
- return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
1553
- }
1554
- /**
1555
- * ListBySubscriptionNext
1556
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1557
- * @param options The options parameters.
1558
- */
1559
- _listBySubscriptionNext(nextLink, options) {
1560
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1561
- }
1562
- /**
1563
- * ListByResourceGroupNext
1564
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1565
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1566
- * @param options The options parameters.
1567
- */
1568
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1569
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1570
- }
1571
- }
1572
- // Operation Specifications
1573
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1574
- const listOperationsOperationSpec = {
1575
- path: "/providers/Microsoft.ResourceConnector/operations",
1576
- httpMethod: "GET",
1577
- responses: {
1578
- 200: {
1579
- bodyMapper: ApplianceOperationsList
1580
- },
1581
- default: {
1582
- bodyMapper: ErrorResponse
1583
- }
1584
- },
1585
- queryParameters: [apiVersion],
1586
- urlParameters: [$host],
1587
- headerParameters: [accept],
1588
- serializer
1589
- };
1590
- const listBySubscriptionOperationSpec = {
1591
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/appliances",
1592
- httpMethod: "GET",
1593
- responses: {
1594
- 200: {
1595
- bodyMapper: ApplianceListResult
1596
- },
1597
- default: {
1598
- bodyMapper: ErrorResponse
1599
- }
1600
- },
1601
- queryParameters: [apiVersion],
1602
- urlParameters: [$host, subscriptionId],
1603
- headerParameters: [accept],
1604
- serializer
1605
- };
1606
- const getTelemetryConfigOperationSpec = {
1607
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig",
1608
- httpMethod: "GET",
1609
- responses: {
1610
- 200: {
1611
- bodyMapper: ApplianceGetTelemetryConfigResult
1612
- },
1613
- default: {
1614
- bodyMapper: ErrorResponse
1615
- }
1616
- },
1617
- queryParameters: [apiVersion],
1618
- urlParameters: [$host, subscriptionId],
1619
- headerParameters: [accept],
1620
- serializer
1621
- };
1622
- const listByResourceGroupOperationSpec = {
1623
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
1624
- httpMethod: "GET",
1625
- responses: {
1626
- 200: {
1627
- bodyMapper: ApplianceListResult
1628
- },
1629
- default: {
1630
- bodyMapper: ErrorResponse
1631
- }
1632
- },
1633
- queryParameters: [apiVersion],
1634
- urlParameters: [
1635
- $host,
1636
- subscriptionId,
1637
- resourceGroupName
1638
- ],
1639
- headerParameters: [accept],
1640
- serializer
1641
- };
1642
- const getOperationSpec = {
1643
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
1644
- httpMethod: "GET",
1645
- responses: {
1646
- 200: {
1647
- bodyMapper: Appliance
1648
- },
1649
- default: {
1650
- bodyMapper: ErrorResponse
1651
- }
1652
- },
1653
- queryParameters: [apiVersion],
1654
- urlParameters: [
1655
- $host,
1656
- subscriptionId,
1657
- resourceGroupName,
1658
- resourceName
1659
- ],
1660
- headerParameters: [accept],
1661
- serializer
1662
- };
1663
- const createOrUpdateOperationSpec = {
1664
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
1665
- httpMethod: "PUT",
1666
- responses: {
1667
- 200: {
1668
- bodyMapper: Appliance
1669
- },
1670
- 201: {
1671
- bodyMapper: Appliance
1672
- },
1673
- 202: {
1674
- bodyMapper: Appliance
1675
- },
1676
- 204: {
1677
- bodyMapper: Appliance
1678
- },
1679
- default: {
1680
- bodyMapper: ErrorResponse
1681
- }
1682
- },
1683
- requestBody: parameters,
1684
- queryParameters: [apiVersion],
1685
- urlParameters: [
1686
- $host,
1687
- subscriptionId,
1688
- resourceGroupName,
1689
- resourceName
1690
- ],
1691
- headerParameters: [accept, contentType],
1692
- mediaType: "json",
1693
- serializer
1694
- };
1695
- const deleteOperationSpec = {
1696
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
1697
- httpMethod: "DELETE",
1698
- responses: {
1699
- 200: {},
1700
- 201: {},
1701
- 202: {},
1702
- 204: {},
1703
- default: {
1704
- bodyMapper: ErrorResponse
1705
- }
1706
- },
1707
- queryParameters: [apiVersion],
1708
- urlParameters: [
1709
- $host,
1710
- subscriptionId,
1711
- resourceGroupName,
1712
- resourceName
1713
- ],
1714
- headerParameters: [accept],
1715
- serializer
1716
- };
1717
- const updateOperationSpec = {
1718
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
1719
- httpMethod: "PATCH",
1720
- responses: {
1721
- 200: {
1722
- bodyMapper: Appliance
1723
- },
1724
- default: {
1725
- bodyMapper: ErrorResponse
1726
- }
1727
- },
1728
- requestBody: {
1729
- parameterPath: { tags: ["options", "tags"] },
1730
- mapper: Object.assign(Object.assign({}, PatchableAppliance), { required: true })
1731
- },
1732
- queryParameters: [apiVersion],
1733
- urlParameters: [
1734
- $host,
1735
- subscriptionId,
1736
- resourceGroupName,
1737
- resourceName
1738
- ],
1739
- headerParameters: [accept, contentType],
1740
- mediaType: "json",
1741
- serializer
1742
- };
1743
- const listClusterUserCredentialOperationSpec = {
1744
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
1745
- httpMethod: "POST",
1746
- responses: {
1747
- 200: {
1748
- bodyMapper: ApplianceListCredentialResults
1749
- },
1750
- default: {
1751
- bodyMapper: ErrorResponse
1752
- }
1753
- },
1754
- queryParameters: [apiVersion],
1755
- urlParameters: [
1756
- $host,
1757
- subscriptionId,
1758
- resourceGroupName,
1759
- resourceName
1760
- ],
1761
- headerParameters: [accept],
1762
- serializer
1763
- };
1764
- const listKeysOperationSpec = {
1765
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys",
1766
- httpMethod: "POST",
1767
- responses: {
1768
- 200: {
1769
- bodyMapper: ApplianceListKeysResults
1770
- },
1771
- default: {
1772
- bodyMapper: ErrorResponse
1773
- }
1774
- },
1775
- queryParameters: [apiVersion],
1776
- urlParameters: [
1777
- $host,
1778
- subscriptionId,
1779
- resourceGroupName,
1780
- resourceName
1781
- ],
1782
- headerParameters: [accept],
1783
- serializer
1784
- };
1785
- const getUpgradeGraphOperationSpec = {
1786
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/upgradeGraphs/{upgradeGraph}",
1787
- httpMethod: "GET",
1788
- responses: {
1789
- 200: {
1790
- bodyMapper: UpgradeGraph
1791
- },
1792
- default: {
1793
- bodyMapper: ErrorResponse
1794
- }
1795
- },
1796
- queryParameters: [apiVersion],
1797
- urlParameters: [
1798
- $host,
1799
- subscriptionId,
1800
- resourceGroupName,
1801
- resourceName,
1802
- upgradeGraph
1803
- ],
1804
- headerParameters: [accept],
1805
- serializer
1806
- };
1807
- const listOperationsNextOperationSpec = {
1808
- path: "{nextLink}",
1809
- httpMethod: "GET",
1810
- responses: {
1811
- 200: {
1812
- bodyMapper: ApplianceOperationsList
1813
- },
1814
- default: {
1815
- bodyMapper: ErrorResponse
1816
- }
1817
- },
1818
- urlParameters: [$host, nextLink],
1819
- headerParameters: [accept],
1820
- serializer
1821
- };
1822
- const listBySubscriptionNextOperationSpec = {
1823
- path: "{nextLink}",
1824
- httpMethod: "GET",
1825
- responses: {
1826
- 200: {
1827
- bodyMapper: ApplianceListResult
1828
- },
1829
- default: {
1830
- bodyMapper: ErrorResponse
1831
- }
1832
- },
1833
- urlParameters: [
1834
- $host,
1835
- subscriptionId,
1836
- nextLink
1837
- ],
1838
- headerParameters: [accept],
1839
- serializer
1840
- };
1841
- const listByResourceGroupNextOperationSpec = {
1842
- path: "{nextLink}",
1843
- httpMethod: "GET",
1844
- responses: {
1845
- 200: {
1846
- bodyMapper: ApplianceListResult
1847
- },
1848
- default: {
1849
- bodyMapper: ErrorResponse
1850
- }
1851
- },
1852
- urlParameters: [
1853
- $host,
1854
- subscriptionId,
1855
- resourceGroupName,
1856
- nextLink
1857
- ],
1858
- headerParameters: [accept],
1859
- serializer
1860
- };
1861
-
1862
- /*
1863
- * Copyright (c) Microsoft Corporation.
1864
- * Licensed under the MIT License.
1865
- *
1866
- * Code generated by Microsoft (R) AutoRest Code Generator.
1867
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1868
- */
1869
- class ResourceConnectorManagementClient extends coreClient__namespace.ServiceClient {
1870
- constructor(credentials, subscriptionIdOrOptions, options) {
1871
- var _a, _b, _c;
1872
- if (credentials === undefined) {
1873
- throw new Error("'credentials' cannot be null");
1874
- }
1875
- let subscriptionId;
1876
- if (typeof subscriptionIdOrOptions === "string") {
1877
- subscriptionId = subscriptionIdOrOptions;
1878
- }
1879
- else if (typeof subscriptionIdOrOptions === "object") {
1880
- options = subscriptionIdOrOptions;
1881
- }
1882
- // Initializing default values for options
1883
- if (!options) {
1884
- options = {};
1885
- }
1886
- const defaults = {
1887
- requestContentType: "application/json; charset=utf-8",
1888
- credential: credentials
1889
- };
1890
- const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0`;
1891
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1892
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1893
- : `${packageDetails}`;
1894
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1895
- userAgentPrefix
1896
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1897
- super(optionsWithDefaults);
1898
- let bearerTokenAuthenticationPolicyFound = false;
1899
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1900
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1901
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1902
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1903
- }
1904
- if (!options ||
1905
- !options.pipeline ||
1906
- options.pipeline.getOrderedPolicies().length == 0 ||
1907
- !bearerTokenAuthenticationPolicyFound) {
1908
- this.pipeline.removePolicy({
1909
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1910
- });
1911
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1912
- credential: credentials,
1913
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1914
- challengeCallbacks: {
1915
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1916
- }
1917
- }));
1918
- }
1919
- // Parameter assignments
1920
- this.subscriptionId = subscriptionId;
1921
- // Assigning values to Constant parameters
1922
- this.$host = options.$host || "https://management.azure.com";
1923
- this.apiVersion = options.apiVersion || "2022-10-27";
1924
- this.appliances = new AppliancesImpl(this);
1925
- this.addCustomApiVersionPolicy(options.apiVersion);
1926
- }
1927
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1928
- addCustomApiVersionPolicy(apiVersion) {
1929
- if (!apiVersion) {
1930
- return;
1931
- }
1932
- const apiVersionPolicy = {
1933
- name: "CustomApiVersionPolicy",
1934
- sendRequest(request, next) {
1935
- return tslib.__awaiter(this, void 0, void 0, function* () {
1936
- const param = request.url.split("?");
1937
- if (param.length > 1) {
1938
- const newParams = param[1].split("&").map((item) => {
1939
- if (item.indexOf("api-version") > -1) {
1940
- return "api-version=" + apiVersion;
1941
- }
1942
- else {
1943
- return item;
1944
- }
1945
- });
1946
- request.url = param[0] + "?" + newParams.join("&");
1947
- }
1948
- return next(request);
1949
- });
1950
- }
1951
- };
1952
- this.pipeline.addPolicy(apiVersionPolicy);
1953
- }
1954
- }
1955
-
1956
- exports.ResourceConnectorManagementClient = ResourceConnectorManagementClient;
1957
- exports.getContinuationToken = getContinuationToken;
1958
- //# sourceMappingURL=index.js.map