@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
package/dist/index.js DELETED
@@ -1,2315 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n["default"] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
-
31
- /*
32
- * Copyright (c) Microsoft Corporation.
33
- * Licensed under the MIT License.
34
- *
35
- * Code generated by Microsoft (R) AutoRest Code Generator.
36
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
- */
38
- const pageMap = new WeakMap();
39
- /**
40
- * Given the last `.value` produced by the `byPage` iterator,
41
- * returns a continuation token that can be used to begin paging from
42
- * that point later.
43
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
- * @returns The continuation token that can be passed into byPage() during future calls.
45
- */
46
- function getContinuationToken(page) {
47
- var _a;
48
- if (typeof page !== "object" || page === null) {
49
- return undefined;
50
- }
51
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
- }
53
- function setContinuationToken(page, continuationToken) {
54
- var _a;
55
- if (typeof page !== "object" || page === null || !continuationToken) {
56
- return;
57
- }
58
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
- pageInfo.continuationToken = continuationToken;
60
- pageMap.set(page, pageInfo);
61
- }
62
-
63
- /*
64
- * Copyright (c) Microsoft Corporation.
65
- * Licensed under the MIT License.
66
- *
67
- * Code generated by Microsoft (R) AutoRest Code Generator.
68
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
- */
70
- /** Known values of {@link ResourceIdentityType} that the service accepts. */
71
- exports.KnownResourceIdentityType = void 0;
72
- (function (KnownResourceIdentityType) {
73
- /** SystemAssigned */
74
- KnownResourceIdentityType["SystemAssigned"] = "SystemAssigned";
75
- /** None */
76
- KnownResourceIdentityType["None"] = "None";
77
- })(exports.KnownResourceIdentityType || (exports.KnownResourceIdentityType = {}));
78
- /** Known values of {@link HostType} that the service accepts. */
79
- exports.KnownHostType = void 0;
80
- (function (KnownHostType) {
81
- /** Kubernetes */
82
- KnownHostType["Kubernetes"] = "Kubernetes";
83
- })(exports.KnownHostType || (exports.KnownHostType = {}));
84
- /** Known values of {@link CreatedByType} that the service accepts. */
85
- exports.KnownCreatedByType = void 0;
86
- (function (KnownCreatedByType) {
87
- /** User */
88
- KnownCreatedByType["User"] = "User";
89
- /** Application */
90
- KnownCreatedByType["Application"] = "Application";
91
- /** ManagedIdentity */
92
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
93
- /** Key */
94
- KnownCreatedByType["Key"] = "Key";
95
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
96
-
97
- /*
98
- * Copyright (c) Microsoft Corporation.
99
- * Licensed under the MIT License.
100
- *
101
- * Code generated by Microsoft (R) AutoRest Code Generator.
102
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
103
- */
104
- const CustomLocationOperationsList = {
105
- type: {
106
- name: "Composite",
107
- className: "CustomLocationOperationsList",
108
- modelProperties: {
109
- nextLink: {
110
- serializedName: "nextLink",
111
- type: {
112
- name: "String"
113
- }
114
- },
115
- value: {
116
- serializedName: "value",
117
- required: true,
118
- type: {
119
- name: "Sequence",
120
- element: {
121
- type: {
122
- name: "Composite",
123
- className: "CustomLocationOperation"
124
- }
125
- }
126
- }
127
- }
128
- }
129
- }
130
- };
131
- const CustomLocationOperation = {
132
- type: {
133
- name: "Composite",
134
- className: "CustomLocationOperation",
135
- modelProperties: {
136
- isDataAction: {
137
- serializedName: "isDataAction",
138
- readOnly: true,
139
- type: {
140
- name: "Boolean"
141
- }
142
- },
143
- name: {
144
- serializedName: "name",
145
- readOnly: true,
146
- type: {
147
- name: "String"
148
- }
149
- },
150
- origin: {
151
- serializedName: "origin",
152
- readOnly: true,
153
- type: {
154
- name: "String"
155
- }
156
- },
157
- description: {
158
- serializedName: "display.description",
159
- readOnly: true,
160
- type: {
161
- name: "String"
162
- }
163
- },
164
- operation: {
165
- serializedName: "display.operation",
166
- readOnly: true,
167
- type: {
168
- name: "String"
169
- }
170
- },
171
- provider: {
172
- serializedName: "display.provider",
173
- readOnly: true,
174
- type: {
175
- name: "String"
176
- }
177
- },
178
- resource: {
179
- serializedName: "display.resource",
180
- readOnly: true,
181
- type: {
182
- name: "String"
183
- }
184
- }
185
- }
186
- }
187
- };
188
- const ErrorResponse = {
189
- type: {
190
- name: "Composite",
191
- className: "ErrorResponse",
192
- modelProperties: {
193
- error: {
194
- serializedName: "error",
195
- type: {
196
- name: "Composite",
197
- className: "ErrorDetail"
198
- }
199
- }
200
- }
201
- }
202
- };
203
- const ErrorDetail = {
204
- type: {
205
- name: "Composite",
206
- className: "ErrorDetail",
207
- modelProperties: {
208
- code: {
209
- serializedName: "code",
210
- readOnly: true,
211
- type: {
212
- name: "String"
213
- }
214
- },
215
- message: {
216
- serializedName: "message",
217
- readOnly: true,
218
- type: {
219
- name: "String"
220
- }
221
- },
222
- target: {
223
- serializedName: "target",
224
- readOnly: true,
225
- type: {
226
- name: "String"
227
- }
228
- },
229
- details: {
230
- serializedName: "details",
231
- readOnly: true,
232
- type: {
233
- name: "Sequence",
234
- element: {
235
- type: {
236
- name: "Composite",
237
- className: "ErrorDetail"
238
- }
239
- }
240
- }
241
- },
242
- additionalInfo: {
243
- serializedName: "additionalInfo",
244
- readOnly: true,
245
- type: {
246
- name: "Sequence",
247
- element: {
248
- type: {
249
- name: "Composite",
250
- className: "ErrorAdditionalInfo"
251
- }
252
- }
253
- }
254
- }
255
- }
256
- }
257
- };
258
- const ErrorAdditionalInfo = {
259
- type: {
260
- name: "Composite",
261
- className: "ErrorAdditionalInfo",
262
- modelProperties: {
263
- type: {
264
- serializedName: "type",
265
- readOnly: true,
266
- type: {
267
- name: "String"
268
- }
269
- },
270
- info: {
271
- serializedName: "info",
272
- readOnly: true,
273
- type: {
274
- name: "Dictionary",
275
- value: { type: { name: "any" } }
276
- }
277
- }
278
- }
279
- }
280
- };
281
- const CustomLocationListResult = {
282
- type: {
283
- name: "Composite",
284
- className: "CustomLocationListResult",
285
- modelProperties: {
286
- nextLink: {
287
- serializedName: "nextLink",
288
- readOnly: true,
289
- type: {
290
- name: "String"
291
- }
292
- },
293
- value: {
294
- serializedName: "value",
295
- readOnly: true,
296
- type: {
297
- name: "Sequence",
298
- element: {
299
- type: {
300
- name: "Composite",
301
- className: "CustomLocation"
302
- }
303
- }
304
- }
305
- }
306
- }
307
- }
308
- };
309
- const Identity = {
310
- type: {
311
- name: "Composite",
312
- className: "Identity",
313
- modelProperties: {
314
- principalId: {
315
- serializedName: "principalId",
316
- readOnly: true,
317
- type: {
318
- name: "String"
319
- }
320
- },
321
- tenantId: {
322
- serializedName: "tenantId",
323
- readOnly: true,
324
- type: {
325
- name: "String"
326
- }
327
- },
328
- type: {
329
- serializedName: "type",
330
- type: {
331
- name: "String"
332
- }
333
- }
334
- }
335
- }
336
- };
337
- const CustomLocationPropertiesAuthentication = {
338
- type: {
339
- name: "Composite",
340
- className: "CustomLocationPropertiesAuthentication",
341
- modelProperties: {
342
- type: {
343
- serializedName: "type",
344
- type: {
345
- name: "String"
346
- }
347
- },
348
- value: {
349
- serializedName: "value",
350
- type: {
351
- name: "String"
352
- }
353
- }
354
- }
355
- }
356
- };
357
- const SystemData = {
358
- type: {
359
- name: "Composite",
360
- className: "SystemData",
361
- modelProperties: {
362
- createdBy: {
363
- serializedName: "createdBy",
364
- type: {
365
- name: "String"
366
- }
367
- },
368
- createdByType: {
369
- serializedName: "createdByType",
370
- type: {
371
- name: "String"
372
- }
373
- },
374
- createdAt: {
375
- serializedName: "createdAt",
376
- type: {
377
- name: "DateTime"
378
- }
379
- },
380
- lastModifiedBy: {
381
- serializedName: "lastModifiedBy",
382
- type: {
383
- name: "String"
384
- }
385
- },
386
- lastModifiedByType: {
387
- serializedName: "lastModifiedByType",
388
- type: {
389
- name: "String"
390
- }
391
- },
392
- lastModifiedAt: {
393
- serializedName: "lastModifiedAt",
394
- type: {
395
- name: "DateTime"
396
- }
397
- }
398
- }
399
- }
400
- };
401
- const Resource = {
402
- type: {
403
- name: "Composite",
404
- className: "Resource",
405
- modelProperties: {
406
- id: {
407
- serializedName: "id",
408
- readOnly: true,
409
- type: {
410
- name: "String"
411
- }
412
- },
413
- name: {
414
- serializedName: "name",
415
- readOnly: true,
416
- type: {
417
- name: "String"
418
- }
419
- },
420
- type: {
421
- serializedName: "type",
422
- readOnly: true,
423
- type: {
424
- name: "String"
425
- }
426
- }
427
- }
428
- }
429
- };
430
- const PatchableCustomLocations = {
431
- type: {
432
- name: "Composite",
433
- className: "PatchableCustomLocations",
434
- modelProperties: {
435
- identity: {
436
- serializedName: "identity",
437
- type: {
438
- name: "Composite",
439
- className: "Identity"
440
- }
441
- },
442
- tags: {
443
- serializedName: "tags",
444
- type: {
445
- name: "Dictionary",
446
- value: { type: { name: "String" } }
447
- }
448
- },
449
- authentication: {
450
- serializedName: "properties.authentication",
451
- type: {
452
- name: "Composite",
453
- className: "CustomLocationPropertiesAuthentication"
454
- }
455
- },
456
- clusterExtensionIds: {
457
- serializedName: "properties.clusterExtensionIds",
458
- type: {
459
- name: "Sequence",
460
- element: {
461
- type: {
462
- name: "String"
463
- }
464
- }
465
- }
466
- },
467
- displayName: {
468
- serializedName: "properties.displayName",
469
- type: {
470
- name: "String"
471
- }
472
- },
473
- hostResourceId: {
474
- serializedName: "properties.hostResourceId",
475
- type: {
476
- name: "String"
477
- }
478
- },
479
- hostType: {
480
- serializedName: "properties.hostType",
481
- type: {
482
- name: "String"
483
- }
484
- },
485
- namespace: {
486
- serializedName: "properties.namespace",
487
- type: {
488
- name: "String"
489
- }
490
- },
491
- provisioningState: {
492
- serializedName: "properties.provisioningState",
493
- type: {
494
- name: "String"
495
- }
496
- }
497
- }
498
- }
499
- };
500
- const EnabledResourceTypesListResult = {
501
- type: {
502
- name: "Composite",
503
- className: "EnabledResourceTypesListResult",
504
- modelProperties: {
505
- nextLink: {
506
- serializedName: "nextLink",
507
- readOnly: true,
508
- type: {
509
- name: "String"
510
- }
511
- },
512
- value: {
513
- serializedName: "value",
514
- readOnly: true,
515
- type: {
516
- name: "Sequence",
517
- element: {
518
- type: {
519
- name: "Composite",
520
- className: "EnabledResourceType"
521
- }
522
- }
523
- }
524
- }
525
- }
526
- }
527
- };
528
- const EnabledResourceTypePropertiesTypesMetadataItem = {
529
- type: {
530
- name: "Composite",
531
- className: "EnabledResourceTypePropertiesTypesMetadataItem",
532
- modelProperties: {
533
- apiVersion: {
534
- serializedName: "apiVersion",
535
- type: {
536
- name: "String"
537
- }
538
- },
539
- resourceProviderNamespace: {
540
- serializedName: "resourceProviderNamespace",
541
- type: {
542
- name: "String"
543
- }
544
- },
545
- resourceType: {
546
- serializedName: "resourceType",
547
- type: {
548
- name: "String"
549
- }
550
- }
551
- }
552
- }
553
- };
554
- const CustomLocationFindTargetResourceGroupProperties = {
555
- type: {
556
- name: "Composite",
557
- className: "CustomLocationFindTargetResourceGroupProperties",
558
- modelProperties: {
559
- labels: {
560
- serializedName: "labels",
561
- type: {
562
- name: "Dictionary",
563
- value: { type: { name: "String" } }
564
- }
565
- }
566
- }
567
- }
568
- };
569
- const CustomLocationFindTargetResourceGroupResult = {
570
- type: {
571
- name: "Composite",
572
- className: "CustomLocationFindTargetResourceGroupResult",
573
- modelProperties: {
574
- matchedResourceSyncRule: {
575
- serializedName: "matchedResourceSyncRule",
576
- readOnly: true,
577
- type: {
578
- name: "String"
579
- }
580
- },
581
- targetResourceGroup: {
582
- serializedName: "targetResourceGroup",
583
- readOnly: true,
584
- type: {
585
- name: "String"
586
- }
587
- }
588
- }
589
- }
590
- };
591
- const ResourceSyncRuleListResult = {
592
- type: {
593
- name: "Composite",
594
- className: "ResourceSyncRuleListResult",
595
- modelProperties: {
596
- nextLink: {
597
- serializedName: "nextLink",
598
- readOnly: true,
599
- type: {
600
- name: "String"
601
- }
602
- },
603
- value: {
604
- serializedName: "value",
605
- readOnly: true,
606
- type: {
607
- name: "Sequence",
608
- element: {
609
- type: {
610
- name: "Composite",
611
- className: "ResourceSyncRule"
612
- }
613
- }
614
- }
615
- }
616
- }
617
- }
618
- };
619
- const ResourceSyncRulePropertiesSelector = {
620
- type: {
621
- name: "Composite",
622
- className: "ResourceSyncRulePropertiesSelector",
623
- modelProperties: {
624
- matchExpressions: {
625
- serializedName: "matchExpressions",
626
- type: {
627
- name: "Sequence",
628
- element: {
629
- type: {
630
- name: "Composite",
631
- className: "MatchExpressionsProperties"
632
- }
633
- }
634
- }
635
- },
636
- matchLabels: {
637
- serializedName: "matchLabels",
638
- type: {
639
- name: "Dictionary",
640
- value: { type: { name: "String" } }
641
- }
642
- }
643
- }
644
- }
645
- };
646
- const MatchExpressionsProperties = {
647
- type: {
648
- name: "Composite",
649
- className: "MatchExpressionsProperties",
650
- modelProperties: {
651
- key: {
652
- serializedName: "key",
653
- type: {
654
- name: "String"
655
- }
656
- },
657
- operator: {
658
- serializedName: "operator",
659
- type: {
660
- name: "String"
661
- }
662
- },
663
- values: {
664
- serializedName: "values",
665
- type: {
666
- name: "Sequence",
667
- element: {
668
- type: {
669
- name: "String"
670
- }
671
- }
672
- }
673
- }
674
- }
675
- }
676
- };
677
- const PatchableResourceSyncRule = {
678
- type: {
679
- name: "Composite",
680
- className: "PatchableResourceSyncRule",
681
- modelProperties: {
682
- tags: {
683
- serializedName: "tags",
684
- type: {
685
- name: "Dictionary",
686
- value: { type: { name: "String" } }
687
- }
688
- },
689
- priority: {
690
- serializedName: "properties.priority",
691
- type: {
692
- name: "Number"
693
- }
694
- },
695
- provisioningState: {
696
- serializedName: "properties.provisioningState",
697
- readOnly: true,
698
- type: {
699
- name: "String"
700
- }
701
- },
702
- selector: {
703
- serializedName: "properties.selector",
704
- type: {
705
- name: "Composite",
706
- className: "ResourceSyncRulePropertiesSelector"
707
- }
708
- },
709
- targetResourceGroup: {
710
- serializedName: "properties.targetResourceGroup",
711
- type: {
712
- name: "String"
713
- }
714
- }
715
- }
716
- }
717
- };
718
- const TrackedResource = {
719
- type: {
720
- name: "Composite",
721
- className: "TrackedResource",
722
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
723
- serializedName: "tags",
724
- type: {
725
- name: "Dictionary",
726
- value: { type: { name: "String" } }
727
- }
728
- }, location: {
729
- serializedName: "location",
730
- required: true,
731
- type: {
732
- name: "String"
733
- }
734
- } })
735
- }
736
- };
737
- const ProxyResource = {
738
- type: {
739
- name: "Composite",
740
- className: "ProxyResource",
741
- modelProperties: Object.assign({}, Resource.type.modelProperties)
742
- }
743
- };
744
- const CustomLocation = {
745
- type: {
746
- name: "Composite",
747
- className: "CustomLocation",
748
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
749
- serializedName: "identity",
750
- type: {
751
- name: "Composite",
752
- className: "Identity"
753
- }
754
- }, systemData: {
755
- serializedName: "systemData",
756
- type: {
757
- name: "Composite",
758
- className: "SystemData"
759
- }
760
- }, authentication: {
761
- serializedName: "properties.authentication",
762
- type: {
763
- name: "Composite",
764
- className: "CustomLocationPropertiesAuthentication"
765
- }
766
- }, clusterExtensionIds: {
767
- serializedName: "properties.clusterExtensionIds",
768
- type: {
769
- name: "Sequence",
770
- element: {
771
- type: {
772
- name: "String"
773
- }
774
- }
775
- }
776
- }, displayName: {
777
- serializedName: "properties.displayName",
778
- type: {
779
- name: "String"
780
- }
781
- }, hostResourceId: {
782
- serializedName: "properties.hostResourceId",
783
- type: {
784
- name: "String"
785
- }
786
- }, hostType: {
787
- serializedName: "properties.hostType",
788
- type: {
789
- name: "String"
790
- }
791
- }, namespace: {
792
- serializedName: "properties.namespace",
793
- type: {
794
- name: "String"
795
- }
796
- }, provisioningState: {
797
- serializedName: "properties.provisioningState",
798
- type: {
799
- name: "String"
800
- }
801
- } })
802
- }
803
- };
804
- const ResourceSyncRule = {
805
- type: {
806
- name: "Composite",
807
- className: "ResourceSyncRule",
808
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
809
- serializedName: "systemData",
810
- type: {
811
- name: "Composite",
812
- className: "SystemData"
813
- }
814
- }, priority: {
815
- serializedName: "properties.priority",
816
- type: {
817
- name: "Number"
818
- }
819
- }, provisioningState: {
820
- serializedName: "properties.provisioningState",
821
- readOnly: true,
822
- type: {
823
- name: "String"
824
- }
825
- }, selector: {
826
- serializedName: "properties.selector",
827
- type: {
828
- name: "Composite",
829
- className: "ResourceSyncRulePropertiesSelector"
830
- }
831
- }, targetResourceGroup: {
832
- serializedName: "properties.targetResourceGroup",
833
- type: {
834
- name: "String"
835
- }
836
- } })
837
- }
838
- };
839
- const EnabledResourceType = {
840
- type: {
841
- name: "Composite",
842
- className: "EnabledResourceType",
843
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
844
- serializedName: "systemData",
845
- type: {
846
- name: "Composite",
847
- className: "SystemData"
848
- }
849
- }, clusterExtensionId: {
850
- serializedName: "properties.clusterExtensionId",
851
- type: {
852
- name: "String"
853
- }
854
- }, extensionType: {
855
- serializedName: "properties.extensionType",
856
- type: {
857
- name: "String"
858
- }
859
- }, typesMetadata: {
860
- serializedName: "properties.typesMetadata",
861
- type: {
862
- name: "Sequence",
863
- element: {
864
- type: {
865
- name: "Composite",
866
- className: "EnabledResourceTypePropertiesTypesMetadataItem"
867
- }
868
- }
869
- }
870
- } })
871
- }
872
- };
873
-
874
- var Mappers = /*#__PURE__*/Object.freeze({
875
- __proto__: null,
876
- CustomLocationOperationsList: CustomLocationOperationsList,
877
- CustomLocationOperation: CustomLocationOperation,
878
- ErrorResponse: ErrorResponse,
879
- ErrorDetail: ErrorDetail,
880
- ErrorAdditionalInfo: ErrorAdditionalInfo,
881
- CustomLocationListResult: CustomLocationListResult,
882
- Identity: Identity,
883
- CustomLocationPropertiesAuthentication: CustomLocationPropertiesAuthentication,
884
- SystemData: SystemData,
885
- Resource: Resource,
886
- PatchableCustomLocations: PatchableCustomLocations,
887
- EnabledResourceTypesListResult: EnabledResourceTypesListResult,
888
- EnabledResourceTypePropertiesTypesMetadataItem: EnabledResourceTypePropertiesTypesMetadataItem,
889
- CustomLocationFindTargetResourceGroupProperties: CustomLocationFindTargetResourceGroupProperties,
890
- CustomLocationFindTargetResourceGroupResult: CustomLocationFindTargetResourceGroupResult,
891
- ResourceSyncRuleListResult: ResourceSyncRuleListResult,
892
- ResourceSyncRulePropertiesSelector: ResourceSyncRulePropertiesSelector,
893
- MatchExpressionsProperties: MatchExpressionsProperties,
894
- PatchableResourceSyncRule: PatchableResourceSyncRule,
895
- TrackedResource: TrackedResource,
896
- ProxyResource: ProxyResource,
897
- CustomLocation: CustomLocation,
898
- ResourceSyncRule: ResourceSyncRule,
899
- EnabledResourceType: EnabledResourceType
900
- });
901
-
902
- /*
903
- * Copyright (c) Microsoft Corporation.
904
- * Licensed under the MIT License.
905
- *
906
- * Code generated by Microsoft (R) AutoRest Code Generator.
907
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
908
- */
909
- const accept = {
910
- parameterPath: "accept",
911
- mapper: {
912
- defaultValue: "application/json",
913
- isConstant: true,
914
- serializedName: "Accept",
915
- type: {
916
- name: "String"
917
- }
918
- }
919
- };
920
- const $host = {
921
- parameterPath: "$host",
922
- mapper: {
923
- serializedName: "$host",
924
- required: true,
925
- type: {
926
- name: "String"
927
- }
928
- },
929
- skipEncoding: true
930
- };
931
- const apiVersion = {
932
- parameterPath: "apiVersion",
933
- mapper: {
934
- defaultValue: "2021-08-31-preview",
935
- isConstant: true,
936
- serializedName: "api-version",
937
- type: {
938
- name: "String"
939
- }
940
- }
941
- };
942
- const subscriptionId = {
943
- parameterPath: "subscriptionId",
944
- mapper: {
945
- constraints: {
946
- MinLength: 1
947
- },
948
- serializedName: "subscriptionId",
949
- required: true,
950
- type: {
951
- name: "String"
952
- }
953
- }
954
- };
955
- const resourceGroupName = {
956
- parameterPath: "resourceGroupName",
957
- mapper: {
958
- constraints: {
959
- MaxLength: 90,
960
- MinLength: 1
961
- },
962
- serializedName: "resourceGroupName",
963
- required: true,
964
- type: {
965
- name: "String"
966
- }
967
- }
968
- };
969
- const resourceName = {
970
- parameterPath: "resourceName",
971
- mapper: {
972
- constraints: {
973
- Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
974
- MaxLength: 63,
975
- MinLength: 1
976
- },
977
- serializedName: "resourceName",
978
- required: true,
979
- type: {
980
- name: "String"
981
- }
982
- }
983
- };
984
- const contentType = {
985
- parameterPath: ["options", "contentType"],
986
- mapper: {
987
- defaultValue: "application/json",
988
- isConstant: true,
989
- serializedName: "Content-Type",
990
- type: {
991
- name: "String"
992
- }
993
- }
994
- };
995
- const parameters = {
996
- parameterPath: "parameters",
997
- mapper: CustomLocation
998
- };
999
- const parameters2 = {
1000
- parameterPath: "parameters",
1001
- mapper: CustomLocationFindTargetResourceGroupProperties
1002
- };
1003
- const nextLink = {
1004
- parameterPath: "nextLink",
1005
- mapper: {
1006
- serializedName: "nextLink",
1007
- required: true,
1008
- type: {
1009
- name: "String"
1010
- }
1011
- },
1012
- skipEncoding: true
1013
- };
1014
- const childResourceName = {
1015
- parameterPath: "childResourceName",
1016
- mapper: {
1017
- constraints: {
1018
- Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
1019
- MaxLength: 63,
1020
- MinLength: 1
1021
- },
1022
- serializedName: "childResourceName",
1023
- required: true,
1024
- type: {
1025
- name: "String"
1026
- }
1027
- }
1028
- };
1029
- const parameters3 = {
1030
- parameterPath: "parameters",
1031
- mapper: ResourceSyncRule
1032
- };
1033
-
1034
- /*
1035
- * Copyright (c) Microsoft Corporation.
1036
- * Licensed under the MIT License.
1037
- *
1038
- * Code generated by Microsoft (R) AutoRest Code Generator.
1039
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1040
- */
1041
- class LroImpl {
1042
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1043
- this.sendOperationFn = sendOperationFn;
1044
- this.args = args;
1045
- this.spec = spec;
1046
- this.requestPath = requestPath;
1047
- this.requestMethod = requestMethod;
1048
- }
1049
- sendInitialRequest() {
1050
- return tslib.__awaiter(this, void 0, void 0, function* () {
1051
- return this.sendOperationFn(this.args, this.spec);
1052
- });
1053
- }
1054
- sendPollRequest(path) {
1055
- return tslib.__awaiter(this, void 0, void 0, function* () {
1056
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1057
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1058
- });
1059
- }
1060
- }
1061
-
1062
- /*
1063
- * Copyright (c) Microsoft Corporation.
1064
- * Licensed under the MIT License.
1065
- *
1066
- * Code generated by Microsoft (R) AutoRest Code Generator.
1067
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1068
- */
1069
- /// <reference lib="esnext.asynciterable" />
1070
- /** Class containing CustomLocations operations. */
1071
- class CustomLocationsImpl {
1072
- /**
1073
- * Initialize a new instance of the class CustomLocations class.
1074
- * @param client Reference to the service client
1075
- */
1076
- constructor(client) {
1077
- this.client = client;
1078
- }
1079
- /**
1080
- * Lists all available Custom Locations operations.
1081
- * @param options The options parameters.
1082
- */
1083
- listOperations(options) {
1084
- const iter = this.listOperationsPagingAll(options);
1085
- return {
1086
- next() {
1087
- return iter.next();
1088
- },
1089
- [Symbol.asyncIterator]() {
1090
- return this;
1091
- },
1092
- byPage: (settings) => {
1093
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1094
- throw new Error("maxPageSize is not supported by this operation.");
1095
- }
1096
- return this.listOperationsPagingPage(options, settings);
1097
- }
1098
- };
1099
- }
1100
- listOperationsPagingPage(options, settings) {
1101
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
1102
- let result;
1103
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1104
- if (!continuationToken) {
1105
- result = yield tslib.__await(this._listOperations(options));
1106
- let page = result.value || [];
1107
- continuationToken = result.nextLink;
1108
- setContinuationToken(page, continuationToken);
1109
- yield yield tslib.__await(page);
1110
- }
1111
- while (continuationToken) {
1112
- result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
1113
- continuationToken = result.nextLink;
1114
- let page = result.value || [];
1115
- setContinuationToken(page, continuationToken);
1116
- yield yield tslib.__await(page);
1117
- }
1118
- });
1119
- }
1120
- listOperationsPagingAll(options) {
1121
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
1122
- var e_1, _a;
1123
- try {
1124
- for (var _b = tslib.__asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1125
- const page = _c.value;
1126
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1127
- }
1128
- }
1129
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1130
- finally {
1131
- try {
1132
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1133
- }
1134
- finally { if (e_1) throw e_1.error; }
1135
- }
1136
- });
1137
- }
1138
- /**
1139
- * Gets a list of Custom Locations in the specified subscription. The operation returns properties of
1140
- * each Custom Location
1141
- * @param options The options parameters.
1142
- */
1143
- listBySubscription(options) {
1144
- const iter = this.listBySubscriptionPagingAll(options);
1145
- return {
1146
- next() {
1147
- return iter.next();
1148
- },
1149
- [Symbol.asyncIterator]() {
1150
- return this;
1151
- },
1152
- byPage: (settings) => {
1153
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1154
- throw new Error("maxPageSize is not supported by this operation.");
1155
- }
1156
- return this.listBySubscriptionPagingPage(options, settings);
1157
- }
1158
- };
1159
- }
1160
- listBySubscriptionPagingPage(options, settings) {
1161
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1162
- let result;
1163
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1164
- if (!continuationToken) {
1165
- result = yield tslib.__await(this._listBySubscription(options));
1166
- let page = result.value || [];
1167
- continuationToken = result.nextLink;
1168
- setContinuationToken(page, continuationToken);
1169
- yield yield tslib.__await(page);
1170
- }
1171
- while (continuationToken) {
1172
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1173
- continuationToken = result.nextLink;
1174
- let page = result.value || [];
1175
- setContinuationToken(page, continuationToken);
1176
- yield yield tslib.__await(page);
1177
- }
1178
- });
1179
- }
1180
- listBySubscriptionPagingAll(options) {
1181
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1182
- var e_2, _a;
1183
- try {
1184
- for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1185
- const page = _c.value;
1186
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1187
- }
1188
- }
1189
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1190
- finally {
1191
- try {
1192
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1193
- }
1194
- finally { if (e_2) throw e_2.error; }
1195
- }
1196
- });
1197
- }
1198
- /**
1199
- * Gets a list of Custom Locations in the specified subscription and resource group. The operation
1200
- * returns properties of each Custom Location.
1201
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1202
- * @param options The options parameters.
1203
- */
1204
- listByResourceGroup(resourceGroupName, options) {
1205
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1206
- return {
1207
- next() {
1208
- return iter.next();
1209
- },
1210
- [Symbol.asyncIterator]() {
1211
- return this;
1212
- },
1213
- byPage: (settings) => {
1214
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1215
- throw new Error("maxPageSize is not supported by this operation.");
1216
- }
1217
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1218
- }
1219
- };
1220
- }
1221
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1222
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1223
- let result;
1224
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1225
- if (!continuationToken) {
1226
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1227
- let page = result.value || [];
1228
- continuationToken = result.nextLink;
1229
- setContinuationToken(page, continuationToken);
1230
- yield yield tslib.__await(page);
1231
- }
1232
- while (continuationToken) {
1233
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1234
- continuationToken = result.nextLink;
1235
- let page = result.value || [];
1236
- setContinuationToken(page, continuationToken);
1237
- yield yield tslib.__await(page);
1238
- }
1239
- });
1240
- }
1241
- listByResourceGroupPagingAll(resourceGroupName, options) {
1242
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1243
- var e_3, _a;
1244
- try {
1245
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1246
- const page = _c.value;
1247
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1248
- }
1249
- }
1250
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1251
- finally {
1252
- try {
1253
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1254
- }
1255
- finally { if (e_3) throw e_3.error; }
1256
- }
1257
- });
1258
- }
1259
- /**
1260
- * Gets the list of the Enabled Resource Types.
1261
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1262
- * @param resourceName Custom Locations name.
1263
- * @param options The options parameters.
1264
- */
1265
- listEnabledResourceTypes(resourceGroupName, resourceName, options) {
1266
- const iter = this.listEnabledResourceTypesPagingAll(resourceGroupName, resourceName, options);
1267
- return {
1268
- next() {
1269
- return iter.next();
1270
- },
1271
- [Symbol.asyncIterator]() {
1272
- return this;
1273
- },
1274
- byPage: (settings) => {
1275
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1276
- throw new Error("maxPageSize is not supported by this operation.");
1277
- }
1278
- return this.listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options, settings);
1279
- }
1280
- };
1281
- }
1282
- listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options, settings) {
1283
- return tslib.__asyncGenerator(this, arguments, function* listEnabledResourceTypesPagingPage_1() {
1284
- let result;
1285
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1286
- if (!continuationToken) {
1287
- result = yield tslib.__await(this._listEnabledResourceTypes(resourceGroupName, resourceName, options));
1288
- let page = result.value || [];
1289
- continuationToken = result.nextLink;
1290
- setContinuationToken(page, continuationToken);
1291
- yield yield tslib.__await(page);
1292
- }
1293
- while (continuationToken) {
1294
- result = yield tslib.__await(this._listEnabledResourceTypesNext(resourceGroupName, resourceName, continuationToken, options));
1295
- continuationToken = result.nextLink;
1296
- let page = result.value || [];
1297
- setContinuationToken(page, continuationToken);
1298
- yield yield tslib.__await(page);
1299
- }
1300
- });
1301
- }
1302
- listEnabledResourceTypesPagingAll(resourceGroupName, resourceName, options) {
1303
- return tslib.__asyncGenerator(this, arguments, function* listEnabledResourceTypesPagingAll_1() {
1304
- var e_4, _a;
1305
- try {
1306
- for (var _b = tslib.__asyncValues(this.listEnabledResourceTypesPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1307
- const page = _c.value;
1308
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1309
- }
1310
- }
1311
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
1312
- finally {
1313
- try {
1314
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1315
- }
1316
- finally { if (e_4) throw e_4.error; }
1317
- }
1318
- });
1319
- }
1320
- /**
1321
- * Lists all available Custom Locations operations.
1322
- * @param options The options parameters.
1323
- */
1324
- _listOperations(options) {
1325
- return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
1326
- }
1327
- /**
1328
- * Gets a list of Custom Locations in the specified subscription. The operation returns properties of
1329
- * each Custom Location
1330
- * @param options The options parameters.
1331
- */
1332
- _listBySubscription(options) {
1333
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1334
- }
1335
- /**
1336
- * Gets a list of Custom Locations in the specified subscription and resource group. The operation
1337
- * returns properties of each Custom Location.
1338
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1339
- * @param options The options parameters.
1340
- */
1341
- _listByResourceGroup(resourceGroupName, options) {
1342
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1343
- }
1344
- /**
1345
- * Gets the details of the customLocation with a specified resource group and name.
1346
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1347
- * @param resourceName Custom Locations name.
1348
- * @param options The options parameters.
1349
- */
1350
- get(resourceGroupName, resourceName, options) {
1351
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$1);
1352
- }
1353
- /**
1354
- * Creates or updates a Custom Location in the specified Subscription and Resource Group
1355
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1356
- * @param resourceName Custom Locations name.
1357
- * @param parameters Parameters supplied to create or update a Custom Location.
1358
- * @param options The options parameters.
1359
- */
1360
- beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
1361
- return tslib.__awaiter(this, void 0, void 0, function* () {
1362
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1363
- return this.client.sendOperationRequest(args, spec);
1364
- });
1365
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1366
- var _a;
1367
- let currentRawResponse = undefined;
1368
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1369
- const callback = (rawResponse, flatResponse) => {
1370
- currentRawResponse = rawResponse;
1371
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1372
- };
1373
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1374
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1375
- return {
1376
- flatResponse,
1377
- rawResponse: {
1378
- statusCode: currentRawResponse.status,
1379
- body: currentRawResponse.parsedBody,
1380
- headers: currentRawResponse.headers.toJSON()
1381
- }
1382
- };
1383
- });
1384
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec$1);
1385
- const poller = new coreLro.LroEngine(lro, {
1386
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1387
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1388
- lroResourceLocationConfig: "azure-async-operation"
1389
- });
1390
- yield poller.poll();
1391
- return poller;
1392
- });
1393
- }
1394
- /**
1395
- * Creates or updates a Custom Location in the specified Subscription and Resource Group
1396
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1397
- * @param resourceName Custom Locations name.
1398
- * @param parameters Parameters supplied to create or update a Custom Location.
1399
- * @param options The options parameters.
1400
- */
1401
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
1402
- return tslib.__awaiter(this, void 0, void 0, function* () {
1403
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
1404
- return poller.pollUntilDone();
1405
- });
1406
- }
1407
- /**
1408
- * Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
1409
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1410
- * @param resourceName Custom Locations name.
1411
- * @param options The options parameters.
1412
- */
1413
- beginDelete(resourceGroupName, resourceName, options) {
1414
- return tslib.__awaiter(this, void 0, void 0, function* () {
1415
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1416
- return this.client.sendOperationRequest(args, spec);
1417
- });
1418
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1419
- var _a;
1420
- let currentRawResponse = undefined;
1421
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1422
- const callback = (rawResponse, flatResponse) => {
1423
- currentRawResponse = rawResponse;
1424
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1425
- };
1426
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1427
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1428
- return {
1429
- flatResponse,
1430
- rawResponse: {
1431
- statusCode: currentRawResponse.status,
1432
- body: currentRawResponse.parsedBody,
1433
- headers: currentRawResponse.headers.toJSON()
1434
- }
1435
- };
1436
- });
1437
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec$1);
1438
- const poller = new coreLro.LroEngine(lro, {
1439
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1440
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1441
- lroResourceLocationConfig: "azure-async-operation"
1442
- });
1443
- yield poller.poll();
1444
- return poller;
1445
- });
1446
- }
1447
- /**
1448
- * Deletes the Custom Location with the specified Resource Name, Resource Group, and Subscription Id.
1449
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1450
- * @param resourceName Custom Locations name.
1451
- * @param options The options parameters.
1452
- */
1453
- beginDeleteAndWait(resourceGroupName, resourceName, options) {
1454
- return tslib.__awaiter(this, void 0, void 0, function* () {
1455
- const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
1456
- return poller.pollUntilDone();
1457
- });
1458
- }
1459
- /**
1460
- * Updates a Custom Location with the specified Resource Name in the specified Resource Group and
1461
- * Subscription.
1462
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1463
- * @param resourceName Custom Locations name.
1464
- * @param options The options parameters.
1465
- */
1466
- update(resourceGroupName, resourceName, options) {
1467
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec$1);
1468
- }
1469
- /**
1470
- * Gets the list of the Enabled Resource Types.
1471
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1472
- * @param resourceName Custom Locations name.
1473
- * @param options The options parameters.
1474
- */
1475
- _listEnabledResourceTypes(resourceGroupName, resourceName, options) {
1476
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listEnabledResourceTypesOperationSpec);
1477
- }
1478
- /**
1479
- * Returns the target resource group associated with the resource sync rules of the Custom Location
1480
- * that match the rules passed in with the Find Target Resource Group Request.
1481
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1482
- * @param resourceName Custom Locations name.
1483
- * @param parameters Parameters of the find target resource group request.
1484
- * @param options The options parameters.
1485
- */
1486
- findTargetResourceGroup(resourceGroupName, resourceName, parameters, options) {
1487
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, parameters, options }, findTargetResourceGroupOperationSpec);
1488
- }
1489
- /**
1490
- * ListOperationsNext
1491
- * @param nextLink The nextLink from the previous successful call to the ListOperations method.
1492
- * @param options The options parameters.
1493
- */
1494
- _listOperationsNext(nextLink, options) {
1495
- return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
1496
- }
1497
- /**
1498
- * ListBySubscriptionNext
1499
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1500
- * @param options The options parameters.
1501
- */
1502
- _listBySubscriptionNext(nextLink, options) {
1503
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1504
- }
1505
- /**
1506
- * ListByResourceGroupNext
1507
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1508
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1509
- * @param options The options parameters.
1510
- */
1511
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1512
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1513
- }
1514
- /**
1515
- * ListEnabledResourceTypesNext
1516
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1517
- * @param resourceName Custom Locations name.
1518
- * @param nextLink The nextLink from the previous successful call to the ListEnabledResourceTypes
1519
- * method.
1520
- * @param options The options parameters.
1521
- */
1522
- _listEnabledResourceTypesNext(resourceGroupName, resourceName, nextLink, options) {
1523
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listEnabledResourceTypesNextOperationSpec);
1524
- }
1525
- }
1526
- // Operation Specifications
1527
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1528
- const listOperationsOperationSpec = {
1529
- path: "/providers/Microsoft.ExtendedLocation/operations",
1530
- httpMethod: "GET",
1531
- responses: {
1532
- 200: {
1533
- bodyMapper: CustomLocationOperationsList
1534
- },
1535
- default: {
1536
- bodyMapper: ErrorResponse
1537
- }
1538
- },
1539
- queryParameters: [apiVersion],
1540
- urlParameters: [$host],
1541
- headerParameters: [accept],
1542
- serializer: serializer$1
1543
- };
1544
- const listBySubscriptionOperationSpec = {
1545
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.ExtendedLocation/customLocations",
1546
- httpMethod: "GET",
1547
- responses: {
1548
- 200: {
1549
- bodyMapper: CustomLocationListResult
1550
- },
1551
- default: {
1552
- bodyMapper: ErrorResponse
1553
- }
1554
- },
1555
- queryParameters: [apiVersion],
1556
- urlParameters: [$host, subscriptionId],
1557
- headerParameters: [accept],
1558
- serializer: serializer$1
1559
- };
1560
- const listByResourceGroupOperationSpec = {
1561
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations",
1562
- httpMethod: "GET",
1563
- responses: {
1564
- 200: {
1565
- bodyMapper: CustomLocationListResult
1566
- },
1567
- default: {
1568
- bodyMapper: ErrorResponse
1569
- }
1570
- },
1571
- queryParameters: [apiVersion],
1572
- urlParameters: [
1573
- $host,
1574
- subscriptionId,
1575
- resourceGroupName
1576
- ],
1577
- headerParameters: [accept],
1578
- serializer: serializer$1
1579
- };
1580
- const getOperationSpec$1 = {
1581
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
1582
- httpMethod: "GET",
1583
- responses: {
1584
- 200: {
1585
- bodyMapper: CustomLocation
1586
- },
1587
- default: {
1588
- bodyMapper: ErrorResponse
1589
- }
1590
- },
1591
- queryParameters: [apiVersion],
1592
- urlParameters: [
1593
- $host,
1594
- subscriptionId,
1595
- resourceGroupName,
1596
- resourceName
1597
- ],
1598
- headerParameters: [accept],
1599
- serializer: serializer$1
1600
- };
1601
- const createOrUpdateOperationSpec$1 = {
1602
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
1603
- httpMethod: "PUT",
1604
- responses: {
1605
- 200: {
1606
- bodyMapper: CustomLocation
1607
- },
1608
- 201: {
1609
- bodyMapper: CustomLocation
1610
- },
1611
- 202: {
1612
- bodyMapper: CustomLocation
1613
- },
1614
- 204: {
1615
- bodyMapper: CustomLocation
1616
- },
1617
- default: {
1618
- bodyMapper: ErrorResponse
1619
- }
1620
- },
1621
- requestBody: parameters,
1622
- queryParameters: [apiVersion],
1623
- urlParameters: [
1624
- $host,
1625
- subscriptionId,
1626
- resourceGroupName,
1627
- resourceName
1628
- ],
1629
- headerParameters: [accept, contentType],
1630
- mediaType: "json",
1631
- serializer: serializer$1
1632
- };
1633
- const deleteOperationSpec$1 = {
1634
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
1635
- httpMethod: "DELETE",
1636
- responses: {
1637
- 200: {},
1638
- 201: {},
1639
- 202: {},
1640
- 204: {},
1641
- default: {
1642
- bodyMapper: ErrorResponse
1643
- }
1644
- },
1645
- queryParameters: [apiVersion],
1646
- urlParameters: [
1647
- $host,
1648
- subscriptionId,
1649
- resourceGroupName,
1650
- resourceName
1651
- ],
1652
- headerParameters: [accept],
1653
- serializer: serializer$1
1654
- };
1655
- const updateOperationSpec$1 = {
1656
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}",
1657
- httpMethod: "PATCH",
1658
- responses: {
1659
- 200: {
1660
- bodyMapper: CustomLocation
1661
- },
1662
- default: {
1663
- bodyMapper: ErrorResponse
1664
- }
1665
- },
1666
- requestBody: {
1667
- parameterPath: {
1668
- identity: ["options", "identity"],
1669
- tags: ["options", "tags"],
1670
- authentication: ["options", "authentication"],
1671
- clusterExtensionIds: ["options", "clusterExtensionIds"],
1672
- displayName: ["options", "displayName"],
1673
- hostResourceId: ["options", "hostResourceId"],
1674
- hostType: ["options", "hostType"],
1675
- namespace: ["options", "namespace"],
1676
- provisioningState: ["options", "provisioningState"]
1677
- },
1678
- mapper: Object.assign(Object.assign({}, PatchableCustomLocations), { required: true })
1679
- },
1680
- queryParameters: [apiVersion],
1681
- urlParameters: [
1682
- $host,
1683
- subscriptionId,
1684
- resourceGroupName,
1685
- resourceName
1686
- ],
1687
- headerParameters: [accept, contentType],
1688
- mediaType: "json",
1689
- serializer: serializer$1
1690
- };
1691
- const listEnabledResourceTypesOperationSpec = {
1692
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes",
1693
- httpMethod: "GET",
1694
- responses: {
1695
- 200: {
1696
- bodyMapper: EnabledResourceTypesListResult
1697
- },
1698
- default: {
1699
- bodyMapper: ErrorResponse
1700
- }
1701
- },
1702
- queryParameters: [apiVersion],
1703
- urlParameters: [
1704
- $host,
1705
- subscriptionId,
1706
- resourceGroupName,
1707
- resourceName
1708
- ],
1709
- headerParameters: [accept],
1710
- serializer: serializer$1
1711
- };
1712
- const findTargetResourceGroupOperationSpec = {
1713
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup",
1714
- httpMethod: "POST",
1715
- responses: {
1716
- 200: {
1717
- bodyMapper: CustomLocationFindTargetResourceGroupResult
1718
- },
1719
- 204: {},
1720
- default: {
1721
- bodyMapper: ErrorResponse
1722
- }
1723
- },
1724
- requestBody: parameters2,
1725
- queryParameters: [apiVersion],
1726
- urlParameters: [
1727
- $host,
1728
- subscriptionId,
1729
- resourceGroupName,
1730
- resourceName
1731
- ],
1732
- headerParameters: [accept, contentType],
1733
- mediaType: "json",
1734
- serializer: serializer$1
1735
- };
1736
- const listOperationsNextOperationSpec = {
1737
- path: "{nextLink}",
1738
- httpMethod: "GET",
1739
- responses: {
1740
- 200: {
1741
- bodyMapper: CustomLocationOperationsList
1742
- },
1743
- default: {
1744
- bodyMapper: ErrorResponse
1745
- }
1746
- },
1747
- urlParameters: [$host, nextLink],
1748
- headerParameters: [accept],
1749
- serializer: serializer$1
1750
- };
1751
- const listBySubscriptionNextOperationSpec = {
1752
- path: "{nextLink}",
1753
- httpMethod: "GET",
1754
- responses: {
1755
- 200: {
1756
- bodyMapper: CustomLocationListResult
1757
- },
1758
- default: {
1759
- bodyMapper: ErrorResponse
1760
- }
1761
- },
1762
- urlParameters: [
1763
- $host,
1764
- subscriptionId,
1765
- nextLink
1766
- ],
1767
- headerParameters: [accept],
1768
- serializer: serializer$1
1769
- };
1770
- const listByResourceGroupNextOperationSpec = {
1771
- path: "{nextLink}",
1772
- httpMethod: "GET",
1773
- responses: {
1774
- 200: {
1775
- bodyMapper: CustomLocationListResult
1776
- },
1777
- default: {
1778
- bodyMapper: ErrorResponse
1779
- }
1780
- },
1781
- urlParameters: [
1782
- $host,
1783
- subscriptionId,
1784
- resourceGroupName,
1785
- nextLink
1786
- ],
1787
- headerParameters: [accept],
1788
- serializer: serializer$1
1789
- };
1790
- const listEnabledResourceTypesNextOperationSpec = {
1791
- path: "{nextLink}",
1792
- httpMethod: "GET",
1793
- responses: {
1794
- 200: {
1795
- bodyMapper: EnabledResourceTypesListResult
1796
- },
1797
- default: {
1798
- bodyMapper: ErrorResponse
1799
- }
1800
- },
1801
- urlParameters: [
1802
- $host,
1803
- subscriptionId,
1804
- resourceGroupName,
1805
- resourceName,
1806
- nextLink
1807
- ],
1808
- headerParameters: [accept],
1809
- serializer: serializer$1
1810
- };
1811
-
1812
- /*
1813
- * Copyright (c) Microsoft Corporation.
1814
- * Licensed under the MIT License.
1815
- *
1816
- * Code generated by Microsoft (R) AutoRest Code Generator.
1817
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1818
- */
1819
- /// <reference lib="esnext.asynciterable" />
1820
- /** Class containing ResourceSyncRules operations. */
1821
- class ResourceSyncRulesImpl {
1822
- /**
1823
- * Initialize a new instance of the class ResourceSyncRules class.
1824
- * @param client Reference to the service client
1825
- */
1826
- constructor(client) {
1827
- this.client = client;
1828
- }
1829
- /**
1830
- * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
1831
- * of each Resource Sync Rule
1832
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1833
- * @param resourceName Custom Locations name.
1834
- * @param options The options parameters.
1835
- */
1836
- listByCustomLocationID(resourceGroupName, resourceName, options) {
1837
- const iter = this.listByCustomLocationIDPagingAll(resourceGroupName, resourceName, options);
1838
- return {
1839
- next() {
1840
- return iter.next();
1841
- },
1842
- [Symbol.asyncIterator]() {
1843
- return this;
1844
- },
1845
- byPage: (settings) => {
1846
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1847
- throw new Error("maxPageSize is not supported by this operation.");
1848
- }
1849
- return this.listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options, settings);
1850
- }
1851
- };
1852
- }
1853
- listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options, settings) {
1854
- return tslib.__asyncGenerator(this, arguments, function* listByCustomLocationIDPagingPage_1() {
1855
- let result;
1856
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1857
- if (!continuationToken) {
1858
- result = yield tslib.__await(this._listByCustomLocationID(resourceGroupName, resourceName, options));
1859
- let page = result.value || [];
1860
- continuationToken = result.nextLink;
1861
- setContinuationToken(page, continuationToken);
1862
- yield yield tslib.__await(page);
1863
- }
1864
- while (continuationToken) {
1865
- result = yield tslib.__await(this._listByCustomLocationIDNext(resourceGroupName, resourceName, continuationToken, options));
1866
- continuationToken = result.nextLink;
1867
- let page = result.value || [];
1868
- setContinuationToken(page, continuationToken);
1869
- yield yield tslib.__await(page);
1870
- }
1871
- });
1872
- }
1873
- listByCustomLocationIDPagingAll(resourceGroupName, resourceName, options) {
1874
- return tslib.__asyncGenerator(this, arguments, function* listByCustomLocationIDPagingAll_1() {
1875
- var e_1, _a;
1876
- try {
1877
- for (var _b = tslib.__asyncValues(this.listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1878
- const page = _c.value;
1879
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1880
- }
1881
- }
1882
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1883
- finally {
1884
- try {
1885
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1886
- }
1887
- finally { if (e_1) throw e_1.error; }
1888
- }
1889
- });
1890
- }
1891
- /**
1892
- * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
1893
- * of each Resource Sync Rule
1894
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1895
- * @param resourceName Custom Locations name.
1896
- * @param options The options parameters.
1897
- */
1898
- _listByCustomLocationID(resourceGroupName, resourceName, options) {
1899
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByCustomLocationIDOperationSpec);
1900
- }
1901
- /**
1902
- * Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom
1903
- * Location resource name and Resource Sync Rule name.
1904
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1905
- * @param resourceName Custom Locations name.
1906
- * @param childResourceName Resource Sync Rule name.
1907
- * @param options The options parameters.
1908
- */
1909
- get(resourceGroupName, resourceName, childResourceName, options) {
1910
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, childResourceName, options }, getOperationSpec);
1911
- }
1912
- /**
1913
- * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
1914
- * Group
1915
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1916
- * @param resourceName Custom Locations name.
1917
- * @param childResourceName Resource Sync Rule name.
1918
- * @param parameters Parameters supplied to create or update a Resource Sync Rule.
1919
- * @param options The options parameters.
1920
- */
1921
- beginCreateOrUpdate(resourceGroupName, resourceName, childResourceName, parameters, options) {
1922
- return tslib.__awaiter(this, void 0, void 0, function* () {
1923
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1924
- return this.client.sendOperationRequest(args, spec);
1925
- });
1926
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1927
- var _a;
1928
- let currentRawResponse = undefined;
1929
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1930
- const callback = (rawResponse, flatResponse) => {
1931
- currentRawResponse = rawResponse;
1932
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1933
- };
1934
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1935
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1936
- return {
1937
- flatResponse,
1938
- rawResponse: {
1939
- statusCode: currentRawResponse.status,
1940
- body: currentRawResponse.parsedBody,
1941
- headers: currentRawResponse.headers.toJSON()
1942
- }
1943
- };
1944
- });
1945
- const lro = new LroImpl(sendOperation, {
1946
- resourceGroupName,
1947
- resourceName,
1948
- childResourceName,
1949
- parameters,
1950
- options
1951
- }, createOrUpdateOperationSpec);
1952
- const poller = new coreLro.LroEngine(lro, {
1953
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1954
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1955
- lroResourceLocationConfig: "azure-async-operation"
1956
- });
1957
- yield poller.poll();
1958
- return poller;
1959
- });
1960
- }
1961
- /**
1962
- * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
1963
- * Group
1964
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1965
- * @param resourceName Custom Locations name.
1966
- * @param childResourceName Resource Sync Rule name.
1967
- * @param parameters Parameters supplied to create or update a Resource Sync Rule.
1968
- * @param options The options parameters.
1969
- */
1970
- beginCreateOrUpdateAndWait(resourceGroupName, resourceName, childResourceName, parameters, options) {
1971
- return tslib.__awaiter(this, void 0, void 0, function* () {
1972
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, childResourceName, parameters, options);
1973
- return poller.pollUntilDone();
1974
- });
1975
- }
1976
- /**
1977
- * Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource
1978
- * Name, Resource Group, and Subscription Id.
1979
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1980
- * @param resourceName Custom Locations name.
1981
- * @param childResourceName Resource Sync Rule name.
1982
- * @param options The options parameters.
1983
- */
1984
- delete(resourceGroupName, resourceName, childResourceName, options) {
1985
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, childResourceName, options }, deleteOperationSpec);
1986
- }
1987
- /**
1988
- * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
1989
- * Group, Subscription and Custom Location name.
1990
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1991
- * @param resourceName Custom Locations name.
1992
- * @param childResourceName Resource Sync Rule name.
1993
- * @param options The options parameters.
1994
- */
1995
- beginUpdate(resourceGroupName, resourceName, childResourceName, options) {
1996
- return tslib.__awaiter(this, void 0, void 0, function* () {
1997
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1998
- return this.client.sendOperationRequest(args, spec);
1999
- });
2000
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2001
- var _a;
2002
- let currentRawResponse = undefined;
2003
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2004
- const callback = (rawResponse, flatResponse) => {
2005
- currentRawResponse = rawResponse;
2006
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2007
- };
2008
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2009
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2010
- return {
2011
- flatResponse,
2012
- rawResponse: {
2013
- statusCode: currentRawResponse.status,
2014
- body: currentRawResponse.parsedBody,
2015
- headers: currentRawResponse.headers.toJSON()
2016
- }
2017
- };
2018
- });
2019
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, childResourceName, options }, updateOperationSpec);
2020
- const poller = new coreLro.LroEngine(lro, {
2021
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2022
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2023
- lroResourceLocationConfig: "azure-async-operation"
2024
- });
2025
- yield poller.poll();
2026
- return poller;
2027
- });
2028
- }
2029
- /**
2030
- * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
2031
- * Group, Subscription and Custom Location name.
2032
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2033
- * @param resourceName Custom Locations name.
2034
- * @param childResourceName Resource Sync Rule name.
2035
- * @param options The options parameters.
2036
- */
2037
- beginUpdateAndWait(resourceGroupName, resourceName, childResourceName, options) {
2038
- return tslib.__awaiter(this, void 0, void 0, function* () {
2039
- const poller = yield this.beginUpdate(resourceGroupName, resourceName, childResourceName, options);
2040
- return poller.pollUntilDone();
2041
- });
2042
- }
2043
- /**
2044
- * ListByCustomLocationIDNext
2045
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2046
- * @param resourceName Custom Locations name.
2047
- * @param nextLink The nextLink from the previous successful call to the ListByCustomLocationID method.
2048
- * @param options The options parameters.
2049
- */
2050
- _listByCustomLocationIDNext(resourceGroupName, resourceName, nextLink, options) {
2051
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listByCustomLocationIDNextOperationSpec);
2052
- }
2053
- }
2054
- // Operation Specifications
2055
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2056
- const listByCustomLocationIDOperationSpec = {
2057
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules",
2058
- httpMethod: "GET",
2059
- responses: {
2060
- 200: {
2061
- bodyMapper: ResourceSyncRuleListResult
2062
- },
2063
- default: {
2064
- bodyMapper: ErrorResponse
2065
- }
2066
- },
2067
- queryParameters: [apiVersion],
2068
- urlParameters: [
2069
- $host,
2070
- subscriptionId,
2071
- resourceGroupName,
2072
- resourceName
2073
- ],
2074
- headerParameters: [accept],
2075
- serializer
2076
- };
2077
- const getOperationSpec = {
2078
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
2079
- httpMethod: "GET",
2080
- responses: {
2081
- 200: {
2082
- bodyMapper: ResourceSyncRule
2083
- },
2084
- default: {
2085
- bodyMapper: ErrorResponse
2086
- }
2087
- },
2088
- queryParameters: [apiVersion],
2089
- urlParameters: [
2090
- $host,
2091
- subscriptionId,
2092
- resourceGroupName,
2093
- resourceName,
2094
- childResourceName
2095
- ],
2096
- headerParameters: [accept],
2097
- serializer
2098
- };
2099
- const createOrUpdateOperationSpec = {
2100
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
2101
- httpMethod: "PUT",
2102
- responses: {
2103
- 200: {
2104
- bodyMapper: ResourceSyncRule
2105
- },
2106
- 201: {
2107
- bodyMapper: ResourceSyncRule
2108
- },
2109
- 202: {
2110
- bodyMapper: ResourceSyncRule
2111
- },
2112
- 204: {
2113
- bodyMapper: ResourceSyncRule
2114
- },
2115
- default: {
2116
- bodyMapper: ErrorResponse
2117
- }
2118
- },
2119
- requestBody: parameters3,
2120
- queryParameters: [apiVersion],
2121
- urlParameters: [
2122
- $host,
2123
- subscriptionId,
2124
- resourceGroupName,
2125
- resourceName,
2126
- childResourceName
2127
- ],
2128
- headerParameters: [accept, contentType],
2129
- mediaType: "json",
2130
- serializer
2131
- };
2132
- const deleteOperationSpec = {
2133
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
2134
- httpMethod: "DELETE",
2135
- responses: {
2136
- 200: {},
2137
- 204: {},
2138
- default: {
2139
- bodyMapper: ErrorResponse
2140
- }
2141
- },
2142
- queryParameters: [apiVersion],
2143
- urlParameters: [
2144
- $host,
2145
- subscriptionId,
2146
- resourceGroupName,
2147
- resourceName,
2148
- childResourceName
2149
- ],
2150
- headerParameters: [accept],
2151
- serializer
2152
- };
2153
- const updateOperationSpec = {
2154
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
2155
- httpMethod: "PATCH",
2156
- responses: {
2157
- 200: {
2158
- bodyMapper: ResourceSyncRule
2159
- },
2160
- 201: {
2161
- bodyMapper: ResourceSyncRule
2162
- },
2163
- 202: {
2164
- bodyMapper: ResourceSyncRule
2165
- },
2166
- 204: {
2167
- bodyMapper: ResourceSyncRule
2168
- },
2169
- default: {
2170
- bodyMapper: ErrorResponse
2171
- }
2172
- },
2173
- requestBody: {
2174
- parameterPath: {
2175
- tags: ["options", "tags"],
2176
- priority: ["options", "priority"],
2177
- selector: ["options", "selector"],
2178
- targetResourceGroup: ["options", "targetResourceGroup"]
2179
- },
2180
- mapper: Object.assign(Object.assign({}, PatchableResourceSyncRule), { required: true })
2181
- },
2182
- queryParameters: [apiVersion],
2183
- urlParameters: [
2184
- $host,
2185
- subscriptionId,
2186
- resourceGroupName,
2187
- resourceName,
2188
- childResourceName
2189
- ],
2190
- headerParameters: [accept, contentType],
2191
- mediaType: "json",
2192
- serializer
2193
- };
2194
- const listByCustomLocationIDNextOperationSpec = {
2195
- path: "{nextLink}",
2196
- httpMethod: "GET",
2197
- responses: {
2198
- 200: {
2199
- bodyMapper: ResourceSyncRuleListResult
2200
- },
2201
- default: {
2202
- bodyMapper: ErrorResponse
2203
- }
2204
- },
2205
- urlParameters: [
2206
- $host,
2207
- subscriptionId,
2208
- resourceGroupName,
2209
- resourceName,
2210
- nextLink
2211
- ],
2212
- headerParameters: [accept],
2213
- serializer
2214
- };
2215
-
2216
- /*
2217
- * Copyright (c) Microsoft Corporation.
2218
- * Licensed under the MIT License.
2219
- *
2220
- * Code generated by Microsoft (R) AutoRest Code Generator.
2221
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2222
- */
2223
- class CustomLocationsManagementClient extends coreClient__namespace.ServiceClient {
2224
- /**
2225
- * Initializes a new instance of the CustomLocationsManagementClient class.
2226
- * @param credentials Subscription credentials which uniquely identify client subscription.
2227
- * @param subscriptionId The ID of the target subscription.
2228
- * @param options The parameter options
2229
- */
2230
- constructor(credentials, subscriptionId, options) {
2231
- var _a, _b, _c;
2232
- if (credentials === undefined) {
2233
- throw new Error("'credentials' cannot be null");
2234
- }
2235
- if (subscriptionId === undefined) {
2236
- throw new Error("'subscriptionId' cannot be null");
2237
- }
2238
- // Initializing default values for options
2239
- if (!options) {
2240
- options = {};
2241
- }
2242
- const defaults = {
2243
- requestContentType: "application/json; charset=utf-8",
2244
- credential: credentials
2245
- };
2246
- const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0-beta.3`;
2247
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2248
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2249
- : `${packageDetails}`;
2250
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2251
- userAgentPrefix
2252
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2253
- super(optionsWithDefaults);
2254
- let bearerTokenAuthenticationPolicyFound = false;
2255
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2256
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2257
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2258
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2259
- }
2260
- if (!options ||
2261
- !options.pipeline ||
2262
- options.pipeline.getOrderedPolicies().length == 0 ||
2263
- !bearerTokenAuthenticationPolicyFound) {
2264
- this.pipeline.removePolicy({
2265
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2266
- });
2267
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2268
- credential: credentials,
2269
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
2270
- challengeCallbacks: {
2271
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2272
- }
2273
- }));
2274
- }
2275
- // Parameter assignments
2276
- this.subscriptionId = subscriptionId;
2277
- // Assigning values to Constant parameters
2278
- this.$host = options.$host || "https://management.azure.com";
2279
- this.apiVersion = options.apiVersion || "2021-08-31-preview";
2280
- this.customLocations = new CustomLocationsImpl(this);
2281
- this.resourceSyncRules = new ResourceSyncRulesImpl(this);
2282
- this.addCustomApiVersionPolicy(options.apiVersion);
2283
- }
2284
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2285
- addCustomApiVersionPolicy(apiVersion) {
2286
- if (!apiVersion) {
2287
- return;
2288
- }
2289
- const apiVersionPolicy = {
2290
- name: "CustomApiVersionPolicy",
2291
- sendRequest(request, next) {
2292
- return tslib.__awaiter(this, void 0, void 0, function* () {
2293
- const param = request.url.split("?");
2294
- if (param.length > 1) {
2295
- const newParams = param[1].split("&").map((item) => {
2296
- if (item.indexOf("api-version") > -1) {
2297
- return "api-version=" + apiVersion;
2298
- }
2299
- else {
2300
- return item;
2301
- }
2302
- });
2303
- request.url = param[0] + "?" + newParams.join("&");
2304
- }
2305
- return next(request);
2306
- });
2307
- }
2308
- };
2309
- this.pipeline.addPolicy(apiVersionPolicy);
2310
- }
2311
- }
2312
-
2313
- exports.CustomLocationsManagementClient = CustomLocationsManagementClient;
2314
- exports.getContinuationToken = getContinuationToken;
2315
- //# sourceMappingURL=index.js.map