@azure/arm-portal 1.0.0-beta.4 → 1.0.0-beta.6

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 (366) hide show
  1. package/CHANGELOG.md +26 -6
  2. package/LICENSE +4 -4
  3. package/README.md +27 -18
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -3
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/models/index.d.ts +17 -17
  9. package/dist/browser/models/index.d.ts.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/mappers.js +15 -6
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/dashboards.d.ts +3 -3
  16. package/dist/browser/operations/dashboards.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/dashboards.js +56 -65
  18. package/dist/browser/operations/dashboards.js.map +1 -0
  19. package/dist/browser/operations/index.d.ts +5 -0
  20. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  21. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
  22. package/dist/browser/operations/index.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/listTenantConfigurationViolations.d.ts +3 -3
  24. package/dist/browser/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operations/listTenantConfigurationViolations.js +30 -34
  26. package/dist/browser/operations/listTenantConfigurationViolations.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  28. package/dist/browser/operations/operations.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/operations.js +30 -34
  30. package/dist/browser/operations/operations.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/tenantConfigurations.d.ts +3 -3
  32. package/dist/browser/operations/tenantConfigurations.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/tenantConfigurations.js +30 -34
  34. package/dist/browser/operations/tenantConfigurations.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operationsInterfaces/dashboards.d.ts +1 -1
  36. package/dist/browser/operationsInterfaces/dashboards.d.ts.map +1 -0
  37. package/dist/browser/operationsInterfaces/dashboards.js.map +1 -0
  38. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  40. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
  41. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/listTenantConfigurationViolations.d.ts +1 -1
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -1
  44. package/dist/browser/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  47. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  48. package/{dist-esm/src → dist/browser}/operationsInterfaces/tenantConfigurations.d.ts +1 -1
  49. package/dist/browser/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/tenantConfigurations.js.map +1 -0
  51. package/dist/browser/package.json +3 -0
  52. package/dist/browser/pagingHelper.d.ts +13 -0
  53. package/dist/browser/pagingHelper.d.ts.map +1 -0
  54. package/dist/browser/pagingHelper.js +30 -0
  55. package/dist/browser/pagingHelper.js.map +1 -0
  56. package/{dist-esm/src → dist/browser}/portal.d.ts +2 -2
  57. package/dist/browser/portal.d.ts.map +1 -0
  58. package/{dist-esm/src → dist/browser}/portal.js +49 -38
  59. package/dist/browser/portal.js.map +1 -0
  60. package/dist/commonjs/index.d.ts +5 -0
  61. package/dist/commonjs/index.d.ts.map +1 -0
  62. package/dist/commonjs/index.js +19 -0
  63. package/dist/commonjs/index.js.map +1 -0
  64. package/dist/commonjs/models/index.d.ts +336 -0
  65. package/dist/commonjs/models/index.d.ts.map +1 -0
  66. package/dist/commonjs/models/index.js +17 -0
  67. package/dist/commonjs/models/index.js.map +1 -0
  68. package/dist/commonjs/models/mappers.d.ts +28 -0
  69. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  70. package/dist/commonjs/models/mappers.js +636 -0
  71. package/dist/commonjs/models/mappers.js.map +1 -0
  72. package/dist/commonjs/models/parameters.d.ts +14 -0
  73. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  74. package/dist/commonjs/models/parameters.js +123 -0
  75. package/dist/commonjs/models/parameters.js.map +1 -0
  76. package/dist/commonjs/operations/dashboards.d.ts +83 -0
  77. package/dist/commonjs/operations/dashboards.d.ts.map +1 -0
  78. package/dist/commonjs/operations/dashboards.js +357 -0
  79. package/dist/commonjs/operations/dashboards.js.map +1 -0
  80. package/dist/commonjs/operations/index.d.ts +5 -0
  81. package/dist/commonjs/operations/index.d.ts.map +1 -0
  82. package/dist/commonjs/operations/index.js +15 -0
  83. package/dist/commonjs/operations/index.js.map +1 -0
  84. package/dist/commonjs/operations/listTenantConfigurationViolations.d.ts +32 -0
  85. package/dist/commonjs/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  86. package/dist/commonjs/operations/listTenantConfigurationViolations.js +121 -0
  87. package/dist/commonjs/operations/listTenantConfigurationViolations.js.map +1 -0
  88. package/dist/commonjs/operations/operations.d.ts +32 -0
  89. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  90. package/dist/commonjs/operations/operations.js +121 -0
  91. package/dist/commonjs/operations/operations.js.map +1 -0
  92. package/dist/commonjs/operations/tenantConfigurations.d.ts +52 -0
  93. package/dist/commonjs/operations/tenantConfigurations.d.ts.map +1 -0
  94. package/dist/commonjs/operations/tenantConfigurations.js +200 -0
  95. package/dist/commonjs/operations/tenantConfigurations.js.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/dashboards.d.ts +47 -0
  97. package/dist/commonjs/operationsInterfaces/dashboards.d.ts.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/dashboards.js +10 -0
  99. package/dist/commonjs/operationsInterfaces/dashboards.js.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  101. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  103. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  105. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  106. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.js +10 -0
  107. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  108. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  109. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  110. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  111. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  113. package/dist/commonjs/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  114. package/dist/commonjs/operationsInterfaces/tenantConfigurations.js +10 -0
  115. package/dist/commonjs/operationsInterfaces/tenantConfigurations.js.map +1 -0
  116. package/dist/commonjs/package.json +3 -0
  117. package/dist/commonjs/pagingHelper.d.ts +13 -0
  118. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  119. package/dist/commonjs/pagingHelper.js +34 -0
  120. package/dist/commonjs/pagingHelper.js.map +1 -0
  121. package/dist/commonjs/portal.d.ts +24 -0
  122. package/dist/commonjs/portal.d.ts.map +1 -0
  123. package/dist/commonjs/portal.js +118 -0
  124. package/dist/commonjs/portal.js.map +1 -0
  125. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  126. package/dist/esm/index.d.ts +5 -0
  127. package/dist/esm/index.d.ts.map +1 -0
  128. package/{src/index.ts → dist/esm/index.js} +5 -4
  129. package/dist/esm/index.js.map +1 -0
  130. package/dist/esm/models/index.d.ts +336 -0
  131. package/dist/esm/models/index.d.ts.map +1 -0
  132. package/dist/esm/models/index.js +14 -0
  133. package/dist/esm/models/index.js.map +1 -0
  134. package/dist/esm/models/mappers.d.ts +28 -0
  135. package/dist/esm/models/mappers.d.ts.map +1 -0
  136. package/dist/esm/models/mappers.js +633 -0
  137. package/dist/esm/models/mappers.js.map +1 -0
  138. package/dist/esm/models/parameters.d.ts +14 -0
  139. package/dist/esm/models/parameters.d.ts.map +1 -0
  140. package/dist/esm/models/parameters.js +120 -0
  141. package/dist/esm/models/parameters.js.map +1 -0
  142. package/dist/esm/operations/dashboards.d.ts +83 -0
  143. package/dist/esm/operations/dashboards.d.ts.map +1 -0
  144. package/dist/esm/operations/dashboards.js +352 -0
  145. package/dist/esm/operations/dashboards.js.map +1 -0
  146. package/dist/esm/operations/index.d.ts +5 -0
  147. package/dist/esm/operations/index.d.ts.map +1 -0
  148. package/dist/esm/operations/index.js +12 -0
  149. package/dist/esm/operations/index.js.map +1 -0
  150. package/dist/esm/operations/listTenantConfigurationViolations.d.ts +32 -0
  151. package/dist/esm/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  152. package/dist/esm/operations/listTenantConfigurationViolations.js +116 -0
  153. package/dist/esm/operations/listTenantConfigurationViolations.js.map +1 -0
  154. package/dist/esm/operations/operations.d.ts +32 -0
  155. package/dist/esm/operations/operations.d.ts.map +1 -0
  156. package/dist/esm/operations/operations.js +116 -0
  157. package/dist/esm/operations/operations.js.map +1 -0
  158. package/dist/esm/operations/tenantConfigurations.d.ts +52 -0
  159. package/dist/esm/operations/tenantConfigurations.d.ts.map +1 -0
  160. package/dist/esm/operations/tenantConfigurations.js +195 -0
  161. package/dist/esm/operations/tenantConfigurations.js.map +1 -0
  162. package/dist/esm/operationsInterfaces/dashboards.d.ts +47 -0
  163. package/dist/esm/operationsInterfaces/dashboards.d.ts.map +1 -0
  164. package/dist/esm/operationsInterfaces/dashboards.js +9 -0
  165. package/dist/esm/operationsInterfaces/dashboards.js.map +1 -0
  166. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  167. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  168. package/dist/esm/operationsInterfaces/index.js +12 -0
  169. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  170. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  171. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  172. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  173. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  174. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  175. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  176. package/dist/esm/operationsInterfaces/operations.js +9 -0
  177. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  178. package/dist/esm/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  179. package/dist/esm/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  180. package/dist/esm/operationsInterfaces/tenantConfigurations.js +9 -0
  181. package/dist/esm/operationsInterfaces/tenantConfigurations.js.map +1 -0
  182. package/dist/esm/package.json +3 -0
  183. package/dist/esm/pagingHelper.d.ts +13 -0
  184. package/dist/esm/pagingHelper.d.ts.map +1 -0
  185. package/dist/esm/pagingHelper.js +30 -0
  186. package/dist/esm/pagingHelper.js.map +1 -0
  187. package/dist/esm/portal.d.ts +24 -0
  188. package/dist/esm/portal.d.ts.map +1 -0
  189. package/dist/esm/portal.js +113 -0
  190. package/dist/esm/portal.js.map +1 -0
  191. package/dist/react-native/index.d.ts +5 -0
  192. package/dist/react-native/index.d.ts.map +1 -0
  193. package/dist/react-native/index.js +13 -0
  194. package/dist/react-native/index.js.map +1 -0
  195. package/dist/react-native/models/index.d.ts +336 -0
  196. package/dist/react-native/models/index.d.ts.map +1 -0
  197. package/dist/react-native/models/index.js +14 -0
  198. package/dist/react-native/models/index.js.map +1 -0
  199. package/dist/react-native/models/mappers.d.ts +28 -0
  200. package/dist/react-native/models/mappers.d.ts.map +1 -0
  201. package/dist/react-native/models/mappers.js +633 -0
  202. package/dist/react-native/models/mappers.js.map +1 -0
  203. package/dist/react-native/models/parameters.d.ts +14 -0
  204. package/dist/react-native/models/parameters.d.ts.map +1 -0
  205. package/dist/react-native/models/parameters.js +120 -0
  206. package/dist/react-native/models/parameters.js.map +1 -0
  207. package/dist/react-native/operations/dashboards.d.ts +83 -0
  208. package/dist/react-native/operations/dashboards.d.ts.map +1 -0
  209. package/dist/react-native/operations/dashboards.js +352 -0
  210. package/dist/react-native/operations/dashboards.js.map +1 -0
  211. package/dist/react-native/operations/index.d.ts +5 -0
  212. package/dist/react-native/operations/index.d.ts.map +1 -0
  213. package/dist/react-native/operations/index.js +12 -0
  214. package/dist/react-native/operations/index.js.map +1 -0
  215. package/dist/react-native/operations/listTenantConfigurationViolations.d.ts +32 -0
  216. package/dist/react-native/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  217. package/dist/react-native/operations/listTenantConfigurationViolations.js +116 -0
  218. package/dist/react-native/operations/listTenantConfigurationViolations.js.map +1 -0
  219. package/dist/react-native/operations/operations.d.ts +32 -0
  220. package/dist/react-native/operations/operations.d.ts.map +1 -0
  221. package/dist/react-native/operations/operations.js +116 -0
  222. package/dist/react-native/operations/operations.js.map +1 -0
  223. package/dist/react-native/operations/tenantConfigurations.d.ts +52 -0
  224. package/dist/react-native/operations/tenantConfigurations.d.ts.map +1 -0
  225. package/dist/react-native/operations/tenantConfigurations.js +195 -0
  226. package/dist/react-native/operations/tenantConfigurations.js.map +1 -0
  227. package/dist/react-native/operationsInterfaces/dashboards.d.ts +47 -0
  228. package/dist/react-native/operationsInterfaces/dashboards.d.ts.map +1 -0
  229. package/dist/react-native/operationsInterfaces/dashboards.js +9 -0
  230. package/dist/react-native/operationsInterfaces/dashboards.js.map +1 -0
  231. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  232. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  233. package/dist/react-native/operationsInterfaces/index.js +12 -0
  234. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  235. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  236. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  237. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  238. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  239. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  240. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  241. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  242. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  243. package/dist/react-native/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  244. package/dist/react-native/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  245. package/dist/react-native/operationsInterfaces/tenantConfigurations.js +9 -0
  246. package/dist/react-native/operationsInterfaces/tenantConfigurations.js.map +1 -0
  247. package/dist/react-native/package.json +3 -0
  248. package/dist/react-native/pagingHelper.d.ts +13 -0
  249. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  250. package/dist/react-native/pagingHelper.js +30 -0
  251. package/dist/react-native/pagingHelper.js.map +1 -0
  252. package/dist/react-native/portal.d.ts +24 -0
  253. package/dist/react-native/portal.d.ts.map +1 -0
  254. package/dist/react-native/portal.js +113 -0
  255. package/dist/react-native/portal.js.map +1 -0
  256. package/package.json +87 -76
  257. package/review/{arm-portal.api.md → arm-portal-node.api.md} +3 -0
  258. package/dist/index.js +0 -1697
  259. package/dist/index.js.map +0 -1
  260. package/dist/index.min.js +0 -1
  261. package/dist/index.min.js.map +0 -1
  262. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts +0 -2
  263. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js +0 -46
  265. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js.map +0 -1
  266. package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts +0 -2
  267. package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts.map +0 -1
  268. package/dist-esm/samples-dev/dashboardsDeleteSample.js +0 -31
  269. package/dist-esm/samples-dev/dashboardsDeleteSample.js.map +0 -1
  270. package/dist-esm/samples-dev/dashboardsGetSample.d.ts +0 -2
  271. package/dist-esm/samples-dev/dashboardsGetSample.d.ts.map +0 -1
  272. package/dist-esm/samples-dev/dashboardsGetSample.js +0 -31
  273. package/dist-esm/samples-dev/dashboardsGetSample.js.map +0 -1
  274. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts +0 -2
  275. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts.map +0 -1
  276. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js +0 -44
  277. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js.map +0 -1
  278. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts +0 -2
  279. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts.map +0 -1
  280. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js +0 -43
  281. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js.map +0 -1
  282. package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts +0 -2
  283. package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts.map +0 -1
  284. package/dist-esm/samples-dev/dashboardsUpdateSample.js +0 -34
  285. package/dist-esm/samples-dev/dashboardsUpdateSample.js.map +0 -1
  286. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts +0 -2
  287. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts.map +0 -1
  288. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js +0 -43
  289. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js.map +0 -1
  290. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  291. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  292. package/dist-esm/samples-dev/operationsListSample.js +0 -43
  293. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  294. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts +0 -2
  295. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts.map +0 -1
  296. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js +0 -33
  297. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js.map +0 -1
  298. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts +0 -2
  299. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts.map +0 -1
  300. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js +0 -30
  301. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js.map +0 -1
  302. package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts +0 -2
  303. package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts.map +0 -1
  304. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js +0 -30
  305. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js.map +0 -1
  306. package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts +0 -2
  307. package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts.map +0 -1
  308. package/dist-esm/samples-dev/tenantConfigurationsListSample.js +0 -43
  309. package/dist-esm/samples-dev/tenantConfigurationsListSample.js.map +0 -1
  310. package/dist-esm/src/index.d.ts +0 -5
  311. package/dist-esm/src/index.d.ts.map +0 -1
  312. package/dist-esm/src/index.js.map +0 -1
  313. package/dist-esm/src/models/index.d.ts.map +0 -1
  314. package/dist-esm/src/models/index.js.map +0 -1
  315. package/dist-esm/src/models/mappers.js.map +0 -1
  316. package/dist-esm/src/models/parameters.js.map +0 -1
  317. package/dist-esm/src/operations/dashboards.d.ts.map +0 -1
  318. package/dist-esm/src/operations/dashboards.js.map +0 -1
  319. package/dist-esm/src/operations/index.d.ts +0 -5
  320. package/dist-esm/src/operations/index.js.map +0 -1
  321. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +0 -1
  322. package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +0 -1
  323. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  324. package/dist-esm/src/operations/operations.js.map +0 -1
  325. package/dist-esm/src/operations/tenantConfigurations.d.ts.map +0 -1
  326. package/dist-esm/src/operations/tenantConfigurations.js.map +0 -1
  327. package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +0 -1
  328. package/dist-esm/src/operationsInterfaces/dashboards.js.map +0 -1
  329. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  330. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  331. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js.map +0 -1
  332. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  333. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +0 -1
  334. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +0 -1
  335. package/dist-esm/src/portal.d.ts.map +0 -1
  336. package/dist-esm/src/portal.js.map +0 -1
  337. package/dist-esm/test/sampleTest.d.ts +0 -2
  338. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  339. package/dist-esm/test/sampleTest.js +0 -38
  340. package/dist-esm/test/sampleTest.js.map +0 -1
  341. package/rollup.config.js +0 -122
  342. package/src/models/index.ts +0 -390
  343. package/src/models/mappers.ts +0 -658
  344. package/src/models/parameters.ts +0 -141
  345. package/src/operations/dashboards.ts +0 -451
  346. package/src/operations/index.ts +0 -12
  347. package/src/operations/listTenantConfigurationViolations.ts +0 -138
  348. package/src/operations/operations.ts +0 -137
  349. package/src/operations/tenantConfigurations.ts +0 -244
  350. package/src/operationsInterfaces/dashboards.ts +0 -91
  351. package/src/operationsInterfaces/index.ts +0 -12
  352. package/src/operationsInterfaces/listTenantConfigurationViolations.ts +0 -25
  353. package/src/operationsInterfaces/operations.ts +0 -25
  354. package/src/operationsInterfaces/tenantConfigurations.ts +0 -61
  355. package/src/portal.ts +0 -153
  356. package/tsconfig.json +0 -33
  357. package/types/arm-portal.d.ts +0 -509
  358. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  359. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  360. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  361. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  362. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  363. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dashboards.js +0 -0
  364. /package/{dist-esm/src → dist/browser}/operationsInterfaces/listTenantConfigurationViolations.js +0 -0
  365. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  366. /package/{dist-esm/src → dist/browser}/operationsInterfaces/tenantConfigurations.js +0 -0
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./dashboards.js"), exports);
13
+ tslib_1.__exportStar(require("./tenantConfigurations.js"), exports);
14
+ tslib_1.__exportStar(require("./listTenantConfigurationViolations.js"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,0DAAgC;AAChC,oEAA0C;AAC1C,iFAAuD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./dashboards.js\";\nexport * from \"./tenantConfigurations.js\";\nexport * from \"./listTenantConfigurationViolations.js\";\n"]}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ListTenantConfigurationViolations } from "../operationsInterfaces/index.js";
3
+ import { Portal } from "../portal.js";
4
+ import { Violation, ListTenantConfigurationViolationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing ListTenantConfigurationViolations operations. */
6
+ export declare class ListTenantConfigurationViolationsImpl implements ListTenantConfigurationViolations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ListTenantConfigurationViolations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: Portal);
13
+ /**
14
+ * Gets list of items that violate tenant's configuration.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: ListTenantConfigurationViolationsListOptionalParams): PagedAsyncIterableIterator<Violation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets list of items that violate tenant's configuration.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=listTenantConfigurationViolations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTenantConfigurationViolations.d.ts","sourceRoot":"","sources":["../../../src/operations/listTenantConfigurationViolations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAIrF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,SAAS,EAET,mDAAmD,EAGpD,MAAM,oBAAoB,CAAC;AAG5B,qEAAqE;AACrE,qBAAa,qCACX,YAAW,iCAAiC;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ListTenantConfigurationViolationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing ListTenantConfigurationViolations operations. */
18
+ class ListTenantConfigurationViolationsImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class ListTenantConfigurationViolations class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * Gets list of items that violate tenant's configuration.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings?.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+ /**
72
+ * Gets list of items that violate tenant's configuration.
73
+ * @param options The options parameters.
74
+ */
75
+ _list(options) {
76
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
77
+ }
78
+ /**
79
+ * ListNext
80
+ * @param nextLink The nextLink from the previous successful call to the List method.
81
+ * @param options The options parameters.
82
+ */
83
+ _listNext(nextLink, options) {
84
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
85
+ }
86
+ }
87
+ exports.ListTenantConfigurationViolationsImpl = ListTenantConfigurationViolationsImpl;
88
+ // Operation Specifications
89
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
90
+ const listOperationSpec = {
91
+ path: "/providers/Microsoft.Portal/listTenantConfigurationViolations",
92
+ httpMethod: "POST",
93
+ responses: {
94
+ 200: {
95
+ bodyMapper: Mappers.ViolationsList
96
+ },
97
+ default: {
98
+ bodyMapper: Mappers.ErrorResponse
99
+ }
100
+ },
101
+ queryParameters: [Parameters.apiVersion],
102
+ urlParameters: [Parameters.$host],
103
+ headerParameters: [Parameters.accept],
104
+ serializer
105
+ };
106
+ const listNextOperationSpec = {
107
+ path: "{nextLink}",
108
+ httpMethod: "GET",
109
+ responses: {
110
+ 200: {
111
+ bodyMapper: Mappers.ViolationsList
112
+ },
113
+ default: {
114
+ bodyMapper: Mappers.ErrorResponse
115
+ }
116
+ },
117
+ urlParameters: [Parameters.$host, Parameters.nextLink],
118
+ headerParameters: [Parameters.accept],
119
+ serializer
120
+ };
121
+ //# sourceMappingURL=listTenantConfigurationViolations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTenantConfigurationViolations.js","sourceRoot":"","sources":["../../../src/operations/listTenantConfigurationViolations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,qEAAqE;AACrE,MAAa,qCAAqC;IAE/B,MAAM,CAAS;IAEhC;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA6D;QAE7D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,C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,EAChB,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AA1FD,sFA0FC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,+DAA+D;IACrE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ListTenantConfigurationViolations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { Portal } from \"../portal.js\";\nimport {\n Violation,\n ListTenantConfigurationViolationsListNextOptionalParams,\n ListTenantConfigurationViolationsListOptionalParams,\n ListTenantConfigurationViolationsListResponse,\n ListTenantConfigurationViolationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ListTenantConfigurationViolations operations. */\nexport class ListTenantConfigurationViolationsImpl\n implements ListTenantConfigurationViolations {\n private readonly client: Portal;\n\n /**\n * Initialize a new instance of the class ListTenantConfigurationViolations class.\n * @param client Reference to the service client\n */\n constructor(client: Portal) {\n this.client = client;\n }\n\n /**\n * Gets list of items that violate tenant's configuration.\n * @param options The options parameters.\n */\n public list(\n options?: ListTenantConfigurationViolationsListOptionalParams\n ): PagedAsyncIterableIterator<Violation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ListTenantConfigurationViolationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Violation[]> {\n let result: ListTenantConfigurationViolationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ListTenantConfigurationViolationsListOptionalParams\n ): AsyncIterableIterator<Violation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets list of items that violate tenant's configuration.\n * @param options The options parameters.\n */\n private _list(\n options?: ListTenantConfigurationViolationsListOptionalParams\n ): Promise<ListTenantConfigurationViolationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ListTenantConfigurationViolationsListNextOptionalParams\n ): Promise<ListTenantConfigurationViolationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Portal/listTenantConfigurationViolations\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViolationsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ViolationsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { Portal } from "../portal.js";
4
+ import { ResourceProviderOperation, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: Portal);
13
+ /**
14
+ * The Microsoft Portal operations API.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * The Microsoft Portal operations API.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,yBAAyB,EAEzB,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,yBAAyB,CAAC;YAkBzC,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.OperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Operations operations. */
18
+ class OperationsImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class Operations class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * The Microsoft Portal operations API.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings?.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+ /**
72
+ * The Microsoft Portal operations API.
73
+ * @param options The options parameters.
74
+ */
75
+ _list(options) {
76
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
77
+ }
78
+ /**
79
+ * ListNext
80
+ * @param nextLink The nextLink from the previous successful call to the List method.
81
+ * @param options The options parameters.
82
+ */
83
+ _listNext(nextLink, options) {
84
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
85
+ }
86
+ }
87
+ exports.OperationsImpl = OperationsImpl;
88
+ // Operation Specifications
89
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
90
+ const listOperationSpec = {
91
+ path: "/providers/Microsoft.Portal/operations",
92
+ httpMethod: "GET",
93
+ responses: {
94
+ 200: {
95
+ bodyMapper: Mappers.ResourceProviderOperationList
96
+ },
97
+ default: {
98
+ bodyMapper: Mappers.ErrorResponse
99
+ }
100
+ },
101
+ queryParameters: [Parameters.apiVersion],
102
+ urlParameters: [Parameters.$host],
103
+ headerParameters: [Parameters.accept],
104
+ serializer
105
+ };
106
+ const listNextOperationSpec = {
107
+ path: "{nextLink}",
108
+ httpMethod: "GET",
109
+ responses: {
110
+ 200: {
111
+ bodyMapper: Mappers.ResourceProviderOperationList
112
+ },
113
+ default: {
114
+ bodyMapper: Mappers.ErrorResponse
115
+ }
116
+ },
117
+ urlParameters: [Parameters.$host, Parameters.nextLink],
118
+ headerParameters: [Parameters.accept],
119
+ serializer
120
+ };
121
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAS;IAEhC;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,C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AAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { Portal } from \"../portal.js\";\nimport {\n ResourceProviderOperation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: Portal;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: Portal) {\n this.client = client;\n }\n\n /**\n * The Microsoft Portal operations API.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceProviderOperation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<ResourceProviderOperation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * The Microsoft Portal operations API.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Portal/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,52 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { TenantConfigurations } from "../operationsInterfaces/index.js";
3
+ import { Portal } from "../portal.js";
4
+ import { Configuration, TenantConfigurationsListOptionalParams, ConfigurationName, TenantConfigurationsGetOptionalParams, TenantConfigurationsGetResponse, TenantConfigurationsCreateOptionalParams, TenantConfigurationsCreateResponse, TenantConfigurationsDeleteOptionalParams } from "../models/index.js";
5
+ /** Class containing TenantConfigurations operations. */
6
+ export declare class TenantConfigurationsImpl implements TenantConfigurations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class TenantConfigurations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: Portal);
13
+ /**
14
+ * Gets list of the tenant configurations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: TenantConfigurationsListOptionalParams): PagedAsyncIterableIterator<Configuration>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets list of the tenant configurations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * Gets the tenant configuration.
27
+ * @param configurationName The configuration name. Value must be 'default'
28
+ * @param options The options parameters.
29
+ */
30
+ get(configurationName: ConfigurationName, options?: TenantConfigurationsGetOptionalParams): Promise<TenantConfigurationsGetResponse>;
31
+ /**
32
+ * Create the tenant configuration. If configuration already exists - update it. User has to be a
33
+ * Tenant Admin for this operation.
34
+ * @param configurationName The configuration name. Value must be 'default'
35
+ * @param tenantConfiguration The parameters required to create or update tenant configuration.
36
+ * @param options The options parameters.
37
+ */
38
+ create(configurationName: ConfigurationName, tenantConfiguration: Configuration, options?: TenantConfigurationsCreateOptionalParams): Promise<TenantConfigurationsCreateResponse>;
39
+ /**
40
+ * Delete the tenant configuration. User has to be a Tenant Admin for this operation.
41
+ * @param configurationName The configuration name. Value must be 'default'
42
+ * @param options The options parameters.
43
+ */
44
+ delete(configurationName: ConfigurationName, options?: TenantConfigurationsDeleteOptionalParams): Promise<void>;
45
+ /**
46
+ * ListNext
47
+ * @param nextLink The nextLink from the previous successful call to the List method.
48
+ * @param options The options parameters.
49
+ */
50
+ private _listNext;
51
+ }
52
+ //# sourceMappingURL=tenantConfigurations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurations.d.ts","sourceRoot":"","sources":["../../../src/operations/tenantConfigurations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,aAAa,EAEb,sCAAsC,EAEtC,iBAAiB,EACjB,qCAAqC,EACrC,+BAA+B,EAC/B,wCAAwC,EACxC,kCAAkC,EAClC,wCAAwC,EAEzC,MAAM,oBAAoB,CAAC;AAG5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,aAAa,CAAC;YAkB7B,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,aAAa,EAClC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C;;;;OAIG;IACH,MAAM,CACJ,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.TenantConfigurationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing TenantConfigurations operations. */
18
+ class TenantConfigurationsImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class TenantConfigurations class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * Gets list of the tenant configurations.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings?.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+ /**
72
+ * Gets list of the tenant configurations.
73
+ * @param options The options parameters.
74
+ */
75
+ _list(options) {
76
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
77
+ }
78
+ /**
79
+ * Gets the tenant configuration.
80
+ * @param configurationName The configuration name. Value must be 'default'
81
+ * @param options The options parameters.
82
+ */
83
+ get(configurationName, options) {
84
+ return this.client.sendOperationRequest({ configurationName, options }, getOperationSpec);
85
+ }
86
+ /**
87
+ * Create the tenant configuration. If configuration already exists - update it. User has to be a
88
+ * Tenant Admin for this operation.
89
+ * @param configurationName The configuration name. Value must be 'default'
90
+ * @param tenantConfiguration The parameters required to create or update tenant configuration.
91
+ * @param options The options parameters.
92
+ */
93
+ create(configurationName, tenantConfiguration, options) {
94
+ return this.client.sendOperationRequest({ configurationName, tenantConfiguration, options }, createOperationSpec);
95
+ }
96
+ /**
97
+ * Delete the tenant configuration. User has to be a Tenant Admin for this operation.
98
+ * @param configurationName The configuration name. Value must be 'default'
99
+ * @param options The options parameters.
100
+ */
101
+ delete(configurationName, options) {
102
+ return this.client.sendOperationRequest({ configurationName, options }, deleteOperationSpec);
103
+ }
104
+ /**
105
+ * ListNext
106
+ * @param nextLink The nextLink from the previous successful call to the List method.
107
+ * @param options The options parameters.
108
+ */
109
+ _listNext(nextLink, options) {
110
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
111
+ }
112
+ }
113
+ exports.TenantConfigurationsImpl = TenantConfigurationsImpl;
114
+ // Operation Specifications
115
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
116
+ const listOperationSpec = {
117
+ path: "/providers/Microsoft.Portal/tenantConfigurations",
118
+ httpMethod: "GET",
119
+ responses: {
120
+ 200: {
121
+ bodyMapper: Mappers.ConfigurationList
122
+ },
123
+ default: {
124
+ bodyMapper: Mappers.ErrorResponse
125
+ }
126
+ },
127
+ queryParameters: [Parameters.apiVersion],
128
+ urlParameters: [Parameters.$host],
129
+ headerParameters: [Parameters.accept],
130
+ serializer
131
+ };
132
+ const getOperationSpec = {
133
+ path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
134
+ httpMethod: "GET",
135
+ responses: {
136
+ 200: {
137
+ bodyMapper: Mappers.Configuration
138
+ },
139
+ 404: {},
140
+ default: {
141
+ bodyMapper: Mappers.ErrorResponse
142
+ }
143
+ },
144
+ queryParameters: [Parameters.apiVersion],
145
+ urlParameters: [Parameters.$host, Parameters.configurationName],
146
+ headerParameters: [Parameters.accept],
147
+ serializer
148
+ };
149
+ const createOperationSpec = {
150
+ path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
151
+ httpMethod: "PUT",
152
+ responses: {
153
+ 200: {
154
+ bodyMapper: Mappers.Configuration
155
+ },
156
+ 201: {
157
+ bodyMapper: Mappers.Configuration
158
+ },
159
+ default: {
160
+ bodyMapper: Mappers.ErrorResponse
161
+ }
162
+ },
163
+ requestBody: Parameters.tenantConfiguration,
164
+ queryParameters: [Parameters.apiVersion],
165
+ urlParameters: [Parameters.$host, Parameters.configurationName],
166
+ headerParameters: [Parameters.accept, Parameters.contentType],
167
+ mediaType: "json",
168
+ serializer
169
+ };
170
+ const deleteOperationSpec = {
171
+ path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
172
+ httpMethod: "DELETE",
173
+ responses: {
174
+ 200: {},
175
+ 204: {},
176
+ default: {
177
+ bodyMapper: Mappers.ErrorResponse
178
+ }
179
+ },
180
+ queryParameters: [Parameters.apiVersion],
181
+ urlParameters: [Parameters.$host, Parameters.configurationName],
182
+ headerParameters: [Parameters.accept],
183
+ serializer
184
+ };
185
+ const listNextOperationSpec = {
186
+ path: "{nextLink}",
187
+ httpMethod: "GET",
188
+ responses: {
189
+ 200: {
190
+ bodyMapper: Mappers.ConfigurationList
191
+ },
192
+ default: {
193
+ bodyMapper: Mappers.ErrorResponse
194
+ }
195
+ },
196
+ urlParameters: [Parameters.$host, Parameters.nextLink],
197
+ headerParameters: [Parameters.accept],
198
+ serializer
199
+ };
200
+ //# sourceMappingURL=tenantConfigurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurations.js","sourceRoot":"","sources":["../../../src/operations/tenantConfigurations.ts"],"names":[],"mappings":";AAAA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EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,mBAAmB;IAC3C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,sEAAsE;IAC5E,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TenantConfigurations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { Portal } from \"../portal.js\";\nimport {\n Configuration,\n TenantConfigurationsListNextOptionalParams,\n TenantConfigurationsListOptionalParams,\n TenantConfigurationsListResponse,\n ConfigurationName,\n TenantConfigurationsGetOptionalParams,\n TenantConfigurationsGetResponse,\n TenantConfigurationsCreateOptionalParams,\n TenantConfigurationsCreateResponse,\n TenantConfigurationsDeleteOptionalParams,\n TenantConfigurationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TenantConfigurations operations. */\nexport class TenantConfigurationsImpl implements TenantConfigurations {\n private readonly client: Portal;\n\n /**\n * Initialize a new instance of the class TenantConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: Portal) {\n this.client = client;\n }\n\n /**\n * Gets list of the tenant configurations.\n * @param options The options parameters.\n */\n public list(\n options?: TenantConfigurationsListOptionalParams\n ): PagedAsyncIterableIterator<Configuration> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: TenantConfigurationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Configuration[]> {\n let result: TenantConfigurationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: TenantConfigurationsListOptionalParams\n ): AsyncIterableIterator<Configuration> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets list of the tenant configurations.\n * @param options The options parameters.\n */\n private _list(\n options?: TenantConfigurationsListOptionalParams\n ): Promise<TenantConfigurationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets the tenant configuration.\n * @param configurationName The configuration name. Value must be 'default'\n * @param options The options parameters.\n */\n get(\n configurationName: ConfigurationName,\n options?: TenantConfigurationsGetOptionalParams\n ): Promise<TenantConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { configurationName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create the tenant configuration. If configuration already exists - update it. User has to be a\n * Tenant Admin for this operation.\n * @param configurationName The configuration name. Value must be 'default'\n * @param tenantConfiguration The parameters required to create or update tenant configuration.\n * @param options The options parameters.\n */\n create(\n configurationName: ConfigurationName,\n tenantConfiguration: Configuration,\n options?: TenantConfigurationsCreateOptionalParams\n ): Promise<TenantConfigurationsCreateResponse> {\n return this.client.sendOperationRequest(\n { configurationName, tenantConfiguration, options },\n createOperationSpec\n );\n }\n\n /**\n * Delete the tenant configuration. User has to be a Tenant Admin for this operation.\n * @param configurationName The configuration name. Value must be 'default'\n * @param options The options parameters.\n */\n delete(\n configurationName: ConfigurationName,\n options?: TenantConfigurationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { configurationName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: TenantConfigurationsListNextOptionalParams\n ): Promise<TenantConfigurationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Portal/tenantConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Portal/tenantConfigurations/{configurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Configuration\n },\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.configurationName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Portal/tenantConfigurations/{configurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Configuration\n },\n 201: {\n bodyMapper: Mappers.Configuration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.tenantConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.configurationName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Portal/tenantConfigurations/{configurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.configurationName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}