@azure/arm-domainservices 4.1.1-alpha.20250124.1 → 4.1.1-alpha.20250127.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. package/{dist-esm/src → dist/browser}/domainServicesResourceProvider.d.ts +2 -2
  2. package/dist/browser/domainServicesResourceProvider.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/domainServicesResourceProvider.js +15 -18
  4. package/dist/browser/domainServicesResourceProvider.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/lroImpl.js +25 -0
  10. package/dist/browser/lroImpl.js.map +1 -0
  11. package/dist/browser/models/index.js.map +1 -0
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/domainServiceOperations.d.ts +3 -3
  16. package/dist/browser/operations/domainServiceOperations.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/domainServiceOperations.js +3 -3
  18. package/dist/browser/operations/domainServiceOperations.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/domainServices.d.ts +3 -3
  20. package/dist/browser/operations/domainServices.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/domainServices.js +101 -113
  22. package/dist/browser/operations/domainServices.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +5 -0
  24. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  25. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/ouContainerOperationGrp.d.ts +3 -3
  28. package/dist/browser/operations/ouContainerOperationGrp.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/ouContainerOperationGrp.js +113 -125
  30. package/dist/browser/operations/ouContainerOperationGrp.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/ouContainerOperations.d.ts +3 -3
  32. package/dist/browser/operations/ouContainerOperations.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/ouContainerOperations.js +3 -3
  34. package/dist/browser/operations/ouContainerOperations.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operationsInterfaces/domainServiceOperations.d.ts +1 -1
  36. package/dist/browser/operationsInterfaces/domainServiceOperations.d.ts.map +1 -0
  37. package/dist/browser/operationsInterfaces/domainServiceOperations.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/domainServices.d.ts +1 -1
  39. package/dist/browser/operationsInterfaces/domainServices.d.ts.map +1 -0
  40. package/dist/browser/operationsInterfaces/domainServices.js.map +1 -0
  41. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  43. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
  44. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operationsInterfaces/ouContainerOperationGrp.d.ts +1 -1
  46. package/dist/browser/operationsInterfaces/ouContainerOperationGrp.d.ts.map +1 -0
  47. package/dist/browser/operationsInterfaces/ouContainerOperationGrp.js.map +1 -0
  48. package/{dist-esm/src → dist/browser}/operationsInterfaces/ouContainerOperations.d.ts +1 -1
  49. package/dist/browser/operationsInterfaces/ouContainerOperations.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/ouContainerOperations.js.map +1 -0
  51. package/dist/browser/package.json +3 -0
  52. package/dist/browser/pagingHelper.js.map +1 -0
  53. package/dist/commonjs/domainServicesResourceProvider.d.ts +24 -0
  54. package/dist/commonjs/domainServicesResourceProvider.d.ts.map +1 -0
  55. package/dist/commonjs/domainServicesResourceProvider.js +106 -0
  56. package/dist/commonjs/domainServicesResourceProvider.js.map +1 -0
  57. package/dist/commonjs/index.d.ts +5 -0
  58. package/dist/commonjs/index.d.ts.map +1 -0
  59. package/dist/commonjs/index.js +19 -0
  60. package/dist/commonjs/index.js.map +1 -0
  61. package/dist/commonjs/lroImpl.d.ts +16 -0
  62. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  63. package/dist/commonjs/lroImpl.js +29 -0
  64. package/dist/commonjs/lroImpl.js.map +1 -0
  65. package/{types/arm-domainservices.d.ts → dist/commonjs/models/index.d.ts} +802 -1107
  66. package/dist/commonjs/models/index.d.ts.map +1 -0
  67. package/dist/commonjs/models/index.js +135 -0
  68. package/dist/commonjs/models/index.js.map +1 -0
  69. package/dist/commonjs/models/mappers.d.ts +27 -0
  70. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  71. package/dist/commonjs/models/mappers.js +1018 -0
  72. package/dist/commonjs/models/mappers.js.map +1 -0
  73. package/dist/commonjs/models/parameters.d.ts +13 -0
  74. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  75. package/dist/commonjs/models/parameters.js +120 -0
  76. package/dist/commonjs/models/parameters.js.map +1 -0
  77. package/dist/commonjs/operations/domainServiceOperations.d.ts +32 -0
  78. package/dist/commonjs/operations/domainServiceOperations.d.ts.map +1 -0
  79. package/dist/commonjs/operations/domainServiceOperations.js +138 -0
  80. package/dist/commonjs/operations/domainServiceOperations.js.map +1 -0
  81. package/dist/commonjs/operations/domainServices.d.ts +127 -0
  82. package/dist/commonjs/operations/domainServices.d.ts.map +1 -0
  83. package/dist/commonjs/operations/domainServices.js +545 -0
  84. package/dist/commonjs/operations/domainServices.js.map +1 -0
  85. package/dist/commonjs/operations/index.d.ts +5 -0
  86. package/dist/commonjs/operations/index.d.ts.map +1 -0
  87. package/dist/commonjs/operations/index.js +15 -0
  88. package/dist/commonjs/operations/index.js.map +1 -0
  89. package/dist/commonjs/operations/ouContainerOperationGrp.d.ts +111 -0
  90. package/dist/commonjs/operations/ouContainerOperationGrp.d.ts.map +1 -0
  91. package/dist/commonjs/operations/ouContainerOperationGrp.js +453 -0
  92. package/dist/commonjs/operations/ouContainerOperationGrp.js.map +1 -0
  93. package/dist/commonjs/operations/ouContainerOperations.d.ts +32 -0
  94. package/dist/commonjs/operations/ouContainerOperations.d.ts.map +1 -0
  95. package/dist/commonjs/operations/ouContainerOperations.js +138 -0
  96. package/dist/commonjs/operations/ouContainerOperations.js.map +1 -0
  97. package/dist/commonjs/operationsInterfaces/domainServiceOperations.d.ts +11 -0
  98. package/dist/commonjs/operationsInterfaces/domainServiceOperations.d.ts.map +1 -0
  99. package/dist/commonjs/operationsInterfaces/domainServiceOperations.js +10 -0
  100. package/dist/commonjs/operationsInterfaces/domainServiceOperations.js.map +1 -0
  101. package/dist/commonjs/operationsInterfaces/domainServices.d.ts +87 -0
  102. package/dist/commonjs/operationsInterfaces/domainServices.d.ts.map +1 -0
  103. package/dist/commonjs/operationsInterfaces/domainServices.js +10 -0
  104. package/dist/commonjs/operationsInterfaces/domainServices.js.map +1 -0
  105. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  106. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  107. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  108. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/ouContainerOperationGrp.d.ts +84 -0
  110. package/dist/commonjs/operationsInterfaces/ouContainerOperationGrp.d.ts.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/ouContainerOperationGrp.js +10 -0
  112. package/dist/commonjs/operationsInterfaces/ouContainerOperationGrp.js.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/ouContainerOperations.d.ts +11 -0
  114. package/dist/commonjs/operationsInterfaces/ouContainerOperations.d.ts.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/ouContainerOperations.js +10 -0
  116. package/dist/commonjs/operationsInterfaces/ouContainerOperations.js.map +1 -0
  117. package/dist/commonjs/package.json +3 -0
  118. package/dist/commonjs/pagingHelper.d.ts +13 -0
  119. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  120. package/dist/commonjs/pagingHelper.js +36 -0
  121. package/dist/commonjs/pagingHelper.js.map +1 -0
  122. package/dist/esm/domainServicesResourceProvider.d.ts +24 -0
  123. package/dist/esm/domainServicesResourceProvider.d.ts.map +1 -0
  124. package/dist/esm/domainServicesResourceProvider.js +101 -0
  125. package/dist/esm/domainServicesResourceProvider.js.map +1 -0
  126. package/dist/esm/index.d.ts +5 -0
  127. package/dist/esm/index.d.ts.map +1 -0
  128. package/{src/index.ts → dist/esm/index.js} +5 -5
  129. package/dist/esm/index.js.map +1 -0
  130. package/dist/esm/lroImpl.d.ts +16 -0
  131. package/dist/esm/lroImpl.d.ts.map +1 -0
  132. package/dist/esm/lroImpl.js +25 -0
  133. package/dist/esm/lroImpl.js.map +1 -0
  134. package/dist/esm/models/index.d.ts +802 -0
  135. package/dist/esm/models/index.d.ts.map +1 -0
  136. package/dist/esm/models/index.js +132 -0
  137. package/dist/esm/models/index.js.map +1 -0
  138. package/dist/esm/models/mappers.d.ts +27 -0
  139. package/dist/esm/models/mappers.d.ts.map +1 -0
  140. package/dist/esm/models/mappers.js +1015 -0
  141. package/dist/esm/models/mappers.js.map +1 -0
  142. package/dist/esm/models/parameters.d.ts +13 -0
  143. package/dist/esm/models/parameters.d.ts.map +1 -0
  144. package/dist/esm/models/parameters.js +117 -0
  145. package/dist/esm/models/parameters.js.map +1 -0
  146. package/dist/esm/operations/domainServiceOperations.d.ts +32 -0
  147. package/dist/esm/operations/domainServiceOperations.d.ts.map +1 -0
  148. package/dist/esm/operations/domainServiceOperations.js +134 -0
  149. package/dist/esm/operations/domainServiceOperations.js.map +1 -0
  150. package/dist/esm/operations/domainServices.d.ts +127 -0
  151. package/dist/esm/operations/domainServices.d.ts.map +1 -0
  152. package/dist/esm/operations/domainServices.js +541 -0
  153. package/dist/esm/operations/domainServices.js.map +1 -0
  154. package/dist/esm/operations/index.d.ts +5 -0
  155. package/dist/esm/operations/index.d.ts.map +1 -0
  156. package/dist/esm/operations/index.js +12 -0
  157. package/dist/esm/operations/index.js.map +1 -0
  158. package/dist/esm/operations/ouContainerOperationGrp.d.ts +111 -0
  159. package/dist/esm/operations/ouContainerOperationGrp.d.ts.map +1 -0
  160. package/dist/esm/operations/ouContainerOperationGrp.js +449 -0
  161. package/dist/esm/operations/ouContainerOperationGrp.js.map +1 -0
  162. package/dist/esm/operations/ouContainerOperations.d.ts +32 -0
  163. package/dist/esm/operations/ouContainerOperations.d.ts.map +1 -0
  164. package/dist/esm/operations/ouContainerOperations.js +134 -0
  165. package/dist/esm/operations/ouContainerOperations.js.map +1 -0
  166. package/dist/esm/operationsInterfaces/domainServiceOperations.d.ts +11 -0
  167. package/dist/esm/operationsInterfaces/domainServiceOperations.d.ts.map +1 -0
  168. package/dist/esm/operationsInterfaces/domainServiceOperations.js +9 -0
  169. package/dist/esm/operationsInterfaces/domainServiceOperations.js.map +1 -0
  170. package/dist/esm/operationsInterfaces/domainServices.d.ts +87 -0
  171. package/dist/esm/operationsInterfaces/domainServices.d.ts.map +1 -0
  172. package/dist/esm/operationsInterfaces/domainServices.js +9 -0
  173. package/dist/esm/operationsInterfaces/domainServices.js.map +1 -0
  174. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  175. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  176. package/dist/esm/operationsInterfaces/index.js +12 -0
  177. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  178. package/dist/esm/operationsInterfaces/ouContainerOperationGrp.d.ts +84 -0
  179. package/dist/esm/operationsInterfaces/ouContainerOperationGrp.d.ts.map +1 -0
  180. package/dist/esm/operationsInterfaces/ouContainerOperationGrp.js +9 -0
  181. package/dist/esm/operationsInterfaces/ouContainerOperationGrp.js.map +1 -0
  182. package/dist/esm/operationsInterfaces/ouContainerOperations.d.ts +11 -0
  183. package/dist/esm/operationsInterfaces/ouContainerOperations.d.ts.map +1 -0
  184. package/dist/esm/operationsInterfaces/ouContainerOperations.js +9 -0
  185. package/dist/esm/operationsInterfaces/ouContainerOperations.js.map +1 -0
  186. package/dist/esm/package.json +3 -0
  187. package/dist/esm/pagingHelper.d.ts +13 -0
  188. package/dist/esm/pagingHelper.d.ts.map +1 -0
  189. package/dist/esm/pagingHelper.js +32 -0
  190. package/dist/esm/pagingHelper.js.map +1 -0
  191. package/dist/react-native/domainServicesResourceProvider.d.ts +24 -0
  192. package/dist/react-native/domainServicesResourceProvider.d.ts.map +1 -0
  193. package/dist/react-native/domainServicesResourceProvider.js +101 -0
  194. package/dist/react-native/domainServicesResourceProvider.js.map +1 -0
  195. package/dist/react-native/index.d.ts +5 -0
  196. package/dist/react-native/index.d.ts.map +1 -0
  197. package/dist/react-native/index.js +13 -0
  198. package/dist/react-native/index.js.map +1 -0
  199. package/dist/react-native/lroImpl.d.ts +16 -0
  200. package/dist/react-native/lroImpl.d.ts.map +1 -0
  201. package/dist/react-native/lroImpl.js +25 -0
  202. package/dist/react-native/lroImpl.js.map +1 -0
  203. package/dist/react-native/models/index.d.ts +802 -0
  204. package/dist/react-native/models/index.d.ts.map +1 -0
  205. package/dist/react-native/models/index.js +132 -0
  206. package/dist/react-native/models/index.js.map +1 -0
  207. package/dist/react-native/models/mappers.d.ts +27 -0
  208. package/dist/react-native/models/mappers.d.ts.map +1 -0
  209. package/dist/react-native/models/mappers.js +1015 -0
  210. package/dist/react-native/models/mappers.js.map +1 -0
  211. package/dist/react-native/models/parameters.d.ts +13 -0
  212. package/dist/react-native/models/parameters.d.ts.map +1 -0
  213. package/dist/react-native/models/parameters.js +117 -0
  214. package/dist/react-native/models/parameters.js.map +1 -0
  215. package/dist/react-native/operations/domainServiceOperations.d.ts +32 -0
  216. package/dist/react-native/operations/domainServiceOperations.d.ts.map +1 -0
  217. package/dist/react-native/operations/domainServiceOperations.js +134 -0
  218. package/dist/react-native/operations/domainServiceOperations.js.map +1 -0
  219. package/dist/react-native/operations/domainServices.d.ts +127 -0
  220. package/dist/react-native/operations/domainServices.d.ts.map +1 -0
  221. package/dist/react-native/operations/domainServices.js +541 -0
  222. package/dist/react-native/operations/domainServices.js.map +1 -0
  223. package/dist/react-native/operations/index.d.ts +5 -0
  224. package/dist/react-native/operations/index.d.ts.map +1 -0
  225. package/dist/react-native/operations/index.js +12 -0
  226. package/dist/react-native/operations/index.js.map +1 -0
  227. package/dist/react-native/operations/ouContainerOperationGrp.d.ts +111 -0
  228. package/dist/react-native/operations/ouContainerOperationGrp.d.ts.map +1 -0
  229. package/dist/react-native/operations/ouContainerOperationGrp.js +449 -0
  230. package/dist/react-native/operations/ouContainerOperationGrp.js.map +1 -0
  231. package/dist/react-native/operations/ouContainerOperations.d.ts +32 -0
  232. package/dist/react-native/operations/ouContainerOperations.d.ts.map +1 -0
  233. package/dist/react-native/operations/ouContainerOperations.js +134 -0
  234. package/dist/react-native/operations/ouContainerOperations.js.map +1 -0
  235. package/dist/react-native/operationsInterfaces/domainServiceOperations.d.ts +11 -0
  236. package/dist/react-native/operationsInterfaces/domainServiceOperations.d.ts.map +1 -0
  237. package/dist/react-native/operationsInterfaces/domainServiceOperations.js +9 -0
  238. package/dist/react-native/operationsInterfaces/domainServiceOperations.js.map +1 -0
  239. package/dist/react-native/operationsInterfaces/domainServices.d.ts +87 -0
  240. package/dist/react-native/operationsInterfaces/domainServices.d.ts.map +1 -0
  241. package/dist/react-native/operationsInterfaces/domainServices.js +9 -0
  242. package/dist/react-native/operationsInterfaces/domainServices.js.map +1 -0
  243. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  244. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  245. package/dist/react-native/operationsInterfaces/index.js +12 -0
  246. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  247. package/dist/react-native/operationsInterfaces/ouContainerOperationGrp.d.ts +84 -0
  248. package/dist/react-native/operationsInterfaces/ouContainerOperationGrp.d.ts.map +1 -0
  249. package/dist/react-native/operationsInterfaces/ouContainerOperationGrp.js +9 -0
  250. package/dist/react-native/operationsInterfaces/ouContainerOperationGrp.js.map +1 -0
  251. package/dist/react-native/operationsInterfaces/ouContainerOperations.d.ts +11 -0
  252. package/dist/react-native/operationsInterfaces/ouContainerOperations.d.ts.map +1 -0
  253. package/dist/react-native/operationsInterfaces/ouContainerOperations.js +9 -0
  254. package/dist/react-native/operationsInterfaces/ouContainerOperations.js.map +1 -0
  255. package/dist/react-native/package.json +3 -0
  256. package/dist/react-native/pagingHelper.d.ts +13 -0
  257. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  258. package/dist/react-native/pagingHelper.js +32 -0
  259. package/dist/react-native/pagingHelper.js.map +1 -0
  260. package/package.json +65 -35
  261. package/dist/index.js +0 -2742
  262. package/dist/index.js.map +0 -1
  263. package/dist/index.min.js +0 -1
  264. package/dist/index.min.js.map +0 -1
  265. package/dist-esm/samples-dev/domainServiceOperationsListSample.d.ts +0 -2
  266. package/dist-esm/samples-dev/domainServiceOperationsListSample.d.ts.map +0 -1
  267. package/dist-esm/samples-dev/domainServiceOperationsListSample.js +0 -45
  268. package/dist-esm/samples-dev/domainServiceOperationsListSample.js.map +0 -1
  269. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.d.ts +0 -2
  270. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.d.ts.map +0 -1
  271. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.js +0 -57
  272. package/dist-esm/samples-dev/domainServicesCreateOrUpdateSample.js.map +0 -1
  273. package/dist-esm/samples-dev/domainServicesDeleteSample.d.ts +0 -2
  274. package/dist-esm/samples-dev/domainServicesDeleteSample.d.ts.map +0 -1
  275. package/dist-esm/samples-dev/domainServicesDeleteSample.js +0 -31
  276. package/dist-esm/samples-dev/domainServicesDeleteSample.js.map +0 -1
  277. package/dist-esm/samples-dev/domainServicesGetSample.d.ts +0 -2
  278. package/dist-esm/samples-dev/domainServicesGetSample.d.ts.map +0 -1
  279. package/dist-esm/samples-dev/domainServicesGetSample.js +0 -31
  280. package/dist-esm/samples-dev/domainServicesGetSample.js.map +0 -1
  281. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.d.ts +0 -2
  282. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.d.ts.map +0 -1
  283. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.js +0 -46
  284. package/dist-esm/samples-dev/domainServicesListByResourceGroupSample.js.map +0 -1
  285. package/dist-esm/samples-dev/domainServicesListSample.d.ts +0 -2
  286. package/dist-esm/samples-dev/domainServicesListSample.d.ts.map +0 -1
  287. package/dist-esm/samples-dev/domainServicesListSample.js +0 -45
  288. package/dist-esm/samples-dev/domainServicesListSample.js.map +0 -1
  289. package/dist-esm/samples-dev/domainServicesUpdateSample.d.ts +0 -2
  290. package/dist-esm/samples-dev/domainServicesUpdateSample.d.ts.map +0 -1
  291. package/dist-esm/samples-dev/domainServicesUpdateSample.js +0 -71
  292. package/dist-esm/samples-dev/domainServicesUpdateSample.js.map +0 -1
  293. package/dist-esm/samples-dev/ouContainerCreateSample.d.ts +0 -2
  294. package/dist-esm/samples-dev/ouContainerCreateSample.d.ts.map +0 -1
  295. package/dist-esm/samples-dev/ouContainerCreateSample.js +0 -37
  296. package/dist-esm/samples-dev/ouContainerCreateSample.js.map +0 -1
  297. package/dist-esm/samples-dev/ouContainerDeleteSample.d.ts +0 -2
  298. package/dist-esm/samples-dev/ouContainerDeleteSample.d.ts.map +0 -1
  299. package/dist-esm/samples-dev/ouContainerDeleteSample.js +0 -32
  300. package/dist-esm/samples-dev/ouContainerDeleteSample.js.map +0 -1
  301. package/dist-esm/samples-dev/ouContainerGetSample.d.ts +0 -2
  302. package/dist-esm/samples-dev/ouContainerGetSample.d.ts.map +0 -1
  303. package/dist-esm/samples-dev/ouContainerGetSample.js +0 -32
  304. package/dist-esm/samples-dev/ouContainerGetSample.js.map +0 -1
  305. package/dist-esm/samples-dev/ouContainerListSample.d.ts +0 -2
  306. package/dist-esm/samples-dev/ouContainerListSample.d.ts.map +0 -1
  307. package/dist-esm/samples-dev/ouContainerListSample.js +0 -47
  308. package/dist-esm/samples-dev/ouContainerListSample.js.map +0 -1
  309. package/dist-esm/samples-dev/ouContainerOperationsListSample.d.ts +0 -2
  310. package/dist-esm/samples-dev/ouContainerOperationsListSample.d.ts.map +0 -1
  311. package/dist-esm/samples-dev/ouContainerOperationsListSample.js +0 -45
  312. package/dist-esm/samples-dev/ouContainerOperationsListSample.js.map +0 -1
  313. package/dist-esm/samples-dev/ouContainerUpdateSample.d.ts +0 -2
  314. package/dist-esm/samples-dev/ouContainerUpdateSample.d.ts.map +0 -1
  315. package/dist-esm/samples-dev/ouContainerUpdateSample.js +0 -37
  316. package/dist-esm/samples-dev/ouContainerUpdateSample.js.map +0 -1
  317. package/dist-esm/src/domainServicesResourceProvider.d.ts.map +0 -1
  318. package/dist-esm/src/domainServicesResourceProvider.js.map +0 -1
  319. package/dist-esm/src/index.d.ts +0 -5
  320. package/dist-esm/src/index.js.map +0 -1
  321. package/dist-esm/src/lroImpl.js +0 -29
  322. package/dist-esm/src/lroImpl.js.map +0 -1
  323. package/dist-esm/src/models/index.js.map +0 -1
  324. package/dist-esm/src/models/mappers.js.map +0 -1
  325. package/dist-esm/src/models/parameters.js.map +0 -1
  326. package/dist-esm/src/operations/domainServiceOperations.d.ts.map +0 -1
  327. package/dist-esm/src/operations/domainServiceOperations.js.map +0 -1
  328. package/dist-esm/src/operations/domainServices.d.ts.map +0 -1
  329. package/dist-esm/src/operations/domainServices.js.map +0 -1
  330. package/dist-esm/src/operations/index.d.ts +0 -5
  331. package/dist-esm/src/operations/index.js.map +0 -1
  332. package/dist-esm/src/operations/ouContainerOperationGrp.d.ts.map +0 -1
  333. package/dist-esm/src/operations/ouContainerOperationGrp.js.map +0 -1
  334. package/dist-esm/src/operations/ouContainerOperations.d.ts.map +0 -1
  335. package/dist-esm/src/operations/ouContainerOperations.js.map +0 -1
  336. package/dist-esm/src/operationsInterfaces/domainServiceOperations.d.ts.map +0 -1
  337. package/dist-esm/src/operationsInterfaces/domainServiceOperations.js.map +0 -1
  338. package/dist-esm/src/operationsInterfaces/domainServices.d.ts.map +0 -1
  339. package/dist-esm/src/operationsInterfaces/domainServices.js.map +0 -1
  340. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  341. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  342. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.d.ts.map +0 -1
  343. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.js.map +0 -1
  344. package/dist-esm/src/operationsInterfaces/ouContainerOperations.d.ts.map +0 -1
  345. package/dist-esm/src/operationsInterfaces/ouContainerOperations.js.map +0 -1
  346. package/dist-esm/src/pagingHelper.js.map +0 -1
  347. package/dist-esm/test/sampleTest.d.ts +0 -2
  348. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  349. package/dist-esm/test/sampleTest.js +0 -42
  350. package/dist-esm/test/sampleTest.js.map +0 -1
  351. package/src/domainServicesResourceProvider.ts +0 -157
  352. package/src/lroImpl.ts +0 -34
  353. package/src/models/index.ts +0 -902
  354. package/src/models/mappers.ts +0 -1069
  355. package/src/models/parameters.ts +0 -136
  356. package/src/operations/domainServiceOperations.ts +0 -150
  357. package/src/operations/domainServices.ts +0 -725
  358. package/src/operations/index.ts +0 -12
  359. package/src/operations/ouContainerOperationGrp.ts +0 -648
  360. package/src/operations/ouContainerOperations.ts +0 -150
  361. package/src/operationsInterfaces/domainServiceOperations.ts +0 -25
  362. package/src/operationsInterfaces/domainServices.ts +0 -154
  363. package/src/operationsInterfaces/index.ts +0 -12
  364. package/src/operationsInterfaces/ouContainerOperationGrp.ts +0 -157
  365. package/src/operationsInterfaces/ouContainerOperations.ts +0 -25
  366. package/src/pagingHelper.ts +0 -39
  367. package/tsconfig.json +0 -33
  368. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  369. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  370. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  371. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  372. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  373. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  374. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  375. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  376. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  377. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  378. /package/{dist-esm/src → dist/browser}/operationsInterfaces/domainServiceOperations.js +0 -0
  379. /package/{dist-esm/src → dist/browser}/operationsInterfaces/domainServices.js +0 -0
  380. /package/{dist-esm/src → dist/browser}/operationsInterfaces/ouContainerOperationGrp.js +0 -0
  381. /package/{dist-esm/src → dist/browser}/operationsInterfaces/ouContainerOperations.js +0 -0
  382. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  383. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  384. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  385. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,2742 +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 _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given a result page from a pageable operation, returns a
