@azure/arm-extendedlocation 1.0.0-beta.3 → 1.0.0-beta.5

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 (348) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +30 -24
  3. package/dist/browser/api/customLocations/index.d.ts +3 -0
  4. package/dist/browser/api/customLocations/index.js +4 -0
  5. package/dist/browser/api/customLocations/index.js.map +1 -0
  6. package/dist/browser/api/customLocations/operations.d.ts +43 -0
  7. package/dist/browser/api/customLocations/operations.js +305 -0
  8. package/dist/browser/api/customLocations/operations.js.map +1 -0
  9. package/dist/browser/api/customLocations/options.d.ts +39 -0
  10. package/dist/browser/api/customLocations/options.js +4 -0
  11. package/dist/browser/api/customLocations/options.js.map +1 -0
  12. package/dist/browser/api/customLocationsManagementContext.d.ts +22 -0
  13. package/dist/browser/api/customLocationsManagementContext.js +26 -0
  14. package/dist/browser/api/customLocationsManagementContext.js.map +1 -0
  15. package/dist/browser/api/index.d.ts +3 -0
  16. package/dist/browser/api/index.js +4 -0
  17. package/dist/browser/api/index.js.map +1 -0
  18. package/dist/browser/api/resourceSyncRules/index.d.ts +3 -0
  19. package/dist/browser/api/resourceSyncRules/index.js +4 -0
  20. package/dist/browser/api/resourceSyncRules/index.js.map +1 -0
  21. package/dist/browser/api/resourceSyncRules/operations.d.ts +27 -0
  22. package/dist/browser/api/resourceSyncRules/operations.js +181 -0
  23. package/dist/browser/api/resourceSyncRules/operations.js.map +1 -0
  24. package/dist/browser/api/resourceSyncRules/options.d.ts +25 -0
  25. package/dist/browser/api/resourceSyncRules/options.js +4 -0
  26. package/dist/browser/api/resourceSyncRules/options.js.map +1 -0
  27. package/dist/browser/classic/customLocations/index.d.ts +37 -0
  28. package/dist/browser/classic/customLocations/index.js +39 -0
  29. package/dist/browser/classic/customLocations/index.js.map +1 -0
  30. package/dist/browser/classic/index.d.ts +3 -0
  31. package/dist/browser/classic/index.js +4 -0
  32. package/dist/browser/classic/index.js.map +1 -0
  33. package/dist/browser/classic/resourceSyncRules/index.d.ts +29 -0
  34. package/dist/browser/classic/resourceSyncRules/index.js +35 -0
  35. package/dist/browser/classic/resourceSyncRules/index.js.map +1 -0
  36. package/dist/browser/customLocationsManagementClient.d.ts +18 -0
  37. package/dist/browser/customLocationsManagementClient.js +37 -0
  38. package/dist/browser/customLocationsManagementClient.js.map +1 -0
  39. package/dist/browser/index.d.ts +18 -0
  40. package/dist/browser/index.js +9 -0
  41. package/dist/browser/index.js.map +1 -0
  42. package/dist/browser/logger.d.ts +2 -0
  43. package/dist/browser/logger.js +5 -0
  44. package/dist/browser/logger.js.map +1 -0
  45. package/dist/browser/models/index.d.ts +3 -0
  46. package/dist/browser/models/index.js +4 -0
  47. package/dist/browser/models/index.js.map +1 -0
  48. package/dist/browser/models/models.d.ts +402 -0
  49. package/dist/browser/models/models.js +506 -0
  50. package/dist/browser/models/models.js.map +1 -0
  51. package/dist/browser/package.json +3 -0
  52. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  53. package/dist/browser/restorePollerHelpers.js +101 -0
  54. package/dist/browser/restorePollerHelpers.js.map +1 -0
  55. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  56. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  57. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  58. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  59. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  60. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  61. package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
  62. package/dist/browser/static-helpers/pollingHelpers.js +95 -0
  63. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  64. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  65. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  66. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  67. package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
  68. package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
  69. package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
  70. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  71. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  72. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  73. package/dist/commonjs/api/customLocations/index.d.ts +3 -0
  74. package/dist/commonjs/api/customLocations/index.js +44 -0
  75. package/dist/commonjs/api/customLocations/index.js.map +7 -0
  76. package/dist/commonjs/api/customLocations/operations.d.ts +43 -0
  77. package/dist/commonjs/api/customLocations/operations.js +434 -0
  78. package/dist/commonjs/api/customLocations/operations.js.map +7 -0
  79. package/dist/commonjs/api/customLocations/options.d.ts +39 -0
  80. package/dist/commonjs/api/customLocations/options.js +16 -0
  81. package/dist/commonjs/api/customLocations/options.js.map +7 -0
  82. package/dist/commonjs/api/customLocationsManagementContext.d.ts +22 -0
  83. package/dist/commonjs/api/customLocationsManagementContext.js +47 -0
  84. package/dist/commonjs/api/customLocationsManagementContext.js.map +7 -0
  85. package/dist/commonjs/api/index.d.ts +3 -0
  86. package/dist/commonjs/api/index.js +28 -0
  87. package/dist/commonjs/api/index.js.map +7 -0
  88. package/dist/commonjs/api/resourceSyncRules/index.d.ts +3 -0
  89. package/dist/commonjs/api/resourceSyncRules/index.js +36 -0
  90. package/dist/commonjs/api/resourceSyncRules/index.js.map +7 -0
  91. package/dist/commonjs/api/resourceSyncRules/operations.d.ts +27 -0
  92. package/dist/commonjs/api/resourceSyncRules/operations.js +271 -0
  93. package/dist/commonjs/api/resourceSyncRules/operations.js.map +7 -0
  94. package/dist/commonjs/api/resourceSyncRules/options.d.ts +25 -0
  95. package/dist/commonjs/api/resourceSyncRules/options.js +16 -0
  96. package/dist/commonjs/api/resourceSyncRules/options.js.map +7 -0
  97. package/dist/commonjs/classic/customLocations/index.d.ts +37 -0
  98. package/dist/commonjs/classic/customLocations/index.js +63 -0
  99. package/dist/commonjs/classic/customLocations/index.js.map +7 -0
  100. package/dist/commonjs/classic/index.d.ts +3 -0
  101. package/dist/commonjs/classic/index.js +16 -0
  102. package/dist/commonjs/classic/index.js.map +7 -0
  103. package/dist/commonjs/classic/resourceSyncRules/index.d.ts +29 -0
  104. package/dist/commonjs/classic/resourceSyncRules/index.js +80 -0
  105. package/dist/commonjs/classic/resourceSyncRules/index.js.map +7 -0
  106. package/dist/commonjs/customLocationsManagementClient.d.ts +18 -0
  107. package/dist/commonjs/customLocationsManagementClient.js +58 -0
  108. package/dist/commonjs/customLocationsManagementClient.js.map +7 -0
  109. package/dist/commonjs/index.d.ts +18 -0
  110. package/dist/commonjs/index.js +48 -0
  111. package/dist/commonjs/index.js.map +7 -0
  112. package/dist/commonjs/logger.d.ts +2 -0
  113. package/dist/commonjs/logger.js +29 -0
  114. package/dist/commonjs/logger.js.map +7 -0
  115. package/dist/commonjs/models/index.d.ts +3 -0
  116. package/dist/commonjs/models/index.js +34 -0
  117. package/dist/commonjs/models/index.js.map +7 -0
  118. package/dist/commonjs/models/models.d.ts +402 -0
  119. package/dist/commonjs/models/models.js +560 -0
  120. package/dist/commonjs/models/models.js.map +7 -0
  121. package/dist/commonjs/package.json +3 -0
  122. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  123. package/dist/commonjs/restorePollerHelpers.js +114 -0
  124. package/dist/commonjs/restorePollerHelpers.js.map +7 -0
  125. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  126. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  127. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  128. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  129. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  130. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  131. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
  132. package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
  133. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
  134. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  135. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
  136. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  137. package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
  138. package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
  139. package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
  140. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  141. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  142. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  143. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  144. package/dist/esm/api/customLocations/index.d.ts +3 -0
  145. package/dist/esm/api/customLocations/index.js +4 -0
  146. package/dist/esm/api/customLocations/index.js.map +1 -0
  147. package/dist/esm/api/customLocations/operations.d.ts +43 -0
  148. package/dist/esm/api/customLocations/operations.js +305 -0
  149. package/dist/esm/api/customLocations/operations.js.map +1 -0
  150. package/dist/esm/api/customLocations/options.d.ts +39 -0
  151. package/dist/esm/api/customLocations/options.js +4 -0
  152. package/dist/esm/api/customLocations/options.js.map +1 -0
  153. package/dist/esm/api/customLocationsManagementContext.d.ts +22 -0
  154. package/dist/esm/api/customLocationsManagementContext.js +26 -0
  155. package/dist/esm/api/customLocationsManagementContext.js.map +1 -0
  156. package/dist/esm/api/index.d.ts +3 -0
  157. package/dist/esm/api/index.js +4 -0
  158. package/dist/esm/api/index.js.map +1 -0
  159. package/dist/esm/api/resourceSyncRules/index.d.ts +3 -0
  160. package/dist/esm/api/resourceSyncRules/index.js +4 -0
  161. package/dist/esm/api/resourceSyncRules/index.js.map +1 -0
  162. package/dist/esm/api/resourceSyncRules/operations.d.ts +27 -0
  163. package/dist/esm/api/resourceSyncRules/operations.js +181 -0
  164. package/dist/esm/api/resourceSyncRules/operations.js.map +1 -0
  165. package/dist/esm/api/resourceSyncRules/options.d.ts +25 -0
  166. package/dist/esm/api/resourceSyncRules/options.js +4 -0
  167. package/dist/esm/api/resourceSyncRules/options.js.map +1 -0
  168. package/dist/esm/classic/customLocations/index.d.ts +37 -0
  169. package/dist/esm/classic/customLocations/index.js +39 -0
  170. package/dist/esm/classic/customLocations/index.js.map +1 -0
  171. package/dist/esm/classic/index.d.ts +3 -0
  172. package/dist/esm/classic/index.js +4 -0
  173. package/dist/esm/classic/index.js.map +1 -0
  174. package/dist/esm/classic/resourceSyncRules/index.d.ts +29 -0
  175. package/dist/esm/classic/resourceSyncRules/index.js +35 -0
  176. package/dist/esm/classic/resourceSyncRules/index.js.map +1 -0
  177. package/dist/esm/customLocationsManagementClient.d.ts +18 -0
  178. package/dist/esm/customLocationsManagementClient.js +37 -0
  179. package/dist/esm/customLocationsManagementClient.js.map +1 -0
  180. package/dist/esm/index.d.ts +18 -0
  181. package/dist/esm/index.js +9 -0
  182. package/dist/esm/index.js.map +1 -0
  183. package/dist/esm/logger.d.ts +2 -0
  184. package/dist/esm/logger.js +5 -0
  185. package/dist/esm/logger.js.map +1 -0
  186. package/dist/esm/models/index.d.ts +3 -0
  187. package/dist/esm/models/index.js +4 -0
  188. package/dist/esm/models/index.js.map +1 -0
  189. package/dist/esm/models/models.d.ts +402 -0
  190. package/dist/esm/models/models.js +506 -0
  191. package/dist/esm/models/models.js.map +1 -0
  192. package/dist/esm/package.json +3 -0
  193. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  194. package/dist/esm/restorePollerHelpers.js +101 -0
  195. package/dist/esm/restorePollerHelpers.js.map +1 -0
  196. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  197. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  198. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  199. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  200. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  201. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  202. package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
  203. package/dist/esm/static-helpers/pollingHelpers.js +95 -0
  204. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  205. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  206. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  207. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  208. package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
  209. package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
  210. package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
  211. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  212. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  213. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  214. package/package.json +151 -90
  215. package/CHANGELOG.md +0 -54
  216. package/dist/index.js +0 -2315
  217. package/dist/index.js.map +0 -1
  218. package/dist/index.min.js +0 -1
  219. package/dist/index.min.js.map +0 -1
  220. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts +0 -2
  221. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +0 -1
  222. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +0 -50
  223. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +0 -1
  224. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +0 -2
  225. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +0 -1
  226. package/dist-esm/samples-dev/customLocationsDeleteSample.js +0 -39
  227. package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +0 -1
  228. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +0 -2
  229. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +0 -1
  230. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +0 -42
  231. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +0 -1
  232. package/dist-esm/samples-dev/customLocationsGetSample.d.ts +0 -2
  233. package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +0 -1
  234. package/dist-esm/samples-dev/customLocationsGetSample.js +0 -39
  235. package/dist-esm/samples-dev/customLocationsGetSample.js.map +0 -1
  236. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +0 -2
  237. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +0 -1
  238. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +0 -52
  239. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +0 -1
  240. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +0 -2
  241. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +0 -1
  242. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +0 -51
  243. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +0 -1
  244. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +0 -2
  245. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +0 -1
  246. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +0 -53
  247. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +0 -1
  248. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +0 -2
  249. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +0 -1
  250. package/dist-esm/samples-dev/customLocationsListOperationsSample.js +0 -51
  251. package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +0 -1
  252. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +0 -2
  253. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +0 -1
  254. package/dist-esm/samples-dev/customLocationsUpdateSample.js +0 -42
  255. package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +0 -1
  256. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +0 -2
  257. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +0 -1
  258. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +0 -49
  259. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +0 -1
  260. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +0 -2
  261. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +0 -1
  262. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +0 -40
  263. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +0 -1
  264. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +0 -2
  265. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +0 -1
  266. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +0 -40
  267. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +0 -1
  268. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +0 -2
  269. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +0 -1
  270. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +0 -53
  271. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +0 -1
  272. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +0 -2
  273. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +0 -1
  274. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +0 -42
  275. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +0 -1
  276. package/dist-esm/src/customLocationsManagementClient.d.ts +0 -21
  277. package/dist-esm/src/customLocationsManagementClient.d.ts.map +0 -1
  278. package/dist-esm/src/customLocationsManagementClient.js +0 -101
  279. package/dist-esm/src/customLocationsManagementClient.js.map +0 -1
  280. package/dist-esm/src/index.d.ts +0 -6
  281. package/dist-esm/src/index.d.ts.map +0 -1
  282. package/dist-esm/src/index.js +0 -13
  283. package/dist-esm/src/index.js.map +0 -1
  284. package/dist-esm/src/lroImpl.d.ts +0 -16
  285. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  286. package/dist-esm/src/lroImpl.js +0 -29
  287. package/dist-esm/src/lroImpl.js.map +0 -1
  288. package/dist-esm/src/models/index.d.ts +0 -541
  289. package/dist-esm/src/models/index.d.ts.map +0 -1
  290. package/dist-esm/src/models/index.js +0 -34
  291. package/dist-esm/src/models/index.js.map +0 -1
  292. package/dist-esm/src/models/mappers.d.ts +0 -26
  293. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  294. package/dist-esm/src/models/mappers.js +0 -777
  295. package/dist-esm/src/models/mappers.js.map +0 -1
  296. package/dist-esm/src/models/parameters.d.ts +0 -27
  297. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  298. package/dist-esm/src/models/parameters.js +0 -185
  299. package/dist-esm/src/models/parameters.js.map +0 -1
  300. package/dist-esm/src/operations/customLocations.d.ts +0 -155
  301. package/dist-esm/src/operations/customLocations.d.ts.map +0 -1
  302. package/dist-esm/src/operations/customLocations.js +0 -757
  303. package/dist-esm/src/operations/customLocations.js.map +0 -1
  304. package/dist-esm/src/operations/index.d.ts +0 -3
  305. package/dist-esm/src/operations/index.d.ts.map +0 -1
  306. package/dist-esm/src/operations/index.js +0 -10
  307. package/dist-esm/src/operations/index.js.map +0 -1
  308. package/dist-esm/src/operations/resourceSyncRules.d.ts +0 -97
  309. package/dist-esm/src/operations/resourceSyncRules.d.ts.map +0 -1
  310. package/dist-esm/src/operations/resourceSyncRules.js +0 -411
  311. package/dist-esm/src/operations/resourceSyncRules.js.map +0 -1
  312. package/dist-esm/src/operationsInterfaces/customLocations.d.ts +0 -86
  313. package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +0 -1
  314. package/dist-esm/src/operationsInterfaces/customLocations.js +0 -9
  315. package/dist-esm/src/operationsInterfaces/customLocations.js.map +0 -1
  316. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  317. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  318. package/dist-esm/src/operationsInterfaces/index.js +0 -10
  319. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  320. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts +0 -71
  321. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts.map +0 -1
  322. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js +0 -9
  323. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js.map +0 -1
  324. package/dist-esm/src/pagingHelper.d.ts +0 -13
  325. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  326. package/dist-esm/src/pagingHelper.js +0 -32
  327. package/dist-esm/src/pagingHelper.js.map +0 -1
  328. package/dist-esm/test/sampleTest.d.ts +0 -2
  329. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  330. package/dist-esm/test/sampleTest.js +0 -38
  331. package/dist-esm/test/sampleTest.js.map +0 -1
  332. package/review/arm-extendedlocation.api.md +0 -434
  333. package/rollup.config.js +0 -122
  334. package/src/customLocationsManagementClient.ts +0 -142
  335. package/src/index.ts +0 -13
  336. package/src/lroImpl.ts +0 -34
  337. package/src/models/index.ts +0 -606
  338. package/src/models/mappers.ts +0 -832
  339. package/src/models/parameters.ts +0 -225
  340. package/src/operations/customLocations.ts +0 -977
  341. package/src/operations/index.ts +0 -10
  342. package/src/operations/resourceSyncRules.ts +0 -575
  343. package/src/operationsInterfaces/customLocations.ts +0 -160
  344. package/src/operationsInterfaces/index.ts +0 -10
  345. package/src/operationsInterfaces/resourceSyncRules.ts +0 -136
  346. package/src/pagingHelper.ts +0 -39
  347. package/tsconfig.json +0 -33
  348. package/types/arm-extendedlocation.d.ts +0 -790
