@azure/arm-purview 1.1.1-alpha.20250214.1 → 1.1.1-alpha.20250218.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/README.md +21 -12
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js +25 -0
  7. package/dist/browser/lroImpl.js.map +1 -0
  8. package/dist/browser/models/index.js.map +1 -0
  9. package/dist/browser/models/mappers.js.map +1 -0
  10. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  11. package/dist/browser/models/parameters.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/operations/accounts.d.ts +3 -3
  13. package/dist/browser/operations/accounts.d.ts.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/accounts.js +101 -113
  15. package/dist/browser/operations/accounts.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/defaultAccounts.d.ts +3 -3
  17. package/dist/browser/operations/defaultAccounts.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/defaultAccounts.js +2 -2
  19. package/dist/browser/operations/defaultAccounts.js.map +1 -0
  20. package/dist/browser/operations/index.d.ts +6 -0
  21. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  22. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +5 -5
  23. package/dist/browser/operations/index.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  25. package/dist/browser/operations/operations.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  27. package/dist/browser/operations/operations.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
  29. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +80 -88
  31. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
  33. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +3 -3
  35. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/accounts.d.ts +1 -1
  37. package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -0
  38. package/dist/browser/operationsInterfaces/accounts.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/defaultAccounts.d.ts +1 -1
  40. package/dist/browser/operationsInterfaces/defaultAccounts.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/defaultAccounts.js.map +1 -0
  42. package/dist/browser/operationsInterfaces/index.d.ts +6 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  44. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +5 -5
  45. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  48. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  50. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  51. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
  53. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  54. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  55. package/dist/browser/package.json +3 -0
  56. package/dist/browser/pagingHelper.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/purviewManagementClient.d.ts +2 -2
  58. package/dist/browser/purviewManagementClient.d.ts.map +1 -0
  59. package/{dist-esm/src → dist/browser}/purviewManagementClient.js +15 -18
  60. package/dist/browser/purviewManagementClient.js.map +1 -0
  61. package/dist/commonjs/index.d.ts +5 -0
  62. package/dist/commonjs/index.d.ts.map +1 -0
  63. package/dist/commonjs/index.js +19 -0
  64. package/dist/commonjs/index.js.map +1 -0
  65. package/dist/commonjs/lroImpl.d.ts +16 -0
  66. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  67. package/dist/commonjs/lroImpl.js +29 -0
  68. package/dist/commonjs/lroImpl.js.map +1 -0
  69. package/{types/arm-purview.d.ts → dist/commonjs/models/index.d.ts} +906 -1236
  70. package/dist/commonjs/models/index.d.ts.map +1 -0
  71. package/dist/commonjs/models/index.js +113 -0
  72. package/dist/commonjs/models/index.js.map +1 -0
  73. package/dist/commonjs/models/mappers.d.ts +41 -0
  74. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  75. package/dist/commonjs/models/mappers.js +1241 -0
  76. package/dist/commonjs/models/mappers.js.map +1 -0
  77. package/dist/commonjs/models/parameters.d.ts +22 -0
  78. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  79. package/dist/commonjs/models/parameters.js +179 -0
  80. package/dist/commonjs/models/parameters.js.map +1 -0
  81. package/dist/commonjs/operations/accounts.d.ts +128 -0
  82. package/dist/commonjs/operations/accounts.d.ts.map +1 -0
  83. package/dist/commonjs/operations/accounts.js +612 -0
  84. package/dist/commonjs/operations/accounts.js.map +1 -0
  85. package/dist/commonjs/operations/defaultAccounts.d.ts +33 -0
  86. package/dist/commonjs/operations/defaultAccounts.d.ts.map +1 -0
  87. package/dist/commonjs/operations/defaultAccounts.js +113 -0
  88. package/dist/commonjs/operations/defaultAccounts.js.map +1 -0
  89. package/dist/commonjs/operations/index.d.ts +6 -0
  90. package/dist/commonjs/operations/index.d.ts.map +1 -0
  91. package/dist/commonjs/operations/index.js +16 -0
  92. package/dist/commonjs/operations/index.js.map +1 -0
  93. package/dist/commonjs/operations/operations.d.ts +32 -0
  94. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  95. package/dist/commonjs/operations/operations.js +138 -0
  96. package/dist/commonjs/operations/operations.js.map +1 -0
  97. package/dist/commonjs/operations/privateEndpointConnections.d.ts +81 -0
  98. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  99. package/dist/commonjs/operations/privateEndpointConnections.js +361 -0
  100. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  101. package/dist/commonjs/operations/privateLinkResources.d.ts +46 -0
  102. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  103. package/dist/commonjs/operations/privateLinkResources.js +187 -0
  104. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  105. package/dist/commonjs/operationsInterfaces/accounts.d.ts +92 -0
  106. package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -0
  107. package/dist/commonjs/operationsInterfaces/accounts.js +10 -0
  108. package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/defaultAccounts.d.ts +25 -0
  110. package/dist/commonjs/operationsInterfaces/defaultAccounts.d.ts.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/defaultAccounts.js +10 -0
  112. package/dist/commonjs/operationsInterfaces/defaultAccounts.js.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
  114. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/index.js +16 -0
  116. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  117. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  118. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  119. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  120. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  121. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  122. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  123. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  124. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  125. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +21 -0
  126. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  127. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  128. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  129. package/dist/commonjs/package.json +3 -0
  130. package/dist/commonjs/pagingHelper.d.ts +13 -0
  131. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  132. package/dist/commonjs/pagingHelper.js +36 -0
  133. package/dist/commonjs/pagingHelper.js.map +1 -0
  134. package/dist/commonjs/purviewManagementClient.d.ts +24 -0
  135. package/dist/commonjs/purviewManagementClient.d.ts.map +1 -0
  136. package/dist/commonjs/purviewManagementClient.js +106 -0
  137. package/dist/commonjs/purviewManagementClient.js.map +1 -0
  138. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  139. package/dist/esm/index.d.ts +5 -0
  140. package/dist/esm/index.d.ts.map +1 -0
  141. package/{src/index.ts → dist/esm/index.js} +5 -5
  142. package/dist/esm/index.js.map +1 -0
  143. package/dist/esm/lroImpl.d.ts +16 -0
  144. package/dist/esm/lroImpl.d.ts.map +1 -0
  145. package/dist/esm/lroImpl.js +25 -0
  146. package/dist/esm/lroImpl.js.map +1 -0
  147. package/dist/esm/models/index.d.ts +906 -0
  148. package/dist/esm/models/index.d.ts.map +1 -0
  149. package/dist/esm/models/index.js +110 -0
  150. package/dist/esm/models/index.js.map +1 -0
  151. package/dist/esm/models/mappers.d.ts +41 -0
  152. package/dist/esm/models/mappers.d.ts.map +1 -0
  153. package/dist/esm/models/mappers.js +1238 -0
  154. package/dist/esm/models/mappers.js.map +1 -0
  155. package/dist/esm/models/parameters.d.ts +22 -0
  156. package/dist/esm/models/parameters.d.ts.map +1 -0
  157. package/dist/esm/models/parameters.js +176 -0
  158. package/dist/esm/models/parameters.js.map +1 -0
  159. package/dist/esm/operations/accounts.d.ts +128 -0
  160. package/dist/esm/operations/accounts.d.ts.map +1 -0
  161. package/dist/esm/operations/accounts.js +608 -0
  162. package/dist/esm/operations/accounts.js.map +1 -0
  163. package/dist/esm/operations/defaultAccounts.d.ts +33 -0
  164. package/dist/esm/operations/defaultAccounts.d.ts.map +1 -0
  165. package/dist/esm/operations/defaultAccounts.js +108 -0
  166. package/dist/esm/operations/defaultAccounts.js.map +1 -0
  167. package/dist/esm/operations/index.d.ts +6 -0
  168. package/dist/esm/operations/index.d.ts.map +1 -0
  169. package/dist/esm/operations/index.js +13 -0
  170. package/dist/esm/operations/index.js.map +1 -0
  171. package/dist/esm/operations/operations.d.ts +32 -0
  172. package/dist/esm/operations/operations.d.ts.map +1 -0
  173. package/dist/esm/operations/operations.js +134 -0
  174. package/dist/esm/operations/operations.js.map +1 -0
  175. package/dist/esm/operations/privateEndpointConnections.d.ts +81 -0
  176. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  177. package/dist/esm/operations/privateEndpointConnections.js +357 -0
  178. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  179. package/dist/esm/operations/privateLinkResources.d.ts +46 -0
  180. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  181. package/dist/esm/operations/privateLinkResources.js +183 -0
  182. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  183. package/dist/esm/operationsInterfaces/accounts.d.ts +92 -0
  184. package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -0
  185. package/dist/esm/operationsInterfaces/accounts.js +9 -0
  186. package/dist/esm/operationsInterfaces/accounts.js.map +1 -0
  187. package/dist/esm/operationsInterfaces/defaultAccounts.d.ts +25 -0
  188. package/dist/esm/operationsInterfaces/defaultAccounts.d.ts.map +1 -0
  189. package/dist/esm/operationsInterfaces/defaultAccounts.js +9 -0
  190. package/dist/esm/operationsInterfaces/defaultAccounts.js.map +1 -0
  191. package/dist/esm/operationsInterfaces/index.d.ts +6 -0
  192. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  193. package/dist/esm/operationsInterfaces/index.js +13 -0
  194. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  195. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  196. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  197. package/dist/esm/operationsInterfaces/operations.js +9 -0
  198. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  199. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  200. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  201. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  202. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  203. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +21 -0
  204. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  205. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  206. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  207. package/dist/esm/package.json +3 -0
  208. package/dist/esm/pagingHelper.d.ts +13 -0
  209. package/dist/esm/pagingHelper.d.ts.map +1 -0
  210. package/dist/esm/pagingHelper.js +32 -0
  211. package/dist/esm/pagingHelper.js.map +1 -0
  212. package/dist/esm/purviewManagementClient.d.ts +24 -0
  213. package/dist/esm/purviewManagementClient.d.ts.map +1 -0
  214. package/dist/esm/purviewManagementClient.js +101 -0
  215. package/dist/esm/purviewManagementClient.js.map +1 -0
  216. package/dist/react-native/index.d.ts +5 -0
  217. package/dist/react-native/index.d.ts.map +1 -0
  218. package/dist/react-native/index.js +13 -0
  219. package/dist/react-native/index.js.map +1 -0
  220. package/dist/react-native/lroImpl.d.ts +16 -0
  221. package/dist/react-native/lroImpl.d.ts.map +1 -0
  222. package/dist/react-native/lroImpl.js +25 -0
  223. package/dist/react-native/lroImpl.js.map +1 -0
  224. package/dist/react-native/models/index.d.ts +906 -0
  225. package/dist/react-native/models/index.d.ts.map +1 -0
  226. package/dist/react-native/models/index.js +110 -0
  227. package/dist/react-native/models/index.js.map +1 -0
  228. package/dist/react-native/models/mappers.d.ts +41 -0
  229. package/dist/react-native/models/mappers.d.ts.map +1 -0
  230. package/dist/react-native/models/mappers.js +1238 -0
  231. package/dist/react-native/models/mappers.js.map +1 -0
  232. package/dist/react-native/models/parameters.d.ts +22 -0
  233. package/dist/react-native/models/parameters.d.ts.map +1 -0
  234. package/dist/react-native/models/parameters.js +176 -0
  235. package/dist/react-native/models/parameters.js.map +1 -0
  236. package/dist/react-native/operations/accounts.d.ts +128 -0
  237. package/dist/react-native/operations/accounts.d.ts.map +1 -0
  238. package/dist/react-native/operations/accounts.js +608 -0
  239. package/dist/react-native/operations/accounts.js.map +1 -0
  240. package/dist/react-native/operations/defaultAccounts.d.ts +33 -0
  241. package/dist/react-native/operations/defaultAccounts.d.ts.map +1 -0
  242. package/dist/react-native/operations/defaultAccounts.js +108 -0
  243. package/dist/react-native/operations/defaultAccounts.js.map +1 -0
  244. package/dist/react-native/operations/index.d.ts +6 -0
  245. package/dist/react-native/operations/index.d.ts.map +1 -0
  246. package/dist/react-native/operations/index.js +13 -0
  247. package/dist/react-native/operations/index.js.map +1 -0
  248. package/dist/react-native/operations/operations.d.ts +32 -0
  249. package/dist/react-native/operations/operations.d.ts.map +1 -0
  250. package/dist/react-native/operations/operations.js +134 -0
  251. package/dist/react-native/operations/operations.js.map +1 -0
  252. package/dist/react-native/operations/privateEndpointConnections.d.ts +81 -0
  253. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  254. package/dist/react-native/operations/privateEndpointConnections.js +357 -0
  255. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  256. package/dist/react-native/operations/privateLinkResources.d.ts +46 -0
  257. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  258. package/dist/react-native/operations/privateLinkResources.js +183 -0
  259. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  260. package/dist/react-native/operationsInterfaces/accounts.d.ts +92 -0
  261. package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -0
  262. package/dist/react-native/operationsInterfaces/accounts.js +9 -0
  263. package/dist/react-native/operationsInterfaces/accounts.js.map +1 -0
  264. package/dist/react-native/operationsInterfaces/defaultAccounts.d.ts +25 -0
  265. package/dist/react-native/operationsInterfaces/defaultAccounts.d.ts.map +1 -0
  266. package/dist/react-native/operationsInterfaces/defaultAccounts.js +9 -0
  267. package/dist/react-native/operationsInterfaces/defaultAccounts.js.map +1 -0
  268. package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
  269. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  270. package/dist/react-native/operationsInterfaces/index.js +13 -0
  271. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  272. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  273. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  274. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  275. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  276. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  277. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  278. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  279. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  280. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +21 -0
  281. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  282. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  283. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  284. package/dist/react-native/package.json +3 -0
  285. package/dist/react-native/pagingHelper.d.ts +13 -0
  286. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  287. package/dist/react-native/pagingHelper.js +32 -0
  288. package/dist/react-native/pagingHelper.js.map +1 -0
  289. package/dist/react-native/purviewManagementClient.d.ts +24 -0
  290. package/dist/react-native/purviewManagementClient.d.ts.map +1 -0
  291. package/dist/react-native/purviewManagementClient.js +101 -0
  292. package/dist/react-native/purviewManagementClient.js.map +1 -0
  293. package/package.json +67 -36
  294. package/dist/index.js +0 -3141
  295. package/dist/index.js.map +0 -1
  296. package/dist/index.min.js +0 -1
  297. package/dist/index.min.js.map +0 -1
  298. package/dist-esm/samples-dev/accountsAddRootCollectionAdminSample.d.ts +0 -2
  299. package/dist-esm/samples-dev/accountsAddRootCollectionAdminSample.d.ts.map +0 -1
  300. package/dist-esm/samples-dev/accountsAddRootCollectionAdminSample.js +0 -25
  301. package/dist-esm/samples-dev/accountsAddRootCollectionAdminSample.js.map +0 -1
  302. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.d.ts +0 -2
  303. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.d.ts.map +0 -1
  304. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.js +0 -24
  305. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.js.map +0 -1
  306. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +0 -2
  307. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +0 -1
  308. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +0 -26
  309. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +0 -1
  310. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +0 -2
  311. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +0 -1
  312. package/dist-esm/samples-dev/accountsDeleteSample.js +0 -29
  313. package/dist-esm/samples-dev/accountsDeleteSample.js.map +0 -1
  314. package/dist-esm/samples-dev/accountsGetSample.d.ts +0 -2
  315. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +0 -1
  316. package/dist-esm/samples-dev/accountsGetSample.js +0 -29
  317. package/dist-esm/samples-dev/accountsGetSample.js.map +0 -1
  318. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +0 -2
  319. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +0 -1
  320. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +0 -44
  321. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +0 -1
  322. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +0 -2
  323. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +0 -1
  324. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +0 -43
  325. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +0 -1
  326. package/dist-esm/samples-dev/accountsListKeysSample.d.ts +0 -2
  327. package/dist-esm/samples-dev/accountsListKeysSample.d.ts.map +0 -1
  328. package/dist-esm/samples-dev/accountsListKeysSample.js +0 -29
  329. package/dist-esm/samples-dev/accountsListKeysSample.js.map +0 -1
  330. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +0 -2
  331. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +0 -1
  332. package/dist-esm/samples-dev/accountsUpdateSample.js +0 -25
  333. package/dist-esm/samples-dev/accountsUpdateSample.js.map +0 -1
  334. package/dist-esm/samples-dev/defaultAccountsGetSample.d.ts +0 -2
  335. package/dist-esm/samples-dev/defaultAccountsGetSample.d.ts.map +0 -1
  336. package/dist-esm/samples-dev/defaultAccountsGetSample.js +0 -24
  337. package/dist-esm/samples-dev/defaultAccountsGetSample.js.map +0 -1
  338. package/dist-esm/samples-dev/defaultAccountsRemoveSample.d.ts +0 -2
  339. package/dist-esm/samples-dev/defaultAccountsRemoveSample.d.ts.map +0 -1
  340. package/dist-esm/samples-dev/defaultAccountsRemoveSample.js +0 -24
  341. package/dist-esm/samples-dev/defaultAccountsRemoveSample.js.map +0 -1
  342. package/dist-esm/samples-dev/defaultAccountsSetSample.d.ts +0 -2
  343. package/dist-esm/samples-dev/defaultAccountsSetSample.d.ts.map +0 -1
  344. package/dist-esm/samples-dev/defaultAccountsSetSample.js +0 -28
  345. package/dist-esm/samples-dev/defaultAccountsSetSample.js.map +0 -1
  346. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  347. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  348. package/dist-esm/samples-dev/operationsListSample.js +0 -43
  349. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  350. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +0 -2
  351. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +0 -1
  352. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +0 -29
  353. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +0 -1
  354. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  355. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  356. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -30
  357. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  358. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  359. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  360. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -30
  361. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  362. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.d.ts +0 -2
  363. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.d.ts.map +0 -1
  364. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js +0 -45
  365. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js.map +0 -1
  366. package/dist-esm/samples-dev/privateLinkResourcesGetByGroupIdSample.d.ts +0 -2
  367. package/dist-esm/samples-dev/privateLinkResourcesGetByGroupIdSample.d.ts.map +0 -1
  368. package/dist-esm/samples-dev/privateLinkResourcesGetByGroupIdSample.js +0 -30
  369. package/dist-esm/samples-dev/privateLinkResourcesGetByGroupIdSample.js.map +0 -1
  370. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.d.ts +0 -2
  371. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.d.ts.map +0 -1
  372. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js +0 -45
  373. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js.map +0 -1
  374. package/dist-esm/src/index.d.ts +0 -5
  375. package/dist-esm/src/index.js.map +0 -1
  376. package/dist-esm/src/lroImpl.js +0 -29
  377. package/dist-esm/src/lroImpl.js.map +0 -1
  378. package/dist-esm/src/models/index.js.map +0 -1
  379. package/dist-esm/src/models/mappers.js.map +0 -1
  380. package/dist-esm/src/models/parameters.js.map +0 -1
  381. package/dist-esm/src/operations/accounts.d.ts.map +0 -1
  382. package/dist-esm/src/operations/accounts.js.map +0 -1
  383. package/dist-esm/src/operations/defaultAccounts.d.ts.map +0 -1
  384. package/dist-esm/src/operations/defaultAccounts.js.map +0 -1
  385. package/dist-esm/src/operations/index.d.ts +0 -6
  386. package/dist-esm/src/operations/index.js.map +0 -1
  387. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  388. package/dist-esm/src/operations/operations.js.map +0 -1
  389. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  390. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  391. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  392. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  393. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +0 -1
  394. package/dist-esm/src/operationsInterfaces/accounts.js.map +0 -1
  395. package/dist-esm/src/operationsInterfaces/defaultAccounts.d.ts.map +0 -1
  396. package/dist-esm/src/operationsInterfaces/defaultAccounts.js.map +0 -1
  397. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  398. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  399. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  400. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  401. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  402. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  403. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  404. package/dist-esm/src/pagingHelper.js.map +0 -1
  405. package/dist-esm/src/purviewManagementClient.d.ts.map +0 -1
  406. package/dist-esm/src/purviewManagementClient.js.map +0 -1
  407. package/dist-esm/test/sampleTest.d.ts +0 -2
  408. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  409. package/dist-esm/test/sampleTest.js +0 -42
  410. package/dist-esm/test/sampleTest.js.map +0 -1
  411. package/src/lroImpl.ts +0 -34
  412. package/src/models/index.ts +0 -1018
  413. package/src/models/mappers.ts +0 -1307
  414. package/src/models/parameters.ts +0 -208
  415. package/src/operations/accounts.ts +0 -829
  416. package/src/operations/defaultAccounts.ts +0 -146
  417. package/src/operations/index.ts +0 -13
  418. package/src/operations/operations.ts +0 -150
  419. package/src/operations/privateEndpointConnections.ts +0 -511
  420. package/src/operations/privateLinkResources.ts +0 -247
  421. package/src/operationsInterfaces/accounts.ts +0 -179
  422. package/src/operationsInterfaces/defaultAccounts.ts +0 -52
  423. package/src/operationsInterfaces/index.ts +0 -13
  424. package/src/operationsInterfaces/operations.ts +0 -22
  425. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -109
  426. package/src/operationsInterfaces/privateLinkResources.ts +0 -44
  427. package/src/pagingHelper.ts +0 -39
  428. package/src/purviewManagementClient.ts +0 -160
  429. package/tsconfig.json +0 -33
  430. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  431. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  432. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  433. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  434. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  435. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  436. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  437. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  438. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  439. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  440. /package/{dist-esm/src → dist/browser}/operationsInterfaces/accounts.js +0 -0
  441. /package/{dist-esm/src → dist/browser}/operationsInterfaces/defaultAccounts.js +0 -0
  442. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  443. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  444. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
  445. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  446. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  447. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/dist/index.js DELETED