40
- * continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page A result object from calling .byPage() on a paged operation.
43
- * @returns The continuation token that can be passed into byPage().
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link Ldaps} that the service accepts. */
70
- exports.KnownLdaps = void 0;
71
- (function (KnownLdaps) {
72
- /** Enabled */
73
- KnownLdaps["Enabled"] = "Enabled";
74
- /** Disabled */
75
- KnownLdaps["Disabled"] = "Disabled";
76
- })(exports.KnownLdaps || (exports.KnownLdaps = {}));
77
- /** Known values of {@link ExternalAccess} that the service accepts. */
78
- exports.KnownExternalAccess = void 0;
79
- (function (KnownExternalAccess) {
80
- /** Enabled */
81
- KnownExternalAccess["Enabled"] = "Enabled";
82
- /** Disabled */
83
- KnownExternalAccess["Disabled"] = "Disabled";
84
- })(exports.KnownExternalAccess || (exports.KnownExternalAccess = {}));
85
- /** Known values of {@link NtlmV1} that the service accepts. */
86
- exports.KnownNtlmV1 = void 0;
87
- (function (KnownNtlmV1) {
88
- /** Enabled */
89
- KnownNtlmV1["Enabled"] = "Enabled";
90
- /** Disabled */
91
- KnownNtlmV1["Disabled"] = "Disabled";
92
- })(exports.KnownNtlmV1 || (exports.KnownNtlmV1 = {}));
93
- /** Known values of {@link TlsV1} that the service accepts. */
94
- exports.KnownTlsV1 = void 0;
95
- (function (KnownTlsV1) {
96
- /** Enabled */
97
- KnownTlsV1["Enabled"] = "Enabled";
98
- /** Disabled */
99
- KnownTlsV1["Disabled"] = "Disabled";
100
- })(exports.KnownTlsV1 || (exports.KnownTlsV1 = {}));
101
- /** Known values of {@link SyncNtlmPasswords} that the service accepts. */
102
- exports.KnownSyncNtlmPasswords = void 0;
103
- (function (KnownSyncNtlmPasswords) {
104
- /** Enabled */
105
- KnownSyncNtlmPasswords["Enabled"] = "Enabled";
106
- /** Disabled */
107
- KnownSyncNtlmPasswords["Disabled"] = "Disabled";
108
- })(exports.KnownSyncNtlmPasswords || (exports.KnownSyncNtlmPasswords = {}));
109
- /** Known values of {@link SyncKerberosPasswords} that the service accepts. */
110
- exports.KnownSyncKerberosPasswords = void 0;
111
- (function (KnownSyncKerberosPasswords) {
112
- /** Enabled */
113
- KnownSyncKerberosPasswords["Enabled"] = "Enabled";
114
- /** Disabled */
115
- KnownSyncKerberosPasswords["Disabled"] = "Disabled";
116
- })(exports.KnownSyncKerberosPasswords || (exports.KnownSyncKerberosPasswords = {}));
117
- /** Known values of {@link SyncOnPremPasswords} that the service accepts. */
118
- exports.KnownSyncOnPremPasswords = void 0;
119
- (function (KnownSyncOnPremPasswords) {
120
- /** Enabled */
121
- KnownSyncOnPremPasswords["Enabled"] = "Enabled";
122
- /** Disabled */
123
- KnownSyncOnPremPasswords["Disabled"] = "Disabled";
124
- })(exports.KnownSyncOnPremPasswords || (exports.KnownSyncOnPremPasswords = {}));
125
- /** Known values of {@link KerberosRc4Encryption} that the service accepts. */
126
- exports.KnownKerberosRc4Encryption = void 0;
127
- (function (KnownKerberosRc4Encryption) {
128
- /** Enabled */
129
- KnownKerberosRc4Encryption["Enabled"] = "Enabled";
130
- /** Disabled */
131
- KnownKerberosRc4Encryption["Disabled"] = "Disabled";
132
- })(exports.KnownKerberosRc4Encryption || (exports.KnownKerberosRc4Encryption = {}));
133
- /** Known values of {@link KerberosArmoring} that the service accepts. */
134
- exports.KnownKerberosArmoring = void 0;
135
- (function (KnownKerberosArmoring) {
136
- /** Enabled */
137
- KnownKerberosArmoring["Enabled"] = "Enabled";
138
- /** Disabled */
139
- KnownKerberosArmoring["Disabled"] = "Disabled";
140
- })(exports.KnownKerberosArmoring || (exports.KnownKerberosArmoring = {}));
141
- /** Known values of {@link FilteredSync} that the service accepts. */
142
- exports.KnownFilteredSync = void 0;
143
- (function (KnownFilteredSync) {
144
- /** Enabled */
145
- KnownFilteredSync["Enabled"] = "Enabled";
146
- /** Disabled */
147
- KnownFilteredSync["Disabled"] = "Disabled";
148
- })(exports.KnownFilteredSync || (exports.KnownFilteredSync = {}));
149
- /** Known values of {@link NotifyGlobalAdmins} that the service accepts. */
150
- exports.KnownNotifyGlobalAdmins = void 0;
151
- (function (KnownNotifyGlobalAdmins) {
152
- /** Enabled */
153
- KnownNotifyGlobalAdmins["Enabled"] = "Enabled";
154
- /** Disabled */
155
- KnownNotifyGlobalAdmins["Disabled"] = "Disabled";
156
- })(exports.KnownNotifyGlobalAdmins || (exports.KnownNotifyGlobalAdmins = {}));
157
- /** Known values of {@link NotifyDcAdmins} that the service accepts. */
158
- exports.KnownNotifyDcAdmins = void 0;
159
- (function (KnownNotifyDcAdmins) {
160
- /** Enabled */
161
- KnownNotifyDcAdmins["Enabled"] = "Enabled";
162
- /** Disabled */
163
- KnownNotifyDcAdmins["Disabled"] = "Disabled";
164
- })(exports.KnownNotifyDcAdmins || (exports.KnownNotifyDcAdmins = {}));
165
- /** Known values of {@link Status} that the service accepts. */
166
- exports.KnownStatus = void 0;
167
- (function (KnownStatus) {
168
- /** None */
169
- KnownStatus["None"] = "None";
170
- /** Running */
171
- KnownStatus["Running"] = "Running";
172
- /** OK */
173
- KnownStatus["OK"] = "OK";
174
- /** Failure */
175
- KnownStatus["Failure"] = "Failure";
176
- /** Warning */
177
- KnownStatus["Warning"] = "Warning";
178
- /** Skipped */
179
- KnownStatus["Skipped"] = "Skipped";
180
- })(exports.KnownStatus || (exports.KnownStatus = {}));
181
- /** Known values of {@link CreatedByType} that the service accepts. */
182
- exports.KnownCreatedByType = void 0;
183
- (function (KnownCreatedByType) {
184
- /** User */
185
- KnownCreatedByType["User"] = "User";
186
- /** Application */
187
- KnownCreatedByType["Application"] = "Application";
188
- /** ManagedIdentity */
189
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
190
- /** Key */
191
- KnownCreatedByType["Key"] = "Key";
192
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
193
-
194
- /*
195
- * Copyright (c) Microsoft Corporation.
196
- * Licensed under the MIT License.
197
- *
198
- * Code generated by Microsoft (R) AutoRest Code Generator.
199
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
200
- */
201
- const OperationEntityListResult = {
202
- type: {
203
- name: "Composite",
204
- className: "OperationEntityListResult",
205
- modelProperties: {
206
- value: {
207
- serializedName: "value",
208
- type: {
209
- name: "Sequence",
210
- element: {
211
- type: {
212
- name: "Composite",
213
- className: "OperationEntity"
214
- }
215
- }
216
- }
217
- },
218
- nextLink: {
219
- serializedName: "nextLink",
220
- readOnly: true,
221
- type: {
222
- name: "String"
223
- }
224
- }
225
- }
226
- }
227
- };
228
- const OperationEntity = {
229
- type: {
230
- name: "Composite",
231
- className: "OperationEntity",
232
- modelProperties: {
233
- name: {
234
- serializedName: "name",
235
- type: {
236
- name: "String"
237
- }
238
- },
239
- display: {
240
- serializedName: "display",
241
- type: {
242
- name: "Composite",
243
- className: "OperationDisplayInfo"
244
- }
245
- },
246
- origin: {
247
- serializedName: "origin",
248
- type: {
249
- name: "String"
250
- }
251
- }
252
- }
253
- }
254
- };
255
- const OperationDisplayInfo = {
256
- type: {
257
- name: "Composite",
258
- className: "OperationDisplayInfo",
259
- modelProperties: {
260
- description: {
261
- serializedName: "description",
262
- type: {
263
- name: "String"
264
- }
265
- },
266
- operation: {
267
- serializedName: "operation",
268
- type: {
269
- name: "String"
270
- }
271
- },
272
- provider: {
273
- serializedName: "provider",
274
- type: {
275
- name: "String"
276
- }
277
- },
278
- resource: {
279
- serializedName: "resource",
280
- type: {
281
- name: "String"
282
- }
283
- }
284
- }
285
- }
286
- };
287
- const CloudError = {
288
- type: {
289
- name: "Composite",
290
- className: "CloudError",
291
- modelProperties: {
292
- error: {
293
- serializedName: "error",
294
- type: {
295
- name: "Composite",
296
- className: "CloudErrorBody"
297
- }
298
- }
299
- }
300
- }
301
- };
302
- const CloudErrorBody = {
303
- type: {
304
- name: "Composite",
305
- className: "CloudErrorBody",
306
- modelProperties: {
307
- code: {
308
- serializedName: "code",
309
- type: {
310
- name: "String"
311
- }
312
- },
313
- message: {
314
- serializedName: "message",
315
- type: {
316
- name: "String"
317
- }
318
- },
319
- target: {
320
- serializedName: "target",
321
- type: {
322
- name: "String"
323
- }
324
- },
325
- details: {
326
- serializedName: "details",
327
- type: {
328
- name: "Sequence",
329
- element: {
330
- type: {
331
- name: "Composite",
332
- className: "CloudErrorBody"
333
- }
334
- }
335
- }
336
- }
337
- }
338
- }
339
- };
340
- const DomainServiceListResult = {
341
- type: {
342
- name: "Composite",
343
- className: "DomainServiceListResult",
344
- modelProperties: {
345
- value: {
346
- serializedName: "value",
347
- type: {
348
- name: "Sequence",
349
- element: {
350
- type: {
351
- name: "Composite",
352
- className: "DomainService"
353
- }
354
- }
355
- }
356
- },
357
- nextLink: {
358
- serializedName: "nextLink",
359
- readOnly: true,
360
- type: {
361
- name: "String"
362
- }
363
- }
364
- }
365
- }
366
- };
367
- const ReplicaSet = {
368
- type: {
369
- name: "Composite",
370
- className: "ReplicaSet",
371
- modelProperties: {
372
- replicaSetId: {
373
- serializedName: "replicaSetId",
374
- readOnly: true,
375
- type: {
376
- name: "String"
377
- }
378
- },
379
- location: {
380
- serializedName: "location",
381
- type: {
382
- name: "String"
383
- }
384
- },
385
- vnetSiteId: {
386
- serializedName: "vnetSiteId",
387
- readOnly: true,
388
- type: {
389
- name: "String"
390
- }
391
- },
392
- subnetId: {
393
- serializedName: "subnetId",
394
- type: {
395
- name: "String"
396
- }
397
- },
398
- domainControllerIpAddress: {
399
- serializedName: "domainControllerIpAddress",
400
- readOnly: true,
401
- type: {
402
- name: "Sequence",
403
- element: {
404
- type: {
405
- name: "String"
406
- }
407
- }
408
- }
409
- },
410
- externalAccessIpAddress: {
411
- serializedName: "externalAccessIpAddress",
412
- readOnly: true,
413
- type: {
414
- name: "String"
415
- }
416
- },
417
- serviceStatus: {
418
- serializedName: "serviceStatus",
419
- readOnly: true,
420
- type: {
421
- name: "String"
422
- }
423
- },
424
- healthLastEvaluated: {
425
- serializedName: "healthLastEvaluated",
426
- readOnly: true,
427
- type: {
428
- name: "DateTimeRfc1123"
429
- }
430
- },
431
- healthMonitors: {
432
- serializedName: "healthMonitors",
433
- readOnly: true,
434
- type: {
435
- name: "Sequence",
436
- element: {
437
- type: {
438
- name: "Composite",
439
- className: "HealthMonitor"
440
- }
441
- }
442
- }
443
- },
444
- healthAlerts: {
445
- serializedName: "healthAlerts",
446
- readOnly: true,
447
- type: {
448
- name: "Sequence",
449
- element: {
450
- type: {
451
- name: "Composite",
452
- className: "HealthAlert"
453
- }
454
- }
455
- }
456
- }
457
- }
458
- }
459
- };
460
- const HealthMonitor = {
461
- type: {
462
- name: "Composite",
463
- className: "HealthMonitor",
464
- modelProperties: {
465
- id: {
466
- serializedName: "id",
467
- readOnly: true,
468
- type: {
469
- name: "String"
470
- }
471
- },
472
- name: {
473
- serializedName: "name",
474
- readOnly: true,
475
- type: {
476
- name: "String"
477
- }
478
- },
479
- details: {
480
- serializedName: "details",
481
- readOnly: true,
482
- type: {
483
- name: "String"
484
- }
485
- }
486
- }
487
- }
488
- };
489
- const HealthAlert = {
490
- type: {
491
- name: "Composite",
492
- className: "HealthAlert",
493
- modelProperties: {
494
- id: {
495
- serializedName: "id",
496
- readOnly: true,
497
- type: {
498
- name: "String"
499
- }
500
- },
501
- name: {
502
- serializedName: "name",
503
- readOnly: true,
504
- type: {
505
- name: "String"
506
- }
507
- },
508
- issue: {
509
- serializedName: "issue",
510
- readOnly: true,
511
- type: {
512
- name: "String"
513
- }
514
- },
515
- severity: {
516
- serializedName: "severity",
517
- readOnly: true,
518
- type: {
519
- name: "String"
520
- }
521
- },
522
- raised: {
523
- serializedName: "raised",
524
- readOnly: true,
525
- type: {
526
- name: "DateTime"
527
- }
528
- },
529
- lastDetected: {
530
- serializedName: "lastDetected",
531
- readOnly: true,
532
- type: {
533
- name: "DateTime"
534
- }
535
- },
536
- resolutionUri: {
537
- serializedName: "resolutionUri",
538
- readOnly: true,
539
- type: {
540
- name: "String"
541
- }
542
- }
543
- }
544
- }
545
- };
546
- const LdapsSettings = {
547
- type: {
548
- name: "Composite",
549
- className: "LdapsSettings",
550
- modelProperties: {
551
- ldaps: {
552
- defaultValue: "Disabled",
553
- serializedName: "ldaps",
554
- type: {
555
- name: "String"
556
- }
557
- },
558
- pfxCertificate: {
559
- serializedName: "pfxCertificate",
560
- type: {
561
- name: "String"
562
- }
563
- },
564
- pfxCertificatePassword: {
565
- serializedName: "pfxCertificatePassword",
566
- type: {
567
- name: "String"
568
- }
569
- },
570
- publicCertificate: {
571
- serializedName: "publicCertificate",
572
- readOnly: true,
573
- type: {
574
- name: "String"
575
- }
576
- },
577
- certificateThumbprint: {
578
- serializedName: "certificateThumbprint",
579
- readOnly: true,
580
- type: {
581
- name: "String"
582
- }
583
- },
584
- certificateNotAfter: {
585
- serializedName: "certificateNotAfter",
586
- readOnly: true,
587
- type: {
588
- name: "DateTime"
589
- }
590
- },
591
- externalAccess: {
592
- defaultValue: "Disabled",
593
- serializedName: "externalAccess",
594
- type: {
595
- name: "String"
596
- }
597
- }
598
- }
599
- }
600
- };
601
- const ResourceForestSettings = {
602
- type: {
603
- name: "Composite",
604
- className: "ResourceForestSettings",
605
- modelProperties: {
606
- settings: {
607
- serializedName: "settings",
608
- type: {
609
- name: "Sequence",
610
- element: {
611
- type: {
612
- name: "Composite",
613
- className: "ForestTrust"
614
- }
615
- }
616
- }
617
- },
618
- resourceForest: {
619
- serializedName: "resourceForest",
620
- type: {
621
- name: "String"
622
- }
623
- }
624
- }
625
- }
626
- };
627
- const ForestTrust = {
628
- type: {
629
- name: "Composite",
630
- className: "ForestTrust",
631
- modelProperties: {
632
- trustedDomainFqdn: {
633
- serializedName: "trustedDomainFqdn",
634
- type: {
635
- name: "String"
636
- }
637
- },
638
- trustDirection: {
639
- serializedName: "trustDirection",
640
- type: {
641
- name: "String"
642
- }
643
- },
644
- friendlyName: {
645
- serializedName: "friendlyName",
646
- type: {
647
- name: "String"
648
- }
649
- },
650
- remoteDnsIps: {
651
- serializedName: "remoteDnsIps",
652
- type: {
653
- name: "String"
654
- }
655
- },
656
- trustPassword: {
657
- serializedName: "trustPassword",
658
- type: {
659
- name: "String"
660
- }
661
- }
662
- }
663
- }
664
- };
665
- const DomainSecuritySettings = {
666
- type: {
667
- name: "Composite",
668
- className: "DomainSecuritySettings",
669
- modelProperties: {
670
- ntlmV1: {
671
- defaultValue: "Enabled",
672
- serializedName: "ntlmV1",
673
- type: {
674
- name: "String"
675
- }
676
- },
677
- tlsV1: {
678
- defaultValue: "Enabled",
679
- serializedName: "tlsV1",
680
- type: {
681
- name: "String"
682
- }
683
- },
684
- syncNtlmPasswords: {
685
- defaultValue: "Enabled",
686
- serializedName: "syncNtlmPasswords",
687
- type: {
688
- name: "String"
689
- }
690
- },
691
- syncKerberosPasswords: {
692
- defaultValue: "Enabled",
693
- serializedName: "syncKerberosPasswords",
694
- type: {
695
- name: "String"
696
- }
697
- },
698
- syncOnPremPasswords: {
699
- defaultValue: "Enabled",
700
- serializedName: "syncOnPremPasswords",
701
- type: {
702
- name: "String"
703
- }
704
- },
705
- kerberosRc4Encryption: {
706
- defaultValue: "Enabled",
707
- serializedName: "kerberosRc4Encryption",
708
- type: {
709
- name: "String"
710
- }
711
- },
712
- kerberosArmoring: {
713
- defaultValue: "Disabled",
714
- serializedName: "kerberosArmoring",
715
- type: {
716
- name: "String"
717
- }
718
- }
719
- }
720
- }
721
- };
722
- const NotificationSettings = {
723
- type: {
724
- name: "Composite",
725
- className: "NotificationSettings",
726
- modelProperties: {
727
- notifyGlobalAdmins: {
728
- serializedName: "notifyGlobalAdmins",
729
- type: {
730
- name: "String"
731
- }
732
- },
733
- notifyDcAdmins: {
734
- serializedName: "notifyDcAdmins",
735
- type: {
736
- name: "String"
737
- }
738
- },
739
- additionalRecipients: {
740
- serializedName: "additionalRecipients",
741
- type: {
742
- name: "Sequence",
743
- element: {
744
- type: {
745
- name: "String"
746
- }
747
- }
748
- }
749
- }
750
- }
751
- }
752
- };
753
- const MigrationProperties = {
754
- type: {
755
- name: "Composite",
756
- className: "MigrationProperties",
757
- modelProperties: {
758
- oldSubnetId: {
759
- serializedName: "oldSubnetId",
760
- readOnly: true,
761
- type: {
762
- name: "String"
763
- }
764
- },
765
- oldVnetSiteId: {
766
- serializedName: "oldVnetSiteId",
767
- readOnly: true,
768
- type: {
769
- name: "String"
770
- }
771
- },
772
- migrationProgress: {
773
- serializedName: "migrationProgress",
774
- type: {
775
- name: "Composite",
776
- className: "MigrationProgress"
777
- }
778
- }
779
- }
780
- }
781
- };
782
- const MigrationProgress = {
783
- type: {
784
- name: "Composite",
785
- className: "MigrationProgress",
786
- modelProperties: {
787
- completionPercentage: {
788
- serializedName: "completionPercentage",
789
- type: {
790
- name: "Number"
791
- }
792
- },
793
- progressMessage: {
794
- serializedName: "progressMessage",
795
- type: {
796
- name: "String"
797
- }
798
- }
799
- }
800
- }
801
- };
802
- const ConfigDiagnostics = {
803
- type: {
804
- name: "Composite",
805
- className: "ConfigDiagnostics",
806
- modelProperties: {
807
- lastExecuted: {
808
- serializedName: "lastExecuted",
809
- type: {
810
- name: "DateTimeRfc1123"
811
- }
812
- },
813
- validatorResults: {
814
- serializedName: "validatorResults",
815
- type: {
816
- name: "Sequence",
817
- element: {
818
- type: {
819
- name: "Composite",
820
- className: "ConfigDiagnosticsValidatorResult"
821
- }
822
- }
823
- }
824
- }
825
- }
826
- }
827
- };
828
- const ConfigDiagnosticsValidatorResult = {
829
- type: {
830
- name: "Composite",
831
- className: "ConfigDiagnosticsValidatorResult",
832
- modelProperties: {
833
- validatorId: {
834
- serializedName: "validatorId",
835
- type: {
836
- name: "String"
837
- }
838
- },
839
- replicaSetSubnetDisplayName: {
840
- serializedName: "replicaSetSubnetDisplayName",
841
- type: {
842
- name: "String"
843
- }
844
- },
845
- status: {
846
- defaultValue: "None",
847
- serializedName: "status",
848
- type: {
849
- name: "String"
850
- }
851
- },
852
- issues: {
853
- serializedName: "issues",
854
- type: {
855
- name: "Sequence",
856
- element: {
857
- type: {
858
- name: "Composite",
859
- className: "ConfigDiagnosticsValidatorResultIssue"
860
- }
861
- }
862
- }
863
- }
864
- }
865
- }
866
- };
867
- const ConfigDiagnosticsValidatorResultIssue = {
868
- type: {
869
- name: "Composite",
870
- className: "ConfigDiagnosticsValidatorResultIssue",
871
- modelProperties: {
872
- id: {
873
- serializedName: "id",
874
- type: {
875
- name: "String"
876
- }
877
- },
878
- descriptionParams: {
879
- serializedName: "descriptionParams",
880
- type: {
881
- name: "Sequence",
882
- element: {
883
- type: {
884
- name: "String"
885
- }
886
- }
887
- }
888
- }
889
- }
890
- }
891
- };
892
- const Resource = {
893
- type: {
894
- name: "Composite",
895
- className: "Resource",
896
- modelProperties: {
897
- id: {
898
- serializedName: "id",
899
- readOnly: true,
900
- type: {
901
- name: "String"
902
- }
903
- },
904
- name: {
905
- serializedName: "name",
906
- readOnly: true,
907
- type: {
908
- name: "String"
909
- }
910
- },
911
- type: {
912
- serializedName: "type",
913
- readOnly: true,
914
- type: {
915
- name: "String"
916
- }
917
- },
918
- location: {
919
- serializedName: "location",
920
- type: {
921
- name: "String"
922
- }
923
- },
924
- tags: {
925
- serializedName: "tags",
926
- type: {
927
- name: "Dictionary",
928
- value: { type: { name: "String" } }
929
- }
930
- },
931
- etag: {
932
- serializedName: "etag",
933
- type: {
934
- name: "String"
935
- }
936
- },
937
- systemData: {
938
- serializedName: "systemData",
939
- type: {
940
- name: "Composite",
941
- className: "SystemData"
942
- }
943
- }
944
- }
945
- }
946
- };
947
- const SystemData = {
948
- type: {
949
- name: "Composite",
950
- className: "SystemData",
951
- modelProperties: {
952
- createdBy: {
953
- serializedName: "createdBy",
954
- type: {
955
- name: "String"
956
- }
957
- },
958
- createdByType: {
959
- serializedName: "createdByType",
960
- type: {
961
- name: "String"
962
- }
963
- },
964
- createdAt: {
965
- serializedName: "createdAt",
966
- type: {
967
- name: "DateTime"
968
- }
969
- },
970
- lastModifiedBy: {
971
- serializedName: "lastModifiedBy",
972
- type: {
973
- name: "String"
974
- }
975
- },
976
- lastModifiedByType: {
977
- serializedName: "lastModifiedByType",
978
- type: {
979
- name: "String"
980
- }
981
- },
982
- lastModifiedAt: {
983
- serializedName: "lastModifiedAt",
984
- type: {
985
- name: "DateTime"
986
- }
987
- }
988
- }
989
- }
990
- };
991
- const OuContainerListResult = {
992
- type: {
993
- name: "Composite",
994
- className: "OuContainerListResult",
995
- modelProperties: {
996
- value: {
997
- serializedName: "value",
998
- type: {
999
- name: "Sequence",
1000
- element: {
1001
- type: {
1002
- name: "Composite",
1003
- className: "OuContainer"
1004
- }
1005
- }
1006
- }
1007
- },
1008
- nextLink: {
1009
- serializedName: "nextLink",
1010
- readOnly: true,
1011
- type: {
1012
- name: "String"
1013
- }
1014
- }
1015
- }
1016
- }
1017
- };
1018
- const ContainerAccount = {
1019
- type: {
1020
- name: "Composite",
1021
- className: "ContainerAccount",
1022
- modelProperties: {
1023
- accountName: {
1024
- serializedName: "accountName",
1025
- type: {
1026
- name: "String"
1027
- }
1028
- },
1029
- spn: {
1030
- serializedName: "spn",
1031
- type: {
1032
- name: "String"
1033
- }
1034
- },
1035
- password: {
1036
- serializedName: "password",
1037
- type: {
1038
- name: "String"
1039
- }
1040
- }
1041
- }
1042
- }
1043
- };
1044
- const DomainService = {
1045
- type: {
1046
- name: "Composite",
1047
- className: "DomainService",
1048
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { version: {
1049
- serializedName: "properties.version",
1050
- readOnly: true,
1051
- type: {
1052
- name: "Number"
1053
- }
1054
- }, tenantId: {
1055
- serializedName: "properties.tenantId",
1056
- readOnly: true,
1057
- type: {
1058
- name: "String"
1059
- }
1060
- }, domainName: {
1061
- serializedName: "properties.domainName",
1062
- type: {
1063
- name: "String"
1064
- }
1065
- }, deploymentId: {
1066
- serializedName: "properties.deploymentId",
1067
- readOnly: true,
1068
- type: {
1069
- name: "String"
1070
- }
1071
- }, syncOwner: {
1072
- serializedName: "properties.syncOwner",
1073
- readOnly: true,
1074
- type: {
1075
- name: "String"
1076
- }
1077
- }, replicaSets: {
1078
- serializedName: "properties.replicaSets",
1079
- type: {
1080
- name: "Sequence",
1081
- element: {
1082
- type: {
1083
- name: "Composite",
1084
- className: "ReplicaSet"
1085
- }
1086
- }
1087
- }
1088
- }, ldapsSettings: {
1089
- serializedName: "properties.ldapsSettings",
1090
- type: {
1091
- name: "Composite",
1092
- className: "LdapsSettings"
1093
- }
1094
- }, resourceForestSettings: {
1095
- serializedName: "properties.resourceForestSettings",
1096
- type: {
1097
- name: "Composite",
1098
- className: "ResourceForestSettings"
1099
- }
1100
- }, domainSecuritySettings: {
1101
- serializedName: "properties.domainSecuritySettings",
1102
- type: {
1103
- name: "Composite",
1104
- className: "DomainSecuritySettings"
1105
- }
1106
- }, domainConfigurationType: {
1107
- serializedName: "properties.domainConfigurationType",
1108
- type: {
1109
- name: "String"
1110
- }
1111
- }, sku: {
1112
- serializedName: "properties.sku",
1113
- type: {
1114
- name: "String"
1115
- }
1116
- }, filteredSync: {
1117
- serializedName: "properties.filteredSync",
1118
- type: {
1119
- name: "String"
1120
- }
1121
- }, notificationSettings: {
1122
- serializedName: "properties.notificationSettings",
1123
- type: {
1124
- name: "Composite",
1125
- className: "NotificationSettings"
1126
- }
1127
- }, migrationProperties: {
1128
- serializedName: "properties.migrationProperties",
1129
- type: {
1130
- name: "Composite",
1131
- className: "MigrationProperties"
1132
- }
1133
- }, provisioningState: {
1134
- serializedName: "properties.provisioningState",
1135
- readOnly: true,
1136
- type: {
1137
- name: "String"
1138
- }
1139
- }, configDiagnostics: {
1140
- serializedName: "properties.configDiagnostics",
1141
- type: {
1142
- name: "Composite",
1143
- className: "ConfigDiagnostics"
1144
- }
1145
- } })
1146
- }
1147
- };
1148
- const OuContainer = {
1149
- type: {
1150
- name: "Composite",
1151
- className: "OuContainer",
1152
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tenantId: {
1153
- serializedName: "properties.tenantId",
1154
- readOnly: true,
1155
- type: {
1156
- name: "String"
1157
- }
1158
- }, domainName: {
1159
- serializedName: "properties.domainName",
1160
- readOnly: true,
1161
- type: {
1162
- name: "String"
1163
- }
1164
- }, deploymentId: {
1165
- serializedName: "properties.deploymentId",
1166
- readOnly: true,
1167
- type: {
1168
- name: "String"
1169
- }
1170
- }, containerId: {
1171
- serializedName: "properties.containerId",
1172
- readOnly: true,
1173
- type: {
1174
- name: "String"
1175
- }
1176
- }, accounts: {
1177
- serializedName: "properties.accounts",
1178
- type: {
1179
- name: "Sequence",
1180
- element: {
1181
- type: {
1182
- name: "Composite",
1183
- className: "ContainerAccount"
1184
- }
1185
- }
1186
- }
1187
- }, serviceStatus: {
1188
- serializedName: "properties.serviceStatus",
1189
- readOnly: true,
1190
- type: {
1191
- name: "String"
1192
- }
1193
- }, distinguishedName: {
1194
- serializedName: "properties.distinguishedName",
1195
- readOnly: true,
1196
- type: {
1197
- name: "String"
1198
- }
1199
- }, provisioningState: {
1200
- serializedName: "properties.provisioningState",
1201
- readOnly: true,
1202
- type: {
1203
- name: "String"
1204
- }
1205
- } })
1206
- }
1207
- };
1208
-
1209
- var Mappers = /*#__PURE__*/Object.freeze({
1210
- __proto__: null,
1211
- CloudError: CloudError,
1212
- CloudErrorBody: CloudErrorBody,
1213
- ConfigDiagnostics: ConfigDiagnostics,
1214
- ConfigDiagnosticsValidatorResult: ConfigDiagnosticsValidatorResult,
1215
- ConfigDiagnosticsValidatorResultIssue: ConfigDiagnosticsValidatorResultIssue,
1216
- ContainerAccount: ContainerAccount,
1217
- DomainSecuritySettings: DomainSecuritySettings,
1218
- DomainService: DomainService,
1219
- DomainServiceListResult: DomainServiceListResult,
1220
- ForestTrust: ForestTrust,
1221
- HealthAlert: HealthAlert,
1222
- HealthMonitor: HealthMonitor,
1223
- LdapsSettings: LdapsSettings,
1224
- MigrationProgress: MigrationProgress,
1225
- MigrationProperties: MigrationProperties,
1226
- NotificationSettings: NotificationSettings,
1227
- OperationDisplayInfo: OperationDisplayInfo,
1228
- OperationEntity: OperationEntity,
1229
- OperationEntityListResult: OperationEntityListResult,
1230
- OuContainer: OuContainer,
1231
- OuContainerListResult: OuContainerListResult,
1232
- ReplicaSet: ReplicaSet,
1233
- Resource: Resource,
1234
- ResourceForestSettings: ResourceForestSettings,
1235
- SystemData: SystemData
1236
- });
1237
-
1238
- /*
1239
- * Copyright (c) Microsoft Corporation.
1240
- * Licensed under the MIT License.
1241
- *
1242
- * Code generated by Microsoft (R) AutoRest Code Generator.
1243
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1244
- */
1245
- const accept = {
1246
- parameterPath: "accept",
1247
- mapper: {
1248
- defaultValue: "application/json",
1249
- isConstant: true,
1250
- serializedName: "Accept",
1251
- type: {
1252
- name: "String"
1253
- }
1254
- }
1255
- };
1256
- const $host = {
1257
- parameterPath: "$host",
1258
- mapper: {
1259
- serializedName: "$host",
1260
- required: true,
1261
- type: {
1262
- name: "String"
1263
- }
1264
- },
1265
- skipEncoding: true
1266
- };
1267
- const apiVersion = {
1268
- parameterPath: "apiVersion",
1269
- mapper: {
1270
- defaultValue: "2021-05-01",
1271
- isConstant: true,
1272
- serializedName: "api-version",
1273
- type: {
1274
- name: "String"
1275
- }
1276
- }
1277
- };
1278
- const nextLink = {
1279
- parameterPath: "nextLink",
1280
- mapper: {
1281
- serializedName: "nextLink",
1282
- required: true,
1283
- type: {
1284
- name: "String"
1285
- }
1286
- },
1287
- skipEncoding: true
1288
- };
1289
- const subscriptionId = {
1290
- parameterPath: "subscriptionId",
1291
- mapper: {
1292
- serializedName: "subscriptionId",
1293
- required: true,
1294
- type: {
1295
- name: "String"
1296
- }
1297
- }
1298
- };
1299
- const resourceGroupName = {
1300
- parameterPath: "resourceGroupName",
1301
- mapper: {
1302
- constraints: {
1303
- Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
1304
- MaxLength: 90,
1305
- MinLength: 1
1306
- },
1307
- serializedName: "resourceGroupName",
1308
- required: true,
1309
- type: {
1310
- name: "String"
1311
- }
1312
- }
1313
- };
1314
- const contentType = {
1315
- parameterPath: ["options", "contentType"],
1316
- mapper: {
1317
- defaultValue: "application/json",
1318
- isConstant: true,
1319
- serializedName: "Content-Type",
1320
- type: {
1321
- name: "String"
1322
- }
1323
- }
1324
- };
1325
- const domainService = {
1326
- parameterPath: "domainService",
1327
- mapper: DomainService
1328
- };
1329
- const domainServiceName = {
1330
- parameterPath: "domainServiceName",
1331
- mapper: {
1332
- serializedName: "domainServiceName",
1333
- required: true,
1334
- type: {
1335
- name: "String"
1336
- }
1337
- }
1338
- };
1339
- const ouContainerName = {
1340
- parameterPath: "ouContainerName",
1341
- mapper: {
1342
- serializedName: "ouContainerName",
1343
- required: true,
1344
- type: {
1345
- name: "String"
1346
- }
1347
- }
1348
- };
1349
- const containerAccount = {
1350
- parameterPath: "containerAccount",
1351
- mapper: ContainerAccount
1352
- };
1353
-
1354
- /*
1355
- * Copyright (c) Microsoft Corporation.
1356
- * Licensed under the MIT License.
1357
- *
1358
- * Code generated by Microsoft (R) AutoRest Code Generator.
1359
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1360
- */
1361
- /// <reference lib="esnext.asynciterable" />
1362
- /** Class containing DomainServiceOperations operations. */
1363
- class DomainServiceOperationsImpl {
1364
- /**
1365
- * Initialize a new instance of the class DomainServiceOperations class.
1366
- * @param client Reference to the service client
1367
- */
1368
- constructor(client) {
1369
- this.client = client;
1370
- }
1371
- /**
1372
- * Lists all the available Domain Services operations.
1373
- * @param options The options parameters.
1374
- */
1375
- list(options) {
1376
- const iter = this.listPagingAll(options);
1377
- return {
1378
- next() {
1379
- return iter.next();
1380
- },
1381
- [Symbol.asyncIterator]() {
1382
- return this;
1383
- },
1384
- byPage: (settings) => {
1385
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1386
- throw new Error("maxPageSize is not supported by this operation.");
1387
- }
1388
- return this.listPagingPage(options, settings);
1389
- }
1390
- };
1391
- }
1392
- listPagingPage(options, settings) {
1393
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1394
- let result;
1395
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1396
- if (!continuationToken) {
1397
- result = yield tslib.__await(this._list(options));
1398
- let page = result.value || [];
1399
- continuationToken = result.nextLink;
1400
- setContinuationToken(page, continuationToken);
1401
- yield yield tslib.__await(page);
1402
- }
1403
- while (continuationToken) {
1404
- result = yield tslib.__await(this._listNext(continuationToken, options));
1405
- continuationToken = result.nextLink;
1406
- let page = result.value || [];
1407
- setContinuationToken(page, continuationToken);
1408
- yield yield tslib.__await(page);
1409
- }
1410
- });
1411
- }
1412
- listPagingAll(options) {
1413
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1414
- var _a, e_1, _b, _c;
1415
- try {
1416
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1417
- _c = _f.value;
1418
- _d = false;
1419
- const page = _c;
1420
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1421
- }
1422
- }
1423
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1424
- finally {
1425
- try {
1426
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1427
- }
1428
- finally { if (e_1) throw e_1.error; }
1429
- }
1430
- });
1431
- }
1432
- /**
1433
- * Lists all the available Domain Services operations.
1434
- * @param options The options parameters.
1435
- */
1436
- _list(options) {
1437
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
1438
- }
1439
- /**
1440
- * ListNext
1441
- * @param nextLink The nextLink from the previous successful call to the List method.
1442
- * @param options The options parameters.
1443
- */
1444
- _listNext(nextLink, options) {
1445
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
1446
- }
1447
- }
1448
- // Operation Specifications
1449
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1450
- const listOperationSpec$3 = {
1451
- path: "/providers/Microsoft.AAD/operations",
1452
- httpMethod: "GET",
1453
- responses: {
1454
- 200: {
1455
- bodyMapper: OperationEntityListResult
1456
- },
1457
- default: {
1458
- bodyMapper: CloudError
1459
- }
1460
- },
1461
- queryParameters: [apiVersion],
1462
- urlParameters: [$host],
1463
- headerParameters: [accept],
1464
- serializer: serializer$3
1465
- };
1466
- const listNextOperationSpec$3 = {
1467
- path: "{nextLink}",
1468
- httpMethod: "GET",
1469
- responses: {
1470
- 200: {
1471
- bodyMapper: OperationEntityListResult
1472
- },
1473
- default: {
1474
- bodyMapper: CloudError
1475
- }
1476
- },
1477
- queryParameters: [apiVersion],
1478
- urlParameters: [$host, nextLink],
1479
- headerParameters: [accept],
1480
- serializer: serializer$3
1481
- };
1482
-
1483
- /*
1484
- * Copyright (c) Microsoft Corporation.
1485
- * Licensed under the MIT License.
1486
- *
1487
- * Code generated by Microsoft (R) AutoRest Code Generator.
1488
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1489
- */
1490
- class LroImpl {
1491
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1492
- this.sendOperationFn = sendOperationFn;
1493
- this.args = args;
1494
- this.spec = spec;
1495
- this.requestPath = requestPath;
1496
- this.requestMethod = requestMethod;
1497
- }
1498
- sendInitialRequest() {
1499
- return tslib.__awaiter(this, undefined, undefined, function* () {
1500
- return this.sendOperationFn(this.args, this.spec);
1501
- });
1502
- }
1503
- sendPollRequest(path) {
1504
- return tslib.__awaiter(this, undefined, undefined, function* () {
1505
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1506
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1507
- });
1508
- }
1509
- }
1510
-
1511
- /*
1512
- * Copyright (c) Microsoft Corporation.
1513
- * Licensed under the MIT License.
1514
- *
1515
- * Code generated by Microsoft (R) AutoRest Code Generator.
1516
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1517
- */
1518
- /// <reference lib="esnext.asynciterable" />
1519
- /** Class containing DomainServices operations. */
1520
- class DomainServicesImpl {
1521
- /**
1522
- * Initialize a new instance of the class DomainServices class.
1523
- * @param client Reference to the service client
1524
- */
1525
- constructor(client) {
1526
- this.client = client;
1527
- }
1528
- /**
1529
- * The List Domain Services in Subscription operation lists all the domain services available under the
1530
- * given subscription (and across all resource groups within that subscription).
1531
- * @param options The options parameters.
1532
- */
1533
- list(options) {
1534
- const iter = this.listPagingAll(options);
1535
- return {
1536
- next() {
1537
- return iter.next();
1538
- },
1539
- [Symbol.asyncIterator]() {
1540
- return this;
1541
- },
1542
- byPage: (settings) => {
1543
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1544
- throw new Error("maxPageSize is not supported by this operation.");
1545
- }
1546
- return this.listPagingPage(options, settings);
1547
- }
1548
- };
1549
- }
1550
- listPagingPage(options, settings) {
1551
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1552
- let result;
1553
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1554
- if (!continuationToken) {
1555
- result = yield tslib.__await(this._list(options));
1556
- let page = result.value || [];
1557
- continuationToken = result.nextLink;
1558
- setContinuationToken(page, continuationToken);
1559
- yield yield tslib.__await(page);
1560
- }
1561
- while (continuationToken) {
1562
- result = yield tslib.__await(this._listNext(continuationToken, options));
1563
- continuationToken = result.nextLink;
1564
- let page = result.value || [];
1565
- setContinuationToken(page, continuationToken);
1566
- yield yield tslib.__await(page);
1567
- }
1568
- });
1569
- }
1570
- listPagingAll(options) {
1571
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1572
- var _a, e_1, _b, _c;
1573
- try {
1574
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1575
- _c = _f.value;
1576
- _d = false;
1577
- const page = _c;
1578
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1579
- }
1580
- }
1581
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1582
- finally {
1583
- try {
1584
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1585
- }
1586
- finally { if (e_1) throw e_1.error; }
1587
- }
1588
- });
1589
- }
1590
- /**
1591
- * The List Domain Services in Resource Group operation lists all the domain services available under
1592
- * the given resource group.
1593
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1594
- * case insensitive.
1595
- * @param options The options parameters.
1596
- */
1597
- listByResourceGroup(resourceGroupName, options) {
1598
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1599
- return {
1600
- next() {
1601
- return iter.next();
1602
- },
1603
- [Symbol.asyncIterator]() {
1604
- return this;
1605
- },
1606
- byPage: (settings) => {
1607
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1608
- throw new Error("maxPageSize is not supported by this operation.");
1609
- }
1610
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1611
- }
1612
- };
1613
- }
1614
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1615
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1616
- let result;
1617
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1618
- if (!continuationToken) {
1619
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1620
- let page = result.value || [];
1621
- continuationToken = result.nextLink;
1622
- setContinuationToken(page, continuationToken);
1623
- yield yield tslib.__await(page);
1624
- }
1625
- while (continuationToken) {
1626
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1627
- continuationToken = result.nextLink;
1628
- let page = result.value || [];
1629
- setContinuationToken(page, continuationToken);
1630
- yield yield tslib.__await(page);
1631
- }
1632
- });
1633
- }
1634
- listByResourceGroupPagingAll(resourceGroupName, options) {
1635
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1636
- var _a, e_2, _b, _c;
1637
- try {
1638
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1639
- _c = _f.value;
1640
- _d = false;
1641
- const page = _c;
1642
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1643
- }
1644
- }
1645
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1646
- finally {
1647
- try {
1648
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1649
- }
1650
- finally { if (e_2) throw e_2.error; }
1651
- }
1652
- });
1653
- }
1654
- /**
1655
- * The List Domain Services in Subscription operation lists all the domain services available under the
1656
- * given subscription (and across all resource groups within that subscription).
1657
- * @param options The options parameters.
1658
- */
1659
- _list(options) {
1660
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
1661
- }
1662
- /**
1663
- * The List Domain Services in Resource Group operation lists all the domain services available under
1664
- * the given resource group.
1665
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1666
- * case insensitive.
1667
- * @param options The options parameters.
1668
- */
1669
- _listByResourceGroup(resourceGroupName, options) {
1670
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1671
- }
1672
- /**
1673
- * The Create Domain Service operation creates a new domain service with the specified parameters. If
1674
- * the specific service already exists, then any patchable properties will be updated and any immutable
1675
- * properties will remain unchanged.
1676
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1677
- * case insensitive.
1678
- * @param domainServiceName The name of the domain service.
1679
- * @param domainService Properties supplied to the Create or Update a Domain Service operation.
1680
- * @param options The options parameters.
1681
- */
1682
- beginCreateOrUpdate(resourceGroupName, domainServiceName, domainService, options) {
1683
- return tslib.__awaiter(this, undefined, undefined, function* () {
1684
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1685
- return this.client.sendOperationRequest(args, spec);
1686
- });
1687
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1688
- var _a;
1689
- let currentRawResponse = undefined;
1690
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1691
- const callback = (rawResponse, flatResponse) => {
1692
- currentRawResponse = rawResponse;
1693
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1694
- };
1695
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1696
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1697
- return {
1698
- flatResponse,
1699
- rawResponse: {
1700
- statusCode: currentRawResponse.status,
1701
- body: currentRawResponse.parsedBody,
1702
- headers: currentRawResponse.headers.toJSON()
1703
- }
1704
- };
1705
- });
1706
- const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, domainService, options }, createOrUpdateOperationSpec);
1707
- const poller = new coreLro.LroEngine(lro, {
1708
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1709
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1710
- });
1711
- yield poller.poll();
1712
- return poller;
1713
- });
1714
- }
1715
- /**
1716
- * The Create Domain Service operation creates a new domain service with the specified parameters. If
1717
- * the specific service already exists, then any patchable properties will be updated and any immutable
1718
- * properties will remain unchanged.
1719
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1720
- * case insensitive.
1721
- * @param domainServiceName The name of the domain service.
1722
- * @param domainService Properties supplied to the Create or Update a Domain Service operation.
1723
- * @param options The options parameters.
1724
- */
1725
- beginCreateOrUpdateAndWait(resourceGroupName, domainServiceName, domainService, options) {
1726
- return tslib.__awaiter(this, undefined, undefined, function* () {
1727
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, domainServiceName, domainService, options);
1728
- return poller.pollUntilDone();
1729
- });
1730
- }
1731
- /**
1732
- * The Get Domain Service operation retrieves a json representation of the Domain Service.
1733
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1734
- * case insensitive.
1735
- * @param domainServiceName The name of the domain service.
1736
- * @param options The options parameters.
1737
- */
1738
- get(resourceGroupName, domainServiceName, options) {
1739
- return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, options }, getOperationSpec$1);
1740
- }
1741
- /**
1742
- * The Delete Domain Service operation deletes an existing Domain Service.
1743
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1744
- * case insensitive.
1745
- * @param domainServiceName The name of the domain service.
1746
- * @param options The options parameters.
1747
- */
1748
- beginDelete(resourceGroupName, domainServiceName, options) {
1749
- return tslib.__awaiter(this, undefined, undefined, function* () {
1750
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1751
- return this.client.sendOperationRequest(args, spec);
1752
- });
1753
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1754
- var _a;
1755
- let currentRawResponse = undefined;
1756
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1757
- const callback = (rawResponse, flatResponse) => {
1758
- currentRawResponse = rawResponse;
1759
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1760
- };
1761
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1762
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1763
- return {
1764
- flatResponse,
1765
- rawResponse: {
1766
- statusCode: currentRawResponse.status,
1767
- body: currentRawResponse.parsedBody,
1768
- headers: currentRawResponse.headers.toJSON()
1769
- }
1770
- };
1771
- });
1772
- const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, options }, deleteOperationSpec$1);
1773
- const poller = new coreLro.LroEngine(lro, {
1774
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1775
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1776
- });
1777
- yield poller.poll();
1778
- return poller;
1779
- });
1780
- }
1781
- /**
1782
- * The Delete Domain Service operation deletes an existing Domain Service.
1783
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1784
- * case insensitive.
1785
- * @param domainServiceName The name of the domain service.
1786
- * @param options The options parameters.
1787
- */
1788
- beginDeleteAndWait(resourceGroupName, domainServiceName, options) {
1789
- return tslib.__awaiter(this, undefined, undefined, function* () {
1790
- const poller = yield this.beginDelete(resourceGroupName, domainServiceName, options);
1791
- return poller.pollUntilDone();
1792
- });
1793
- }
1794
- /**
1795
- * The Update Domain Service operation can be used to update the existing deployment. The update call
1796
- * only supports the properties listed in the PATCH body.
1797
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1798
- * case insensitive.
1799
- * @param domainServiceName The name of the domain service.
1800
- * @param domainService Properties supplied to the Update a Domain Service operation.
1801
- * @param options The options parameters.
1802
- */
1803
- beginUpdate(resourceGroupName, domainServiceName, domainService, options) {
1804
- return tslib.__awaiter(this, undefined, undefined, function* () {
1805
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1806
- return this.client.sendOperationRequest(args, spec);
1807
- });
1808
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1809
- var _a;
1810
- let currentRawResponse = undefined;
1811
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1812
- const callback = (rawResponse, flatResponse) => {
1813
- currentRawResponse = rawResponse;
1814
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1815
- };
1816
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1817
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1818
- return {
1819
- flatResponse,
1820
- rawResponse: {
1821
- statusCode: currentRawResponse.status,
1822
- body: currentRawResponse.parsedBody,
1823
- headers: currentRawResponse.headers.toJSON()
1824
- }
1825
- };
1826
- });
1827
- const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, domainService, options }, updateOperationSpec$1);
1828
- const poller = new coreLro.LroEngine(lro, {
1829
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1830
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
1831
- });
1832
- yield poller.poll();
1833
- return poller;
1834
- });
1835
- }
1836
- /**
1837
- * The Update Domain Service operation can be used to update the existing deployment. The update call
1838
- * only supports the properties listed in the PATCH body.
1839
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1840
- * case insensitive.
1841
- * @param domainServiceName The name of the domain service.
1842
- * @param domainService Properties supplied to the Update a Domain Service operation.
1843
- * @param options The options parameters.
1844
- */
1845
- beginUpdateAndWait(resourceGroupName, domainServiceName, domainService, options) {
1846
- return tslib.__awaiter(this, undefined, undefined, function* () {
1847
- const poller = yield this.beginUpdate(resourceGroupName, domainServiceName, domainService, options);
1848
- return poller.pollUntilDone();
1849
- });
1850
- }
1851
- /**
1852
- * ListNext
1853
- * @param nextLink The nextLink from the previous successful call to the List method.
1854
- * @param options The options parameters.
1855
- */
1856
- _listNext(nextLink, options) {
1857
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
1858
- }
1859
- /**
1860
- * ListByResourceGroupNext
1861
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
1862
- * case insensitive.
1863
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1864
- * @param options The options parameters.
1865
- */
1866
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1867
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1868
- }
1869
- }
1870
- // Operation Specifications
1871
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1872
- const listOperationSpec$2 = {
1873
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.AAD/domainServices",
1874
- httpMethod: "GET",
1875
- responses: {
1876
- 200: {
1877
- bodyMapper: DomainServiceListResult
1878
- },
1879
- default: {
1880
- bodyMapper: CloudError
1881
- }
1882
- },
1883
- queryParameters: [apiVersion],
1884
- urlParameters: [$host, subscriptionId],
1885
- headerParameters: [accept],
1886
- serializer: serializer$2
1887
- };
1888
- const listByResourceGroupOperationSpec = {
1889
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices",
1890
- httpMethod: "GET",
1891
- responses: {
1892
- 200: {
1893
- bodyMapper: DomainServiceListResult
1894
- },
1895
- default: {
1896
- bodyMapper: CloudError
1897
- }
1898
- },
1899
- queryParameters: [apiVersion],
1900
- urlParameters: [
1901
- $host,
1902
- subscriptionId,
1903
- resourceGroupName
1904
- ],
1905
- headerParameters: [accept],
1906
- serializer: serializer$2
1907
- };
1908
- const createOrUpdateOperationSpec = {
1909
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1910
- httpMethod: "PUT",
1911
- responses: {
1912
- 200: {
1913
- bodyMapper: DomainService
1914
- },
1915
- 201: {
1916
- bodyMapper: DomainService
1917
- },
1918
- 202: {
1919
- bodyMapper: DomainService
1920
- },
1921
- 204: {
1922
- bodyMapper: DomainService
1923
- },
1924
- default: {
1925
- bodyMapper: CloudError
1926
- }
1927
- },
1928
- requestBody: domainService,
1929
- queryParameters: [apiVersion],
1930
- urlParameters: [
1931
- $host,
1932
- subscriptionId,
1933
- resourceGroupName,
1934
- domainServiceName
1935
- ],
1936
- headerParameters: [accept, contentType],
1937
- mediaType: "json",
1938
- serializer: serializer$2
1939
- };
1940
- const getOperationSpec$1 = {
1941
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1942
- httpMethod: "GET",
1943
- responses: {
1944
- 200: {
1945
- bodyMapper: DomainService
1946
- },
1947
- default: {
1948
- bodyMapper: CloudError
1949
- }
1950
- },
1951
- queryParameters: [apiVersion],
1952
- urlParameters: [
1953
- $host,
1954
- subscriptionId,
1955
- resourceGroupName,
1956
- domainServiceName
1957
- ],
1958
- headerParameters: [accept],
1959
- serializer: serializer$2
1960
- };
1961
- const deleteOperationSpec$1 = {
1962
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1963
- httpMethod: "DELETE",
1964
- responses: {
1965
- 200: {},
1966
- 201: {},
1967
- 202: {},
1968
- 204: {},
1969
- default: {
1970
- bodyMapper: CloudError
1971
- }
1972
- },
1973
- queryParameters: [apiVersion],
1974
- urlParameters: [
1975
- $host,
1976
- subscriptionId,
1977
- resourceGroupName,
1978
- domainServiceName
1979
- ],
1980
- headerParameters: [accept],
1981
- serializer: serializer$2
1982
- };
1983
- const updateOperationSpec$1 = {
1984
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}",
1985
- httpMethod: "PATCH",
1986
- responses: {
1987
- 200: {
1988
- bodyMapper: DomainService
1989
- },
1990
- 201: {
1991
- bodyMapper: DomainService
1992
- },
1993
- 202: {
1994
- bodyMapper: DomainService
1995
- },
1996
- 204: {
1997
- bodyMapper: DomainService
1998
- },
1999
- default: {
2000
- bodyMapper: CloudError
2001
- }
2002
- },
2003
- requestBody: domainService,
2004
- queryParameters: [apiVersion],
2005
- urlParameters: [
2006
- $host,
2007
- subscriptionId,
2008
- resourceGroupName,
2009
- domainServiceName
2010
- ],
2011
- headerParameters: [accept, contentType],
2012
- mediaType: "json",
2013
- serializer: serializer$2
2014
- };
2015
- const listNextOperationSpec$2 = {
2016
- path: "{nextLink}",
2017
- httpMethod: "GET",
2018
- responses: {
2019
- 200: {
2020
- bodyMapper: DomainServiceListResult
2021
- },
2022
- default: {
2023
- bodyMapper: CloudError
2024
- }
2025
- },
2026
- queryParameters: [apiVersion],
2027
- urlParameters: [
2028
- $host,
2029
- nextLink,
2030
- subscriptionId
2031
- ],
2032
- headerParameters: [accept],
2033
- serializer: serializer$2
2034
- };
2035
- const listByResourceGroupNextOperationSpec = {
2036
- path: "{nextLink}",
2037
- httpMethod: "GET",
2038
- responses: {
2039
- 200: {
2040
- bodyMapper: DomainServiceListResult
2041
- },
2042
- default: {
2043
- bodyMapper: CloudError
2044
- }
2045
- },
2046
- queryParameters: [apiVersion],
2047
- urlParameters: [
2048
- $host,
2049
- nextLink,
2050
- subscriptionId,
2051
- resourceGroupName
2052
- ],
2053
- headerParameters: [accept],
2054
- serializer: serializer$2
2055
- };
2056
-
2057
- /*
2058
- * Copyright (c) Microsoft Corporation.
2059
- * Licensed under the MIT License.
2060
- *
2061
- * Code generated by Microsoft (R) AutoRest Code Generator.
2062
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2063
- */
2064
- /// <reference lib="esnext.asynciterable" />
2065
- /** Class containing OuContainerOperations operations. */
2066
- class OuContainerOperationsImpl {
2067
- /**
2068
- * Initialize a new instance of the class OuContainerOperations class.
2069
- * @param client Reference to the service client
2070
- */
2071
- constructor(client) {
2072
- this.client = client;
2073
- }
2074
- /**
2075
- * Lists all the available OuContainer operations.
2076
- * @param options The options parameters.
2077
- */
2078
- list(options) {
2079
- const iter = this.listPagingAll(options);
2080
- return {
2081
- next() {
2082
- return iter.next();
2083
- },
2084
- [Symbol.asyncIterator]() {
2085
- return this;
2086
- },
2087
- byPage: (settings) => {
2088
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2089
- throw new Error("maxPageSize is not supported by this operation.");
2090
- }
2091
- return this.listPagingPage(options, settings);
2092
- }
2093
- };
2094
- }
2095
- listPagingPage(options, settings) {
2096
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2097
- let result;
2098
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2099
- if (!continuationToken) {
2100
- result = yield tslib.__await(this._list(options));
2101
- let page = result.value || [];
2102
- continuationToken = result.nextLink;
2103
- setContinuationToken(page, continuationToken);
2104
- yield yield tslib.__await(page);
2105
- }
2106
- while (continuationToken) {
2107
- result = yield tslib.__await(this._listNext(continuationToken, options));
2108
- continuationToken = result.nextLink;
2109
- let page = result.value || [];
2110
- setContinuationToken(page, continuationToken);
2111
- yield yield tslib.__await(page);
2112
- }
2113
- });
2114
- }
2115
- listPagingAll(options) {
2116
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2117
- var _a, e_1, _b, _c;
2118
- try {
2119
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2120
- _c = _f.value;
2121
- _d = false;
2122
- const page = _c;
2123
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2124
- }
2125
- }
2126
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2127
- finally {
2128
- try {
2129
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2130
- }
2131
- finally { if (e_1) throw e_1.error; }
2132
- }
2133
- });
2134
- }
2135
- /**
2136
- * Lists all the available OuContainer operations.
2137
- * @param options The options parameters.
2138
- */
2139
- _list(options) {
2140
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
2141
- }
2142
- /**
2143
- * ListNext
2144
- * @param nextLink The nextLink from the previous successful call to the List method.
2145
- * @param options The options parameters.
2146
- */
2147
- _listNext(nextLink, options) {
2148
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
2149
- }
2150
- }
2151
- // Operation Specifications
2152
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2153
- const listOperationSpec$1 = {
2154
- path: "/providers/Microsoft.Aad/operations",
2155
- httpMethod: "GET",
2156
- responses: {
2157
- 200: {
2158
- bodyMapper: OperationEntityListResult
2159
- },
2160
- default: {
2161
- bodyMapper: CloudError
2162
- }
2163
- },
2164
- queryParameters: [apiVersion],
2165
- urlParameters: [$host],
2166
- headerParameters: [accept],
2167
- serializer: serializer$1
2168
- };
2169
- const listNextOperationSpec$1 = {
2170
- path: "{nextLink}",
2171
- httpMethod: "GET",
2172
- responses: {
2173
- 200: {
2174
- bodyMapper: OperationEntityListResult
2175
- },
2176
- default: {
2177
- bodyMapper: CloudError
2178
- }
2179
- },
2180
- queryParameters: [apiVersion],
2181
- urlParameters: [$host, nextLink],
2182
- headerParameters: [accept],
2183
- serializer: serializer$1
2184
- };
2185
-
2186
- /*
2187
- * Copyright (c) Microsoft Corporation.
2188
- * Licensed under the MIT License.
2189
- *
2190
- * Code generated by Microsoft (R) AutoRest Code Generator.
2191
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2192
- */
2193
- /// <reference lib="esnext.asynciterable" />
2194
- /** Class containing OuContainerOperationGrp operations. */
2195
- class OuContainerOperationGrpImpl {
2196
- /**
2197
- * Initialize a new instance of the class OuContainerOperationGrp class.
2198
- * @param client Reference to the service client
2199
- */
2200
- constructor(client) {
2201
- this.client = client;
2202
- }
2203
- /**
2204
- * The List of OuContainers in DomainService instance.
2205
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2206
- * case insensitive.
2207
- * @param domainServiceName The name of the domain service.
2208
- * @param options The options parameters.
2209
- */
2210
- list(resourceGroupName, domainServiceName, options) {
2211
- const iter = this.listPagingAll(resourceGroupName, domainServiceName, options);
2212
- return {
2213
- next() {
2214
- return iter.next();
2215
- },
2216
- [Symbol.asyncIterator]() {
2217
- return this;
2218
- },
2219
- byPage: (settings) => {
2220
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2221
- throw new Error("maxPageSize is not supported by this operation.");
2222
- }
2223
- return this.listPagingPage(resourceGroupName, domainServiceName, options, settings);
2224
- }
2225
- };
2226
- }
2227
- listPagingPage(resourceGroupName, domainServiceName, options, settings) {
2228
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2229
- let result;
2230
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2231
- if (!continuationToken) {
2232
- result = yield tslib.__await(this._list(resourceGroupName, domainServiceName, options));
2233
- let page = result.value || [];
2234
- continuationToken = result.nextLink;
2235
- setContinuationToken(page, continuationToken);
2236
- yield yield tslib.__await(page);
2237
- }
2238
- while (continuationToken) {
2239
- result = yield tslib.__await(this._listNext(resourceGroupName, domainServiceName, continuationToken, options));
2240
- continuationToken = result.nextLink;
2241
- let page = result.value || [];
2242
- setContinuationToken(page, continuationToken);
2243
- yield yield tslib.__await(page);
2244
- }
2245
- });
2246
- }
2247
- listPagingAll(resourceGroupName, domainServiceName, options) {
2248
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2249
- var _a, e_1, _b, _c;
2250
- try {
2251
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, domainServiceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2252
- _c = _f.value;
2253
- _d = false;
2254
- const page = _c;
2255
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2256
- }
2257
- }
2258
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2259
- finally {
2260
- try {
2261
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2262
- }
2263
- finally { if (e_1) throw e_1.error; }
2264
- }
2265
- });
2266
- }
2267
- /**
2268
- * The List of OuContainers in DomainService instance.
2269
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2270
- * case insensitive.
2271
- * @param domainServiceName The name of the domain service.
2272
- * @param options The options parameters.
2273
- */
2274
- _list(resourceGroupName, domainServiceName, options) {
2275
- return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, options }, listOperationSpec);
2276
- }
2277
- /**
2278
- * Get OuContainer in DomainService instance.
2279
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2280
- * case insensitive.
2281
- * @param domainServiceName The name of the domain service.
2282
- * @param ouContainerName The name of the OuContainer.
2283
- * @param options The options parameters.
2284
- */
2285
- get(resourceGroupName, domainServiceName, ouContainerName, options) {
2286
- return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, ouContainerName, options }, getOperationSpec);
2287
- }
2288
- /**
2289
- * The Create OuContainer operation creates a new OuContainer under the specified Domain Service
2290
- * instance.
2291
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2292
- * case insensitive.
2293
- * @param domainServiceName The name of the domain service.
2294
- * @param ouContainerName The name of the OuContainer.
2295
- * @param containerAccount Container Account Description.
2296
- * @param options The options parameters.
2297
- */
2298
- beginCreate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2299
- return tslib.__awaiter(this, undefined, undefined, function* () {
2300
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2301
- return this.client.sendOperationRequest(args, spec);
2302
- });
2303
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2304
- var _a;
2305
- let currentRawResponse = undefined;
2306
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2307
- const callback = (rawResponse, flatResponse) => {
2308
- currentRawResponse = rawResponse;
2309
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2310
- };
2311
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2312
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2313
- return {
2314
- flatResponse,
2315
- rawResponse: {
2316
- statusCode: currentRawResponse.status,
2317
- body: currentRawResponse.parsedBody,
2318
- headers: currentRawResponse.headers.toJSON()
2319
- }
2320
- };
2321
- });
2322
- const lro = new LroImpl(sendOperation, {
2323
- resourceGroupName,
2324
- domainServiceName,
2325
- ouContainerName,
2326
- containerAccount,
2327
- options
2328
- }, createOperationSpec);
2329
- const poller = new coreLro.LroEngine(lro, {
2330
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2331
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2332
- });
2333
- yield poller.poll();
2334
- return poller;
2335
- });
2336
- }
2337
- /**
2338
- * The Create OuContainer operation creates a new OuContainer under the specified Domain Service
2339
- * instance.
2340
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2341
- * case insensitive.
2342
- * @param domainServiceName The name of the domain service.
2343
- * @param ouContainerName The name of the OuContainer.
2344
- * @param containerAccount Container Account Description.
2345
- * @param options The options parameters.
2346
- */
2347
- beginCreateAndWait(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2348
- return tslib.__awaiter(this, undefined, undefined, function* () {
2349
- const poller = yield this.beginCreate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options);
2350
- return poller.pollUntilDone();
2351
- });
2352
- }
2353
- /**
2354
- * The Delete OuContainer operation deletes specified OuContainer.
2355
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2356
- * case insensitive.
2357
- * @param domainServiceName The name of the domain service.
2358
- * @param ouContainerName The name of the OuContainer.
2359
- * @param options The options parameters.
2360
- */
2361
- beginDelete(resourceGroupName, domainServiceName, ouContainerName, options) {
2362
- return tslib.__awaiter(this, undefined, undefined, function* () {
2363
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2364
- return this.client.sendOperationRequest(args, spec);
2365
- });
2366
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2367
- var _a;
2368
- let currentRawResponse = undefined;
2369
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2370
- const callback = (rawResponse, flatResponse) => {
2371
- currentRawResponse = rawResponse;
2372
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2373
- };
2374
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2375
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2376
- return {
2377
- flatResponse,
2378
- rawResponse: {
2379
- statusCode: currentRawResponse.status,
2380
- body: currentRawResponse.parsedBody,
2381
- headers: currentRawResponse.headers.toJSON()
2382
- }
2383
- };
2384
- });
2385
- const lro = new LroImpl(sendOperation, { resourceGroupName, domainServiceName, ouContainerName, options }, deleteOperationSpec);
2386
- const poller = new coreLro.LroEngine(lro, {
2387
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2388
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2389
- });
2390
- yield poller.poll();
2391
- return poller;
2392
- });
2393
- }
2394
- /**
2395
- * The Delete OuContainer operation deletes specified OuContainer.
2396
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2397
- * case insensitive.
2398
- * @param domainServiceName The name of the domain service.
2399
- * @param ouContainerName The name of the OuContainer.
2400
- * @param options The options parameters.
2401
- */
2402
- beginDeleteAndWait(resourceGroupName, domainServiceName, ouContainerName, options) {
2403
- return tslib.__awaiter(this, undefined, undefined, function* () {
2404
- const poller = yield this.beginDelete(resourceGroupName, domainServiceName, ouContainerName, options);
2405
- return poller.pollUntilDone();
2406
- });
2407
- }
2408
- /**
2409
- * The Update OuContainer operation can be used to update the existing OuContainers.
2410
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2411
- * case insensitive.
2412
- * @param domainServiceName The name of the domain service.
2413
- * @param ouContainerName The name of the OuContainer.
2414
- * @param containerAccount Container Account Description.
2415
- * @param options The options parameters.
2416
- */
2417
- beginUpdate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2418
- return tslib.__awaiter(this, undefined, undefined, function* () {
2419
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2420
- return this.client.sendOperationRequest(args, spec);
2421
- });
2422
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2423
- var _a;
2424
- let currentRawResponse = undefined;
2425
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2426
- const callback = (rawResponse, flatResponse) => {
2427
- currentRawResponse = rawResponse;
2428
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2429
- };
2430
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2431
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2432
- return {
2433
- flatResponse,
2434
- rawResponse: {
2435
- statusCode: currentRawResponse.status,
2436
- body: currentRawResponse.parsedBody,
2437
- headers: currentRawResponse.headers.toJSON()
2438
- }
2439
- };
2440
- });
2441
- const lro = new LroImpl(sendOperation, {
2442
- resourceGroupName,
2443
- domainServiceName,
2444
- ouContainerName,
2445
- containerAccount,
2446
- options
2447
- }, updateOperationSpec);
2448
- const poller = new coreLro.LroEngine(lro, {
2449
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2450
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2451
- });
2452
- yield poller.poll();
2453
- return poller;
2454
- });
2455
- }
2456
- /**
2457
- * The Update OuContainer operation can be used to update the existing OuContainers.
2458
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2459
- * case insensitive.
2460
- * @param domainServiceName The name of the domain service.
2461
- * @param ouContainerName The name of the OuContainer.
2462
- * @param containerAccount Container Account Description.
2463
- * @param options The options parameters.
2464
- */
2465
- beginUpdateAndWait(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options) {
2466
- return tslib.__awaiter(this, undefined, undefined, function* () {
2467
- const poller = yield this.beginUpdate(resourceGroupName, domainServiceName, ouContainerName, containerAccount, options);
2468
- return poller.pollUntilDone();
2469
- });
2470
- }
2471
- /**
2472
- * ListNext
2473
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is
2474
- * case insensitive.
2475
- * @param domainServiceName The name of the domain service.
2476
- * @param nextLink The nextLink from the previous successful call to the List method.
2477
- * @param options The options parameters.
2478
- */
2479
- _listNext(resourceGroupName, domainServiceName, nextLink, options) {
2480
- return this.client.sendOperationRequest({ resourceGroupName, domainServiceName, nextLink, options }, listNextOperationSpec);
2481
- }
2482
- }
2483
- // Operation Specifications
2484
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2485
- const listOperationSpec = {
2486
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer",
2487
- httpMethod: "GET",
2488
- responses: {
2489
- 200: {
2490
- bodyMapper: OuContainerListResult
2491
- },
2492
- default: {
2493
- bodyMapper: CloudError
2494
- }
2495
- },
2496
- queryParameters: [apiVersion],
2497
- urlParameters: [
2498
- $host,
2499
- subscriptionId,
2500
- resourceGroupName,
2501
- domainServiceName
2502
- ],
2503
- headerParameters: [accept],
2504
- serializer
2505
- };
2506
- const getOperationSpec = {
2507
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2508
- httpMethod: "GET",
2509
- responses: {
2510
- 200: {
2511
- bodyMapper: OuContainer
2512
- },
2513
- default: {
2514
- bodyMapper: CloudError
2515
- }
2516
- },
2517
- queryParameters: [apiVersion],
2518
- urlParameters: [
2519
- $host,
2520
- subscriptionId,
2521
- resourceGroupName,
2522
- domainServiceName,
2523
- ouContainerName
2524
- ],
2525
- headerParameters: [accept],
2526
- serializer
2527
- };
2528
- const createOperationSpec = {
2529
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2530
- httpMethod: "PUT",
2531
- responses: {
2532
- 200: {
2533
- bodyMapper: OuContainer
2534
- },
2535
- 201: {
2536
- bodyMapper: OuContainer
2537
- },
2538
- 202: {
2539
- bodyMapper: OuContainer
2540
- },
2541
- 204: {
2542
- bodyMapper: OuContainer
2543
- },
2544
- default: {
2545
- bodyMapper: CloudError
2546
- }
2547
- },
2548
- requestBody: containerAccount,
2549
- queryParameters: [apiVersion],
2550
- urlParameters: [
2551
- $host,
2552
- subscriptionId,
2553
- resourceGroupName,
2554
- domainServiceName,
2555
- ouContainerName
2556
- ],
2557
- headerParameters: [accept, contentType],
2558
- mediaType: "json",
2559
- serializer
2560
- };
2561
- const deleteOperationSpec = {
2562
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2563
- httpMethod: "DELETE",
2564
- responses: {
2565
- 200: {},
2566
- 201: {},
2567
- 202: {},
2568
- 204: {},
2569
- default: {
2570
- bodyMapper: CloudError
2571
- }
2572
- },
2573
- queryParameters: [apiVersion],
2574
- urlParameters: [
2575
- $host,
2576
- subscriptionId,
2577
- resourceGroupName,
2578
- domainServiceName,
2579
- ouContainerName
2580
- ],
2581
- headerParameters: [accept],
2582
- serializer
2583
- };
2584
- const updateOperationSpec = {
2585
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}",
2586
- httpMethod: "PATCH",
2587
- responses: {
2588
- 200: {
2589
- bodyMapper: OuContainer
2590
- },
2591
- 201: {
2592
- bodyMapper: OuContainer
2593
- },
2594
- 202: {
2595
- bodyMapper: OuContainer
2596
- },
2597
- 204: {
2598
- bodyMapper: OuContainer
2599
- },
2600
- default: {
2601
- bodyMapper: CloudError
2602
- }
2603
- },
2604
- requestBody: containerAccount,
2605
- queryParameters: [apiVersion],
2606
- urlParameters: [
2607
- $host,
2608
- subscriptionId,
2609
- resourceGroupName,
2610
- domainServiceName,
2611
- ouContainerName
2612
- ],
2613
- headerParameters: [accept, contentType],
2614
- mediaType: "json",
2615
- serializer
2616
- };
2617
- const listNextOperationSpec = {
2618
- path: "{nextLink}",
2619
- httpMethod: "GET",
2620
- responses: {
2621
- 200: {
2622
- bodyMapper: OuContainerListResult
2623
- },
2624
- default: {
2625
- bodyMapper: CloudError
2626
- }
2627
- },
2628
- queryParameters: [apiVersion],
2629
- urlParameters: [
2630
- $host,
2631
- nextLink,
2632
- subscriptionId,
2633
- resourceGroupName,
2634
- domainServiceName
2635
- ],
2636
- headerParameters: [accept],
2637
- serializer
2638
- };
2639
-
2640
- /*
2641
- * Copyright (c) Microsoft Corporation.
2642
- * Licensed under the MIT License.
2643
- *
2644
- * Code generated by Microsoft (R) AutoRest Code Generator.
2645
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2646
- */
2647
- class DomainServicesResourceProvider extends coreClient__namespace.ServiceClient {
2648
- /**
2649
- * Initializes a new instance of the DomainServicesResourceProvider class.
2650
- * @param credentials Subscription credentials which uniquely identify client subscription.
2651
- * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
2652
- * subscription. The subscription ID forms part of the URI for every service call.
2653
- * @param options The parameter options
2654
- */
2655
- constructor(credentials, subscriptionId, options) {
2656
- var _a, _b, _c;
2657
- if (credentials === undefined) {
2658
- throw new Error("'credentials' cannot be null");
2659
- }
2660
- if (subscriptionId === undefined) {
2661
- throw new Error("'subscriptionId' cannot be null");
2662
- }
2663
- // Initializing default values for options
2664
- if (!options) {
2665
- options = {};
2666
- }
2667
- const defaults = {
2668
- requestContentType: "application/json; charset=utf-8",
2669
- credential: credentials
2670
- };
2671
- const packageDetails = `azsdk-js-arm-domainservices/4.1.1`;
2672
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2673
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2674
- : `${packageDetails}`;
2675
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2676
- userAgentPrefix
2677
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
2678
- super(optionsWithDefaults);
2679
- let bearerTokenAuthenticationPolicyFound = false;
2680
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2681
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2682
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2683
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2684
- }
2685
- if (!options ||
2686
- !options.pipeline ||
2687
- options.pipeline.getOrderedPolicies().length == 0 ||
2688
- !bearerTokenAuthenticationPolicyFound) {
2689
- this.pipeline.removePolicy({
2690
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2691
- });
2692
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2693
- credential: credentials,
2694
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
2695
- challengeCallbacks: {
2696
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2697
- }
2698
- }));
2699
- }
2700
- // Parameter assignments
2701
- this.subscriptionId = subscriptionId;
2702
- // Assigning values to Constant parameters
2703
- this.$host = options.$host || "https://management.azure.com";
2704
- this.apiVersion = options.apiVersion || "2021-05-01";
2705
- this.domainServiceOperations = new DomainServiceOperationsImpl(this);
2706
- this.domainServices = new DomainServicesImpl(this);
2707
- this.ouContainerOperations = new OuContainerOperationsImpl(this);
2708
- this.ouContainerOperationGrp = new OuContainerOperationGrpImpl(this);
2709
- this.addCustomApiVersionPolicy(options.apiVersion);
2710
- }
2711
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2712
- addCustomApiVersionPolicy(apiVersion) {
2713
- if (!apiVersion) {
2714
- return;
2715
- }
2716
- const apiVersionPolicy = {
2717
- name: "CustomApiVersionPolicy",
2718
- sendRequest(request, next) {
2719
- return tslib.__awaiter(this, undefined, undefined, function* () {
2720
- const param = request.url.split("?");
2721
- if (param.length > 1) {
2722
- const newParams = param[1].split("&").map((item) => {
2723
- if (item.indexOf("api-version") > -1) {
2724
- return "api-version=" + apiVersion;
2725
- }
2726
- else {
2727
- return item;
2728
- }
2729
- });
2730
- request.url = param[0] + "?" + newParams.join("&");
2731
- }
2732
- return next(request);
2733
- });
2734
- }
2735
- };
2736
- this.pipeline.addPolicy(apiVersionPolicy);
2737
- }
2738
- }
2739
-
2740
- exports.DomainServicesResourceProvider = DomainServicesResourceProvider;
2741
- exports.getContinuationToken = getContinuationToken;
2742
- //# sourceMappingURL=index.js.map