@@ -1,434 +0,0 @@
1
- ## API Report File for "@azure/arm-extendedlocation"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import * as coreAuth from '@azure/core-auth';
8
- import * as coreClient from '@azure/core-client';
9
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
- import { PollerLike } from '@azure/core-lro';
11
- import { PollOperationState } from '@azure/core-lro';
12
-
13
- // @public
14
- export type CreatedByType = string;
15
-
16
- // @public
17
- export interface CustomLocation extends TrackedResource {
18
- authentication?: CustomLocationPropertiesAuthentication;
19
- clusterExtensionIds?: string[];
20
- displayName?: string;
21
- hostResourceId?: string;
22
- hostType?: HostType;
23
- identity?: Identity;
24
- namespace?: string;
25
- provisioningState?: string;
26
- readonly systemData?: SystemData;
27
- }
28
-
29
- // @public
30
- export interface CustomLocationFindTargetResourceGroupProperties {
31
- labels?: {
32
- [propertyName: string]: string;
33
- };
34
- }
35
-
36
- // @public
37
- export interface CustomLocationFindTargetResourceGroupResult {
38
- readonly matchedResourceSyncRule?: string;
39
- readonly targetResourceGroup?: string;
40
- }
41
-
42
- // @public
43
- export interface CustomLocationListResult {
44
- readonly nextLink?: string;
45
- readonly value?: CustomLocation[];
46
- }
47
-
48
- // @public
49
- export interface CustomLocationOperation {
50
- readonly description?: string;
51
- readonly isDataAction?: boolean;
52
- readonly name?: string;
53
- readonly operation?: string;
54
- readonly origin?: string;
55
- readonly provider?: string;
56
- readonly resource?: string;
57
- }
58
-
59
- // @public
60
- export interface CustomLocationOperationsList {
61
- nextLink?: string;
62
- value: CustomLocationOperation[];
63
- }
64
-
65
- // @public
66
- export interface CustomLocationPropertiesAuthentication {
67
- type?: string;
68
- value?: string;
69
- }
70
-
71
- // @public
72
- export interface CustomLocations {
73
- beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CustomLocationsCreateOrUpdateResponse>, CustomLocationsCreateOrUpdateResponse>>;
74
- beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<CustomLocationsCreateOrUpdateResponse>;
75
- beginDelete(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
76
- beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<void>;
77
- findTargetResourceGroup(resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationsFindTargetResourceGroupResponse>;
78
- get(resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams): Promise<CustomLocationsGetResponse>;
79
- listByResourceGroup(resourceGroupName: string, options?: CustomLocationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
80
- listBySubscription(options?: CustomLocationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
81
- listEnabledResourceTypes(resourceGroupName: string, resourceName: string, options?: CustomLocationsListEnabledResourceTypesOptionalParams): PagedAsyncIterableIterator<EnabledResourceType>;
82
- listOperations(options?: CustomLocationsListOperationsOptionalParams): PagedAsyncIterableIterator<CustomLocationOperation>;
83
- update(resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams): Promise<CustomLocationsUpdateResponse>;
84
- }
85
-
86
- // @public
87
- export interface CustomLocationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
88
- resumeFrom?: string;
89
- updateIntervalInMs?: number;
90
- }
91
-
92
- // @public
93
- export type CustomLocationsCreateOrUpdateResponse = CustomLocation;
94
-
95
- // @public
96
- export interface CustomLocationsDeleteOptionalParams extends coreClient.OperationOptions {
97
- resumeFrom?: string;
98
- updateIntervalInMs?: number;
99
- }
100
-
101
- // @public
102
- export interface CustomLocationsFindTargetResourceGroupOptionalParams extends coreClient.OperationOptions {
103
- }
104
-
105
- // @public
106
- export type CustomLocationsFindTargetResourceGroupResponse = CustomLocationFindTargetResourceGroupResult;
107
-
108
- // @public
109
- export interface CustomLocationsGetOptionalParams extends coreClient.OperationOptions {
110
- }
111
-
112
- // @public
113
- export type CustomLocationsGetResponse = CustomLocation;
114
-
115
- // @public
116
- export interface CustomLocationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
117
- }
118
-
119
- // @public
120
- export type CustomLocationsListByResourceGroupNextResponse = CustomLocationListResult;
121
-
122
- // @public
123
- export interface CustomLocationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
124
- }
125
-
126
- // @public
127
- export type CustomLocationsListByResourceGroupResponse = CustomLocationListResult;
128
-
129
- // @public
130
- export interface CustomLocationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
131
- }
132
-
133
- // @public
134
- export type CustomLocationsListBySubscriptionNextResponse = CustomLocationListResult;
135
-
136
- // @public
137
- export interface CustomLocationsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
138
- }
139
-
140
- // @public
141
- export type CustomLocationsListBySubscriptionResponse = CustomLocationListResult;
142
-
143
- // @public
144
- export interface CustomLocationsListEnabledResourceTypesNextOptionalParams extends coreClient.OperationOptions {
145
- }
146
-
147
- // @public
148
- export type CustomLocationsListEnabledResourceTypesNextResponse = EnabledResourceTypesListResult;
149
-
150
- // @public
151
- export interface CustomLocationsListEnabledResourceTypesOptionalParams extends coreClient.OperationOptions {
152
- }
153
-
154
- // @public
155
- export type CustomLocationsListEnabledResourceTypesResponse = EnabledResourceTypesListResult;
156
-
157
- // @public
158
- export interface CustomLocationsListOperationsNextOptionalParams extends coreClient.OperationOptions {
159
- }
160
-
161
- // @public
162
- export type CustomLocationsListOperationsNextResponse = CustomLocationOperationsList;
163
-
164
- // @public
165
- export interface CustomLocationsListOperationsOptionalParams extends coreClient.OperationOptions {
166
- }
167
-
168
- // @public
169
- export type CustomLocationsListOperationsResponse = CustomLocationOperationsList;
170
-
171
- // @public (undocumented)
172
- export class CustomLocationsManagementClient extends coreClient.ServiceClient {
173
- // (undocumented)
174
- $host: string;
175
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams);
176
- // (undocumented)
177
- apiVersion: string;
178
- // (undocumented)
179
- customLocations: CustomLocations;
180
- // (undocumented)
181
- resourceSyncRules: ResourceSyncRules;
182
- // (undocumented)
183
- subscriptionId: string;
184
- }
185
-
186
- // @public
187
- export interface CustomLocationsManagementClientOptionalParams extends coreClient.ServiceClientOptions {
188
- $host?: string;
189
- apiVersion?: string;
190
- endpoint?: string;
191
- }
192
-
193
- // @public
194
- export interface CustomLocationsUpdateOptionalParams extends coreClient.OperationOptions {
195
- authentication?: CustomLocationPropertiesAuthentication;
196
- clusterExtensionIds?: string[];
197
- displayName?: string;
198
- hostResourceId?: string;
199
- hostType?: HostType;
200
- identity?: Identity;
201
- namespace?: string;
202
- provisioningState?: string;
203
- tags?: {
204
- [propertyName: string]: string;
205
- };
206
- }
207
-
208
- // @public
209
- export type CustomLocationsUpdateResponse = CustomLocation;
210
-
211
- // @public
212
- export interface EnabledResourceType extends ProxyResource {
213
- clusterExtensionId?: string;
214
- extensionType?: string;
215
- readonly systemData?: SystemData;
216
- typesMetadata?: EnabledResourceTypePropertiesTypesMetadataItem[];
217
- }
218
-
219
- // @public
220
- export interface EnabledResourceTypePropertiesTypesMetadataItem {
221
- apiVersion?: string;
222
- resourceProviderNamespace?: string;
223
- resourceType?: string;
224
- }
225
-
226
- // @public
227
- export interface EnabledResourceTypesListResult {
228
- readonly nextLink?: string;
229
- readonly value?: EnabledResourceType[];
230
- }
231
-
232
- // @public
233
- export interface ErrorAdditionalInfo {
234
- readonly info?: Record<string, unknown>;
235
- readonly type?: string;
236
- }
237
-
238
- // @public
239
- export interface ErrorDetail {
240
- readonly additionalInfo?: ErrorAdditionalInfo[];
241
- readonly code?: string;
242
- readonly details?: ErrorDetail[];
243
- readonly message?: string;
244
- readonly target?: string;
245
- }
246
-
247
- // @public
248
- export interface ErrorResponse {
249
- error?: ErrorDetail;
250
- }
251
-
252
- // @public
253
- export function getContinuationToken(page: unknown): string | undefined;
254
-
255
- // @public
256
- export type HostType = string;
257
-
258
- // @public
259
- export interface Identity {
260
- readonly principalId?: string;
261
- readonly tenantId?: string;
262
- type?: ResourceIdentityType;
263
- }
264
-
265
- // @public
266
- export enum KnownCreatedByType {
267
- Application = "Application",
268
- Key = "Key",
269
- ManagedIdentity = "ManagedIdentity",
270
- User = "User"
271
- }
272
-
273
- // @public
274
- export enum KnownHostType {
275
- Kubernetes = "Kubernetes"
276
- }
277
-
278
- // @public
279
- export enum KnownResourceIdentityType {
280
- None = "None",
281
- SystemAssigned = "SystemAssigned"
282
- }
283
-
284
- // @public
285
- export interface MatchExpressionsProperties {
286
- key?: string;
287
- operator?: string;
288
- values?: string[];
289
- }
290
-
291
- // @public
292
- export interface PatchableCustomLocations {
293
- authentication?: CustomLocationPropertiesAuthentication;
294
- clusterExtensionIds?: string[];
295
- displayName?: string;
296
- hostResourceId?: string;
297
- hostType?: HostType;
298
- identity?: Identity;
299
- namespace?: string;
300
- provisioningState?: string;
301
- tags?: {
302
- [propertyName: string]: string;
303
- };
304
- }
305
-
306
- // @public
307
- export interface PatchableResourceSyncRule {
308
- priority?: number;
309
- readonly provisioningState?: string;
310
- selector?: ResourceSyncRulePropertiesSelector;
311
- tags?: {
312
- [propertyName: string]: string;
313
- };
314
- targetResourceGroup?: string;
315
- }
316
-
317
- // @public
318
- export interface ProxyResource extends Resource {
319
- }
320
-
321
- // @public
322
- export interface Resource {
323
- readonly id?: string;
324
- readonly name?: string;
325
- readonly type?: string;
326
- }
327
-
328
- // @public
329
- export type ResourceIdentityType = string;
330
-
331
- // @public
332
- export interface ResourceSyncRule extends TrackedResource {
333
- priority?: number;
334
- readonly provisioningState?: string;
335
- selector?: ResourceSyncRulePropertiesSelector;
336
- readonly systemData?: SystemData;
337
- targetResourceGroup?: string;
338
- }
339
-
340
- // @public
341
- export interface ResourceSyncRuleListResult {
342
- readonly nextLink?: string;
343
- readonly value?: ResourceSyncRule[];
344
- }
345
-
346
- // @public
347
- export interface ResourceSyncRulePropertiesSelector {
348
- matchExpressions?: MatchExpressionsProperties[];
349
- matchLabels?: {
350
- [propertyName: string]: string;
351
- };
352
- }
353
-
354
- // @public
355
- export interface ResourceSyncRules {
356
- beginCreateOrUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesCreateOrUpdateResponse>, ResourceSyncRulesCreateOrUpdateResponse>>;
357
- beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<ResourceSyncRulesCreateOrUpdateResponse>;
358
- beginUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesUpdateResponse>, ResourceSyncRulesUpdateResponse>>;
359
- beginUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<ResourceSyncRulesUpdateResponse>;
360
- delete(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams): Promise<void>;
361
- get(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams): Promise<ResourceSyncRulesGetResponse>;
362
- listByCustomLocationID(resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams): PagedAsyncIterableIterator<ResourceSyncRule>;
363
- }
364
-
365
- // @public
366
- export interface ResourceSyncRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
367
- resumeFrom?: string;
368
- updateIntervalInMs?: number;
369
- }
370
-
371
- // @public
372
- export type ResourceSyncRulesCreateOrUpdateResponse = ResourceSyncRule;
373
-
374
- // @public
375
- export interface ResourceSyncRulesDeleteOptionalParams extends coreClient.OperationOptions {
376
- }
377
-
378
- // @public
379
- export interface ResourceSyncRulesGetOptionalParams extends coreClient.OperationOptions {
380
- }
381
-
382
- // @public
383
- export type ResourceSyncRulesGetResponse = ResourceSyncRule;
384
-
385
- // @public
386
- export interface ResourceSyncRulesListByCustomLocationIDNextOptionalParams extends coreClient.OperationOptions {
387
- }
388
-
389
- // @public
390
- export type ResourceSyncRulesListByCustomLocationIDNextResponse = ResourceSyncRuleListResult;
391
-
392
- // @public
393
- export interface ResourceSyncRulesListByCustomLocationIDOptionalParams extends coreClient.OperationOptions {
394
- }
395
-
396
- // @public
397
- export type ResourceSyncRulesListByCustomLocationIDResponse = ResourceSyncRuleListResult;
398
-
399
- // @public
400
- export interface ResourceSyncRulesUpdateOptionalParams extends coreClient.OperationOptions {
401
- priority?: number;
402
- resumeFrom?: string;
403
- selector?: ResourceSyncRulePropertiesSelector;
404
- tags?: {
405
- [propertyName: string]: string;
406
- };
407
- targetResourceGroup?: string;
408
- updateIntervalInMs?: number;
409
- }
410
-
411
- // @public
412
- export type ResourceSyncRulesUpdateResponse = ResourceSyncRule;
413
-
414
- // @public
415
- export interface SystemData {
416
- createdAt?: Date;
417
- createdBy?: string;
418
- createdByType?: CreatedByType;
419
- lastModifiedAt?: Date;
420
- lastModifiedBy?: string;
421
- lastModifiedByType?: CreatedByType;
422
- }
423
-
424
- // @public
425
- export interface TrackedResource extends Resource {
426
- location: string;
427
- tags?: {
428
- [propertyName: string]: string;
429
- };
430
- }
431
-
432
- // (No @packageDocumentation comment for this package)
433
-
434
- ```
package/rollup.config.js DELETED
@@ -1,122 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import nodeResolve from "@rollup/plugin-node-resolve";
10
- import cjs from "@rollup/plugin-commonjs";
11
- import sourcemaps from "rollup-plugin-sourcemaps";
12
- import multiEntry from "@rollup/plugin-multi-entry";
13
- import json from "@rollup/plugin-json";
14
-
15
- import nodeBuiltins from "builtin-modules";
16
-
17
- // #region Warning Handler
18
-
19
- /**
20
- * A function that can determine whether a rollup warning should be ignored. If
21
- * the function returns `true`, then the warning will not be displayed.
22
- */
23
-
24
- function ignoreNiseSinonEval(warning) {
25
- return (
26
- warning.code === "EVAL" &&
27
- warning.id &&
28
- (warning.id.includes("node_modules/nise") ||
29
- warning.id.includes("node_modules/sinon")) === true
30
- );
31
- }
32
-
33
- function ignoreChaiCircularDependency(warning) {
34
- return (
35
- warning.code === "CIRCULAR_DEPENDENCY" &&
36
- warning.importer && warning.importer.includes("node_modules/chai") === true
37
- );
38
- }
39
-
40
- const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
-
42
- /**
43
- * Construct a warning handler for the shared rollup configuration
44
- * that ignores certain warnings that are not relevant to testing.
45
- */
46
- function makeOnWarnForTesting() {
47
- return (warning, warn) => {
48
- // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
- if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
- warn(warning);
51
- }
52
- };
53
- }
54
-
55
- // #endregion
56
-
57
- function makeBrowserTestConfig() {
58
- const config = {
59
- input: {
60
- include: ["dist-esm/test/**/*.spec.js"],
61
- exclude: ["dist-esm/test/**/node/**"]
62
- },
63
- output: {
64
- file: `dist-test/index.browser.js`,
65
- format: "umd",
66
- sourcemap: true
67
- },
68
- preserveSymlinks: false,
69
- plugins: [
70
- multiEntry({ exports: false }),
71
- nodeResolve({
72
- mainFields: ["module", "browser"]
73
- }),
74
- cjs(),
75
- json(),
76
- sourcemaps()
77
- //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
- ],
79
- onwarn: makeOnWarnForTesting(),
80
- // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
- // rollup started respecting the "sideEffects" field in package.json. Since
82
- // our package.json sets "sideEffects=false", this also applies to test
83
- // code, which causes all tests to be removed by tree-shaking.
84
- treeshake: false
85
- };
86
-
87
- return config;
88
- }
89
-
90
- const defaultConfigurationOptions = {
91
- disableBrowserBundle: false
92
- };
93
-
94
- export function makeConfig(pkg, options) {
95
- options = {
96
- ...defaultConfigurationOptions,
97
- ...(options || {})
98
- };
99
-
100
- const baseConfig = {
101
- // Use the package's module field if it has one
102
- input: pkg["module"] || "dist-esm/src/index.js",
103
- external: [
104
- ...nodeBuiltins,
105
- ...Object.keys(pkg.dependencies),
106
- ...Object.keys(pkg.devDependencies)
107
- ],
108
- output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
- preserveSymlinks: false,
110
- plugins: [sourcemaps(), nodeResolve()]
111
- };
112
-
113
- const config = [baseConfig];
114
-
115
- if (!options.disableBrowserBundle) {
116
- config.push(makeBrowserTestConfig());
117
- }
118
-
119
- return config;
120
- }
121
-
122
- export default makeConfig(require("./package.json"));
@@ -1,142 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import * as coreClient from "@azure/core-client";
10
- import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import {
12
- PipelineRequest,
13
- PipelineResponse,
14
- SendRequest
15
- } from "@azure/core-rest-pipeline";
16
- import * as coreAuth from "@azure/core-auth";
17
- import { CustomLocationsImpl, ResourceSyncRulesImpl } from "./operations";
18
- import { CustomLocations, ResourceSyncRules } from "./operationsInterfaces";
19
- import { CustomLocationsManagementClientOptionalParams } from "./models";
20
-
21
- export class CustomLocationsManagementClient extends coreClient.ServiceClient {
22
- $host: string;
23
- apiVersion: string;
24
- subscriptionId: string;
25
-
26
- /**
27
- * Initializes a new instance of the CustomLocationsManagementClient class.
28
- * @param credentials Subscription credentials which uniquely identify client subscription.
29
- * @param subscriptionId The ID of the target subscription.
30
- * @param options The parameter options
31
- */
32
- constructor(
33
- credentials: coreAuth.TokenCredential,
34
- subscriptionId: string,
35
- options?: CustomLocationsManagementClientOptionalParams
36
- ) {
37
- if (credentials === undefined) {
38
- throw new Error("'credentials' cannot be null");
39
- }
40
- if (subscriptionId === undefined) {
41
- throw new Error("'subscriptionId' cannot be null");
42
- }
43
-
44
- // Initializing default values for options
45
- if (!options) {
46
- options = {};
47
- }
48
- const defaults: CustomLocationsManagementClientOptionalParams = {
49
- requestContentType: "application/json; charset=utf-8",
50
- credential: credentials
51
- };
52
-
53
- const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0-beta.3`;
54
- const userAgentPrefix =
55
- options.userAgentOptions && options.userAgentOptions.userAgentPrefix
56
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
57
- : `${packageDetails}`;
58
-
59
- const optionsWithDefaults = {
60
- ...defaults,
61
- ...options,
62
- userAgentOptions: {
63
- userAgentPrefix
64
- },
65
- endpoint:
66
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
67
- };
68
- super(optionsWithDefaults);
69
-
70
- let bearerTokenAuthenticationPolicyFound: boolean = false;
71
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
72
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
73
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
74
- (pipelinePolicy) =>
75
- pipelinePolicy.name ===
76
- coreRestPipeline.bearerTokenAuthenticationPolicyName
77
- );
78
- }
79
- if (
80
- !options ||
81
- !options.pipeline ||
82
- options.pipeline.getOrderedPolicies().length == 0 ||
83
- !bearerTokenAuthenticationPolicyFound
84
- ) {
85
- this.pipeline.removePolicy({
86
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
87
- });
88
- this.pipeline.addPolicy(
89
- coreRestPipeline.bearerTokenAuthenticationPolicy({
90
- credential: credentials,
91
- scopes:
92
- optionsWithDefaults.credentialScopes ??
93
- `${optionsWithDefaults.endpoint}/.default`,
94
- challengeCallbacks: {
95
- authorizeRequestOnChallenge:
96
- coreClient.authorizeRequestOnClaimChallenge
97
- }
98
- })
99
- );
100
- }
101
- // Parameter assignments
102
- this.subscriptionId = subscriptionId;
103
-
104
- // Assigning values to Constant parameters
105
- this.$host = options.$host || "https://management.azure.com";
106
- this.apiVersion = options.apiVersion || "2021-08-31-preview";
107
- this.customLocations = new CustomLocationsImpl(this);
108
- this.resourceSyncRules = new ResourceSyncRulesImpl(this);
109
- this.addCustomApiVersionPolicy(options.apiVersion);
110
- }
111
-
112
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
113
- private addCustomApiVersionPolicy(apiVersion?: string) {
114
- if (!apiVersion) {
115
- return;
116
- }
117
- const apiVersionPolicy = {
118
- name: "CustomApiVersionPolicy",
119
- async sendRequest(
120
- request: PipelineRequest,
121
- next: SendRequest
122
- ): Promise<PipelineResponse> {
123
- const param = request.url.split("?");
124
- if (param.length > 1) {
125
- const newParams = param[1].split("&").map((item) => {
126
- if (item.indexOf("api-version") > -1) {
127
- return "api-version=" + apiVersion;
128
- } else {
129
- return item;
130
- }
131
- });
132
- request.url = param[0] + "?" + newParams.join("&");
133
- }
134
- return next(request);
135
- }
136
- };
137
- this.pipeline.addPolicy(apiVersionPolicy);
138
- }
139
-
140
- customLocations: CustomLocations;
141
- resourceSyncRules: ResourceSyncRules;
142
- }
package/src/index.ts DELETED
@@ -1,13 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- /// <reference lib="esnext.asynciterable" />
10
- export { getContinuationToken } from "./pagingHelper";
11
- export * from "./models";
12
- export { CustomLocationsManagementClient } from "./customLocationsManagementClient";
13
- export * from "./operationsInterfaces";