@@ -1,3141 +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 === void 0 ? void 0 : _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 !== void 0 ? _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 Status} that the service accepts. */
70
- exports.KnownStatus = void 0;
71
- (function (KnownStatus) {
72
- /** Unknown */
73
- KnownStatus["Unknown"] = "Unknown";
74
- /** Pending */
75
- KnownStatus["Pending"] = "Pending";
76
- /** Approved */
77
- KnownStatus["Approved"] = "Approved";
78
- /** Rejected */
79
- KnownStatus["Rejected"] = "Rejected";
80
- /** Disconnected */
81
- KnownStatus["Disconnected"] = "Disconnected";
82
- })(exports.KnownStatus || (exports.KnownStatus = {}));
83
- /** Known values of {@link ProvisioningState} that the service accepts. */
84
- exports.KnownProvisioningState = void 0;
85
- (function (KnownProvisioningState) {
86
- /** Unknown */
87
- KnownProvisioningState["Unknown"] = "Unknown";
88
- /** Creating */
89
- KnownProvisioningState["Creating"] = "Creating";
90
- /** Moving */
91
- KnownProvisioningState["Moving"] = "Moving";
92
- /** Deleting */
93
- KnownProvisioningState["Deleting"] = "Deleting";
94
- /** SoftDeleting */
95
- KnownProvisioningState["SoftDeleting"] = "SoftDeleting";
96
- /** SoftDeleted */
97
- KnownProvisioningState["SoftDeleted"] = "SoftDeleted";
98
- /** Failed */
99
- KnownProvisioningState["Failed"] = "Failed";
100
- /** Succeeded */
101
- KnownProvisioningState["Succeeded"] = "Succeeded";
102
- /** Canceled */
103
- KnownProvisioningState["Canceled"] = "Canceled";
104
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
105
- /** Known values of {@link PublicNetworkAccess} that the service accepts. */
106
- exports.KnownPublicNetworkAccess = void 0;
107
- (function (KnownPublicNetworkAccess) {
108
- /** NotSpecified */
109
- KnownPublicNetworkAccess["NotSpecified"] = "NotSpecified";
110
- /** Enabled */
111
- KnownPublicNetworkAccess["Enabled"] = "Enabled";
112
- /** Disabled */
113
- KnownPublicNetworkAccess["Disabled"] = "Disabled";
114
- })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
115
- /** Known values of {@link Name} that the service accepts. */
116
- exports.KnownName = void 0;
117
- (function (KnownName) {
118
- /** Standard */
119
- KnownName["Standard"] = "Standard";
120
- })(exports.KnownName || (exports.KnownName = {}));
121
- /** Known values of {@link Type} that the service accepts. */
122
- exports.KnownType = void 0;
123
- (function (KnownType) {
124
- /** None */
125
- KnownType["None"] = "None";
126
- /** SystemAssigned */
127
- KnownType["SystemAssigned"] = "SystemAssigned";
128
- /** UserAssigned */
129
- KnownType["UserAssigned"] = "UserAssigned";
130
- })(exports.KnownType || (exports.KnownType = {}));
131
- /** Known values of {@link CreatedByType} that the service accepts. */
132
- exports.KnownCreatedByType = void 0;
133
- (function (KnownCreatedByType) {
134
- /** User */
135
- KnownCreatedByType["User"] = "User";
136
- /** Application */
137
- KnownCreatedByType["Application"] = "Application";
138
- /** ManagedIdentity */
139
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
140
- /** Key */
141
- KnownCreatedByType["Key"] = "Key";
142
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
143
- /** Known values of {@link LastModifiedByType} that the service accepts. */
144
- exports.KnownLastModifiedByType = void 0;
145
- (function (KnownLastModifiedByType) {
146
- /** User */
147
- KnownLastModifiedByType["User"] = "User";
148
- /** Application */
149
- KnownLastModifiedByType["Application"] = "Application";
150
- /** ManagedIdentity */
151
- KnownLastModifiedByType["ManagedIdentity"] = "ManagedIdentity";
152
- /** Key */
153
- KnownLastModifiedByType["Key"] = "Key";
154
- })(exports.KnownLastModifiedByType || (exports.KnownLastModifiedByType = {}));
155
- /** Known values of {@link ScopeType} that the service accepts. */
156
- exports.KnownScopeType = void 0;
157
- (function (KnownScopeType) {
158
- /** Tenant */
159
- KnownScopeType["Tenant"] = "Tenant";
160
- /** Subscription */
161
- KnownScopeType["Subscription"] = "Subscription";
162
- })(exports.KnownScopeType || (exports.KnownScopeType = {}));
163
- /** Known values of {@link Reason} that the service accepts. */
164
- exports.KnownReason = void 0;
165
- (function (KnownReason) {
166
- /** Invalid */
167
- KnownReason["Invalid"] = "Invalid";
168
- /** AlreadyExists */
169
- KnownReason["AlreadyExists"] = "AlreadyExists";
170
- })(exports.KnownReason || (exports.KnownReason = {}));
171
-
172
- /*
173
- * Copyright (c) Microsoft Corporation.
174
- * Licensed under the MIT License.
175
- *
176
- * Code generated by Microsoft (R) AutoRest Code Generator.
177
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
178
- */
179
- const AccountList = {
180
- type: {
181
- name: "Composite",
182
- className: "AccountList",
183
- modelProperties: {
184
- count: {
185
- serializedName: "count",
186
- type: {
187
- name: "Number"
188
- }
189
- },
190
- nextLink: {
191
- serializedName: "nextLink",
192
- type: {
193
- name: "String"
194
- }
195
- },
196
- value: {
197
- serializedName: "value",
198
- required: true,
199
- type: {
200
- name: "Sequence",
201
- element: {
202
- type: {
203
- name: "Composite",
204
- className: "Account"
205
- }
206
- }
207
- }
208
- }
209
- }
210
- }
211
- };
212
- const AccountProperties = {
213
- type: {
214
- name: "Composite",
215
- className: "AccountProperties",
216
- modelProperties: {
217
- cloudConnectors: {
218
- serializedName: "cloudConnectors",
219
- type: {
220
- name: "Composite",
221
- className: "CloudConnectors"
222
- }
223
- },
224
- createdAt: {
225
- serializedName: "createdAt",
226
- readOnly: true,
227
- type: {
228
- name: "DateTime"
229
- }
230
- },
231
- createdBy: {
232
- serializedName: "createdBy",
233
- readOnly: true,
234
- type: {
235
- name: "String"
236
- }
237
- },
238
- createdByObjectId: {
239
- serializedName: "createdByObjectId",
240
- readOnly: true,
241
- type: {
242
- name: "String"
243
- }
244
- },
245
- endpoints: {
246
- serializedName: "endpoints",
247
- type: {
248
- name: "Composite",
249
- className: "AccountPropertiesEndpoints"
250
- }
251
- },
252
- friendlyName: {
253
- serializedName: "friendlyName",
254
- readOnly: true,
255
- type: {
256
- name: "String"
257
- }
258
- },
259
- managedResourceGroupName: {
260
- serializedName: "managedResourceGroupName",
261
- type: {
262
- name: "String"
263
- }
264
- },
265
- managedResources: {
266
- serializedName: "managedResources",
267
- type: {
268
- name: "Composite",
269
- className: "AccountPropertiesManagedResources"
270
- }
271
- },
272
- privateEndpointConnections: {
273
- serializedName: "privateEndpointConnections",
274
- readOnly: true,
275
- type: {
276
- name: "Sequence",
277
- element: {
278
- type: {
279
- name: "Composite",
280
- className: "PrivateEndpointConnection"
281
- }
282
- }
283
- }
284
- },
285
- provisioningState: {
286
- serializedName: "provisioningState",
287
- readOnly: true,
288
- type: {
289
- name: "String"
290
- }
291
- },
292
- publicNetworkAccess: {
293
- defaultValue: "Enabled",
294
- serializedName: "publicNetworkAccess",
295
- type: {
296
- name: "String"
297
- }
298
- }
299
- }
300
- }
301
- };
302
- const CloudConnectors = {
303
- type: {
304
- name: "Composite",
305
- className: "CloudConnectors",
306
- modelProperties: {
307
- awsExternalId: {
308
- serializedName: "awsExternalId",
309
- readOnly: true,
310
- type: {
311
- name: "String"
312
- }
313
- }
314
- }
315
- }
316
- };
317
- const AccountEndpoints = {
318
- type: {
319
- name: "Composite",
320
- className: "AccountEndpoints",
321
- modelProperties: {
322
- catalog: {
323
- serializedName: "catalog",
324
- readOnly: true,
325
- type: {
326
- name: "String"
327
- }
328
- },
329
- guardian: {
330
- serializedName: "guardian",
331
- readOnly: true,
332
- type: {
333
- name: "String"
334
- }
335
- },
336
- scan: {
337
- serializedName: "scan",
338
- readOnly: true,
339
- type: {
340
- name: "String"
341
- }
342
- }
343
- }
344
- }
345
- };
346
- const ManagedResources = {
347
- type: {
348
- name: "Composite",
349
- className: "ManagedResources",
350
- modelProperties: {
351
- eventHubNamespace: {
352
- serializedName: "eventHubNamespace",
353
- readOnly: true,
354
- type: {
355
- name: "String"
356
- }
357
- },
358
- resourceGroup: {
359
- serializedName: "resourceGroup",
360
- readOnly: true,
361
- type: {
362
- name: "String"
363
- }
364
- },
365
- storageAccount: {
366
- serializedName: "storageAccount",
367
- readOnly: true,
368
- type: {
369
- name: "String"
370
- }
371
- }
372
- }
373
- }
374
- };
375
- const PrivateEndpoint = {
376
- type: {
377
- name: "Composite",
378
- className: "PrivateEndpoint",
379
- modelProperties: {
380
- id: {
381
- serializedName: "id",
382
- type: {
383
- name: "String"
384
- }
385
- }
386
- }
387
- }
388
- };
389
- const PrivateLinkServiceConnectionState = {
390
- type: {
391
- name: "Composite",
392
- className: "PrivateLinkServiceConnectionState",
393
- modelProperties: {
394
- actionsRequired: {
395
- serializedName: "actionsRequired",
396
- type: {
397
- name: "String"
398
- }
399
- },
400
- description: {
401
- serializedName: "description",
402
- type: {
403
- name: "String"
404
- }
405
- },
406
- status: {
407
- serializedName: "status",
408
- type: {
409
- name: "String"
410
- }
411
- }
412
- }
413
- }
414
- };
415
- const ProxyResource = {
416
- type: {
417
- name: "Composite",
418
- className: "ProxyResource",
419
- modelProperties: {
420
- id: {
421
- serializedName: "id",
422
- readOnly: true,
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- name: {
428
- serializedName: "name",
429
- readOnly: true,
430
- type: {
431
- name: "String"
432
- }
433
- },
434
- type: {
435
- serializedName: "type",
436
- readOnly: true,
437
- type: {
438
- name: "String"
439
- }
440
- }
441
- }
442
- }
443
- };
444
- const AccountSkuAutoGenerated = {
445
- type: {
446
- name: "Composite",
447
- className: "AccountSkuAutoGenerated",
448
- modelProperties: {
449
- capacity: {
450
- serializedName: "capacity",
451
- type: {
452
- name: "Number"
453
- }
454
- },
455
- name: {
456
- serializedName: "name",
457
- type: {
458
- name: "String"
459
- }
460
- }
461
- }
462
- }
463
- };
464
- const TrackedResource = {
465
- type: {
466
- name: "Composite",
467
- className: "TrackedResource",
468
- modelProperties: {
469
- id: {
470
- serializedName: "id",
471
- readOnly: true,
472
- type: {
473
- name: "String"
474
- }
475
- },
476
- identity: {
477
- serializedName: "identity",
478
- type: {
479
- name: "Composite",
480
- className: "Identity"
481
- }
482
- },
483
- location: {
484
- serializedName: "location",
485
- type: {
486
- name: "String"
487
- }
488
- },
489
- name: {
490
- serializedName: "name",
491
- readOnly: true,
492
- type: {
493
- name: "String"
494
- }
495
- },
496
- systemData: {
497
- serializedName: "systemData",
498
- type: {
499
- name: "Composite",
500
- className: "TrackedResourceSystemData"
501
- }
502
- },
503
- tags: {
504
- serializedName: "tags",
505
- type: {
506
- name: "Dictionary",
507
- value: { type: { name: "String" } }
508
- }
509
- },
510
- type: {
511
- serializedName: "type",
512
- readOnly: true,
513
- type: {
514
- name: "String"
515
- }
516
- }
517
- }
518
- }
519
- };
520
- const Identity = {
521
- type: {
522
- name: "Composite",
523
- className: "Identity",
524
- modelProperties: {
525
- principalId: {
526
- serializedName: "principalId",
527
- readOnly: true,
528
- type: {
529
- name: "String"
530
- }
531
- },
532
- tenantId: {
533
- serializedName: "tenantId",
534
- readOnly: true,
535
- type: {
536
- name: "String"
537
- }
538
- },
539
- type: {
540
- serializedName: "type",
541
- type: {
542
- name: "String"
543
- }
544
- },
545
- userAssignedIdentities: {
546
- serializedName: "userAssignedIdentities",
547
- type: {
548
- name: "Dictionary",
549
- value: {
550
- type: { name: "Composite", className: "UserAssignedIdentity" }
551
- }
552
- }
553
- }
554
- }
555
- }
556
- };
557
- const UserAssignedIdentity = {
558
- type: {
559
- name: "Composite",
560
- className: "UserAssignedIdentity",
561
- modelProperties: {
562
- clientId: {
563
- serializedName: "clientId",
564
- readOnly: true,
565
- type: {
566
- name: "String"
567
- }
568
- },
569
- principalId: {
570
- serializedName: "principalId",
571
- readOnly: true,
572
- type: {
573
- name: "String"
574
- }
575
- }
576
- }
577
- }
578
- };
579
- const SystemData = {
580
- type: {
581
- name: "Composite",
582
- className: "SystemData",
583
- modelProperties: {
584
- createdAt: {
585
- serializedName: "createdAt",
586
- readOnly: true,
587
- type: {
588
- name: "DateTime"
589
- }
590
- },
591
- createdBy: {
592
- serializedName: "createdBy",
593
- readOnly: true,
594
- type: {
595
- name: "String"
596
- }
597
- },
598
- createdByType: {
599
- serializedName: "createdByType",
600
- readOnly: true,
601
- type: {
602
- name: "String"
603
- }
604
- },
605
- lastModifiedAt: {
606
- serializedName: "lastModifiedAt",
607
- readOnly: true,
608
- type: {
609
- name: "DateTime"
610
- }
611
- },
612
- lastModifiedBy: {
613
- serializedName: "lastModifiedBy",
614
- readOnly: true,
615
- type: {
616
- name: "String"
617
- }
618
- },
619
- lastModifiedByType: {
620
- serializedName: "lastModifiedByType",
621
- readOnly: true,
622
- type: {
623
- name: "String"
624
- }
625
- }
626
- }
627
- }
628
- };
629
- const ErrorResponseModel = {
630
- type: {
631
- name: "Composite",
632
- className: "ErrorResponseModel",
633
- modelProperties: {
634
- error: {
635
- serializedName: "error",
636
- type: {
637
- name: "Composite",
638
- className: "ErrorResponseModelError"
639
- }
640
- }
641
- }
642
- }
643
- };
644
- const ErrorModel = {
645
- type: {
646
- name: "Composite",
647
- className: "ErrorModel",
648
- modelProperties: {
649
- code: {
650
- serializedName: "code",
651
- readOnly: true,
652
- type: {
653
- name: "String"
654
- }
655
- },
656
- details: {
657
- serializedName: "details",
658
- readOnly: true,
659
- type: {
660
- name: "Sequence",
661
- element: {
662
- type: {
663
- name: "Composite",
664
- className: "ErrorModel"
665
- }
666
- }
667
- }
668
- },
669
- message: {
670
- serializedName: "message",
671
- readOnly: true,
672
- type: {
673
- name: "String"
674
- }
675
- },
676
- target: {
677
- serializedName: "target",
678
- readOnly: true,
679
- type: {
680
- name: "String"
681
- }
682
- }
683
- }
684
- }
685
- };
686
- const AccountUpdateParameters = {
687
- type: {
688
- name: "Composite",
689
- className: "AccountUpdateParameters",
690
- modelProperties: {
691
- identity: {
692
- serializedName: "identity",
693
- type: {
694
- name: "Composite",
695
- className: "Identity"
696
- }
697
- },
698
- properties: {
699
- serializedName: "properties",
700
- type: {
701
- name: "Composite",
702
- className: "AccountProperties"
703
- }
704
- },
705
- tags: {
706
- serializedName: "tags",
707
- type: {
708
- name: "Dictionary",
709
- value: { type: { name: "String" } }
710
- }
711
- }
712
- }
713
- }
714
- };
715
- const AccessKeys = {
716
- type: {
717
- name: "Composite",
718
- className: "AccessKeys",
719
- modelProperties: {
720
- atlasKafkaPrimaryEndpoint: {
721
- serializedName: "atlasKafkaPrimaryEndpoint",
722
- type: {
723
- name: "String"
724
- }
725
- },
726
- atlasKafkaSecondaryEndpoint: {
727
- serializedName: "atlasKafkaSecondaryEndpoint",
728
- type: {
729
- name: "String"
730
- }
731
- }
732
- }
733
- }
734
- };
735
- const CollectionAdminUpdate = {
736
- type: {
737
- name: "Composite",
738
- className: "CollectionAdminUpdate",
739
- modelProperties: {
740
- objectId: {
741
- serializedName: "objectId",
742
- type: {
743
- name: "String"
744
- }
745
- }
746
- }
747
- }
748
- };
749
- const DefaultAccountPayload = {
750
- type: {
751
- name: "Composite",
752
- className: "DefaultAccountPayload",
753
- modelProperties: {
754
- accountName: {
755
- serializedName: "accountName",
756
- type: {
757
- name: "String"
758
- }
759
- },
760
- resourceGroupName: {
761
- serializedName: "resourceGroupName",
762
- type: {
763
- name: "String"
764
- }
765
- },
766
- scope: {
767
- serializedName: "scope",
768
- type: {
769
- name: "String"
770
- }
771
- },
772
- scopeTenantId: {
773
- serializedName: "scopeTenantId",
774
- type: {
775
- name: "String"
776
- }
777
- },
778
- scopeType: {
779
- serializedName: "scopeType",
780
- type: {
781
- name: "String"
782
- }
783
- },
784
- subscriptionId: {
785
- serializedName: "subscriptionId",
786
- type: {
787
- name: "String"
788
- }
789
- }
790
- }
791
- }
792
- };
793
- const OperationList = {
794
- type: {
795
- name: "Composite",
796
- className: "OperationList",
797
- modelProperties: {
798
- count: {
799
- serializedName: "count",
800
- type: {
801
- name: "Number"
802
- }
803
- },
804
- nextLink: {
805
- serializedName: "nextLink",
806
- type: {
807
- name: "String"
808
- }
809
- },
810
- value: {
811
- serializedName: "value",
812
- required: true,
813
- type: {
814
- name: "Sequence",
815
- element: {
816
- type: {
817
- name: "Composite",
818
- className: "Operation"
819
- }
820
- }
821
- }
822
- }
823
- }
824
- }
825
- };
826
- const Operation = {
827
- type: {
828
- name: "Composite",
829
- className: "Operation",
830
- modelProperties: {
831
- display: {
832
- serializedName: "display",
833
- type: {
834
- name: "Composite",
835
- className: "OperationDisplay"
836
- }
837
- },
838
- isDataAction: {
839
- serializedName: "isDataAction",
840
- type: {
841
- name: "Boolean"
842
- }
843
- },
844
- name: {
845
- serializedName: "name",
846
- type: {
847
- name: "String"
848
- }
849
- },
850
- origin: {
851
- serializedName: "origin",
852
- type: {
853
- name: "String"
854
- }
855
- },
856
- serviceSpecification: {
857
- serializedName: "properties.serviceSpecification",
858
- type: {
859
- name: "Composite",
860
- className: "OperationMetaServiceSpecification"
861
- }
862
- }
863
- }
864
- }
865
- };
866
- const OperationDisplay = {
867
- type: {
868
- name: "Composite",
869
- className: "OperationDisplay",
870
- modelProperties: {
871
- description: {
872
- serializedName: "description",
873
- type: {
874
- name: "String"
875
- }
876
- },
877
- operation: {
878
- serializedName: "operation",
879
- type: {
880
- name: "String"
881
- }
882
- },
883
- provider: {
884
- serializedName: "provider",
885
- type: {
886
- name: "String"
887
- }
888
- },
889
- resource: {
890
- serializedName: "resource",
891
- type: {
892
- name: "String"
893
- }
894
- }
895
- }
896
- }
897
- };
898
- const OperationMetaServiceSpecification = {
899
- type: {
900
- name: "Composite",
901
- className: "OperationMetaServiceSpecification",
902
- modelProperties: {
903
- logSpecifications: {
904
- serializedName: "logSpecifications",
905
- type: {
906
- name: "Sequence",
907
- element: {
908
- type: {
909
- name: "Composite",
910
- className: "OperationMetaLogSpecification"
911
- }
912
- }
913
- }
914
- },
915
- metricSpecifications: {
916
- serializedName: "metricSpecifications",
917
- type: {
918
- name: "Sequence",
919
- element: {
920
- type: {
921
- name: "Composite",
922
- className: "OperationMetaMetricSpecification"
923
- }
924
- }
925
- }
926
- }
927
- }
928
- }
929
- };
930
- const OperationMetaLogSpecification = {
931
- type: {
932
- name: "Composite",
933
- className: "OperationMetaLogSpecification",
934
- modelProperties: {
935
- blobDuration: {
936
- serializedName: "blobDuration",
937
- type: {
938
- name: "String"
939
- }
940
- },
941
- displayName: {
942
- serializedName: "displayName",
943
- type: {
944
- name: "String"
945
- }
946
- },
947
- name: {
948
- serializedName: "name",
949
- type: {
950
- name: "String"
951
- }
952
- }
953
- }
954
- }
955
- };
956
- const OperationMetaMetricSpecification = {
957
- type: {
958
- name: "Composite",
959
- className: "OperationMetaMetricSpecification",
960
- modelProperties: {
961
- aggregationType: {
962
- serializedName: "aggregationType",
963
- type: {
964
- name: "String"
965
- }
966
- },
967
- dimensions: {
968
- serializedName: "dimensions",
969
- type: {
970
- name: "Sequence",
971
- element: {
972
- type: {
973
- name: "Composite",
974
- className: "DimensionProperties"
975
- }
976
- }
977
- }
978
- },
979
- displayDescription: {
980
- serializedName: "displayDescription",
981
- type: {
982
- name: "String"
983
- }
984
- },
985
- displayName: {
986
- serializedName: "displayName",
987
- type: {
988
- name: "String"
989
- }
990
- },
991
- enableRegionalMdmAccount: {
992
- serializedName: "enableRegionalMdmAccount",
993
- type: {
994
- name: "String"
995
- }
996
- },
997
- internalMetricName: {
998
- serializedName: "internalMetricName",
999
- type: {
1000
- name: "String"
1001
- }
1002
- },
1003
- name: {
1004
- serializedName: "name",
1005
- type: {
1006
- name: "String"
1007
- }
1008
- },
1009
- resourceIdDimensionNameOverride: {
1010
- serializedName: "resourceIdDimensionNameOverride",
1011
- type: {
1012
- name: "String"
1013
- }
1014
- },
1015
- sourceMdmNamespace: {
1016
- serializedName: "sourceMdmNamespace",
1017
- type: {
1018
- name: "String"
1019
- }
1020
- },
1021
- supportedAggregationTypes: {
1022
- serializedName: "supportedAggregationTypes",
1023
- type: {
1024
- name: "Sequence",
1025
- element: {
1026
- type: {
1027
- name: "String"
1028
- }
1029
- }
1030
- }
1031
- },
1032
- supportedTimeGrainTypes: {
1033
- serializedName: "supportedTimeGrainTypes",
1034
- type: {
1035
- name: "Sequence",
1036
- element: {
1037
- type: {
1038
- name: "String"
1039
- }
1040
- }
1041
- }
1042
- },
1043
- unit: {
1044
- serializedName: "unit",
1045
- type: {
1046
- name: "String"
1047
- }
1048
- }
1049
- }
1050
- }
1051
- };
1052
- const DimensionProperties = {
1053
- type: {
1054
- name: "Composite",
1055
- className: "DimensionProperties",
1056
- modelProperties: {
1057
- displayName: {
1058
- serializedName: "displayName",
1059
- type: {
1060
- name: "String"
1061
- }
1062
- },
1063
- name: {
1064
- serializedName: "name",
1065
- type: {
1066
- name: "String"
1067
- }
1068
- },
1069
- toBeExportedForCustomer: {
1070
- serializedName: "toBeExportedForCustomer",
1071
- type: {
1072
- name: "Boolean"
1073
- }
1074
- }
1075
- }
1076
- }
1077
- };
1078
- const PrivateEndpointConnectionList = {
1079
- type: {
1080
- name: "Composite",
1081
- className: "PrivateEndpointConnectionList",
1082
- modelProperties: {
1083
- count: {
1084
- serializedName: "count",
1085
- type: {
1086
- name: "Number"
1087
- }
1088
- },
1089
- nextLink: {
1090
- serializedName: "nextLink",
1091
- type: {
1092
- name: "String"
1093
- }
1094
- },
1095
- value: {
1096
- serializedName: "value",
1097
- required: true,
1098
- type: {
1099
- name: "Sequence",
1100
- element: {
1101
- type: {
1102
- name: "Composite",
1103
- className: "PrivateEndpointConnection"
1104
- }
1105
- }
1106
- }
1107
- }
1108
- }
1109
- }
1110
- };
1111
- const PrivateLinkResourceList = {
1112
- type: {
1113
- name: "Composite",
1114
- className: "PrivateLinkResourceList",
1115
- modelProperties: {
1116
- count: {
1117
- serializedName: "count",
1118
- type: {
1119
- name: "Number"
1120
- }
1121
- },
1122
- nextLink: {
1123
- serializedName: "nextLink",
1124
- type: {
1125
- name: "String"
1126
- }
1127
- },
1128
- value: {
1129
- serializedName: "value",
1130
- required: true,
1131
- type: {
1132
- name: "Sequence",
1133
- element: {
1134
- type: {
1135
- name: "Composite",
1136
- className: "PrivateLinkResource"
1137
- }
1138
- }
1139
- }
1140
- }
1141
- }
1142
- }
1143
- };
1144
- const PrivateLinkResource = {
1145
- type: {
1146
- name: "Composite",
1147
- className: "PrivateLinkResource",
1148
- modelProperties: {
1149
- id: {
1150
- serializedName: "id",
1151
- readOnly: true,
1152
- type: {
1153
- name: "String"
1154
- }
1155
- },
1156
- name: {
1157
- serializedName: "name",
1158
- readOnly: true,
1159
- type: {
1160
- name: "String"
1161
- }
1162
- },
1163
- properties: {
1164
- serializedName: "properties",
1165
- type: {
1166
- name: "Composite",
1167
- className: "PrivateLinkResourceProperties"
1168
- }
1169
- },
1170
- type: {
1171
- serializedName: "type",
1172
- readOnly: true,
1173
- type: {
1174
- name: "String"
1175
- }
1176
- }
1177
- }
1178
- }
1179
- };
1180
- const PrivateLinkResourceProperties = {
1181
- type: {
1182
- name: "Composite",
1183
- className: "PrivateLinkResourceProperties",
1184
- modelProperties: {
1185
- groupId: {
1186
- serializedName: "groupId",
1187
- readOnly: true,
1188
- type: {
1189
- name: "String"
1190
- }
1191
- },
1192
- requiredMembers: {
1193
- serializedName: "requiredMembers",
1194
- readOnly: true,
1195
- type: {
1196
- name: "Sequence",
1197
- element: {
1198
- type: {
1199
- name: "String"
1200
- }
1201
- }
1202
- }
1203
- },
1204
- requiredZoneNames: {
1205
- serializedName: "requiredZoneNames",
1206
- readOnly: true,
1207
- type: {
1208
- name: "Sequence",
1209
- element: {
1210
- type: {
1211
- name: "String"
1212
- }
1213
- }
1214
- }
1215
- }
1216
- }
1217
- }
1218
- };
1219
- const CheckNameAvailabilityRequest = {
1220
- type: {
1221
- name: "Composite",
1222
- className: "CheckNameAvailabilityRequest",
1223
- modelProperties: {
1224
- name: {
1225
- serializedName: "name",
1226
- type: {
1227
- name: "String"
1228
- }
1229
- },
1230
- type: {
1231
- serializedName: "type",
1232
- type: {
1233
- name: "String"
1234
- }
1235
- }
1236
- }
1237
- }
1238
- };
1239
- const CheckNameAvailabilityResult = {
1240
- type: {
1241
- name: "Composite",
1242
- className: "CheckNameAvailabilityResult",
1243
- modelProperties: {
1244
- message: {
1245
- serializedName: "message",
1246
- type: {
1247
- name: "String"
1248
- }
1249
- },
1250
- nameAvailable: {
1251
- serializedName: "nameAvailable",
1252
- type: {
1253
- name: "Boolean"
1254
- }
1255
- },
1256
- reason: {
1257
- serializedName: "reason",
1258
- type: {
1259
- name: "String"
1260
- }
1261
- }
1262
- }
1263
- }
1264
- };
1265
- const AccountPropertiesEndpoints = {
1266
- type: {
1267
- name: "Composite",
1268
- className: "AccountPropertiesEndpoints",
1269
- modelProperties: Object.assign({}, AccountEndpoints.type.modelProperties)
1270
- }
1271
- };
1272
- const AccountPropertiesManagedResources = {
1273
- type: {
1274
- name: "Composite",
1275
- className: "AccountPropertiesManagedResources",
1276
- modelProperties: Object.assign({}, ManagedResources.type.modelProperties)
1277
- }
1278
- };
1279
- const PrivateEndpointConnection = {
1280
- type: {
1281
- name: "Composite",
1282
- className: "PrivateEndpointConnection",
1283
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { privateEndpoint: {
1284
- serializedName: "properties.privateEndpoint",
1285
- type: {
1286
- name: "Composite",
1287
- className: "PrivateEndpoint"
1288
- }
1289
- }, privateLinkServiceConnectionState: {
1290
- serializedName: "properties.privateLinkServiceConnectionState",
1291
- type: {
1292
- name: "Composite",
1293
- className: "PrivateLinkServiceConnectionState"
1294
- }
1295
- }, provisioningState: {
1296
- serializedName: "properties.provisioningState",
1297
- readOnly: true,
1298
- type: {
1299
- name: "String"
1300
- }
1301
- } })
1302
- }
1303
- };
1304
- const AccountSku = {
1305
- type: {
1306
- name: "Composite",
1307
- className: "AccountSku",
1308
- modelProperties: Object.assign({}, AccountSkuAutoGenerated.type.modelProperties)
1309
- }
1310
- };
1311
- const Account = {
1312
- type: {
1313
- name: "Composite",
1314
- className: "Account",
1315
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1316
- serializedName: "sku",
1317
- type: {
1318
- name: "Composite",
1319
- className: "AccountSku"
1320
- }
1321
- }, cloudConnectors: {
1322
- serializedName: "properties.cloudConnectors",
1323
- type: {
1324
- name: "Composite",
1325
- className: "CloudConnectors"
1326
- }
1327
- }, createdAt: {
1328
- serializedName: "properties.createdAt",
1329
- readOnly: true,
1330
- type: {
1331
- name: "DateTime"
1332
- }
1333
- }, createdBy: {
1334
- serializedName: "properties.createdBy",
1335
- readOnly: true,
1336
- type: {
1337
- name: "String"
1338
- }
1339
- }, createdByObjectId: {
1340
- serializedName: "properties.createdByObjectId",
1341
- readOnly: true,
1342
- type: {
1343
- name: "String"
1344
- }
1345
- }, endpoints: {
1346
- serializedName: "properties.endpoints",
1347
- type: {
1348
- name: "Composite",
1349
- className: "AccountPropertiesEndpoints"
1350
- }
1351
- }, friendlyName: {
1352
- serializedName: "properties.friendlyName",
1353
- readOnly: true,
1354
- type: {
1355
- name: "String"
1356
- }
1357
- }, managedResourceGroupName: {
1358
- serializedName: "properties.managedResourceGroupName",
1359
- type: {
1360
- name: "String"
1361
- }
1362
- }, managedResources: {
1363
- serializedName: "properties.managedResources",
1364
- type: {
1365
- name: "Composite",
1366
- className: "AccountPropertiesManagedResources"
1367
- }
1368
- }, privateEndpointConnections: {
1369
- serializedName: "properties.privateEndpointConnections",
1370
- readOnly: true,
1371
- type: {
1372
- name: "Sequence",
1373
- element: {
1374
- type: {
1375
- name: "Composite",
1376
- className: "PrivateEndpointConnection"
1377
- }
1378
- }
1379
- }
1380
- }, provisioningState: {
1381
- serializedName: "properties.provisioningState",
1382
- readOnly: true,
1383
- type: {
1384
- name: "String"
1385
- }
1386
- }, publicNetworkAccess: {
1387
- defaultValue: "Enabled",
1388
- serializedName: "properties.publicNetworkAccess",
1389
- type: {
1390
- name: "String"
1391
- }
1392
- } })
1393
- }
1394
- };
1395
- const TrackedResourceSystemData = {
1396
- type: {
1397
- name: "Composite",
1398
- className: "TrackedResourceSystemData",
1399
- modelProperties: Object.assign({}, SystemData.type.modelProperties)
1400
- }
1401
- };
1402
- const ErrorResponseModelError = {
1403
- type: {
1404
- name: "Composite",
1405
- className: "ErrorResponseModelError",
1406
- modelProperties: Object.assign({}, ErrorModel.type.modelProperties)
1407
- }
1408
- };
1409
-
1410
- var Mappers = /*#__PURE__*/Object.freeze({
1411
- __proto__: null,
1412
- AccessKeys: AccessKeys,
1413
- Account: Account,
1414
- AccountEndpoints: AccountEndpoints,
1415
- AccountList: AccountList,
1416
- AccountProperties: AccountProperties,
1417
- AccountPropertiesEndpoints: AccountPropertiesEndpoints,
1418
- AccountPropertiesManagedResources: AccountPropertiesManagedResources,
1419
- AccountSku: AccountSku,
1420
- AccountSkuAutoGenerated: AccountSkuAutoGenerated,
1421
- AccountUpdateParameters: AccountUpdateParameters,
1422
- CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
1423
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
1424
- CloudConnectors: CloudConnectors,
1425
- CollectionAdminUpdate: CollectionAdminUpdate,
1426
- DefaultAccountPayload: DefaultAccountPayload,
1427
- DimensionProperties: DimensionProperties,
1428
- ErrorModel: ErrorModel,
1429
- ErrorResponseModel: ErrorResponseModel,
1430
- ErrorResponseModelError: ErrorResponseModelError,
1431
- Identity: Identity,
1432
- ManagedResources: ManagedResources,
1433
- Operation: Operation,
1434
- OperationDisplay: OperationDisplay,
1435
- OperationList: OperationList,
1436
- OperationMetaLogSpecification: OperationMetaLogSpecification,
1437
- OperationMetaMetricSpecification: OperationMetaMetricSpecification,
1438
- OperationMetaServiceSpecification: OperationMetaServiceSpecification,
1439
- PrivateEndpoint: PrivateEndpoint,
1440
- PrivateEndpointConnection: PrivateEndpointConnection,
1441
- PrivateEndpointConnectionList: PrivateEndpointConnectionList,
1442
- PrivateLinkResource: PrivateLinkResource,
1443
- PrivateLinkResourceList: PrivateLinkResourceList,
1444
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
1445
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1446
- ProxyResource: ProxyResource,
1447
- SystemData: SystemData,
1448
- TrackedResource: TrackedResource,
1449
- TrackedResourceSystemData: TrackedResourceSystemData,
1450
- UserAssignedIdentity: UserAssignedIdentity
1451
- });
1452
-
1453
- /*
1454
- * Copyright (c) Microsoft Corporation.
1455
- * Licensed under the MIT License.
1456
- *
1457
- * Code generated by Microsoft (R) AutoRest Code Generator.
1458
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1459
- */
1460
- const accept = {
1461
- parameterPath: "accept",
1462
- mapper: {
1463
- defaultValue: "application/json",
1464
- isConstant: true,
1465
- serializedName: "Accept",
1466
- type: {
1467
- name: "String"
1468
- }
1469
- }
1470
- };
1471
- const $host = {
1472
- parameterPath: "$host",
1473
- mapper: {
1474
- serializedName: "$host",
1475
- required: true,
1476
- type: {
1477
- name: "String"
1478
- }
1479
- },
1480
- skipEncoding: true
1481
- };
1482
- const subscriptionId = {
1483
- parameterPath: "subscriptionId",
1484
- mapper: {
1485
- serializedName: "subscriptionId",
1486
- required: true,
1487
- type: {
1488
- name: "String"
1489
- }
1490
- }
1491
- };
1492
- const resourceGroupName = {
1493
- parameterPath: "resourceGroupName",
1494
- mapper: {
1495
- serializedName: "resourceGroupName",
1496
- required: true,
1497
- type: {
1498
- name: "String"
1499
- }
1500
- }
1501
- };
1502
- const apiVersion = {
1503
- parameterPath: "apiVersion",
1504
- mapper: {
1505
- defaultValue: "2021-07-01",
1506
- isConstant: true,
1507
- serializedName: "api-version",
1508
- type: {
1509
- name: "String"
1510
- }
1511
- }
1512
- };
1513
- const skipToken = {
1514
- parameterPath: ["options", "skipToken"],
1515
- mapper: {
1516
- serializedName: "$skipToken",
1517
- type: {
1518
- name: "String"
1519
- }
1520
- }
1521
- };
1522
- const accountName = {
1523
- parameterPath: "accountName",
1524
- mapper: {
1525
- serializedName: "accountName",
1526
- required: true,
1527
- type: {
1528
- name: "String"
1529
- }
1530
- }
1531
- };
1532
- const contentType = {
1533
- parameterPath: ["options", "contentType"],
1534
- mapper: {
1535
- defaultValue: "application/json",
1536
- isConstant: true,
1537
- serializedName: "Content-Type",
1538
- type: {
1539
- name: "String"
1540
- }
1541
- }
1542
- };
1543
- const account = {
1544
- parameterPath: "account",
1545
- mapper: Account
1546
- };
1547
- const accountUpdateParameters = {
1548
- parameterPath: "accountUpdateParameters",
1549
- mapper: AccountUpdateParameters
1550
- };
1551
- const collectionAdminUpdate = {
1552
- parameterPath: "collectionAdminUpdate",
1553
- mapper: CollectionAdminUpdate
1554
- };
1555
- const checkNameAvailabilityRequest = {
1556
- parameterPath: "checkNameAvailabilityRequest",
1557
- mapper: CheckNameAvailabilityRequest
1558
- };
1559
- const nextLink = {
1560
- parameterPath: "nextLink",
1561
- mapper: {
1562
- serializedName: "nextLink",
1563
- required: true,
1564
- type: {
1565
- name: "String"
1566
- }
1567
- },
1568
- skipEncoding: true
1569
- };
1570
- const scopeTenantId = {
1571
- parameterPath: "scopeTenantId",
1572
- mapper: {
1573
- serializedName: "scopeTenantId",
1574
- required: true,
1575
- type: {
1576
- name: "Uuid"
1577
- }
1578
- }
1579
- };
1580
- const scopeType = {
1581
- parameterPath: "scopeType",
1582
- mapper: {
1583
- serializedName: "scopeType",
1584
- required: true,
1585
- type: {
1586
- name: "String"
1587
- }
1588
- }
1589
- };
1590
- const scope = {
1591
- parameterPath: ["options", "scope"],
1592
- mapper: {
1593
- serializedName: "scope",
1594
- type: {
1595
- name: "String"
1596
- }
1597
- }
1598
- };
1599
- const defaultAccountPayload = {
1600
- parameterPath: "defaultAccountPayload",
1601
- mapper: DefaultAccountPayload
1602
- };
1603
- const privateEndpointConnectionName = {
1604
- parameterPath: "privateEndpointConnectionName",
1605
- mapper: {
1606
- serializedName: "privateEndpointConnectionName",
1607
- required: true,
1608
- type: {
1609
- name: "String"
1610
- }
1611
- }
1612
- };
1613
- const request = {
1614
- parameterPath: "request",
1615
- mapper: PrivateEndpointConnection
1616
- };
1617
- const groupId = {
1618
- parameterPath: "groupId",
1619
- mapper: {
1620
- serializedName: "groupId",
1621
- required: true,
1622
- type: {
1623
- name: "String"
1624
- }
1625
- }
1626
- };
1627
-
1628
- /*
1629
- * Copyright (c) Microsoft Corporation.
1630
- * Licensed under the MIT License.
1631
- *
1632
- * Code generated by Microsoft (R) AutoRest Code Generator.
1633
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1634
- */
1635
- class LroImpl {
1636
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1637
- this.sendOperationFn = sendOperationFn;
1638
- this.args = args;
1639
- this.spec = spec;
1640
- this.requestPath = requestPath;
1641
- this.requestMethod = requestMethod;
1642
- }
1643
- sendInitialRequest() {
1644
- return tslib.__awaiter(this, void 0, void 0, function* () {
1645
- return this.sendOperationFn(this.args, this.spec);
1646
- });
1647
- }
1648
- sendPollRequest(path) {
1649
- return tslib.__awaiter(this, void 0, void 0, function* () {
1650
- const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
1651
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1652
- });
1653
- }
1654
- }
1655
-
1656
- /*
1657
- * Copyright (c) Microsoft Corporation.
1658
- * Licensed under the MIT License.
1659
- *
1660
- * Code generated by Microsoft (R) AutoRest Code Generator.
1661
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1662
- */
1663
- /// <reference lib="esnext.asynciterable" />
1664
- /** Class containing Accounts operations. */
1665
- class AccountsImpl {
1666
- /**
1667
- * Initialize a new instance of the class Accounts class.
1668
- * @param client Reference to the service client
1669
- */
1670
- constructor(client) {
1671
- this.client = client;
1672
- }
1673
- /**
1674
- * List accounts in ResourceGroup
1675
- * @param resourceGroupName The resource group name.
1676
- * @param options The options parameters.
1677
- */
1678
- listByResourceGroup(resourceGroupName, options) {
1679
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1680
- return {
1681
- next() {
1682
- return iter.next();
1683
- },
1684
- [Symbol.asyncIterator]() {
1685
- return this;
1686
- },
1687
- byPage: (settings) => {
1688
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1689
- throw new Error("maxPageSize is not supported by this operation.");
1690
- }
1691
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1692
- }
1693
- };
1694
- }
1695
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1696
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1697
- let result;
1698
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1699
- if (!continuationToken) {
1700
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1701
- let page = result.value || [];
1702
- continuationToken = result.nextLink;
1703
- setContinuationToken(page, continuationToken);
1704
- yield yield tslib.__await(page);
1705
- }
1706
- while (continuationToken) {
1707
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1708
- continuationToken = result.nextLink;
1709
- let page = result.value || [];
1710
- setContinuationToken(page, continuationToken);
1711
- yield yield tslib.__await(page);
1712
- }
1713
- });
1714
- }
1715
- listByResourceGroupPagingAll(resourceGroupName, options) {
1716
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1717
- var _a, e_1, _b, _c;
1718
- try {
1719
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1720
- _c = _f.value;
1721
- _d = false;
1722
- const page = _c;
1723
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1724
- }
1725
- }
1726
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1727
- finally {
1728
- try {
1729
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1730
- }
1731
- finally { if (e_1) throw e_1.error; }
1732
- }
1733
- });
1734
- }
1735
- /**
1736
- * List accounts in Subscription
1737
- * @param options The options parameters.
1738
- */
1739
- listBySubscription(options) {
1740
- const iter = this.listBySubscriptionPagingAll(options);
1741
- return {
1742
- next() {
1743
- return iter.next();
1744
- },
1745
- [Symbol.asyncIterator]() {
1746
- return this;
1747
- },
1748
- byPage: (settings) => {
1749
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1750
- throw new Error("maxPageSize is not supported by this operation.");
1751
- }
1752
- return this.listBySubscriptionPagingPage(options, settings);
1753
- }
1754
- };
1755
- }
1756
- listBySubscriptionPagingPage(options, settings) {
1757
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1758
- let result;
1759
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1760
- if (!continuationToken) {
1761
- result = yield tslib.__await(this._listBySubscription(options));
1762
- let page = result.value || [];
1763
- continuationToken = result.nextLink;
1764
- setContinuationToken(page, continuationToken);
1765
- yield yield tslib.__await(page);
1766
- }
1767
- while (continuationToken) {
1768
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1769
- continuationToken = result.nextLink;
1770
- let page = result.value || [];
1771
- setContinuationToken(page, continuationToken);
1772
- yield yield tslib.__await(page);
1773
- }
1774
- });
1775
- }
1776
- listBySubscriptionPagingAll(options) {
1777
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1778
- var _a, e_2, _b, _c;
1779
- try {
1780
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1781
- _c = _f.value;
1782
- _d = false;
1783
- const page = _c;
1784
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1785
- }
1786
- }
1787
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1788
- finally {
1789
- try {
1790
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1791
- }
1792
- finally { if (e_2) throw e_2.error; }
1793
- }
1794
- });
1795
- }
1796
- /**
1797
- * List accounts in ResourceGroup
1798
- * @param resourceGroupName The resource group name.
1799
- * @param options The options parameters.
1800
- */
1801
- _listByResourceGroup(resourceGroupName, options) {
1802
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1803
- }
1804
- /**
1805
- * List accounts in Subscription
1806
- * @param options The options parameters.
1807
- */
1808
- _listBySubscription(options) {
1809
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1810
- }
1811
- /**
1812
- * Get an account
1813
- * @param resourceGroupName The resource group name.
1814
- * @param accountName The name of the account.
1815
- * @param options The options parameters.
1816
- */
1817
- get(resourceGroupName, accountName, options) {
1818
- return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec$2);
1819
- }
1820
- /**
1821
- * Creates or updates an account
1822
- * @param resourceGroupName The resource group name.
1823
- * @param accountName The name of the account.
1824
- * @param account The account.
1825
- * @param options The options parameters.
1826
- */
1827
- beginCreateOrUpdate(resourceGroupName, accountName, account, options) {
1828
- return tslib.__awaiter(this, void 0, void 0, function* () {
1829
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1830
- return this.client.sendOperationRequest(args, spec);
1831
- });
1832
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1833
- var _a;
1834
- let currentRawResponse = undefined;
1835
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1836
- const callback = (rawResponse, flatResponse) => {
1837
- currentRawResponse = rawResponse;
1838
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1839
- };
1840
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1841
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1842
- return {
1843
- flatResponse,
1844
- rawResponse: {
1845
- statusCode: currentRawResponse.status,
1846
- body: currentRawResponse.parsedBody,
1847
- headers: currentRawResponse.headers.toJSON()
1848
- }
1849
- };
1850
- });
1851
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, account, options }, createOrUpdateOperationSpec$1);
1852
- const poller = new coreLro.LroEngine(lro, {
1853
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1854
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1855
- });
1856
- yield poller.poll();
1857
- return poller;
1858
- });
1859
- }
1860
- /**
1861
- * Creates or updates an account
1862
- * @param resourceGroupName The resource group name.
1863
- * @param accountName The name of the account.
1864
- * @param account The account.
1865
- * @param options The options parameters.
1866
- */
1867
- beginCreateOrUpdateAndWait(resourceGroupName, accountName, account, options) {
1868
- return tslib.__awaiter(this, void 0, void 0, function* () {
1869
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, accountName, account, options);
1870
- return poller.pollUntilDone();
1871
- });
1872
- }
1873
- /**
1874
- * Deletes an account resource
1875
- * @param resourceGroupName The resource group name.
1876
- * @param accountName The name of the account.
1877
- * @param options The options parameters.
1878
- */
1879
- beginDelete(resourceGroupName, accountName, options) {
1880
- return tslib.__awaiter(this, void 0, void 0, function* () {
1881
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1882
- return this.client.sendOperationRequest(args, spec);
1883
- });
1884
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1885
- var _a;
1886
- let currentRawResponse = undefined;
1887
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1888
- const callback = (rawResponse, flatResponse) => {
1889
- currentRawResponse = rawResponse;
1890
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1891
- };
1892
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1893
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1894
- return {
1895
- flatResponse,
1896
- rawResponse: {
1897
- statusCode: currentRawResponse.status,
1898
- body: currentRawResponse.parsedBody,
1899
- headers: currentRawResponse.headers.toJSON()
1900
- }
1901
- };
1902
- });
1903
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, deleteOperationSpec$1);
1904
- const poller = new coreLro.LroEngine(lro, {
1905
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1906
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1907
- });
1908
- yield poller.poll();
1909
- return poller;
1910
- });
1911
- }
1912
- /**
1913
- * Deletes an account resource
1914
- * @param resourceGroupName The resource group name.
1915
- * @param accountName The name of the account.
1916
- * @param options The options parameters.
1917
- */
1918
- beginDeleteAndWait(resourceGroupName, accountName, options) {
1919
- return tslib.__awaiter(this, void 0, void 0, function* () {
1920
- const poller = yield this.beginDelete(resourceGroupName, accountName, options);
1921
- return poller.pollUntilDone();
1922
- });
1923
- }
1924
- /**
1925
- * Updates an account
1926
- * @param resourceGroupName The resource group name.
1927
- * @param accountName The name of the account.
1928
- * @param accountUpdateParameters The account update parameters.
1929
- * @param options The options parameters.
1930
- */
1931
- beginUpdate(resourceGroupName, accountName, accountUpdateParameters, options) {
1932
- return tslib.__awaiter(this, void 0, void 0, function* () {
1933
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1934
- return this.client.sendOperationRequest(args, spec);
1935
- });
1936
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1937
- var _a;
1938
- let currentRawResponse = undefined;
1939
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1940
- const callback = (rawResponse, flatResponse) => {
1941
- currentRawResponse = rawResponse;
1942
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1943
- };
1944
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1945
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1946
- return {
1947
- flatResponse,
1948
- rawResponse: {
1949
- statusCode: currentRawResponse.status,
1950
- body: currentRawResponse.parsedBody,
1951
- headers: currentRawResponse.headers.toJSON()
1952
- }
1953
- };
1954
- });
1955
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, accountUpdateParameters, options }, updateOperationSpec);
1956
- const poller = new coreLro.LroEngine(lro, {
1957
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1958
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1959
- });
1960
- yield poller.poll();
1961
- return poller;
1962
- });
1963
- }
1964
- /**
1965
- * Updates an account
1966
- * @param resourceGroupName The resource group name.
1967
- * @param accountName The name of the account.
1968
- * @param accountUpdateParameters The account update parameters.
1969
- * @param options The options parameters.
1970
- */
1971
- beginUpdateAndWait(resourceGroupName, accountName, accountUpdateParameters, options) {
1972
- return tslib.__awaiter(this, void 0, void 0, function* () {
1973
- const poller = yield this.beginUpdate(resourceGroupName, accountName, accountUpdateParameters, options);
1974
- return poller.pollUntilDone();
1975
- });
1976
- }
1977
- /**
1978
- * List the authorization keys associated with this account.
1979
- * @param resourceGroupName The resource group name.
1980
- * @param accountName The name of the account.
1981
- * @param options The options parameters.
1982
- */
1983
- listKeys(resourceGroupName, accountName, options) {
1984
- return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
1985
- }
1986
- /**
1987
- * Add the administrator for root collection associated with this account.
1988
- * @param resourceGroupName The resource group name.
1989
- * @param accountName The name of the account.
1990
- * @param collectionAdminUpdate The collection admin update payload.
1991
- * @param options The options parameters.
1992
- */
1993
- addRootCollectionAdmin(resourceGroupName, accountName, collectionAdminUpdate, options) {
1994
- return this.client.sendOperationRequest({ resourceGroupName, accountName, collectionAdminUpdate, options }, addRootCollectionAdminOperationSpec);
1995
- }
1996
- /**
1997
- * Checks if account name is available.
1998
- * @param checkNameAvailabilityRequest The check name availability request.
1999
- * @param options The options parameters.
2000
- */
2001
- checkNameAvailability(checkNameAvailabilityRequest, options) {
2002
- return this.client.sendOperationRequest({ checkNameAvailabilityRequest, options }, checkNameAvailabilityOperationSpec);
2003
- }
2004
- /**
2005
- * ListByResourceGroupNext
2006
- * @param resourceGroupName The resource group name.
2007
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2008
- * @param options The options parameters.
2009
- */
2010
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2011
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2012
- }
2013
- /**
2014
- * ListBySubscriptionNext
2015
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2016
- * @param options The options parameters.
2017
- */
2018
- _listBySubscriptionNext(nextLink, options) {
2019
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2020
- }
2021
- }
2022
- // Operation Specifications
2023
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2024
- const listByResourceGroupOperationSpec = {
2025
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts",
2026
- httpMethod: "GET",
2027
- responses: {
2028
- 200: {
2029
- bodyMapper: AccountList
2030
- },
2031
- default: {
2032
- bodyMapper: ErrorResponseModel
2033
- }
2034
- },
2035
- queryParameters: [apiVersion, skipToken],
2036
- urlParameters: [
2037
- $host,
2038
- subscriptionId,
2039
- resourceGroupName
2040
- ],
2041
- headerParameters: [accept],
2042
- serializer: serializer$4
2043
- };
2044
- const listBySubscriptionOperationSpec = {
2045
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/accounts",
2046
- httpMethod: "GET",
2047
- responses: {
2048
- 200: {
2049
- bodyMapper: AccountList
2050
- },
2051
- default: {
2052
- bodyMapper: ErrorResponseModel
2053
- }
2054
- },
2055
- queryParameters: [apiVersion, skipToken],
2056
- urlParameters: [$host, subscriptionId],
2057
- headerParameters: [accept],
2058
- serializer: serializer$4
2059
- };
2060
- const getOperationSpec$2 = {
2061
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}",
2062
- httpMethod: "GET",
2063
- responses: {
2064
- 200: {
2065
- bodyMapper: Account
2066
- },
2067
- default: {
2068
- bodyMapper: ErrorResponseModel
2069
- }
2070
- },
2071
- queryParameters: [apiVersion],
2072
- urlParameters: [
2073
- $host,
2074
- subscriptionId,
2075
- resourceGroupName,
2076
- accountName
2077
- ],
2078
- headerParameters: [accept],
2079
- serializer: serializer$4
2080
- };
2081
- const createOrUpdateOperationSpec$1 = {
2082
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}",
2083
- httpMethod: "PUT",
2084
- responses: {
2085
- 200: {
2086
- bodyMapper: Account
2087
- },
2088
- 201: {
2089
- bodyMapper: Account
2090
- },
2091
- 202: {
2092
- bodyMapper: Account
2093
- },
2094
- 204: {
2095
- bodyMapper: Account
2096
- },
2097
- default: {
2098
- bodyMapper: ErrorResponseModel
2099
- }
2100
- },
2101
- requestBody: account,
2102
- queryParameters: [apiVersion],
2103
- urlParameters: [
2104
- $host,
2105
- subscriptionId,
2106
- resourceGroupName,
2107
- accountName
2108
- ],
2109
- headerParameters: [accept, contentType],
2110
- mediaType: "json",
2111
- serializer: serializer$4
2112
- };
2113
- const deleteOperationSpec$1 = {
2114
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}",
2115
- httpMethod: "DELETE",
2116
- responses: {
2117
- 200: {},
2118
- 201: {},
2119
- 202: {},
2120
- 204: {},
2121
- default: {
2122
- bodyMapper: ErrorResponseModel
2123
- }
2124
- },
2125
- queryParameters: [apiVersion],
2126
- urlParameters: [
2127
- $host,
2128
- subscriptionId,
2129
- resourceGroupName,
2130
- accountName
2131
- ],
2132
- headerParameters: [accept],
2133
- serializer: serializer$4
2134
- };
2135
- const updateOperationSpec = {
2136
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}",
2137
- httpMethod: "PATCH",
2138
- responses: {
2139
- 200: {
2140
- bodyMapper: Account
2141
- },
2142
- 201: {
2143
- bodyMapper: Account
2144
- },
2145
- 202: {
2146
- bodyMapper: Account
2147
- },
2148
- 204: {
2149
- bodyMapper: Account
2150
- },
2151
- default: {
2152
- bodyMapper: ErrorResponseModel
2153
- }
2154
- },
2155
- requestBody: accountUpdateParameters,
2156
- queryParameters: [apiVersion],
2157
- urlParameters: [
2158
- $host,
2159
- subscriptionId,
2160
- resourceGroupName,
2161
- accountName
2162
- ],
2163
- headerParameters: [accept, contentType],
2164
- mediaType: "json",
2165
- serializer: serializer$4
2166
- };
2167
- const listKeysOperationSpec = {
2168
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/listkeys",
2169
- httpMethod: "POST",
2170
- responses: {
2171
- 200: {
2172
- bodyMapper: AccessKeys
2173
- },
2174
- default: {
2175
- bodyMapper: ErrorResponseModel
2176
- }
2177
- },
2178
- queryParameters: [apiVersion],
2179
- urlParameters: [
2180
- $host,
2181
- subscriptionId,
2182
- resourceGroupName,
2183
- accountName
2184
- ],
2185
- headerParameters: [accept],
2186
- serializer: serializer$4
2187
- };
2188
- const addRootCollectionAdminOperationSpec = {
2189
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/addRootCollectionAdmin",
2190
- httpMethod: "POST",
2191
- responses: {
2192
- 200: {},
2193
- default: {
2194
- bodyMapper: ErrorResponseModel
2195
- }
2196
- },
2197
- requestBody: collectionAdminUpdate,
2198
- queryParameters: [apiVersion],
2199
- urlParameters: [
2200
- $host,
2201
- subscriptionId,
2202
- resourceGroupName,
2203
- accountName
2204
- ],
2205
- headerParameters: [accept, contentType],
2206
- mediaType: "json",
2207
- serializer: serializer$4
2208
- };
2209
- const checkNameAvailabilityOperationSpec = {
2210
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/checkNameAvailability",
2211
- httpMethod: "POST",
2212
- responses: {
2213
- 200: {
2214
- bodyMapper: CheckNameAvailabilityResult
2215
- },
2216
- default: {
2217
- bodyMapper: ErrorResponseModel
2218
- }
2219
- },
2220
- requestBody: checkNameAvailabilityRequest,
2221
- queryParameters: [apiVersion],
2222
- urlParameters: [$host, subscriptionId],
2223
- headerParameters: [accept, contentType],
2224
- mediaType: "json",
2225
- serializer: serializer$4
2226
- };
2227
- const listByResourceGroupNextOperationSpec = {
2228
- path: "{nextLink}",
2229
- httpMethod: "GET",
2230
- responses: {
2231
- 200: {
2232
- bodyMapper: AccountList
2233
- },
2234
- default: {
2235
- bodyMapper: ErrorResponseModel
2236
- }
2237
- },
2238
- queryParameters: [apiVersion, skipToken],
2239
- urlParameters: [
2240
- $host,
2241
- subscriptionId,
2242
- resourceGroupName,
2243
- nextLink
2244
- ],
2245
- headerParameters: [accept],
2246
- serializer: serializer$4
2247
- };
2248
- const listBySubscriptionNextOperationSpec = {
2249
- path: "{nextLink}",
2250
- httpMethod: "GET",
2251
- responses: {
2252
- 200: {
2253
- bodyMapper: AccountList
2254
- },
2255
- default: {
2256
- bodyMapper: ErrorResponseModel
2257
- }
2258
- },
2259
- queryParameters: [apiVersion, skipToken],
2260
- urlParameters: [
2261
- $host,
2262
- subscriptionId,
2263
- nextLink
2264
- ],
2265
- headerParameters: [accept],
2266
- serializer: serializer$4
2267
- };
2268
-
2269
- /*
2270
- * Copyright (c) Microsoft Corporation.
2271
- * Licensed under the MIT License.
2272
- *
2273
- * Code generated by Microsoft (R) AutoRest Code Generator.
2274
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2275
- */
2276
- /** Class containing DefaultAccounts operations. */
2277
- class DefaultAccountsImpl {
2278
- /**
2279
- * Initialize a new instance of the class DefaultAccounts class.
2280
- * @param client Reference to the service client
2281
- */
2282
- constructor(client) {
2283
- this.client = client;
2284
- }
2285
- /**
2286
- * Get the default account for the scope.
2287
- * @param scopeTenantId The tenant ID.
2288
- * @param scopeType The scope for the default account.
2289
- * @param options The options parameters.
2290
- */
2291
- get(scopeTenantId, scopeType, options) {
2292
- return this.client.sendOperationRequest({ scopeTenantId, scopeType, options }, getOperationSpec$1);
2293
- }
2294
- /**
2295
- * Sets the default account for the scope.
2296
- * @param defaultAccountPayload The payload containing the default account information and the scope.
2297
- * @param options The options parameters.
2298
- */
2299
- set(defaultAccountPayload, options) {
2300
- return this.client.sendOperationRequest({ defaultAccountPayload, options }, setOperationSpec);
2301
- }
2302
- /**
2303
- * Removes the default account from the scope.
2304
- * @param scopeTenantId The tenant ID.
2305
- * @param scopeType The scope for the default account.
2306
- * @param options The options parameters.
2307
- */
2308
- remove(scopeTenantId, scopeType, options) {
2309
- return this.client.sendOperationRequest({ scopeTenantId, scopeType, options }, removeOperationSpec);
2310
- }
2311
- }
2312
- // Operation Specifications
2313
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2314
- const getOperationSpec$1 = {
2315
- path: "/providers/Microsoft.Purview/getDefaultAccount",
2316
- httpMethod: "GET",
2317
- responses: {
2318
- 200: {
2319
- bodyMapper: DefaultAccountPayload
2320
- },
2321
- default: {
2322
- bodyMapper: ErrorResponseModel
2323
- }
2324
- },
2325
- queryParameters: [
2326
- apiVersion,
2327
- scopeTenantId,
2328
- scopeType,
2329
- scope
2330
- ],
2331
- urlParameters: [$host],
2332
- headerParameters: [accept],
2333
- serializer: serializer$3
2334
- };
2335
- const setOperationSpec = {
2336
- path: "/providers/Microsoft.Purview/setDefaultAccount",
2337
- httpMethod: "POST",
2338
- responses: {
2339
- 200: {
2340
- bodyMapper: DefaultAccountPayload
2341
- },
2342
- default: {
2343
- bodyMapper: ErrorResponseModel
2344
- }
2345
- },
2346
- requestBody: defaultAccountPayload,
2347
- queryParameters: [apiVersion],
2348
- urlParameters: [$host],
2349
- headerParameters: [accept, contentType],
2350
- mediaType: "json",
2351
- serializer: serializer$3
2352
- };
2353
- const removeOperationSpec = {
2354
- path: "/providers/Microsoft.Purview/removeDefaultAccount",
2355
- httpMethod: "POST",
2356
- responses: {
2357
- 200: {},
2358
- 204: {},
2359
- default: {
2360
- bodyMapper: ErrorResponseModel
2361
- }
2362
- },
2363
- queryParameters: [
2364
- apiVersion,
2365
- scopeTenantId,
2366
- scopeType,
2367
- scope
2368
- ],
2369
- urlParameters: [$host],
2370
- headerParameters: [accept],
2371
- serializer: serializer$3
2372
- };
2373
-
2374
- /*
2375
- * Copyright (c) Microsoft Corporation.
2376
- * Licensed under the MIT License.
2377
- *
2378
- * Code generated by Microsoft (R) AutoRest Code Generator.
2379
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2380
- */
2381
- /// <reference lib="esnext.asynciterable" />
2382
- /** Class containing Operations operations. */
2383
- class OperationsImpl {
2384
- /**
2385
- * Initialize a new instance of the class Operations class.
2386
- * @param client Reference to the service client
2387
- */
2388
- constructor(client) {
2389
- this.client = client;
2390
- }
2391
- /**
2392
- * List of available operations
2393
- * @param options The options parameters.
2394
- */
2395
- list(options) {
2396
- const iter = this.listPagingAll(options);
2397
- return {
2398
- next() {
2399
- return iter.next();
2400
- },
2401
- [Symbol.asyncIterator]() {
2402
- return this;
2403
- },
2404
- byPage: (settings) => {
2405
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2406
- throw new Error("maxPageSize is not supported by this operation.");
2407
- }
2408
- return this.listPagingPage(options, settings);
2409
- }
2410
- };
2411
- }
2412
- listPagingPage(options, settings) {
2413
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2414
- let result;
2415
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2416
- if (!continuationToken) {
2417
- result = yield tslib.__await(this._list(options));
2418
- let page = result.value || [];
2419
- continuationToken = result.nextLink;
2420
- setContinuationToken(page, continuationToken);
2421
- yield yield tslib.__await(page);
2422
- }
2423
- while (continuationToken) {
2424
- result = yield tslib.__await(this._listNext(continuationToken, options));
2425
- continuationToken = result.nextLink;
2426
- let page = result.value || [];
2427
- setContinuationToken(page, continuationToken);
2428
- yield yield tslib.__await(page);
2429
- }
2430
- });
2431
- }
2432
- listPagingAll(options) {
2433
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2434
- var _a, e_1, _b, _c;
2435
- try {
2436
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2437
- _c = _f.value;
2438
- _d = false;
2439
- const page = _c;
2440
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2441
- }
2442
- }
2443
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2444
- finally {
2445
- try {
2446
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2447
- }
2448
- finally { if (e_1) throw e_1.error; }
2449
- }
2450
- });
2451
- }
2452
- /**
2453
- * List of available operations
2454
- * @param options The options parameters.
2455
- */
2456
- _list(options) {
2457
- return this.client.sendOperationRequest({ options }, listOperationSpec);
2458
- }
2459
- /**
2460
- * ListNext
2461
- * @param nextLink The nextLink from the previous successful call to the List method.
2462
- * @param options The options parameters.
2463
- */
2464
- _listNext(nextLink, options) {
2465
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
2466
- }
2467
- }
2468
- // Operation Specifications
2469
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2470
- const listOperationSpec = {
2471
- path: "/providers/Microsoft.Purview/operations",
2472
- httpMethod: "GET",
2473
- responses: {
2474
- 200: {
2475
- bodyMapper: OperationList
2476
- },
2477
- default: {
2478
- bodyMapper: ErrorResponseModel
2479
- }
2480
- },
2481
- queryParameters: [apiVersion],
2482
- urlParameters: [$host],
2483
- headerParameters: [accept],
2484
- serializer: serializer$2
2485
- };
2486
- const listNextOperationSpec = {
2487
- path: "{nextLink}",
2488
- httpMethod: "GET",
2489
- responses: {
2490
- 200: {
2491
- bodyMapper: OperationList
2492
- },
2493
- default: {
2494
- bodyMapper: ErrorResponseModel
2495
- }
2496
- },
2497
- queryParameters: [apiVersion],
2498
- urlParameters: [$host, nextLink],
2499
- headerParameters: [accept],
2500
- serializer: serializer$2
2501
- };
2502
-
2503
- /*
2504
- * Copyright (c) Microsoft Corporation.
2505
- * Licensed under the MIT License.
2506
- *
2507
- * Code generated by Microsoft (R) AutoRest Code Generator.
2508
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2509
- */
2510
- /// <reference lib="esnext.asynciterable" />
2511
- /** Class containing PrivateEndpointConnections operations. */
2512
- class PrivateEndpointConnectionsImpl {
2513
- /**
2514
- * Initialize a new instance of the class PrivateEndpointConnections class.
2515
- * @param client Reference to the service client
2516
- */
2517
- constructor(client) {
2518
- this.client = client;
2519
- }
2520
- /**
2521
- * Get private endpoint connections for account
2522
- * @param resourceGroupName The resource group name.
2523
- * @param accountName The name of the account.
2524
- * @param options The options parameters.
2525
- */
2526
- listByAccount(resourceGroupName, accountName, options) {
2527
- const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
2528
- return {
2529
- next() {
2530
- return iter.next();
2531
- },
2532
- [Symbol.asyncIterator]() {
2533
- return this;
2534
- },
2535
- byPage: (settings) => {
2536
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2537
- throw new Error("maxPageSize is not supported by this operation.");
2538
- }
2539
- return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
2540
- }
2541
- };
2542
- }
2543
- listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
2544
- return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
2545
- let result;
2546
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2547
- if (!continuationToken) {
2548
- result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
2549
- let page = result.value || [];
2550
- continuationToken = result.nextLink;
2551
- setContinuationToken(page, continuationToken);
2552
- yield yield tslib.__await(page);
2553
- }
2554
- while (continuationToken) {
2555
- result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
2556
- continuationToken = result.nextLink;
2557
- let page = result.value || [];
2558
- setContinuationToken(page, continuationToken);
2559
- yield yield tslib.__await(page);
2560
- }
2561
- });
2562
- }
2563
- listByAccountPagingAll(resourceGroupName, accountName, options) {
2564
- return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
2565
- var _a, e_1, _b, _c;
2566
- try {
2567
- for (var _d = true, _e = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2568
- _c = _f.value;
2569
- _d = false;
2570
- const page = _c;
2571
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2572
- }
2573
- }
2574
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2575
- finally {
2576
- try {
2577
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2578
- }
2579
- finally { if (e_1) throw e_1.error; }
2580
- }
2581
- });
2582
- }
2583
- /**
2584
- * Get private endpoint connections for account
2585
- * @param resourceGroupName The resource group name.
2586
- * @param accountName The name of the account.
2587
- * @param options The options parameters.
2588
- */
2589
- _listByAccount(resourceGroupName, accountName, options) {
2590
- return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec$1);
2591
- }
2592
- /**
2593
- * Get a private endpoint connection
2594
- * @param resourceGroupName The resource group name.
2595
- * @param accountName The name of the account.
2596
- * @param privateEndpointConnectionName Name of the private endpoint connection.
2597
- * @param options The options parameters.
2598
- */
2599
- get(resourceGroupName, accountName, privateEndpointConnectionName, options) {
2600
- return this.client.sendOperationRequest({
2601
- resourceGroupName,
2602
- accountName,
2603
- privateEndpointConnectionName,
2604
- options
2605
- }, getOperationSpec);
2606
- }
2607
- /**
2608
- * Create or update a private endpoint connection
2609
- * @param resourceGroupName The resource group name.
2610
- * @param accountName The name of the account.
2611
- * @param privateEndpointConnectionName Name of the private endpoint connection.
2612
- * @param request The request.
2613
- * @param options The options parameters.
2614
- */
2615
- beginCreateOrUpdate(resourceGroupName, accountName, privateEndpointConnectionName, request, options) {
2616
- return tslib.__awaiter(this, void 0, void 0, function* () {
2617
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2618
- return this.client.sendOperationRequest(args, spec);
2619
- });
2620
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2621
- var _a;
2622
- let currentRawResponse = undefined;
2623
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2624
- const callback = (rawResponse, flatResponse) => {
2625
- currentRawResponse = rawResponse;
2626
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2627
- };
2628
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2629
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2630
- return {
2631
- flatResponse,
2632
- rawResponse: {
2633
- statusCode: currentRawResponse.status,
2634
- body: currentRawResponse.parsedBody,
2635
- headers: currentRawResponse.headers.toJSON()
2636
- }
2637
- };
2638
- });
2639
- const lro = new LroImpl(sendOperation, {
2640
- resourceGroupName,
2641
- accountName,
2642
- privateEndpointConnectionName,
2643
- request,
2644
- options
2645
- }, createOrUpdateOperationSpec);
2646
- const poller = new coreLro.LroEngine(lro, {
2647
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2648
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2649
- });
2650
- yield poller.poll();
2651
- return poller;
2652
- });
2653
- }
2654
- /**
2655
- * Create or update a private endpoint connection
2656
- * @param resourceGroupName The resource group name.
2657
- * @param accountName The name of the account.
2658
- * @param privateEndpointConnectionName Name of the private endpoint connection.
2659
- * @param request The request.
2660
- * @param options The options parameters.
2661
- */
2662
- beginCreateOrUpdateAndWait(resourceGroupName, accountName, privateEndpointConnectionName, request, options) {
2663
- return tslib.__awaiter(this, void 0, void 0, function* () {
2664
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, accountName, privateEndpointConnectionName, request, options);
2665
- return poller.pollUntilDone();
2666
- });
2667
- }
2668
- /**
2669
- * Delete a private endpoint connection
2670
- * @param resourceGroupName The resource group name.
2671
- * @param accountName The name of the account.
2672
- * @param privateEndpointConnectionName Name of the private endpoint connection.
2673
- * @param options The options parameters.
2674
- */
2675
- beginDelete(resourceGroupName, accountName, privateEndpointConnectionName, options) {
2676
- return tslib.__awaiter(this, void 0, void 0, function* () {
2677
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2678
- return this.client.sendOperationRequest(args, spec);
2679
- });
2680
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2681
- var _a;
2682
- let currentRawResponse = undefined;
2683
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2684
- const callback = (rawResponse, flatResponse) => {
2685
- currentRawResponse = rawResponse;
2686
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2687
- };
2688
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2689
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2690
- return {
2691
- flatResponse,
2692
- rawResponse: {
2693
- statusCode: currentRawResponse.status,
2694
- body: currentRawResponse.parsedBody,
2695
- headers: currentRawResponse.headers.toJSON()
2696
- }
2697
- };
2698
- });
2699
- const lro = new LroImpl(sendOperation, {
2700
- resourceGroupName,
2701
- accountName,
2702
- privateEndpointConnectionName,
2703
- options
2704
- }, deleteOperationSpec);
2705
- const poller = new coreLro.LroEngine(lro, {
2706
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2707
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2708
- });
2709
- yield poller.poll();
2710
- return poller;
2711
- });
2712
- }
2713
- /**
2714
- * Delete a private endpoint connection
2715
- * @param resourceGroupName The resource group name.
2716
- * @param accountName The name of the account.
2717
- * @param privateEndpointConnectionName Name of the private endpoint connection.
2718
- * @param options The options parameters.
2719
- */
2720
- beginDeleteAndWait(resourceGroupName, accountName, privateEndpointConnectionName, options) {
2721
- return tslib.__awaiter(this, void 0, void 0, function* () {
2722
- const poller = yield this.beginDelete(resourceGroupName, accountName, privateEndpointConnectionName, options);
2723
- return poller.pollUntilDone();
2724
- });
2725
- }
2726
- /**
2727
- * ListByAccountNext
2728
- * @param resourceGroupName The resource group name.
2729
- * @param accountName The name of the account.
2730
- * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
2731
- * @param options The options parameters.
2732
- */
2733
- _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
2734
- return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec$1);
2735
- }
2736
- }
2737
- // Operation Specifications
2738
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2739
- const listByAccountOperationSpec$1 = {
2740
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections",
2741
- httpMethod: "GET",
2742
- responses: {
2743
- 200: {
2744
- bodyMapper: PrivateEndpointConnectionList
2745
- },
2746
- default: {
2747
- bodyMapper: ErrorResponseModel
2748
- }
2749
- },
2750
- queryParameters: [apiVersion, skipToken],
2751
- urlParameters: [
2752
- $host,
2753
- subscriptionId,
2754
- resourceGroupName,
2755
- accountName
2756
- ],
2757
- headerParameters: [accept],
2758
- serializer: serializer$1
2759
- };
2760
- const getOperationSpec = {
2761
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
2762
- httpMethod: "GET",
2763
- responses: {
2764
- 200: {
2765
- bodyMapper: PrivateEndpointConnection
2766
- },
2767
- default: {
2768
- bodyMapper: ErrorResponseModel
2769
- }
2770
- },
2771
- queryParameters: [apiVersion],
2772
- urlParameters: [
2773
- $host,
2774
- subscriptionId,
2775
- resourceGroupName,
2776
- accountName,
2777
- privateEndpointConnectionName
2778
- ],
2779
- headerParameters: [accept],
2780
- serializer: serializer$1
2781
- };
2782
- const createOrUpdateOperationSpec = {
2783
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
2784
- httpMethod: "PUT",
2785
- responses: {
2786
- 200: {
2787
- bodyMapper: PrivateEndpointConnection
2788
- },
2789
- 201: {
2790
- bodyMapper: PrivateEndpointConnection
2791
- },
2792
- 202: {
2793
- bodyMapper: PrivateEndpointConnection
2794
- },
2795
- 204: {
2796
- bodyMapper: PrivateEndpointConnection
2797
- },
2798
- default: {
2799
- bodyMapper: ErrorResponseModel
2800
- }
2801
- },
2802
- requestBody: request,
2803
- queryParameters: [apiVersion],
2804
- urlParameters: [
2805
- $host,
2806
- subscriptionId,
2807
- resourceGroupName,
2808
- accountName,
2809
- privateEndpointConnectionName
2810
- ],
2811
- headerParameters: [accept, contentType],
2812
- mediaType: "json",
2813
- serializer: serializer$1
2814
- };
2815
- const deleteOperationSpec = {
2816
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
2817
- httpMethod: "DELETE",
2818
- responses: {
2819
- 200: {},
2820
- 201: {},
2821
- 202: {},
2822
- 204: {},
2823
- default: {
2824
- bodyMapper: ErrorResponseModel
2825
- }
2826
- },
2827
- queryParameters: [apiVersion],
2828
- urlParameters: [
2829
- $host,
2830
- subscriptionId,
2831
- resourceGroupName,
2832
- accountName,
2833
- privateEndpointConnectionName
2834
- ],
2835
- headerParameters: [accept],
2836
- serializer: serializer$1
2837
- };
2838
- const listByAccountNextOperationSpec$1 = {
2839
- path: "{nextLink}",
2840
- httpMethod: "GET",
2841
- responses: {
2842
- 200: {
2843
- bodyMapper: PrivateEndpointConnectionList
2844
- },
2845
- default: {
2846
- bodyMapper: ErrorResponseModel
2847
- }
2848
- },
2849
- queryParameters: [apiVersion, skipToken],
2850
- urlParameters: [
2851
- $host,
2852
- subscriptionId,
2853
- resourceGroupName,
2854
- accountName,
2855
- nextLink
2856
- ],
2857
- headerParameters: [accept],
2858
- serializer: serializer$1
2859
- };
2860
-
2861
- /*
2862
- * Copyright (c) Microsoft Corporation.
2863
- * Licensed under the MIT License.
2864
- *
2865
- * Code generated by Microsoft (R) AutoRest Code Generator.
2866
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2867
- */
2868
- /// <reference lib="esnext.asynciterable" />
2869
- /** Class containing PrivateLinkResources operations. */
2870
- class PrivateLinkResourcesImpl {
2871
- /**
2872
- * Initialize a new instance of the class PrivateLinkResources class.
2873
- * @param client Reference to the service client
2874
- */
2875
- constructor(client) {
2876
- this.client = client;
2877
- }
2878
- /**
2879
- * Gets a list of privately linkable resources for an account
2880
- * @param resourceGroupName The resource group name.
2881
- * @param accountName The name of the account.
2882
- * @param options The options parameters.
2883
- */
2884
- listByAccount(resourceGroupName, accountName, options) {
2885
- const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
2886
- return {
2887
- next() {
2888
- return iter.next();
2889
- },
2890
- [Symbol.asyncIterator]() {
2891
- return this;
2892
- },
2893
- byPage: (settings) => {
2894
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2895
- throw new Error("maxPageSize is not supported by this operation.");
2896
- }
2897
- return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
2898
- }
2899
- };
2900
- }
2901
- listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
2902
- return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
2903
- let result;
2904
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2905
- if (!continuationToken) {
2906
- result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
2907
- let page = result.value || [];
2908
- continuationToken = result.nextLink;
2909
- setContinuationToken(page, continuationToken);
2910
- yield yield tslib.__await(page);
2911
- }
2912
- while (continuationToken) {
2913
- result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
2914
- continuationToken = result.nextLink;
2915
- let page = result.value || [];
2916
- setContinuationToken(page, continuationToken);
2917
- yield yield tslib.__await(page);
2918
- }
2919
- });
2920
- }
2921
- listByAccountPagingAll(resourceGroupName, accountName, options) {
2922
- return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
2923
- var _a, e_1, _b, _c;
2924
- try {
2925
- for (var _d = true, _e = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2926
- _c = _f.value;
2927
- _d = false;
2928
- const page = _c;
2929
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2930
- }
2931
- }
2932
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2933
- finally {
2934
- try {
2935
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2936
- }
2937
- finally { if (e_1) throw e_1.error; }
2938
- }
2939
- });
2940
- }
2941
- /**
2942
- * Gets a list of privately linkable resources for an account
2943
- * @param resourceGroupName The resource group name.
2944
- * @param accountName The name of the account.
2945
- * @param options The options parameters.
2946
- */
2947
- _listByAccount(resourceGroupName, accountName, options) {
2948
- return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec);
2949
- }
2950
- /**
2951
- * Gets a privately linkable resources for an account with given group identifier
2952
- * @param resourceGroupName The resource group name.
2953
- * @param accountName The name of the account.
2954
- * @param groupId The group identifier.
2955
- * @param options The options parameters.
2956
- */
2957
- getByGroupId(resourceGroupName, accountName, groupId, options) {
2958
- return this.client.sendOperationRequest({ resourceGroupName, accountName, groupId, options }, getByGroupIdOperationSpec);
2959
- }
2960
- /**
2961
- * ListByAccountNext
2962
- * @param resourceGroupName The resource group name.
2963
- * @param accountName The name of the account.
2964
- * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
2965
- * @param options The options parameters.
2966
- */
2967
- _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
2968
- return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec);
2969
- }
2970
- }
2971
- // Operation Specifications
2972
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2973
- const listByAccountOperationSpec = {
2974
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateLinkResources",
2975
- httpMethod: "GET",
2976
- responses: {
2977
- 200: {
2978
- bodyMapper: PrivateLinkResourceList
2979
- },
2980
- default: {
2981
- bodyMapper: ErrorResponseModel
2982
- }
2983
- },
2984
- queryParameters: [apiVersion],
2985
- urlParameters: [
2986
- $host,
2987
- subscriptionId,
2988
- resourceGroupName,
2989
- accountName
2990
- ],
2991
- headerParameters: [accept],
2992
- serializer
2993
- };
2994
- const getByGroupIdOperationSpec = {
2995
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateLinkResources/{groupId}",
2996
- httpMethod: "GET",
2997
- responses: {
2998
- 200: {
2999
- bodyMapper: PrivateLinkResource
3000
- },
3001
- default: {
3002
- bodyMapper: ErrorResponseModel
3003
- }
3004
- },
3005
- queryParameters: [apiVersion],
3006
- urlParameters: [
3007
- $host,
3008
- subscriptionId,
3009
- resourceGroupName,
3010
- accountName,
3011
- groupId
3012
- ],
3013
- headerParameters: [accept],
3014
- serializer
3015
- };
3016
- const listByAccountNextOperationSpec = {
3017
- path: "{nextLink}",
3018
- httpMethod: "GET",
3019
- responses: {
3020
- 200: {
3021
- bodyMapper: PrivateLinkResourceList
3022
- },
3023
- default: {
3024
- bodyMapper: ErrorResponseModel
3025
- }
3026
- },
3027
- queryParameters: [apiVersion],
3028
- urlParameters: [
3029
- $host,
3030
- subscriptionId,
3031
- resourceGroupName,
3032
- accountName,
3033
- nextLink
3034
- ],
3035
- headerParameters: [accept],
3036
- serializer
3037
- };
3038
-
3039
- /*
3040
- * Copyright (c) Microsoft Corporation.
3041
- * Licensed under the MIT License.
3042
- *
3043
- * Code generated by Microsoft (R) AutoRest Code Generator.
3044
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3045
- */
3046
- class PurviewManagementClient extends coreClient__namespace.ServiceClient {
3047
- /**
3048
- * Initializes a new instance of the PurviewManagementClient class.
3049
- * @param credentials Subscription credentials which uniquely identify client subscription.
3050
- * @param subscriptionId The subscription identifier
3051
- * @param options The parameter options
3052
- */
3053
- constructor(credentials, subscriptionId, options) {
3054
- var _a, _b, _c;
3055
- if (credentials === undefined) {
3056
- throw new Error("'credentials' cannot be null");
3057
- }
3058
- if (subscriptionId === undefined) {
3059
- throw new Error("'subscriptionId' cannot be null");
3060
- }
3061
- // Initializing default values for options
3062
- if (!options) {
3063
- options = {};
3064
- }
3065
- const defaults = {
3066
- requestContentType: "application/json; charset=utf-8",
3067
- credential: credentials
3068
- };
3069
- const packageDetails = `azsdk-js-arm-purview/1.1.1`;
3070
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3071
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3072
- : `${packageDetails}`;
3073
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3074
- userAgentPrefix
3075
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3076
- super(optionsWithDefaults);
3077
- let bearerTokenAuthenticationPolicyFound = false;
3078
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3079
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3080
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3081
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3082
- }
3083
- if (!options ||
3084
- !options.pipeline ||
3085
- options.pipeline.getOrderedPolicies().length == 0 ||
3086
- !bearerTokenAuthenticationPolicyFound) {
3087
- this.pipeline.removePolicy({
3088
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3089
- });
3090
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3091
- credential: credentials,
3092
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3093
- challengeCallbacks: {
3094
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3095
- }
3096
- }));
3097
- }
3098
- // Parameter assignments
3099
- this.subscriptionId = subscriptionId;
3100
- // Assigning values to Constant parameters
3101
- this.$host = options.$host || "https://management.azure.com";
3102
- this.apiVersion = options.apiVersion || "2021-07-01";
3103
- this.accounts = new AccountsImpl(this);
3104
- this.defaultAccounts = new DefaultAccountsImpl(this);
3105
- this.operations = new OperationsImpl(this);
3106
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3107
- this.privateLinkResources = new PrivateLinkResourcesImpl(this);
3108
- this.addCustomApiVersionPolicy(options.apiVersion);
3109
- }
3110
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3111
- addCustomApiVersionPolicy(apiVersion) {
3112
- if (!apiVersion) {
3113
- return;
3114
- }
3115
- const apiVersionPolicy = {
3116
- name: "CustomApiVersionPolicy",
3117
- sendRequest(request, next) {
3118
- return tslib.__awaiter(this, void 0, void 0, function* () {
3119
- const param = request.url.split("?");
3120
- if (param.length > 1) {
3121
- const newParams = param[1].split("&").map((item) => {
3122
- if (item.indexOf("api-version") > -1) {
3123
- return "api-version=" + apiVersion;
3124
- }
3125
- else {
3126
- return item;
3127
- }
3128
- });
3129
- request.url = param[0] + "?" + newParams.join("&");
3130
- }
3131
- return next(request);
3132
- });
3133
- }
3134
- };
3135
- this.pipeline.addPolicy(apiVersionPolicy);
3136
- }
3137
- }
3138
-
3139
- exports.PurviewManagementClient = PurviewManagementClient;
3140
- exports.getContinuationToken = getContinuationToken;
3141
- //# sourceMappingURL=index.js.map