@azure/arm-extendedlocation 1.0.0-beta.2 → 1.0.0-beta.4

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 (314) hide show
  1. package/CHANGELOG.md +23 -3
  2. package/LICENSE +4 -4
  3. package/README.md +27 -18
  4. package/{dist-esm/src → dist/browser}/customLocationsManagementClient.d.ts +2 -2
  5. package/dist/browser/customLocationsManagementClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/customLocationsManagementClient.js +47 -38
  7. package/dist/browser/customLocationsManagementClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +4 -3
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/lroImpl.js +13 -9
  13. package/dist/browser/lroImpl.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/models/index.d.ts +20 -20
  15. package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
  16. package/dist/browser/models/index.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/mappers.js +55 -25
  18. package/dist/browser/models/mappers.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  20. package/dist/browser/models/parameters.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/customLocations.d.ts +3 -3
  22. package/dist/browser/operations/customLocations.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/customLocations.js +186 -203
  24. package/dist/browser/operations/customLocations.js.map +1 -0
  25. package/dist/browser/operations/index.d.ts +3 -0
  26. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  27. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
  28. package/dist/browser/operations/index.js.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/resourceSyncRules.d.ts +3 -3
  30. package/dist/browser/operations/resourceSyncRules.d.ts.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/resourceSyncRules.js +114 -116
  32. package/dist/browser/operations/resourceSyncRules.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/customLocations.d.ts +1 -1
  34. package/dist/browser/operationsInterfaces/customLocations.d.ts.map +1 -0
  35. package/dist/browser/operationsInterfaces/customLocations.js.map +1 -0
  36. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  38. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
  39. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceSyncRules.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/resourceSyncRules.js.map +1 -0
  43. package/dist/browser/package.json +3 -0
  44. package/dist/browser/pagingHelper.d.ts +13 -0
  45. package/dist/browser/pagingHelper.d.ts.map +1 -0
  46. package/dist/browser/pagingHelper.js +30 -0
  47. package/dist/browser/pagingHelper.js.map +1 -0
  48. package/dist/commonjs/customLocationsManagementClient.d.ts +21 -0
  49. package/dist/commonjs/customLocationsManagementClient.d.ts.map +1 -0
  50. package/dist/commonjs/customLocationsManagementClient.js +113 -0
  51. package/dist/commonjs/customLocationsManagementClient.js.map +1 -0
  52. package/dist/commonjs/index.d.ts +5 -0
  53. package/dist/commonjs/index.d.ts.map +1 -0
  54. package/dist/commonjs/index.js +19 -0
  55. package/dist/commonjs/index.js.map +1 -0
  56. package/dist/commonjs/lroImpl.d.ts +16 -0
  57. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  58. package/dist/commonjs/lroImpl.js +37 -0
  59. package/dist/commonjs/lroImpl.js.map +1 -0
  60. package/{types/arm-extendedlocation.d.ts → dist/commonjs/models/index.d.ts} +541 -781
  61. package/dist/commonjs/models/index.d.ts.map +1 -0
  62. package/dist/commonjs/models/index.js +37 -0
  63. package/dist/commonjs/models/index.js.map +1 -0
  64. package/dist/commonjs/models/mappers.d.ts +26 -0
  65. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  66. package/dist/commonjs/models/mappers.js +810 -0
  67. package/dist/commonjs/models/mappers.js.map +1 -0
  68. package/dist/commonjs/models/parameters.d.ts +27 -0
  69. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  70. package/dist/commonjs/models/parameters.js +188 -0
  71. package/dist/commonjs/models/parameters.js.map +1 -0
  72. package/dist/commonjs/operations/customLocations.d.ts +155 -0
  73. package/dist/commonjs/operations/customLocations.d.ts.map +1 -0
  74. package/dist/commonjs/operations/customLocations.js +704 -0
  75. package/dist/commonjs/operations/customLocations.js.map +1 -0
  76. package/dist/commonjs/operations/index.d.ts +3 -0
  77. package/dist/commonjs/operations/index.d.ts.map +1 -0
  78. package/dist/commonjs/operations/index.js +13 -0
  79. package/dist/commonjs/operations/index.js.map +1 -0
  80. package/dist/commonjs/operations/resourceSyncRules.d.ts +97 -0
  81. package/dist/commonjs/operations/resourceSyncRules.d.ts.map +1 -0
  82. package/dist/commonjs/operations/resourceSyncRules.js +403 -0
  83. package/dist/commonjs/operations/resourceSyncRules.js.map +1 -0
  84. package/dist/commonjs/operationsInterfaces/customLocations.d.ts +86 -0
  85. package/dist/commonjs/operationsInterfaces/customLocations.d.ts.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/customLocations.js +10 -0
  87. package/dist/commonjs/operationsInterfaces/customLocations.js.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  89. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  90. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  91. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts +71 -0
  93. package/dist/commonjs/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/resourceSyncRules.js +10 -0
  95. package/dist/commonjs/operationsInterfaces/resourceSyncRules.js.map +1 -0
  96. package/dist/commonjs/package.json +3 -0
  97. package/dist/commonjs/pagingHelper.d.ts +13 -0
  98. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  99. package/dist/commonjs/pagingHelper.js +34 -0
  100. package/dist/commonjs/pagingHelper.js.map +1 -0
  101. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  102. package/dist/esm/customLocationsManagementClient.d.ts +21 -0
  103. package/dist/esm/customLocationsManagementClient.d.ts.map +1 -0
  104. package/dist/esm/customLocationsManagementClient.js +108 -0
  105. package/dist/esm/customLocationsManagementClient.js.map +1 -0
  106. package/dist/esm/index.d.ts +5 -0
  107. package/dist/esm/index.d.ts.map +1 -0
  108. package/{src/index.ts → dist/esm/index.js} +5 -4
  109. package/dist/esm/index.js.map +1 -0
  110. package/dist/esm/lroImpl.d.ts +16 -0
  111. package/dist/esm/lroImpl.d.ts.map +1 -0
  112. package/dist/esm/lroImpl.js +33 -0
  113. package/dist/esm/lroImpl.js.map +1 -0
  114. package/dist/esm/models/index.d.ts +541 -0
  115. package/dist/esm/models/index.d.ts.map +1 -0
  116. package/dist/esm/models/index.js +34 -0
  117. package/dist/esm/models/index.js.map +1 -0
  118. package/dist/esm/models/mappers.d.ts +26 -0
  119. package/dist/esm/models/mappers.d.ts.map +1 -0
  120. package/dist/esm/models/mappers.js +807 -0
  121. package/dist/esm/models/mappers.js.map +1 -0
  122. package/dist/esm/models/parameters.d.ts +27 -0
  123. package/dist/esm/models/parameters.d.ts.map +1 -0
  124. package/dist/esm/models/parameters.js +185 -0
  125. package/dist/esm/models/parameters.js.map +1 -0
  126. package/dist/esm/operations/customLocations.d.ts +155 -0
  127. package/dist/esm/operations/customLocations.d.ts.map +1 -0
  128. package/dist/esm/operations/customLocations.js +699 -0
  129. package/dist/esm/operations/customLocations.js.map +1 -0
  130. package/dist/esm/operations/index.d.ts +3 -0
  131. package/dist/esm/operations/index.d.ts.map +1 -0
  132. package/dist/esm/operations/index.js +10 -0
  133. package/dist/esm/operations/index.js.map +1 -0
  134. package/dist/esm/operations/resourceSyncRules.d.ts +97 -0
  135. package/dist/esm/operations/resourceSyncRules.d.ts.map +1 -0
  136. package/dist/esm/operations/resourceSyncRules.js +398 -0
  137. package/dist/esm/operations/resourceSyncRules.js.map +1 -0
  138. package/dist/esm/operationsInterfaces/customLocations.d.ts +86 -0
  139. package/dist/esm/operationsInterfaces/customLocations.d.ts.map +1 -0
  140. package/{src/operations/index.ts → dist/esm/operationsInterfaces/customLocations.js} +2 -3
  141. package/dist/esm/operationsInterfaces/customLocations.js.map +1 -0
  142. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  143. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  144. package/dist/esm/operationsInterfaces/index.js +10 -0
  145. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  146. package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts +71 -0
  147. package/dist/esm/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
  148. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/resourceSyncRules.js} +2 -3
  149. package/dist/esm/operationsInterfaces/resourceSyncRules.js.map +1 -0
  150. package/dist/esm/package.json +3 -0
  151. package/dist/esm/pagingHelper.d.ts +13 -0
  152. package/dist/esm/pagingHelper.d.ts.map +1 -0
  153. package/dist/esm/pagingHelper.js +30 -0
  154. package/dist/esm/pagingHelper.js.map +1 -0
  155. package/dist/react-native/customLocationsManagementClient.d.ts +21 -0
  156. package/dist/react-native/customLocationsManagementClient.d.ts.map +1 -0
  157. package/dist/react-native/customLocationsManagementClient.js +108 -0
  158. package/dist/react-native/customLocationsManagementClient.js.map +1 -0
  159. package/dist/react-native/index.d.ts +5 -0
  160. package/dist/react-native/index.d.ts.map +1 -0
  161. package/dist/react-native/index.js +13 -0
  162. package/dist/react-native/index.js.map +1 -0
  163. package/dist/react-native/lroImpl.d.ts +16 -0
  164. package/dist/react-native/lroImpl.d.ts.map +1 -0
  165. package/dist/react-native/lroImpl.js +33 -0
  166. package/dist/react-native/lroImpl.js.map +1 -0
  167. package/dist/react-native/models/index.d.ts +541 -0
  168. package/dist/react-native/models/index.d.ts.map +1 -0
  169. package/dist/react-native/models/index.js +34 -0
  170. package/dist/react-native/models/index.js.map +1 -0
  171. package/dist/react-native/models/mappers.d.ts +26 -0
  172. package/dist/react-native/models/mappers.d.ts.map +1 -0
  173. package/dist/react-native/models/mappers.js +807 -0
  174. package/dist/react-native/models/mappers.js.map +1 -0
  175. package/dist/react-native/models/parameters.d.ts +27 -0
  176. package/dist/react-native/models/parameters.d.ts.map +1 -0
  177. package/dist/react-native/models/parameters.js +185 -0
  178. package/dist/react-native/models/parameters.js.map +1 -0
  179. package/dist/react-native/operations/customLocations.d.ts +155 -0
  180. package/dist/react-native/operations/customLocations.d.ts.map +1 -0
  181. package/dist/react-native/operations/customLocations.js +699 -0
  182. package/dist/react-native/operations/customLocations.js.map +1 -0
  183. package/dist/react-native/operations/index.d.ts +3 -0
  184. package/dist/react-native/operations/index.d.ts.map +1 -0
  185. package/dist/react-native/operations/index.js +10 -0
  186. package/dist/react-native/operations/index.js.map +1 -0
  187. package/dist/react-native/operations/resourceSyncRules.d.ts +97 -0
  188. package/dist/react-native/operations/resourceSyncRules.d.ts.map +1 -0
  189. package/dist/react-native/operations/resourceSyncRules.js +398 -0
  190. package/dist/react-native/operations/resourceSyncRules.js.map +1 -0
  191. package/dist/react-native/operationsInterfaces/customLocations.d.ts +86 -0
  192. package/dist/react-native/operationsInterfaces/customLocations.d.ts.map +1 -0
  193. package/dist/react-native/operationsInterfaces/customLocations.js +9 -0
  194. package/dist/react-native/operationsInterfaces/customLocations.js.map +1 -0
  195. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  196. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  197. package/dist/react-native/operationsInterfaces/index.js +10 -0
  198. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  199. package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts +71 -0
  200. package/dist/react-native/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
  201. package/dist/react-native/operationsInterfaces/resourceSyncRules.js +9 -0
  202. package/dist/react-native/operationsInterfaces/resourceSyncRules.js.map +1 -0
  203. package/dist/react-native/package.json +3 -0
  204. package/dist/react-native/pagingHelper.d.ts +13 -0
  205. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  206. package/dist/react-native/pagingHelper.js +30 -0
  207. package/dist/react-native/pagingHelper.js.map +1 -0
  208. package/package.json +88 -77
  209. package/review/{arm-extendedlocation.api.md → arm-extendedlocation-node.api.md} +3 -0
  210. package/dist/index.js +0 -2230
  211. package/dist/index.js.map +0 -1
  212. package/dist/index.min.js +0 -1
  213. package/dist/index.min.js.map +0 -1
  214. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +0 -42
  217. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +0 -1
  218. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +0 -2
  219. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/customLocationsDeleteSample.js +0 -31
  221. package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +0 -1
  222. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +0 -34
  225. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +0 -1
  226. package/dist-esm/samples-dev/customLocationsGetSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/customLocationsGetSample.js +0 -31
  229. package/dist-esm/samples-dev/customLocationsGetSample.js.map +0 -1
  230. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +0 -44
  233. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +0 -1
  234. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +0 -43
  237. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +0 -1
  238. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +0 -45
  241. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +0 -1
  242. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/customLocationsListOperationsSample.js +0 -43
  245. package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +0 -1
  246. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/customLocationsUpdateSample.js +0 -34
  249. package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +0 -1
  250. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +0 -41
  253. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +0 -1
  254. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +0 -2
  255. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +0 -32
  257. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +0 -1
  258. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +0 -2
  259. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +0 -1
  260. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +0 -32
  261. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +0 -1
  262. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +0 -2
  263. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +0 -45
  265. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +0 -1
  266. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +0 -2
  267. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +0 -1
  268. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +0 -34
  269. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +0 -1
  270. package/dist-esm/src/customLocationsManagementClient.d.ts.map +0 -1
  271. package/dist-esm/src/customLocationsManagementClient.js.map +0 -1
  272. package/dist-esm/src/index.d.ts +0 -5
  273. package/dist-esm/src/index.d.ts.map +0 -1
  274. package/dist-esm/src/index.js.map +0 -1
  275. package/dist-esm/src/lroImpl.js.map +0 -1
  276. package/dist-esm/src/models/index.js.map +0 -1
  277. package/dist-esm/src/models/mappers.js.map +0 -1
  278. package/dist-esm/src/models/parameters.js.map +0 -1
  279. package/dist-esm/src/operations/customLocations.d.ts.map +0 -1
  280. package/dist-esm/src/operations/customLocations.js.map +0 -1
  281. package/dist-esm/src/operations/index.d.ts +0 -3
  282. package/dist-esm/src/operations/index.js.map +0 -1
  283. package/dist-esm/src/operations/resourceSyncRules.d.ts.map +0 -1
  284. package/dist-esm/src/operations/resourceSyncRules.js.map +0 -1
  285. package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +0 -1
  286. package/dist-esm/src/operationsInterfaces/customLocations.js.map +0 -1
  287. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  288. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  289. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
  290. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js.map +0 -1
  291. package/dist-esm/test/sampleTest.d.ts +0 -2
  292. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  293. package/dist-esm/test/sampleTest.js +0 -38
  294. package/dist-esm/test/sampleTest.js.map +0 -1
  295. package/rollup.config.js +0 -122
  296. package/src/customLocationsManagementClient.ts +0 -136
  297. package/src/lroImpl.ts +0 -34
  298. package/src/models/index.ts +0 -606
  299. package/src/models/mappers.ts +0 -832
  300. package/src/models/parameters.ts +0 -225
  301. package/src/operations/customLocations.ts +0 -927
  302. package/src/operations/resourceSyncRules.ts +0 -562
  303. package/src/operationsInterfaces/customLocations.ts +0 -160
  304. package/src/operationsInterfaces/resourceSyncRules.ts +0 -136
  305. package/tsconfig.json +0 -33
  306. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  307. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  308. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  309. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  310. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  311. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  312. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  313. /package/{dist-esm/src → dist/browser}/operationsInterfaces/customLocations.js +0 -0
  314. /package/{dist-esm/src → dist/browser}/operationsInterfaces/resourceSyncRules.js +0 -0
