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