@@ -1,927 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { CustomLocations } from "../operationsInterfaces";
11
- import * as coreClient from "@azure/core-client";
12
- import * as Mappers from "../models/mappers";
13
- import * as Parameters from "../models/parameters";
14
- import { CustomLocationsManagementClient } from "../customLocationsManagementClient";
15
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
- import { LroImpl } from "../lroImpl";
17
- import {
18
- CustomLocationOperation,
19
- CustomLocationsListOperationsNextOptionalParams,
20
- CustomLocationsListOperationsOptionalParams,
21
- CustomLocation,
22
- CustomLocationsListBySubscriptionNextOptionalParams,
23
- CustomLocationsListBySubscriptionOptionalParams,
24
- CustomLocationsListByResourceGroupNextOptionalParams,
25
- CustomLocationsListByResourceGroupOptionalParams,
26
- EnabledResourceType,
27
- CustomLocationsListEnabledResourceTypesNextOptionalParams,
28
- CustomLocationsListEnabledResourceTypesOptionalParams,
29
- CustomLocationsListOperationsResponse,
30
- CustomLocationsListBySubscriptionResponse,
31
- CustomLocationsListByResourceGroupResponse,
32
- CustomLocationsGetOptionalParams,
33
- CustomLocationsGetResponse,
34
- CustomLocationsCreateOrUpdateOptionalParams,
35
- CustomLocationsCreateOrUpdateResponse,
36
- CustomLocationsDeleteOptionalParams,
37
- CustomLocationsUpdateOptionalParams,
38
- CustomLocationsUpdateResponse,
39
- CustomLocationsListEnabledResourceTypesResponse,
40
- CustomLocationFindTargetResourceGroupProperties,
41
- CustomLocationsFindTargetResourceGroupOptionalParams,
42
- CustomLocationsFindTargetResourceGroupResponse,
43
- CustomLocationsListOperationsNextResponse,
44
- CustomLocationsListBySubscriptionNextResponse,
45
- CustomLocationsListByResourceGroupNextResponse,
46
- CustomLocationsListEnabledResourceTypesNextResponse
47
- } from "../models";
48
-
49
- /// <reference lib="esnext.asynciterable" />
50
- /** Class containing CustomLocations operations. */
51
- export class CustomLocationsImpl implements CustomLocations {
52
- private readonly client: CustomLocationsManagementClient;
53
-
54
- /**
55
- * Initialize a new instance of the class CustomLocations class.
56
- * @param client Reference to the service client
57
- */
58
- constructor(client: CustomLocationsManagementClient) {
59
- this.client = client;
60
- }
61
-
62
- /**
63
- * Lists all available Custom Locations operations.
64
- * @param options The options parameters.
65
- */
66
- public listOperations(
67
- options?: CustomLocationsListOperationsOptionalParams
68
- ): PagedAsyncIterableIterator<CustomLocationOperation> {
69
- const iter = this.listOperationsPagingAll(options);
70
- return {
71
- next() {
72
- return iter.next();
73
- },
74
- [Symbol.asyncIterator]() {
75
- return this;
76
- },
77
- byPage: () => {
78
- return this.listOperationsPagingPage(options);
79
- }
80
- };
81
- }
82
-
83
- private async *listOperationsPagingPage(
84
- options?: CustomLocationsListOperationsOptionalParams
85
- ): AsyncIterableIterator<CustomLocationOperation[]> {
86
- let result = await this._listOperations(options);
87
- yield result.value || [];
88
- let continuationToken = result.nextLink;
89
- while (continuationToken) {
90
- result = await this._listOperationsNext(continuationToken, options);
91
- continuationToken = result.nextLink;
92
- yield result.value || [];
93
- }
94
- }
95
-
96
- private async *listOperationsPagingAll(
97
- options?: CustomLocationsListOperationsOptionalParams
98
- ): AsyncIterableIterator<CustomLocationOperation> {
99
- for await (const page of this.listOperationsPagingPage(options)) {
100
- yield* page;
101
- }
102
- }
103
-
104
- /**
105
- * Gets a list of Custom Locations in the specified subscription. The operation returns properties of
106
- * each Custom Location
107
- * @param options The options parameters.
108
- */
109
- public listBySubscription(
110
- options?: CustomLocationsListBySubscriptionOptionalParams
111
- ): PagedAsyncIterableIterator<CustomLocation> {
112
- const iter = this.listBySubscriptionPagingAll(options);
113
- return {
114
- next() {
115
- return iter.next();
116
- },
117
- [Symbol.asyncIterator]() {
118
- return this;
119
- },
120
- byPage: () => {
121
- return this.listBySubscriptionPagingPage(options);
122
- }
123
- };
124
- }
125
-
126
- private async *listBySubscriptionPagingPage(
127
- options?: CustomLocationsListBySubscriptionOptionalParams
128
- ): AsyncIterableIterator<CustomLocation[]> {
129
- let result = await this._listBySubscription(options);
130
- yield result.value || [];
131
- let continuationToken = result.nextLink;
132
- while (continuationToken) {
133
- result = await this._listBySubscriptionNext(continuationToken, options);
134
- continuationToken = result.nextLink;
135
- yield result.value || [];
136
- }
137
- }
138
-
139
- private async *listBySubscriptionPagingAll(
140
- options?: CustomLocationsListBySubscriptionOptionalParams
141
- ): AsyncIterableIterator<CustomLocation> {
142
- for await (const page of this.listBySubscriptionPagingPage(options)) {
143
- yield* page;
144
- }
145
- }
146
-
147
- /**
148
- * Gets a list of Custom Locations in the specified subscription and resource group. The operation
149
- * returns properties of each Custom Location.
150
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
151
- * @param options The options parameters.
152
- */
153
- public listByResourceGroup(
154
- resourceGroupName: string,
155
- options?: CustomLocationsListByResourceGroupOptionalParams
156
- ): PagedAsyncIterableIterator<CustomLocation> {
157
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
158
- return {
159
- next() {
160
- return iter.next();
161
- },
162
- [Symbol.asyncIterator]() {
163
- return this;
164
- },
165
- byPage: () => {
166
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
167
- }
168
- };
169
- }
170
-
171
- private async *listByResourceGroupPagingPage(
172
- resourceGroupName: string,
173
- options?: CustomLocationsListByResourceGroupOptionalParams
174
- ): AsyncIterableIterator<CustomLocation[]> {
175
- let result = await this._listByResourceGroup(resourceGroupName, options);
176
- yield result.value || [];
177
- let continuationToken = result.nextLink;
178
- while (continuationToken) {
179
- result = await this._listByResourceGroupNext(
180
- resourceGroupName,
181
- continuationToken,
182
- options
183
- );
184
- continuationToken = result.nextLink;
185
- yield result.value || [];
186
- }
187
- }
188
-
189
- private async *listByResourceGroupPagingAll(
190
- resourceGroupName: string,
191
- options?: CustomLocationsListByResourceGroupOptionalParams
192
- ): AsyncIterableIterator<CustomLocation> {
193
- for await (const page of this.listByResourceGroupPagingPage(
194
- resourceGroupName,
195
- options
196
- )) {
197
- yield* page;
198
- }
199
- }
200
-
201
- /**
202
- * Gets the list of the Enabled Resource Types.
203
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
204
- * @param resourceName Custom Locations name.
205
- * @param options The options parameters.
206
- */
207
- public listEnabledResourceTypes(
208
- resourceGroupName: string,
209
- resourceName: string,
210
- options?: CustomLocationsListEnabledResourceTypesOptionalParams
211
- ): PagedAsyncIterableIterator<EnabledResourceType> {
212
- const iter = this.listEnabledResourceTypesPagingAll(
213
- resourceGroupName,
214
- resourceName,
215
- options
216
- );
217
- return {
218
- next() {
219
- return iter.next();
220
- },
221
- [Symbol.asyncIterator]() {
222
- return this;
223
- },
224
- byPage: () => {
225
- return this.listEnabledResourceTypesPagingPage(
226
- resourceGroupName,
227
- resourceName,
228
- options
229
- );
230
- }
231
- };
232
- }
233
-
234
- private async *listEnabledResourceTypesPagingPage(
235
- resourceGroupName: string,
236
- resourceName: string,
237
- options?: CustomLocationsListEnabledResourceTypesOptionalParams
238
- ): AsyncIterableIterator<EnabledResourceType[]> {
239
- let result = await this._listEnabledResourceTypes(
240
- resourceGroupName,
241
- resourceName,
242
- options
243
- );
244
- yield result.value || [];
245
- let continuationToken = result.nextLink;
246
- while (continuationToken) {
247
- result = await this._listEnabledResourceTypesNext(
248
- resourceGroupName,
249
- resourceName,
250
- continuationToken,
251
- options
252
- );
253
- continuationToken = result.nextLink;
254
- yield result.value || [];
255
- }
256
- }
257
-
258
- private async *listEnabledResourceTypesPagingAll(
259
- resourceGroupName: string,
260
- resourceName: string,
261
- options?: CustomLocationsListEnabledResourceTypesOptionalParams
262
- ): AsyncIterableIterator<EnabledResourceType> {
263
- for await (const page of this.listEnabledResourceTypesPagingPage(
264
- resourceGroupName,
265
- resourceName,
266
- options
267
- )) {
268
- yield* page;
269
- }
270
- }
271
-
272
- /**
273
- * Lists all available Custom Locations operations.
274
- * @param options The options parameters.
275
- */
276
- private _listOperations(
277
- options?: CustomLocationsListOperationsOptionalParams
278
- ): Promise<CustomLocationsListOperationsResponse> {
279
- return this.client.sendOperationRequest(
280
- { options },
281
- listOperationsOperationSpec
282
- );
283
- }
284
-
285
- /**
286
- * Gets a list of Custom Locations in the specified subscription. The operation returns properties of
287
- * each Custom Location
288
- * @param options The options parameters.
289
- */
290
- private _listBySubscription(
291
- options?: CustomLocationsListBySubscriptionOptionalParams
292
- ): Promise<CustomLocationsListBySubscriptionResponse> {
293
- return this.client.sendOperationRequest(
294
- { options },
295
- listBySubscriptionOperationSpec
296
- );
297
- }
298
-
299
- /**
300
- * Gets a list of Custom Locations in the specified subscription and resource group. The operation
301
- * returns properties of each Custom Location.
302
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
303
- * @param options The options parameters.
304
- */
305
- private _listByResourceGroup(
306
- resourceGroupName: string,
307
- options?: CustomLocationsListByResourceGroupOptionalParams
308
- ): Promise<CustomLocationsListByResourceGroupResponse> {
309
- return this.client.sendOperationRequest(
310
- { resourceGroupName, options },
311
- listByResourceGroupOperationSpec
312
- );
313
- }
314
-
315
- /**
316
- * Gets the details of the customLocation with a specified resource group and name.
317
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
318
- * @param resourceName Custom Locations name.
319
- * @param options The options parameters.
320
- */
321
- get(
322
- resourceGroupName: string,
323
- resourceName: string,
324
- options?: CustomLocationsGetOptionalParams
325
- ): Promise<CustomLocationsGetResponse> {
326
- return this.client.sendOperationRequest(
327
- { resourceGroupName, resourceName, options },
328
- getOperationSpec
329
- );
330
- }
331
-
332
- /**
333
- * Creates or updates a Custom Location in the specified Subscription and Resource Group
334
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
335
- * @param resourceName Custom Locations name.
336
- * @param parameters Parameters supplied to create or update a Custom Location.
337
- * @param options The options parameters.
338
- */
339
- async beginCreateOrUpdate(
340
- resourceGroupName: string,
341
- resourceName: string,
342
- parameters: CustomLocation,
343
- options?: CustomLocationsCreateOrUpdateOptionalParams
344
- ): Promise<
345
- PollerLike<
346
- PollOperationState<CustomLocationsCreateOrUpdateResponse>,
347
- CustomLocationsCreateOrUpdateResponse
348
- >
349
- > {
350
- const directSendOperation = async (
351
- args: coreClient.OperationArguments,
352
- spec: coreClient.OperationSpec
353
- ): Promise<CustomLocationsCreateOrUpdateResponse> => {
354
- return this.client.sendOperationRequest(args, spec);
355
- };
356
- const sendOperation = async (
357
- args: coreClient.OperationArguments,
358
- spec: coreClient.OperationSpec
359
- ) => {
360
- let currentRawResponse:
361
- | coreClient.FullOperationResponse
362
- | undefined = undefined;
363
- const providedCallback = args.options?.onResponse;
364
- const callback: coreClient.RawResponseCallback = (
365
- rawResponse: coreClient.FullOperationResponse,
366
- flatResponse: unknown
367
- ) => {
368
- currentRawResponse = rawResponse;
369
- providedCallback?.(rawResponse, flatResponse);
370
- };
371
- const updatedArgs = {
372
- ...args,
373
- options: {
374
- ...args.options,
375
- onResponse: callback
376
- }
377
- };
378
- const flatResponse = await directSendOperation(updatedArgs, spec);
379
- return {
380
- flatResponse,
381
- rawResponse: {
382
- statusCode: currentRawResponse!.status,
383
- body: currentRawResponse!.parsedBody,
384
- headers: currentRawResponse!.headers.toJSON()
385
- }
386
- };
387
- };
388
-
389
- const lro = new LroImpl(
390
- sendOperation,
391
- { resourceGroupName, resourceName, parameters, options },
392
- createOrUpdateOperationSpec
393
- );
394
- const poller = new LroEngine(lro, {
395
- resumeFrom: options?.resumeFrom,
396
- intervalInMs: options?.updateIntervalInMs,
397
- lroResourceLocationConfig: "azure-async-operation"
398
- });
399
- await poller.poll();
400
- return poller;
401
- }
402
-
403
- /**
404
- * Creates or updates a Custom Location in the specified Subscription and Resource Group
405
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
406
- * @param resourceName Custom Locations name.
407
- * @param parameters Parameters supplied to create or update a Custom Location.
408
- * @param options The options parameters.
409
- */
410
- async beginCreateOrUpdateAndWait(
411
- resourceGroupName: string,
412
- resourceName: string,
413
- parameters: CustomLocation,
414
- options?: CustomLocationsCreateOrUpdateOptionalParams
415
- ): Promise<CustomLocationsCreateOrUpdateResponse> {
416
- const poller = await this.beginCreateOrUpdate(
417
- resourceGroupName,
418
- resourceName,
419
- parameters,
420
- options
421
- );
422
- return poller.pollUntilDone();
423
- }
424
-
425
- /**
426
- * Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
427
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
428
- * @param resourceName Custom Locations name.
429
- * @param options The options parameters.
430
- */
431
- async beginDelete(
432
- resourceGroupName: string,
433
- resourceName: string,
434
- options?: CustomLocationsDeleteOptionalParams
435
- ): Promise<PollerLike<PollOperationState<void>, void>> {
436
- const directSendOperation = async (
437
- args: coreClient.OperationArguments,
438
- spec: coreClient.OperationSpec
439
- ): Promise<void> => {
440
- return this.client.sendOperationRequest(args, spec);
441
- };
442
- const sendOperation = async (
443
- args: coreClient.OperationArguments,
444
- spec: coreClient.OperationSpec
445
- ) => {
446
- let currentRawResponse:
447
- | coreClient.FullOperationResponse
448
- | undefined = undefined;
449
- const providedCallback = args.options?.onResponse;
450
- const callback: coreClient.RawResponseCallback = (
451
- rawResponse: coreClient.FullOperationResponse,
452
- flatResponse: unknown
453
- ) => {
454
- currentRawResponse = rawResponse;
455
- providedCallback?.(rawResponse, flatResponse);
456
- };
457
- const updatedArgs = {
458
- ...args,
459
- options: {
460
- ...args.options,
461
- onResponse: callback
462
- }
463
- };
464
- const flatResponse = await directSendOperation(updatedArgs, spec);
465
- return {
466
- flatResponse,
467
- rawResponse: {
468
- statusCode: currentRawResponse!.status,
469
- body: currentRawResponse!.parsedBody,
470
- headers: currentRawResponse!.headers.toJSON()
471
- }
472
- };
473
- };
474
-
475
- const lro = new LroImpl(
476
- sendOperation,
477
- { resourceGroupName, resourceName, options },
478
- deleteOperationSpec
479
- );
480
- const poller = new LroEngine(lro, {
481
- resumeFrom: options?.resumeFrom,
482
- intervalInMs: options?.updateIntervalInMs,
483
- lroResourceLocationConfig: "azure-async-operation"
484
- });
485
- await poller.poll();
486
- return poller;
487
- }
488
-
489
- /**
490
- * Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
491
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
492
- * @param resourceName Custom Locations name.
493
- * @param options The options parameters.
494
- */
495
- async beginDeleteAndWait(
496
- resourceGroupName: string,
497
- resourceName: string,
498
- options?: CustomLocationsDeleteOptionalParams
499
- ): Promise<void> {
500
- const poller = await this.beginDelete(
501
- resourceGroupName,
502
- resourceName,
503
- options
504
- );
505
- return poller.pollUntilDone();
506
- }
507
-
508
- /**
509
- * Updates a Custom Location with the specified Resource Name in the specified Resource Group and
510
- * Subscription.
511
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
512
- * @param resourceName Custom Locations name.
513
- * @param options The options parameters.
514
- */
515
- update(
516
- resourceGroupName: string,
517
- resourceName: string,
518
- options?: CustomLocationsUpdateOptionalParams
519
- ): Promise<CustomLocationsUpdateResponse> {
520
- return this.client.sendOperationRequest(
521
- { resourceGroupName, resourceName, options },
522
- updateOperationSpec
523
- );
524
- }
525
-
526
- /**
527
- * Gets the list of the Enabled Resource Types.
528
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
529
- * @param resourceName Custom Locations name.
530
- * @param options The options parameters.
531
- */
532
- private _listEnabledResourceTypes(
533
- resourceGroupName: string,
534
- resourceName: string,
535
- options?: CustomLocationsListEnabledResourceTypesOptionalParams
536
- ): Promise<CustomLocationsListEnabledResourceTypesResponse> {
537
- return this.client.sendOperationRequest(
538
- { resourceGroupName, resourceName, options },
539
- listEnabledResourceTypesOperationSpec
540
- );
541
- }
542
-
543
- /**
544
- * Returns the target resource group associated with the resource sync rules of the Custom Location
545
- * that match the rules passed in with the Find Target Resource Group Request.
546
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
547
- * @param resourceName Custom Locations name.
548
- * @param parameters Parameters of the find target resource group request.
549
- * @param options The options parameters.
550
- */
551
- findTargetResourceGroup(
552
- resourceGroupName: string,
553
- resourceName: string,
554
- parameters: CustomLocationFindTargetResourceGroupProperties,
555
- options?: CustomLocationsFindTargetResourceGroupOptionalParams
556
- ): Promise<CustomLocationsFindTargetResourceGroupResponse> {
557
- return this.client.sendOperationRequest(
558
- { resourceGroupName, resourceName, parameters, options },
559
- findTargetResourceGroupOperationSpec
560
- );
561
- }
562
-
563
- /**
564
- * ListOperationsNext
565
- * @param nextLink The nextLink from the previous successful call to the ListOperations method.
566
- * @param options The options parameters.
567
- */
568
- private _listOperationsNext(
569
- nextLink: string,
570
- options?: CustomLocationsListOperationsNextOptionalParams
571
- ): Promise<CustomLocationsListOperationsNextResponse> {
572
- return this.client.sendOperationRequest(
573
- { nextLink, options },
574
- listOperationsNextOperationSpec
575
- );
576
- }
577
-
578
- /**
579
- * ListBySubscriptionNext
580
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
581
- * @param options The options parameters.
582
- */
583
- private _listBySubscriptionNext(
584
- nextLink: string,
585
- options?: CustomLocationsListBySubscriptionNextOptionalParams
586
- ): Promise<CustomLocationsListBySubscriptionNextResponse> {
587
- return this.client.sendOperationRequest(
588
- { nextLink, options },
589
- listBySubscriptionNextOperationSpec
590
- );
591
- }
592
-
593
- /**
594
- * ListByResourceGroupNext
595
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
596
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
597
- * @param options The options parameters.
598
- */
599
- private _listByResourceGroupNext(
600
- resourceGroupName: string,
601
- nextLink: string,
602
- options?: CustomLocationsListByResourceGroupNextOptionalParams
603
- ): Promise<CustomLocationsListByResourceGroupNextResponse> {
604
- return this.client.sendOperationRequest(
605
- { resourceGroupName, nextLink, options },
606
- listByResourceGroupNextOperationSpec
607
- );
608
- }
609
-
610
- /**
611
- * ListEnabledResourceTypesNext
612
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
613
- * @param resourceName Custom Locations name.
614
- * @param nextLink The nextLink from the previous successful call to the ListEnabledResourceTypes
615
- * method.
616
- * @param options The options parameters.
617
- */
618
- private _listEnabledResourceTypesNext(
619
- resourceGroupName: string,
620
- resourceName: string,
621
- nextLink: string,
622
- options?: CustomLocationsListEnabledResourceTypesNextOptionalParams
623
- ): Promise<CustomLocationsListEnabledResourceTypesNextResponse> {
624
- return this.client.sendOperationRequest(
625
- { resourceGroupName, resourceName, nextLink, options },
626
- listEnabledResourceTypesNextOperationSpec
627
- );
628
- }
629
- }
630
- // Operation Specifications
631
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
632
-
633
- const listOperationsOperationSpec: coreClient.OperationSpec = {
634
- path: "/providers/Microsoft.ExtendedLocation/operations",
635
- httpMethod: "GET",
636
- responses: {
637
- 200: {
638
- bodyMapper: Mappers.CustomLocationOperationsList
639
- },
640
- default: {
641
- bodyMapper: Mappers.ErrorResponse
642
- }
643
- },
644
- queryParameters: [Parameters.apiVersion],
645
- urlParameters: [Parameters.$host],
646
- headerParameters: [Parameters.accept],
647
- serializer
648
- };
649
- const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
650
- path:
651
- "/subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations",
652
- httpMethod: "GET",
653
- responses: {
654
- 200: {
655
- bodyMapper: Mappers.CustomLocationListResult
656
- },
657
- default: {
658
- bodyMapper: Mappers.ErrorResponse
659
- }
660
- },
661
- queryParameters: [Parameters.apiVersion],
662
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
663
- headerParameters: [Parameters.accept],
664
- serializer
665
- };
666
- const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
667
- path:
668
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations",
669
- httpMethod: "GET",
670
- responses: {
671
- 200: {
672
- bodyMapper: Mappers.CustomLocationListResult
673
- },
674
- default: {
675
- bodyMapper: Mappers.ErrorResponse
676
- }
677
- },
678
- queryParameters: [Parameters.apiVersion],
679
- urlParameters: [
680
- Parameters.$host,
681
- Parameters.subscriptionId,
682
- Parameters.resourceGroupName
683
- ],
684
- headerParameters: [Parameters.accept],
685
- serializer
686
- };
687
- const getOperationSpec: coreClient.OperationSpec = {
688
- path:
689
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
690
- httpMethod: "GET",
691
- responses: {
692
- 200: {
693
- bodyMapper: Mappers.CustomLocation
694
- },
695
- default: {
696
- bodyMapper: Mappers.ErrorResponse
697
- }
698
- },
699
- queryParameters: [Parameters.apiVersion],
700
- urlParameters: [
701
- Parameters.$host,
702
- Parameters.subscriptionId,
703
- Parameters.resourceGroupName,
704
- Parameters.resourceName
705
- ],
706
- headerParameters: [Parameters.accept],
707
- serializer
708
- };
709
- const createOrUpdateOperationSpec: coreClient.OperationSpec = {
710
- path:
711
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
712
- httpMethod: "PUT",
713
- responses: {
714
- 200: {
715
- bodyMapper: Mappers.CustomLocation
716
- },
717
- 201: {
718
- bodyMapper: Mappers.CustomLocation
719
- },
720
- 202: {
721
- bodyMapper: Mappers.CustomLocation
722
- },
723
- 204: {
724
- bodyMapper: Mappers.CustomLocation
725
- },
726
- default: {
727
- bodyMapper: Mappers.ErrorResponse
728
- }
729
- },
730
- requestBody: Parameters.parameters,
731
- queryParameters: [Parameters.apiVersion],
732
- urlParameters: [
733
- Parameters.$host,
734
- Parameters.subscriptionId,
735
- Parameters.resourceGroupName,
736
- Parameters.resourceName
737
- ],
738
- headerParameters: [Parameters.accept, Parameters.contentType],
739
- mediaType: "json",
740
- serializer
741
- };
742
- const deleteOperationSpec: coreClient.OperationSpec = {
743
- path:
744
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
745
- httpMethod: "DELETE",
746
- responses: {
747
- 200: {},
748
- 201: {},
749
- 202: {},
750
- 204: {},
751
- default: {
752
- bodyMapper: Mappers.ErrorResponse
753
- }
754
- },
755
- queryParameters: [Parameters.apiVersion],
756
- urlParameters: [
757
- Parameters.$host,
758
- Parameters.subscriptionId,
759
- Parameters.resourceGroupName,
760
- Parameters.resourceName
761
- ],
762
- headerParameters: [Parameters.accept],
763
- serializer
764
- };
765
- const updateOperationSpec: coreClient.OperationSpec = {
766
- path:
767
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
768
- httpMethod: "PATCH",
769
- responses: {
770
- 200: {
771
- bodyMapper: Mappers.CustomLocation
772
- },
773
- default: {
774
- bodyMapper: Mappers.ErrorResponse
775
- }
776
- },
777
- requestBody: {
778
- parameterPath: {
779
- identity: ["options", "identity"],
780
- tags: ["options", "tags"],
781
- authentication: ["options", "authentication"],
782
- clusterExtensionIds: ["options", "clusterExtensionIds"],
783
- displayName: ["options", "displayName"],
784
- hostResourceId: ["options", "hostResourceId"],
785
- hostType: ["options", "hostType"],
786
- namespace: ["options", "namespace"],
787
- provisioningState: ["options", "provisioningState"]
788
- },
789
- mapper: { ...Mappers.PatchableCustomLocations, required: true }
790
- },
791
- queryParameters: [Parameters.apiVersion],
792
- urlParameters: [
793
- Parameters.$host,
794
- Parameters.subscriptionId,
795
- Parameters.resourceGroupName,
796
- Parameters.resourceName
797
- ],
798
- headerParameters: [Parameters.accept, Parameters.contentType],
799
- mediaType: "json",
800
- serializer
801
- };
802
- const listEnabledResourceTypesOperationSpec: coreClient.OperationSpec = {
803
- path:
804
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes",
805
- httpMethod: "GET",
806
- responses: {
807
- 200: {
808
- bodyMapper: Mappers.EnabledResourceTypesListResult
809
- },
810
- default: {
811
- bodyMapper: Mappers.ErrorResponse
812
- }
813
- },
814
- queryParameters: [Parameters.apiVersion],
815
- urlParameters: [
816
- Parameters.$host,
817
- Parameters.subscriptionId,
818
- Parameters.resourceGroupName,
819
- Parameters.resourceName
820
- ],
821
- headerParameters: [Parameters.accept],
822
- serializer
823
- };
824
- const findTargetResourceGroupOperationSpec: coreClient.OperationSpec = {
825
- path:
826
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup",
827
- httpMethod: "POST",
828
- responses: {
829
- 200: {
830
- bodyMapper: Mappers.CustomLocationFindTargetResourceGroupResult
831
- },
832
- 204: {},
833
- default: {
834
- bodyMapper: Mappers.ErrorResponse
835
- }
836
- },
837
- requestBody: Parameters.parameters2,
838
- queryParameters: [Parameters.apiVersion],
839
- urlParameters: [
840
- Parameters.$host,
841
- Parameters.subscriptionId,
842
- Parameters.resourceGroupName,
843
- Parameters.resourceName
844
- ],
845
- headerParameters: [Parameters.accept, Parameters.contentType],
846
- mediaType: "json",
847
- serializer
848
- };
849
- const listOperationsNextOperationSpec: coreClient.OperationSpec = {
850
- path: "{nextLink}",
851
- httpMethod: "GET",
852
- responses: {
853
- 200: {
854
- bodyMapper: Mappers.CustomLocationOperationsList
855
- },
856
- default: {
857
- bodyMapper: Mappers.ErrorResponse
858
- }
859
- },
860
- queryParameters: [Parameters.apiVersion],
861
- urlParameters: [Parameters.$host, Parameters.nextLink],
862
- headerParameters: [Parameters.accept],
863
- serializer
864
- };
865
- const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
866
- path: "{nextLink}",
867
- httpMethod: "GET",
868
- responses: {
869
- 200: {
870
- bodyMapper: Mappers.CustomLocationListResult
871
- },
872
- default: {
873
- bodyMapper: Mappers.ErrorResponse
874
- }
875
- },
876
- queryParameters: [Parameters.apiVersion],
877
- urlParameters: [
878
- Parameters.$host,
879
- Parameters.subscriptionId,
880
- Parameters.nextLink
881
- ],
882
- headerParameters: [Parameters.accept],
883
- serializer
884
- };
885
- const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
886
- path: "{nextLink}",
887
- httpMethod: "GET",
888
- responses: {
889
- 200: {
890
- bodyMapper: Mappers.CustomLocationListResult
891
- },
892
- default: {
893
- bodyMapper: Mappers.ErrorResponse
894
- }
895
- },
896
- queryParameters: [Parameters.apiVersion],
897
- urlParameters: [
898
- Parameters.$host,
899
- Parameters.subscriptionId,
900
- Parameters.resourceGroupName,
901
- Parameters.nextLink
902
- ],
903
- headerParameters: [Parameters.accept],
904
- serializer
905
- };
906
- const listEnabledResourceTypesNextOperationSpec: coreClient.OperationSpec = {
907
- path: "{nextLink}",
908
- httpMethod: "GET",
909
- responses: {
910
- 200: {
911
- bodyMapper: Mappers.EnabledResourceTypesListResult
912
- },
913
- default: {
914
- bodyMapper: Mappers.ErrorResponse
915
- }
916
- },
917
- queryParameters: [Parameters.apiVersion],
918
- urlParameters: [
919
- Parameters.$host,
920
- Parameters.subscriptionId,
921
- Parameters.resourceGroupName,
922
- Parameters.resourceName,
923
- Parameters.nextLink
924
- ],
925
- headerParameters: [Parameters.accept],
926
- serializer
927
- };