@azure/arm-portal 1.0.0-alpha.20250217.1 → 1.0.0-alpha.20250219.1

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 (362) 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/models/index.js.map +1 -0
  7. package/dist/browser/models/mappers.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  9. package/dist/browser/models/parameters.js.map +1 -0
  10. package/{dist-esm/src → dist/browser}/operations/dashboards.d.ts +3 -3
  11. package/dist/browser/operations/dashboards.d.ts.map +1 -0
  12. package/{dist-esm/src → dist/browser}/operations/dashboards.js +3 -3
  13. package/dist/browser/operations/dashboards.js.map +1 -0
  14. package/dist/browser/operations/index.d.ts +5 -0
  15. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  16. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
  17. package/dist/browser/operations/index.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/listTenantConfigurationViolations.d.ts +3 -3
  19. package/dist/browser/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/listTenantConfigurationViolations.js +3 -3
  21. package/dist/browser/operations/listTenantConfigurationViolations.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  23. package/dist/browser/operations/operations.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  25. package/dist/browser/operations/operations.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/tenantConfigurations.d.ts +3 -3
  27. package/dist/browser/operations/tenantConfigurations.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/tenantConfigurations.js +3 -3
  29. package/dist/browser/operations/tenantConfigurations.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operationsInterfaces/dashboards.d.ts +1 -1
  31. package/dist/browser/operationsInterfaces/dashboards.d.ts.map +1 -0
  32. package/dist/browser/operationsInterfaces/dashboards.js.map +1 -0
  33. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  35. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
  36. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/listTenantConfigurationViolations.d.ts +1 -1
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -1
  39. package/dist/browser/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  41. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  42. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/tenantConfigurations.d.ts +1 -1
  44. package/dist/browser/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  45. package/dist/browser/operationsInterfaces/tenantConfigurations.js.map +1 -0
  46. package/dist/browser/package.json +3 -0
  47. package/dist/browser/pagingHelper.js.map +1 -0
  48. package/{dist-esm/src → dist/browser}/portal.d.ts +2 -2
  49. package/dist/browser/portal.d.ts.map +1 -0
  50. package/{dist-esm/src → dist/browser}/portal.js +15 -18
  51. package/dist/browser/portal.js.map +1 -0
  52. package/dist/commonjs/index.d.ts +5 -0
  53. package/dist/commonjs/index.d.ts.map +1 -0
  54. package/dist/commonjs/index.js +19 -0
  55. package/dist/commonjs/index.js.map +1 -0
  56. package/dist/commonjs/models/index.d.ts +336 -0
  57. package/dist/commonjs/models/index.d.ts.map +1 -0
  58. package/dist/commonjs/models/index.js +17 -0
  59. package/dist/commonjs/models/index.js.map +1 -0
  60. package/dist/commonjs/models/mappers.d.ts +28 -0
  61. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  62. package/dist/commonjs/models/mappers.js +627 -0
  63. package/dist/commonjs/models/mappers.js.map +1 -0
  64. package/dist/commonjs/models/parameters.d.ts +14 -0
  65. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  66. package/dist/commonjs/models/parameters.js +123 -0
  67. package/dist/commonjs/models/parameters.js.map +1 -0
  68. package/dist/commonjs/operations/dashboards.d.ts +83 -0
  69. package/dist/commonjs/operations/dashboards.d.ts.map +1 -0
  70. package/dist/commonjs/operations/dashboards.js +390 -0
  71. package/dist/commonjs/operations/dashboards.js.map +1 -0
  72. package/dist/commonjs/operations/index.d.ts +5 -0
  73. package/dist/commonjs/operations/index.d.ts.map +1 -0
  74. package/dist/commonjs/operations/index.js +15 -0
  75. package/dist/commonjs/operations/index.js.map +1 -0
  76. package/dist/commonjs/operations/listTenantConfigurationViolations.d.ts +32 -0
  77. package/dist/commonjs/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  78. package/dist/commonjs/operations/listTenantConfigurationViolations.js +137 -0
  79. package/dist/commonjs/operations/listTenantConfigurationViolations.js.map +1 -0
  80. package/dist/commonjs/operations/operations.d.ts +32 -0
  81. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  82. package/dist/commonjs/operations/operations.js +137 -0
  83. package/dist/commonjs/operations/operations.js.map +1 -0
  84. package/dist/commonjs/operations/tenantConfigurations.d.ts +52 -0
  85. package/dist/commonjs/operations/tenantConfigurations.d.ts.map +1 -0
  86. package/dist/commonjs/operations/tenantConfigurations.js +216 -0
  87. package/dist/commonjs/operations/tenantConfigurations.js.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/dashboards.d.ts +47 -0
  89. package/dist/commonjs/operationsInterfaces/dashboards.d.ts.map +1 -0
  90. package/dist/commonjs/operationsInterfaces/dashboards.js +10 -0
  91. package/dist/commonjs/operationsInterfaces/dashboards.js.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  93. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  95. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  97. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.js +10 -0
  99. package/dist/commonjs/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  103. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  105. package/dist/commonjs/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  106. package/dist/commonjs/operationsInterfaces/tenantConfigurations.js +10 -0
  107. package/dist/commonjs/operationsInterfaces/tenantConfigurations.js.map +1 -0
  108. package/dist/commonjs/package.json +3 -0
  109. package/dist/commonjs/pagingHelper.d.ts +13 -0
  110. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  111. package/dist/commonjs/pagingHelper.js +36 -0
  112. package/dist/commonjs/pagingHelper.js.map +1 -0
  113. package/dist/commonjs/portal.d.ts +24 -0
  114. package/dist/commonjs/portal.d.ts.map +1 -0
  115. package/dist/commonjs/portal.js +106 -0
  116. package/dist/commonjs/portal.js.map +1 -0
  117. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  118. package/dist/esm/index.d.ts +5 -0
  119. package/dist/esm/index.d.ts.map +1 -0
  120. package/{src/index.ts → dist/esm/index.js} +5 -5
  121. package/dist/esm/index.js.map +1 -0
  122. package/dist/esm/models/index.d.ts +336 -0
  123. package/dist/esm/models/index.d.ts.map +1 -0
  124. package/dist/esm/models/index.js +14 -0
  125. package/dist/esm/models/index.js.map +1 -0
  126. package/dist/esm/models/mappers.d.ts +28 -0
  127. package/dist/esm/models/mappers.d.ts.map +1 -0
  128. package/dist/esm/models/mappers.js +624 -0
  129. package/dist/esm/models/mappers.js.map +1 -0
  130. package/dist/esm/models/parameters.d.ts +14 -0
  131. package/dist/esm/models/parameters.d.ts.map +1 -0
  132. package/dist/esm/models/parameters.js +120 -0
  133. package/dist/esm/models/parameters.js.map +1 -0
  134. package/dist/esm/operations/dashboards.d.ts +83 -0
  135. package/dist/esm/operations/dashboards.d.ts.map +1 -0
  136. package/dist/esm/operations/dashboards.js +386 -0
  137. package/dist/esm/operations/dashboards.js.map +1 -0
  138. package/dist/esm/operations/index.d.ts +5 -0
  139. package/dist/esm/operations/index.d.ts.map +1 -0
  140. package/dist/esm/operations/index.js +12 -0
  141. package/dist/esm/operations/index.js.map +1 -0
  142. package/dist/esm/operations/listTenantConfigurationViolations.d.ts +32 -0
  143. package/dist/esm/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  144. package/dist/esm/operations/listTenantConfigurationViolations.js +133 -0
  145. package/dist/esm/operations/listTenantConfigurationViolations.js.map +1 -0
  146. package/dist/esm/operations/operations.d.ts +32 -0
  147. package/dist/esm/operations/operations.d.ts.map +1 -0
  148. package/dist/esm/operations/operations.js +133 -0
  149. package/dist/esm/operations/operations.js.map +1 -0
  150. package/dist/esm/operations/tenantConfigurations.d.ts +52 -0
  151. package/dist/esm/operations/tenantConfigurations.d.ts.map +1 -0
  152. package/dist/esm/operations/tenantConfigurations.js +212 -0
  153. package/dist/esm/operations/tenantConfigurations.js.map +1 -0
  154. package/dist/esm/operationsInterfaces/dashboards.d.ts +47 -0
  155. package/dist/esm/operationsInterfaces/dashboards.d.ts.map +1 -0
  156. package/dist/esm/operationsInterfaces/dashboards.js +9 -0
  157. package/dist/esm/operationsInterfaces/dashboards.js.map +1 -0
  158. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  159. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  160. package/dist/esm/operationsInterfaces/index.js +12 -0
  161. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  162. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  163. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  164. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  165. package/dist/esm/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  166. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  167. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  168. package/dist/esm/operationsInterfaces/operations.js +9 -0
  169. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  170. package/dist/esm/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  171. package/dist/esm/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  172. package/dist/esm/operationsInterfaces/tenantConfigurations.js +9 -0
  173. package/dist/esm/operationsInterfaces/tenantConfigurations.js.map +1 -0
  174. package/dist/esm/package.json +3 -0
  175. package/dist/esm/pagingHelper.d.ts +13 -0
  176. package/dist/esm/pagingHelper.d.ts.map +1 -0
  177. package/dist/esm/pagingHelper.js +32 -0
  178. package/dist/esm/pagingHelper.js.map +1 -0
  179. package/dist/esm/portal.d.ts +24 -0
  180. package/dist/esm/portal.d.ts.map +1 -0
  181. package/dist/esm/portal.js +101 -0
  182. package/dist/esm/portal.js.map +1 -0
  183. package/dist/react-native/index.d.ts +5 -0
  184. package/dist/react-native/index.d.ts.map +1 -0
  185. package/dist/react-native/index.js +13 -0
  186. package/dist/react-native/index.js.map +1 -0
  187. package/dist/react-native/models/index.d.ts +336 -0
  188. package/dist/react-native/models/index.d.ts.map +1 -0
  189. package/dist/react-native/models/index.js +14 -0
  190. package/dist/react-native/models/index.js.map +1 -0
  191. package/dist/react-native/models/mappers.d.ts +28 -0
  192. package/dist/react-native/models/mappers.d.ts.map +1 -0
  193. package/dist/react-native/models/mappers.js +624 -0
  194. package/dist/react-native/models/mappers.js.map +1 -0
  195. package/dist/react-native/models/parameters.d.ts +14 -0
  196. package/dist/react-native/models/parameters.d.ts.map +1 -0
  197. package/dist/react-native/models/parameters.js +120 -0
  198. package/dist/react-native/models/parameters.js.map +1 -0
  199. package/dist/react-native/operations/dashboards.d.ts +83 -0
  200. package/dist/react-native/operations/dashboards.d.ts.map +1 -0
  201. package/dist/react-native/operations/dashboards.js +386 -0
  202. package/dist/react-native/operations/dashboards.js.map +1 -0
  203. package/dist/react-native/operations/index.d.ts +5 -0
  204. package/dist/react-native/operations/index.d.ts.map +1 -0
  205. package/dist/react-native/operations/index.js +12 -0
  206. package/dist/react-native/operations/index.js.map +1 -0
  207. package/dist/react-native/operations/listTenantConfigurationViolations.d.ts +32 -0
  208. package/dist/react-native/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  209. package/dist/react-native/operations/listTenantConfigurationViolations.js +133 -0
  210. package/dist/react-native/operations/listTenantConfigurationViolations.js.map +1 -0
  211. package/dist/react-native/operations/operations.d.ts +32 -0
  212. package/dist/react-native/operations/operations.d.ts.map +1 -0
  213. package/dist/react-native/operations/operations.js +133 -0
  214. package/dist/react-native/operations/operations.js.map +1 -0
  215. package/dist/react-native/operations/tenantConfigurations.d.ts +52 -0
  216. package/dist/react-native/operations/tenantConfigurations.d.ts.map +1 -0
  217. package/dist/react-native/operations/tenantConfigurations.js +212 -0
  218. package/dist/react-native/operations/tenantConfigurations.js.map +1 -0
  219. package/dist/react-native/operationsInterfaces/dashboards.d.ts +47 -0
  220. package/dist/react-native/operationsInterfaces/dashboards.d.ts.map +1 -0
  221. package/dist/react-native/operationsInterfaces/dashboards.js +9 -0
  222. package/dist/react-native/operationsInterfaces/dashboards.js.map +1 -0
  223. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  224. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  225. package/dist/react-native/operationsInterfaces/index.js +12 -0
  226. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  227. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  228. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  229. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  230. package/dist/react-native/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  231. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  232. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  233. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  234. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  235. package/dist/react-native/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  236. package/dist/react-native/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  237. package/dist/react-native/operationsInterfaces/tenantConfigurations.js +9 -0
  238. package/dist/react-native/operationsInterfaces/tenantConfigurations.js.map +1 -0
  239. package/dist/react-native/package.json +3 -0
  240. package/dist/react-native/pagingHelper.d.ts +13 -0
  241. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  242. package/dist/react-native/pagingHelper.js +32 -0
  243. package/dist/react-native/pagingHelper.js.map +1 -0
  244. package/dist/react-native/portal.d.ts +24 -0
  245. package/dist/react-native/portal.d.ts.map +1 -0
  246. package/dist/react-native/portal.js +101 -0
  247. package/dist/react-native/portal.js.map +1 -0
  248. package/package.json +69 -40
  249. package/dist/index.js +0 -1791
  250. package/dist/index.js.map +0 -1
  251. package/dist/index.min.js +0 -1
  252. package/dist/index.min.js.map +0 -1
  253. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts +0 -2
  254. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.d.ts.map +0 -1
  255. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js +0 -44
  256. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js.map +0 -1
  257. package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts +0 -2
  258. package/dist-esm/samples-dev/dashboardsDeleteSample.d.ts.map +0 -1
  259. package/dist-esm/samples-dev/dashboardsDeleteSample.js +0 -36
  260. package/dist-esm/samples-dev/dashboardsDeleteSample.js.map +0 -1
  261. package/dist-esm/samples-dev/dashboardsGetSample.d.ts +0 -2
  262. package/dist-esm/samples-dev/dashboardsGetSample.d.ts.map +0 -1
  263. package/dist-esm/samples-dev/dashboardsGetSample.js +0 -36
  264. package/dist-esm/samples-dev/dashboardsGetSample.js.map +0 -1
  265. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts +0 -2
  266. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.d.ts.map +0 -1
  267. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js +0 -51
  268. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js.map +0 -1
  269. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts +0 -2
  270. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.d.ts.map +0 -1
  271. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js +0 -50
  272. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js.map +0 -1
  273. package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts +0 -2
  274. package/dist-esm/samples-dev/dashboardsUpdateSample.d.ts.map +0 -1
  275. package/dist-esm/samples-dev/dashboardsUpdateSample.js +0 -32
  276. package/dist-esm/samples-dev/dashboardsUpdateSample.js.map +0 -1
  277. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts +0 -2
  278. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.d.ts.map +0 -1
  279. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js +0 -50
  280. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js.map +0 -1
  281. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  282. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  283. package/dist-esm/samples-dev/operationsListSample.js +0 -50
  284. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  285. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts +0 -2
  286. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.d.ts.map +0 -1
  287. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js +0 -31
  288. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js.map +0 -1
  289. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts +0 -2
  290. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.d.ts.map +0 -1
  291. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js +0 -35
  292. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js.map +0 -1
  293. package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts +0 -2
  294. package/dist-esm/samples-dev/tenantConfigurationsGetSample.d.ts.map +0 -1
  295. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js +0 -35
  296. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js.map +0 -1
  297. package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts +0 -2
  298. package/dist-esm/samples-dev/tenantConfigurationsListSample.d.ts.map +0 -1
  299. package/dist-esm/samples-dev/tenantConfigurationsListSample.js +0 -50
  300. package/dist-esm/samples-dev/tenantConfigurationsListSample.js.map +0 -1
  301. package/dist-esm/src/index.d.ts +0 -5
  302. package/dist-esm/src/index.js.map +0 -1
  303. package/dist-esm/src/models/index.js.map +0 -1
  304. package/dist-esm/src/models/mappers.js.map +0 -1
  305. package/dist-esm/src/models/parameters.js.map +0 -1
  306. package/dist-esm/src/operations/dashboards.d.ts.map +0 -1
  307. package/dist-esm/src/operations/dashboards.js.map +0 -1
  308. package/dist-esm/src/operations/index.d.ts +0 -5
  309. package/dist-esm/src/operations/index.js.map +0 -1
  310. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +0 -1
  311. package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +0 -1
  312. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  313. package/dist-esm/src/operations/operations.js.map +0 -1
  314. package/dist-esm/src/operations/tenantConfigurations.d.ts.map +0 -1
  315. package/dist-esm/src/operations/tenantConfigurations.js.map +0 -1
  316. package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +0 -1
  317. package/dist-esm/src/operationsInterfaces/dashboards.js.map +0 -1
  318. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  319. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  320. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js.map +0 -1
  321. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  322. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +0 -1
  323. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +0 -1
  324. package/dist-esm/src/pagingHelper.js.map +0 -1
  325. package/dist-esm/src/portal.d.ts.map +0 -1
  326. package/dist-esm/src/portal.js.map +0 -1
  327. package/dist-esm/test/sampleTest.d.ts +0 -2
  328. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  329. package/dist-esm/test/sampleTest.js +0 -42
  330. package/dist-esm/test/sampleTest.js.map +0 -1
  331. package/src/models/index.ts +0 -390
  332. package/src/models/mappers.ts +0 -658
  333. package/src/models/parameters.ts +0 -141
  334. package/src/operations/dashboards.ts +0 -478
  335. package/src/operations/index.ts +0 -12
  336. package/src/operations/listTenantConfigurationViolations.ts +0 -150
  337. package/src/operations/operations.ts +0 -149
  338. package/src/operations/tenantConfigurations.ts +0 -256
  339. package/src/operationsInterfaces/dashboards.ts +0 -91
  340. package/src/operationsInterfaces/index.ts +0 -12
  341. package/src/operationsInterfaces/listTenantConfigurationViolations.ts +0 -25
  342. package/src/operationsInterfaces/operations.ts +0 -25
  343. package/src/operationsInterfaces/tenantConfigurations.ts +0 -61
  344. package/src/pagingHelper.ts +0 -39
  345. package/src/portal.ts +0 -159
  346. package/tsconfig.json +0 -33
  347. package/types/arm-portal.d.ts +0 -518
  348. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  349. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  350. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  351. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  352. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  353. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  354. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  355. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  356. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dashboards.js +0 -0
  357. /package/{dist-esm/src → dist/browser}/operationsInterfaces/listTenantConfigurationViolations.js +0 -0
  358. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  359. /package/{dist-esm/src → dist/browser}/operationsInterfaces/tenantConfigurations.js +0 -0
  360. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  361. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  362. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/dist/index.js DELETED
@@ -1,1791 +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
-
9
- function _interopNamespaceDefault(e) {
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
27
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
28
-
29
- /*
30
- * Copyright (c) Microsoft Corporation.
31
- * Licensed under the MIT License.
32
- *
33
- * Code generated by Microsoft (R) AutoRest Code Generator.
34
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
- */
36
- const pageMap = new WeakMap();
37
- /**
38
- * Given the last `.value` produced by the `byPage` iterator,
39
- * returns a continuation token that can be used to begin paging from
40
- * that point later.
41
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
42
- * @returns The continuation token that can be passed into byPage() during future calls.
43
- */
44
- function getContinuationToken(page) {
45
- var _a;
46
- if (typeof page !== "object" || page === null) {
47
- return undefined;
48
- }
49
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
- }
51
- function setContinuationToken(page, continuationToken) {
52
- var _a;
53
- if (typeof page !== "object" || page === null || !continuationToken) {
54
- return;
55
- }
56
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
- pageInfo.continuationToken = continuationToken;
58
- pageMap.set(page, pageInfo);
59
- }
60
-
61
- /*
62
- * Copyright (c) Microsoft Corporation.
63
- * Licensed under the MIT License.
64
- *
65
- * Code generated by Microsoft (R) AutoRest Code Generator.
66
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
67
- */
68
- /** Known values of {@link ConfigurationName} that the service accepts. */
69
- exports.KnownConfigurationName = void 0;
70
- (function (KnownConfigurationName) {
71
- /** Default */
72
- KnownConfigurationName["Default"] = "default";
73
- })(exports.KnownConfigurationName || (exports.KnownConfigurationName = {}));
74
-
75
- /*
76
- * Copyright (c) Microsoft Corporation.
77
- * Licensed under the MIT License.
78
- *
79
- * Code generated by Microsoft (R) AutoRest Code Generator.
80
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
81
- */
82
- const ResourceProviderOperationList = {
83
- type: {
84
- name: "Composite",
85
- className: "ResourceProviderOperationList",
86
- modelProperties: {
87
- value: {
88
- serializedName: "value",
89
- type: {
90
- name: "Sequence",
91
- element: {
92
- type: {
93
- name: "Composite",
94
- className: "ResourceProviderOperation"
95
- }
96
- }
97
- }
98
- },
99
- nextLink: {
100
- serializedName: "nextLink",
101
- type: {
102
- name: "String"
103
- }
104
- }
105
- }
106
- }
107
- };
108
- const ResourceProviderOperation = {
109
- type: {
110
- name: "Composite",
111
- className: "ResourceProviderOperation",
112
- modelProperties: {
113
- name: {
114
- serializedName: "name",
115
- type: {
116
- name: "String"
117
- }
118
- },
119
- isDataAction: {
120
- serializedName: "isDataAction",
121
- type: {
122
- name: "String"
123
- }
124
- },
125
- display: {
126
- serializedName: "display",
127
- type: {
128
- name: "Composite",
129
- className: "ResourceProviderOperationDisplay"
130
- }
131
- }
132
- }
133
- }
134
- };
135
- const ResourceProviderOperationDisplay = {
136
- type: {
137
- name: "Composite",
138
- className: "ResourceProviderOperationDisplay",
139
- modelProperties: {
140
- provider: {
141
- serializedName: "provider",
142
- type: {
143
- name: "String"
144
- }
145
- },
146
- resource: {
147
- serializedName: "resource",
148
- type: {
149
- name: "String"
150
- }
151
- },
152
- operation: {
153
- serializedName: "operation",
154
- type: {
155
- name: "String"
156
- }
157
- },
158
- description: {
159
- serializedName: "description",
160
- type: {
161
- name: "String"
162
- }
163
- }
164
- }
165
- }
166
- };
167
- const ErrorResponse = {
168
- type: {
169
- name: "Composite",
170
- className: "ErrorResponse",
171
- modelProperties: {
172
- error: {
173
- serializedName: "error",
174
- type: {
175
- name: "Composite",
176
- className: "ErrorDefinition"
177
- }
178
- }
179
- }
180
- }
181
- };
182
- const ErrorDefinition = {
183
- type: {
184
- name: "Composite",
185
- className: "ErrorDefinition",
186
- modelProperties: {
187
- code: {
188
- serializedName: "code",
189
- readOnly: true,
190
- type: {
191
- name: "Number"
192
- }
193
- },
194
- message: {
195
- serializedName: "message",
196
- readOnly: true,
197
- type: {
198
- name: "String"
199
- }
200
- },
201
- details: {
202
- serializedName: "details",
203
- readOnly: true,
204
- type: {
205
- name: "Sequence",
206
- element: {
207
- type: {
208
- name: "Composite",
209
- className: "ErrorDefinition"
210
- }
211
- }
212
- }
213
- }
214
- }
215
- }
216
- };
217
- const Dashboard = {
218
- type: {
219
- name: "Composite",
220
- className: "Dashboard",
221
- modelProperties: {
222
- id: {
223
- serializedName: "id",
224
- readOnly: true,
225
- type: {
226
- name: "String"
227
- }
228
- },
229
- name: {
230
- serializedName: "name",
231
- readOnly: true,
232
- type: {
233
- name: "String"
234
- }
235
- },
236
- type: {
237
- serializedName: "type",
238
- readOnly: true,
239
- type: {
240
- name: "String"
241
- }
242
- },
243
- location: {
244
- serializedName: "location",
245
- required: true,
246
- type: {
247
- name: "String"
248
- }
249
- },
250
- tags: {
251
- serializedName: "tags",
252
- type: {
253
- name: "Dictionary",
254
- value: { type: { name: "String" } }
255
- }
256
- },
257
- lenses: {
258
- serializedName: "properties.lenses",
259
- type: {
260
- name: "Sequence",
261
- element: {
262
- type: {
263
- name: "Composite",
264
- className: "DashboardLens"
265
- }
266
- }
267
- }
268
- },
269
- metadata: {
270
- serializedName: "properties.metadata",
271
- type: {
272
- name: "Dictionary",
273
- value: {
274
- type: { name: "Dictionary", value: { type: { name: "any" } } }
275
- }
276
- }
277
- }
278
- }
279
- }
280
- };
281
- const DashboardLens = {
282
- type: {
283
- name: "Composite",
284
- className: "DashboardLens",
285
- modelProperties: {
286
- order: {
287
- serializedName: "order",
288
- required: true,
289
- type: {
290
- name: "Number"
291
- }
292
- },
293
- parts: {
294
- serializedName: "parts",
295
- required: true,
296
- type: {
297
- name: "Sequence",
298
- element: {
299
- type: {
300
- name: "Composite",
301
- className: "DashboardParts"
302
- }
303
- }
304
- }
305
- },
306
- metadata: {
307
- serializedName: "metadata",
308
- type: {
309
- name: "Dictionary",
310
- value: {
311
- type: { name: "Dictionary", value: { type: { name: "any" } } }
312
- }
313
- }
314
- }
315
- }
316
- }
317
- };
318
- const DashboardParts = {
319
- type: {
320
- name: "Composite",
321
- className: "DashboardParts",
322
- modelProperties: {
323
- position: {
324
- serializedName: "position",
325
- type: {
326
- name: "Composite",
327
- className: "DashboardPartsPosition"
328
- }
329
- },
330
- metadata: {
331
- serializedName: "metadata",
332
- type: {
333
- name: "Composite",
334
- className: "DashboardPartMetadata"
335
- }
336
- }
337
- }
338
- }
339
- };
340
- const DashboardPartsPosition = {
341
- type: {
342
- name: "Composite",
343
- className: "DashboardPartsPosition",
344
- modelProperties: {
345
- x: {
346
- serializedName: "x",
347
- required: true,
348
- type: {
349
- name: "Number"
350
- }
351
- },
352
- y: {
353
- serializedName: "y",
354
- required: true,
355
- type: {
356
- name: "Number"
357
- }
358
- },
359
- rowSpan: {
360
- serializedName: "rowSpan",
361
- required: true,
362
- type: {
363
- name: "Number"
364
- }
365
- },
366
- colSpan: {
367
- serializedName: "colSpan",
368
- required: true,
369
- type: {
370
- name: "Number"
371
- }
372
- },
373
- metadata: {
374
- serializedName: "metadata",
375
- type: {
376
- name: "Dictionary",
377
- value: {
378
- type: { name: "Dictionary", value: { type: { name: "any" } } }
379
- }
380
- }
381
- }
382
- }
383
- }
384
- };
385
- const DashboardPartMetadata = {
386
- serializedName: "DashboardPartMetadata",
387
- type: {
388
- name: "Composite",
389
- className: "DashboardPartMetadata",
390
- uberParent: "DashboardPartMetadata",
391
- additionalProperties: { type: { name: "Object" } },
392
- polymorphicDiscriminator: {
393
- serializedName: "type",
394
- clientName: "type"
395
- },
396
- modelProperties: {
397
- type: {
398
- serializedName: "type",
399
- required: true,
400
- type: {
401
- name: "String"
402
- }
403
- }
404
- }
405
- }
406
- };
407
- const PatchableDashboard = {
408
- type: {
409
- name: "Composite",
410
- className: "PatchableDashboard",
411
- modelProperties: {
412
- tags: {
413
- serializedName: "tags",
414
- type: {
415
- name: "Dictionary",
416
- value: { type: { name: "String" } }
417
- }
418
- },
419
- lenses: {
420
- serializedName: "properties.lenses",
421
- type: {
422
- name: "Sequence",
423
- element: {
424
- type: {
425
- name: "Composite",
426
- className: "DashboardLens"
427
- }
428
- }
429
- }
430
- },
431
- metadata: {
432
- serializedName: "properties.metadata",
433
- type: {
434
- name: "Dictionary",
435
- value: {
436
- type: { name: "Dictionary", value: { type: { name: "any" } } }
437
- }
438
- }
439
- }
440
- }
441
- }
442
- };
443
- const DashboardListResult = {
444
- type: {
445
- name: "Composite",
446
- className: "DashboardListResult",
447
- modelProperties: {
448
- value: {
449
- serializedName: "value",
450
- type: {
451
- name: "Sequence",
452
- element: {
453
- type: {
454
- name: "Composite",
455
- className: "Dashboard"
456
- }
457
- }
458
- }
459
- },
460
- nextLink: {
461
- serializedName: "nextLink",
462
- type: {
463
- name: "String"
464
- }
465
- }
466
- }
467
- }
468
- };
469
- const ConfigurationList = {
470
- type: {
471
- name: "Composite",
472
- className: "ConfigurationList",
473
- modelProperties: {
474
- value: {
475
- serializedName: "value",
476
- type: {
477
- name: "Sequence",
478
- element: {
479
- type: {
480
- name: "Composite",
481
- className: "Configuration"
482
- }
483
- }
484
- }
485
- },
486
- nextLink: {
487
- serializedName: "nextLink",
488
- type: {
489
- name: "String"
490
- }
491
- }
492
- }
493
- }
494
- };
495
- const Resource = {
496
- type: {
497
- name: "Composite",
498
- className: "Resource",
499
- modelProperties: {
500
- id: {
501
- serializedName: "id",
502
- readOnly: true,
503
- type: {
504
- name: "String"
505
- }
506
- },
507
- name: {
508
- serializedName: "name",
509
- readOnly: true,
510
- type: {
511
- name: "String"
512
- }
513
- },
514
- type: {
515
- serializedName: "type",
516
- readOnly: true,
517
- type: {
518
- name: "String"
519
- }
520
- }
521
- }
522
- }
523
- };
524
- const ViolationsList = {
525
- type: {
526
- name: "Composite",
527
- className: "ViolationsList",
528
- modelProperties: {
529
- value: {
530
- serializedName: "value",
531
- type: {
532
- name: "Sequence",
533
- element: {
534
- type: {
535
- name: "Composite",
536
- className: "Violation"
537
- }
538
- }
539
- }
540
- },
541
- nextLink: {
542
- serializedName: "nextLink",
543
- type: {
544
- name: "String"
545
- }
546
- }
547
- }
548
- }
549
- };
550
- const Violation = {
551
- type: {
552
- name: "Composite",
553
- className: "Violation",
554
- modelProperties: {
555
- id: {
556
- serializedName: "id",
557
- readOnly: true,
558
- type: {
559
- name: "String"
560
- }
561
- },
562
- userId: {
563
- serializedName: "userId",
564
- readOnly: true,
565
- type: {
566
- name: "String"
567
- }
568
- },
569
- errorMessage: {
570
- serializedName: "errorMessage",
571
- readOnly: true,
572
- type: {
573
- name: "String"
574
- }
575
- }
576
- }
577
- }
578
- };
579
- const MarkdownPartMetadataSettings = {
580
- type: {
581
- name: "Composite",
582
- className: "MarkdownPartMetadataSettings",
583
- modelProperties: {
584
- content: {
585
- serializedName: "content",
586
- type: {
587
- name: "Composite",
588
- className: "MarkdownPartMetadataSettingsContent"
589
- }
590
- }
591
- }
592
- }
593
- };
594
- const MarkdownPartMetadataSettingsContent = {
595
- type: {
596
- name: "Composite",
597
- className: "MarkdownPartMetadataSettingsContent",
598
- modelProperties: {
599
- settings: {
600
- serializedName: "settings",
601
- type: {
602
- name: "Composite",
603
- className: "MarkdownPartMetadataSettingsContentSettings"
604
- }
605
- }
606
- }
607
- }
608
- };
609
- const MarkdownPartMetadataSettingsContentSettings = {
610
- type: {
611
- name: "Composite",
612
- className: "MarkdownPartMetadataSettingsContentSettings",
613
- modelProperties: {
614
- content: {
615
- serializedName: "content",
616
- type: {
617
- name: "String"
618
- }
619
- },
620
- title: {
621
- serializedName: "title",
622
- type: {
623
- name: "String"
624
- }
625
- },
626
- subtitle: {
627
- serializedName: "subtitle",
628
- type: {
629
- name: "String"
630
- }
631
- },
632
- markdownSource: {
633
- serializedName: "markdownSource",
634
- type: {
635
- name: "Number"
636
- }
637
- },
638
- markdownUri: {
639
- serializedName: "markdownUri",
640
- type: {
641
- name: "String"
642
- }
643
- }
644
- }
645
- }
646
- };
647
- const MarkdownPartMetadata = {
648
- serializedName: "Extension/HubsExtension/PartType/MarkdownPart",
649
- type: {
650
- name: "Composite",
651
- className: "MarkdownPartMetadata",
652
- uberParent: "DashboardPartMetadata",
653
- additionalProperties: { type: { name: "Object" } },
654
- polymorphicDiscriminator: DashboardPartMetadata.type.polymorphicDiscriminator,
655
- modelProperties: Object.assign(Object.assign({}, DashboardPartMetadata.type.modelProperties), { inputs: {
656
- serializedName: "inputs",
657
- type: {
658
- name: "Sequence",
659
- element: {
660
- type: {
661
- name: "Dictionary",
662
- value: { type: { name: "any" } }
663
- }
664
- }
665
- }
666
- }, settings: {
667
- serializedName: "settings",
668
- type: {
669
- name: "Composite",
670
- className: "MarkdownPartMetadataSettings"
671
- }
672
- } })
673
- }
674
- };
675
- const ProxyResource = {
676
- type: {
677
- name: "Composite",
678
- className: "ProxyResource",
679
- modelProperties: Object.assign({}, Resource.type.modelProperties)
680
- }
681
- };
682
- const Configuration = {
683
- type: {
684
- name: "Composite",
685
- className: "Configuration",
686
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { enforcePrivateMarkdownStorage: {
687
- serializedName: "properties.enforcePrivateMarkdownStorage",
688
- type: {
689
- name: "Boolean"
690
- }
691
- } })
692
- }
693
- };
694
- let discriminators = {
695
- DashboardPartMetadata: DashboardPartMetadata,
696
- "DashboardPartMetadata.Extension/HubsExtension/PartType/MarkdownPart": MarkdownPartMetadata
697
- };
698
-
699
- var Mappers = /*#__PURE__*/Object.freeze({
700
- __proto__: null,
701
- Configuration: Configuration,
702
- ConfigurationList: ConfigurationList,
703
- Dashboard: Dashboard,
704
- DashboardLens: DashboardLens,
705
- DashboardListResult: DashboardListResult,
706
- DashboardPartMetadata: DashboardPartMetadata,
707
- DashboardParts: DashboardParts,
708
- DashboardPartsPosition: DashboardPartsPosition,
709
- ErrorDefinition: ErrorDefinition,
710
- ErrorResponse: ErrorResponse,
711
- MarkdownPartMetadata: MarkdownPartMetadata,
712
- MarkdownPartMetadataSettings: MarkdownPartMetadataSettings,
713
- MarkdownPartMetadataSettingsContent: MarkdownPartMetadataSettingsContent,
714
- MarkdownPartMetadataSettingsContentSettings: MarkdownPartMetadataSettingsContentSettings,
715
- PatchableDashboard: PatchableDashboard,
716
- ProxyResource: ProxyResource,
717
- Resource: Resource,
718
- ResourceProviderOperation: ResourceProviderOperation,
719
- ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
720
- ResourceProviderOperationList: ResourceProviderOperationList,
721
- Violation: Violation,
722
- ViolationsList: ViolationsList,
723
- discriminators: discriminators
724
- });
725
-
726
- /*
727
- * Copyright (c) Microsoft Corporation.
728
- * Licensed under the MIT License.
729
- *
730
- * Code generated by Microsoft (R) AutoRest Code Generator.
731
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
732
- */
733
- const accept = {
734
- parameterPath: "accept",
735
- mapper: {
736
- defaultValue: "application/json",
737
- isConstant: true,
738
- serializedName: "Accept",
739
- type: {
740
- name: "String"
741
- }
742
- }
743
- };
744
- const $host = {
745
- parameterPath: "$host",
746
- mapper: {
747
- serializedName: "$host",
748
- required: true,
749
- type: {
750
- name: "String"
751
- }
752
- },
753
- skipEncoding: true
754
- };
755
- const apiVersion = {
756
- parameterPath: "apiVersion",
757
- mapper: {
758
- defaultValue: "2020-09-01-preview",
759
- isConstant: true,
760
- serializedName: "api-version",
761
- type: {
762
- name: "String"
763
- }
764
- }
765
- };
766
- const nextLink = {
767
- parameterPath: "nextLink",
768
- mapper: {
769
- serializedName: "nextLink",
770
- required: true,
771
- type: {
772
- name: "String"
773
- }
774
- },
775
- skipEncoding: true
776
- };
777
- const contentType = {
778
- parameterPath: ["options", "contentType"],
779
- mapper: {
780
- defaultValue: "application/json",
781
- isConstant: true,
782
- serializedName: "Content-Type",
783
- type: {
784
- name: "String"
785
- }
786
- }
787
- };
788
- const dashboard = {
789
- parameterPath: "dashboard",
790
- mapper: Dashboard
791
- };
792
- const subscriptionId = {
793
- parameterPath: "subscriptionId",
794
- mapper: {
795
- serializedName: "subscriptionId",
796
- required: true,
797
- type: {
798
- name: "String"
799
- }
800
- }
801
- };
802
- const resourceGroupName = {
803
- parameterPath: "resourceGroupName",
804
- mapper: {
805
- serializedName: "resourceGroupName",
806
- required: true,
807
- type: {
808
- name: "String"
809
- }
810
- }
811
- };
812
- const dashboardName = {
813
- parameterPath: "dashboardName",
814
- mapper: {
815
- constraints: {
816
- MaxLength: 64,
817
- MinLength: 3
818
- },
819
- serializedName: "dashboardName",
820
- required: true,
821
- type: {
822
- name: "String"
823
- }
824
- }
825
- };
826
- const dashboard1 = {
827
- parameterPath: "dashboard",
828
- mapper: PatchableDashboard
829
- };
830
- const configurationName = {
831
- parameterPath: "configurationName",
832
- mapper: {
833
- serializedName: "configurationName",
834
- required: true,
835
- type: {
836
- name: "String"
837
- }
838
- }
839
- };
840
- const tenantConfiguration = {
841
- parameterPath: "tenantConfiguration",
842
- mapper: Configuration
843
- };
844
-
845
- /*
846
- * Copyright (c) Microsoft Corporation.
847
- * Licensed under the MIT License.
848
- *
849
- * Code generated by Microsoft (R) AutoRest Code Generator.
850
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
851
- */
852
- /// <reference lib="esnext.asynciterable" />
853
- /** Class containing Operations operations. */
854
- class OperationsImpl {
855
- /**
856
- * Initialize a new instance of the class Operations class.
857
- * @param client Reference to the service client
858
- */
859
- constructor(client) {
860
- this.client = client;
861
- }
862
- /**
863
- * The Microsoft Portal operations API.
864
- * @param options The options parameters.
865
- */
866
- list(options) {
867
- const iter = this.listPagingAll(options);
868
- return {
869
- next() {
870
- return iter.next();
871
- },
872
- [Symbol.asyncIterator]() {
873
- return this;
874
- },
875
- byPage: (settings) => {
876
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
877
- throw new Error("maxPageSize is not supported by this operation.");
878
- }
879
- return this.listPagingPage(options, settings);
880
- }
881
- };
882
- }
883
- listPagingPage(options, settings) {
884
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
885
- let result;
886
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
887
- if (!continuationToken) {
888
- result = yield tslib.__await(this._list(options));
889
- let page = result.value || [];
890
- continuationToken = result.nextLink;
891
- setContinuationToken(page, continuationToken);
892
- yield yield tslib.__await(page);
893
- }
894
- while (continuationToken) {
895
- result = yield tslib.__await(this._listNext(continuationToken, options));
896
- continuationToken = result.nextLink;
897
- let page = result.value || [];
898
- setContinuationToken(page, continuationToken);
899
- yield yield tslib.__await(page);
900
- }
901
- });
902
- }
903
- listPagingAll(options) {
904
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
905
- var _a, e_1, _b, _c;
906
- try {
907
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
908
- _c = _f.value;
909
- _d = false;
910
- const page = _c;
911
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
912
- }
913
- }
914
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
915
- finally {
916
- try {
917
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
918
- }
919
- finally { if (e_1) throw e_1.error; }
920
- }
921
- });
922
- }
923
- /**
924
- * The Microsoft Portal operations API.
925
- * @param options The options parameters.
926
- */
927
- _list(options) {
928
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
929
- }
930
- /**
931
- * ListNext
932
- * @param nextLink The nextLink from the previous successful call to the List method.
933
- * @param options The options parameters.
934
- */
935
- _listNext(nextLink, options) {
936
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
937
- }
938
- }
939
- // Operation Specifications
940
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
941
- const listOperationSpec$2 = {
942
- path: "/providers/Microsoft.Portal/operations",
943
- httpMethod: "GET",
944
- responses: {
945
- 200: {
946
- bodyMapper: ResourceProviderOperationList
947
- },
948
- default: {
949
- bodyMapper: ErrorResponse
950
- }
951
- },
952
- queryParameters: [apiVersion],
953
- urlParameters: [$host],
954
- headerParameters: [accept],
955
- serializer: serializer$3
956
- };
957
- const listNextOperationSpec$2 = {
958
- path: "{nextLink}",
959
- httpMethod: "GET",
960
- responses: {
961
- 200: {
962
- bodyMapper: ResourceProviderOperationList
963
- },
964
- default: {
965
- bodyMapper: ErrorResponse
966
- }
967
- },
968
- urlParameters: [$host, nextLink],
969
- headerParameters: [accept],
970
- serializer: serializer$3
971
- };
972
-
973
- /*
974
- * Copyright (c) Microsoft Corporation.
975
- * Licensed under the MIT License.
976
- *
977
- * Code generated by Microsoft (R) AutoRest Code Generator.
978
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
979
- */
980
- /// <reference lib="esnext.asynciterable" />
981
- /** Class containing Dashboards operations. */
982
- class DashboardsImpl {
983
- /**
984
- * Initialize a new instance of the class Dashboards class.
985
- * @param client Reference to the service client
986
- */
987
- constructor(client) {
988
- this.client = client;
989
- }
990
- /**
991
- * Gets all the Dashboards within a resource group.
992
- * @param resourceGroupName The name of the resource group.
993
- * @param options The options parameters.
994
- */
995
- listByResourceGroup(resourceGroupName, options) {
996
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
997
- return {
998
- next() {
999
- return iter.next();
1000
- },
1001
- [Symbol.asyncIterator]() {
1002
- return this;
1003
- },
1004
- byPage: (settings) => {
1005
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1006
- throw new Error("maxPageSize is not supported by this operation.");
1007
- }
1008
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1009
- }
1010
- };
1011
- }
1012
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1013
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1014
- let result;
1015
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1016
- if (!continuationToken) {
1017
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1018
- let page = result.value || [];
1019
- continuationToken = result.nextLink;
1020
- setContinuationToken(page, continuationToken);
1021
- yield yield tslib.__await(page);
1022
- }
1023
- while (continuationToken) {
1024
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1025
- continuationToken = result.nextLink;
1026
- let page = result.value || [];
1027
- setContinuationToken(page, continuationToken);
1028
- yield yield tslib.__await(page);
1029
- }
1030
- });
1031
- }
1032
- listByResourceGroupPagingAll(resourceGroupName, options) {
1033
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1034
- var _a, e_1, _b, _c;
1035
- try {
1036
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1037
- _c = _f.value;
1038
- _d = false;
1039
- const page = _c;
1040
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1041
- }
1042
- }
1043
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1044
- finally {
1045
- try {
1046
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1047
- }
1048
- finally { if (e_1) throw e_1.error; }
1049
- }
1050
- });
1051
- }
1052
- /**
1053
- * Gets all the dashboards within a subscription.
1054
- * @param options The options parameters.
1055
- */
1056
- listBySubscription(options) {
1057
- const iter = this.listBySubscriptionPagingAll(options);
1058
- return {
1059
- next() {
1060
- return iter.next();
1061
- },
1062
- [Symbol.asyncIterator]() {
1063
- return this;
1064
- },
1065
- byPage: (settings) => {
1066
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1067
- throw new Error("maxPageSize is not supported by this operation.");
1068
- }
1069
- return this.listBySubscriptionPagingPage(options, settings);
1070
- }
1071
- };
1072
- }
1073
- listBySubscriptionPagingPage(options, settings) {
1074
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1075
- let result;
1076
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1077
- if (!continuationToken) {
1078
- result = yield tslib.__await(this._listBySubscription(options));
1079
- let page = result.value || [];
1080
- continuationToken = result.nextLink;
1081
- setContinuationToken(page, continuationToken);
1082
- yield yield tslib.__await(page);
1083
- }
1084
- while (continuationToken) {
1085
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1086
- continuationToken = result.nextLink;
1087
- let page = result.value || [];
1088
- setContinuationToken(page, continuationToken);
1089
- yield yield tslib.__await(page);
1090
- }
1091
- });
1092
- }
1093
- listBySubscriptionPagingAll(options) {
1094
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1095
- var _a, e_2, _b, _c;
1096
- try {
1097
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1098
- _c = _f.value;
1099
- _d = false;
1100
- const page = _c;
1101
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1102
- }
1103
- }
1104
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1105
- finally {
1106
- try {
1107
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1108
- }
1109
- finally { if (e_2) throw e_2.error; }
1110
- }
1111
- });
1112
- }
1113
- /**
1114
- * Creates or updates a Dashboard.
1115
- * @param resourceGroupName The name of the resource group.
1116
- * @param dashboardName The name of the dashboard.
1117
- * @param dashboard The parameters required to create or update a dashboard.
1118
- * @param options The options parameters.
1119
- */
1120
- createOrUpdate(resourceGroupName, dashboardName, dashboard, options) {
1121
- return this.client.sendOperationRequest({ resourceGroupName, dashboardName, dashboard, options }, createOrUpdateOperationSpec);
1122
- }
1123
- /**
1124
- * Deletes the Dashboard.
1125
- * @param resourceGroupName The name of the resource group.
1126
- * @param dashboardName The name of the dashboard.
1127
- * @param options The options parameters.
1128
- */
1129
- delete(resourceGroupName, dashboardName, options) {
1130
- return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, deleteOperationSpec$1);
1131
- }
1132
- /**
1133
- * Gets the Dashboard.
1134
- * @param resourceGroupName The name of the resource group.
1135
- * @param dashboardName The name of the dashboard.
1136
- * @param options The options parameters.
1137
- */
1138
- get(resourceGroupName, dashboardName, options) {
1139
- return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, getOperationSpec$1);
1140
- }
1141
- /**
1142
- * Updates an existing Dashboard.
1143
- * @param resourceGroupName The name of the resource group.
1144
- * @param dashboardName The name of the dashboard.
1145
- * @param dashboard The updatable fields of a Dashboard.
1146
- * @param options The options parameters.
1147
- */
1148
- update(resourceGroupName, dashboardName, dashboard, options) {
1149
- return this.client.sendOperationRequest({ resourceGroupName, dashboardName, dashboard, options }, updateOperationSpec);
1150
- }
1151
- /**
1152
- * Gets all the Dashboards within a resource group.
1153
- * @param resourceGroupName The name of the resource group.
1154
- * @param options The options parameters.
1155
- */
1156
- _listByResourceGroup(resourceGroupName, options) {
1157
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1158
- }
1159
- /**
1160
- * Gets all the dashboards within a subscription.
1161
- * @param options The options parameters.
1162
- */
1163
- _listBySubscription(options) {
1164
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1165
- }
1166
- /**
1167
- * ListByResourceGroupNext
1168
- * @param resourceGroupName The name of the resource group.
1169
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1170
- * @param options The options parameters.
1171
- */
1172
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1173
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1174
- }
1175
- /**
1176
- * ListBySubscriptionNext
1177
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1178
- * @param options The options parameters.
1179
- */
1180
- _listBySubscriptionNext(nextLink, options) {
1181
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1182
- }
1183
- }
1184
- // Operation Specifications
1185
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1186
- const createOrUpdateOperationSpec = {
1187
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
1188
- httpMethod: "PUT",
1189
- responses: {
1190
- 200: {
1191
- bodyMapper: Dashboard
1192
- },
1193
- 201: {
1194
- bodyMapper: Dashboard
1195
- },
1196
- default: {
1197
- bodyMapper: ErrorResponse
1198
- }
1199
- },
1200
- requestBody: dashboard,
1201
- queryParameters: [apiVersion],
1202
- urlParameters: [
1203
- $host,
1204
- subscriptionId,
1205
- resourceGroupName,
1206
- dashboardName
1207
- ],
1208
- headerParameters: [accept, contentType],
1209
- mediaType: "json",
1210
- serializer: serializer$2
1211
- };
1212
- const deleteOperationSpec$1 = {
1213
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
1214
- httpMethod: "DELETE",
1215
- responses: {
1216
- 200: {},
1217
- 204: {},
1218
- default: {
1219
- bodyMapper: ErrorResponse
1220
- }
1221
- },
1222
- queryParameters: [apiVersion],
1223
- urlParameters: [
1224
- $host,
1225
- subscriptionId,
1226
- resourceGroupName,
1227
- dashboardName
1228
- ],
1229
- headerParameters: [accept],
1230
- serializer: serializer$2
1231
- };
1232
- const getOperationSpec$1 = {
1233
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
1234
- httpMethod: "GET",
1235
- responses: {
1236
- 200: {
1237
- bodyMapper: Dashboard
1238
- },
1239
- 404: {},
1240
- default: {
1241
- bodyMapper: ErrorResponse
1242
- }
1243
- },
1244
- queryParameters: [apiVersion],
1245
- urlParameters: [
1246
- $host,
1247
- subscriptionId,
1248
- resourceGroupName,
1249
- dashboardName
1250
- ],
1251
- headerParameters: [accept],
1252
- serializer: serializer$2
1253
- };
1254
- const updateOperationSpec = {
1255
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
1256
- httpMethod: "PATCH",
1257
- responses: {
1258
- 200: {
1259
- bodyMapper: Dashboard
1260
- },
1261
- 404: {},
1262
- default: {
1263
- bodyMapper: ErrorResponse
1264
- }
1265
- },
1266
- requestBody: dashboard1,
1267
- queryParameters: [apiVersion],
1268
- urlParameters: [
1269
- $host,
1270
- subscriptionId,
1271
- resourceGroupName,
1272
- dashboardName
1273
- ],
1274
- headerParameters: [accept, contentType],
1275
- mediaType: "json",
1276
- serializer: serializer$2
1277
- };
1278
- const listByResourceGroupOperationSpec = {
1279
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards",
1280
- httpMethod: "GET",
1281
- responses: {
1282
- 200: {
1283
- bodyMapper: DashboardListResult
1284
- },
1285
- default: {
1286
- bodyMapper: ErrorResponse
1287
- }
1288
- },
1289
- queryParameters: [apiVersion],
1290
- urlParameters: [
1291
- $host,
1292
- subscriptionId,
1293
- resourceGroupName
1294
- ],
1295
- headerParameters: [accept],
1296
- serializer: serializer$2
1297
- };
1298
- const listBySubscriptionOperationSpec = {
1299
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards",
1300
- httpMethod: "GET",
1301
- responses: {
1302
- 200: {
1303
- bodyMapper: DashboardListResult
1304
- },
1305
- default: {
1306
- bodyMapper: ErrorResponse
1307
- }
1308
- },
1309
- queryParameters: [apiVersion],
1310
- urlParameters: [$host, subscriptionId],
1311
- headerParameters: [accept],
1312
- serializer: serializer$2
1313
- };
1314
- const listByResourceGroupNextOperationSpec = {
1315
- path: "{nextLink}",
1316
- httpMethod: "GET",
1317
- responses: {
1318
- 200: {
1319
- bodyMapper: DashboardListResult
1320
- },
1321
- default: {
1322
- bodyMapper: ErrorResponse
1323
- }
1324
- },
1325
- urlParameters: [
1326
- $host,
1327
- nextLink,
1328
- subscriptionId,
1329
- resourceGroupName
1330
- ],
1331
- headerParameters: [accept],
1332
- serializer: serializer$2
1333
- };
1334
- const listBySubscriptionNextOperationSpec = {
1335
- path: "{nextLink}",
1336
- httpMethod: "GET",
1337
- responses: {
1338
- 200: {
1339
- bodyMapper: DashboardListResult
1340
- },
1341
- default: {
1342
- bodyMapper: ErrorResponse
1343
- }
1344
- },
1345
- urlParameters: [
1346
- $host,
1347
- nextLink,
1348
- subscriptionId
1349
- ],
1350
- headerParameters: [accept],
1351
- serializer: serializer$2
1352
- };
1353
-
1354
- /*
1355
- * Copyright (c) Microsoft Corporation.
1356
- * Licensed under the MIT License.
1357
- *
1358
- * Code generated by Microsoft (R) AutoRest Code Generator.
1359
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1360
- */
1361
- /// <reference lib="esnext.asynciterable" />
1362
- /** Class containing TenantConfigurations operations. */
1363
- class TenantConfigurationsImpl {
1364
- /**
1365
- * Initialize a new instance of the class TenantConfigurations class.
1366
- * @param client Reference to the service client
1367
- */
1368
- constructor(client) {
1369
- this.client = client;
1370
- }
1371
- /**
1372
- * Gets list of the tenant configurations.
1373
- * @param options The options parameters.
1374
- */
1375
- list(options) {
1376
- const iter = this.listPagingAll(options);
1377
- return {
1378
- next() {
1379
- return iter.next();
1380
- },
1381
- [Symbol.asyncIterator]() {
1382
- return this;
1383
- },
1384
- byPage: (settings) => {
1385
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1386
- throw new Error("maxPageSize is not supported by this operation.");
1387
- }
1388
- return this.listPagingPage(options, settings);
1389
- }
1390
- };
1391
- }
1392
- listPagingPage(options, settings) {
1393
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1394
- let result;
1395
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1396
- if (!continuationToken) {
1397
- result = yield tslib.__await(this._list(options));
1398
- let page = result.value || [];
1399
- continuationToken = result.nextLink;
1400
- setContinuationToken(page, continuationToken);
1401
- yield yield tslib.__await(page);
1402
- }
1403
- while (continuationToken) {
1404
- result = yield tslib.__await(this._listNext(continuationToken, options));
1405
- continuationToken = result.nextLink;
1406
- let page = result.value || [];
1407
- setContinuationToken(page, continuationToken);
1408
- yield yield tslib.__await(page);
1409
- }
1410
- });
1411
- }
1412
- listPagingAll(options) {
1413
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1414
- var _a, e_1, _b, _c;
1415
- try {
1416
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1417
- _c = _f.value;
1418
- _d = false;
1419
- const page = _c;
1420
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1421
- }
1422
- }
1423
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1424
- finally {
1425
- try {
1426
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1427
- }
1428
- finally { if (e_1) throw e_1.error; }
1429
- }
1430
- });
1431
- }
1432
- /**
1433
- * Gets list of the tenant configurations.
1434
- * @param options The options parameters.
1435
- */
1436
- _list(options) {
1437
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1438
- }
1439
- /**
1440
- * Gets the tenant configuration.
1441
- * @param configurationName The configuration name. Value must be 'default'
1442
- * @param options The options parameters.
1443
- */
1444
- get(configurationName, options) {
1445
- return this.client.sendOperationRequest({ configurationName, options }, getOperationSpec);
1446
- }
1447
- /**
1448
- * Create the tenant configuration. If configuration already exists - update it. User has to be a
1449
- * Tenant Admin for this operation.
1450
- * @param configurationName The configuration name. Value must be 'default'
1451
- * @param tenantConfiguration The parameters required to create or update tenant configuration.
1452
- * @param options The options parameters.
1453
- */
1454
- create(configurationName, tenantConfiguration, options) {
1455
- return this.client.sendOperationRequest({ configurationName, tenantConfiguration, options }, createOperationSpec);
1456
- }
1457
- /**
1458
- * Delete the tenant configuration. User has to be a Tenant Admin for this operation.
1459
- * @param configurationName The configuration name. Value must be 'default'
1460
- * @param options The options parameters.
1461
- */
1462
- delete(configurationName, options) {
1463
- return this.client.sendOperationRequest({ configurationName, options }, deleteOperationSpec);
1464
- }
1465
- /**
1466
- * ListNext
1467
- * @param nextLink The nextLink from the previous successful call to the List method.
1468
- * @param options The options parameters.
1469
- */
1470
- _listNext(nextLink, options) {
1471
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1472
- }
1473
- }
1474
- // Operation Specifications
1475
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1476
- const listOperationSpec$1 = {
1477
- path: "/providers/Microsoft.Portal/tenantConfigurations",
1478
- httpMethod: "GET",
1479
- responses: {
1480
- 200: {
1481
- bodyMapper: ConfigurationList
1482
- },
1483
- default: {
1484
- bodyMapper: ErrorResponse
1485
- }
1486
- },
1487
- queryParameters: [apiVersion],
1488
- urlParameters: [$host],
1489
- headerParameters: [accept],
1490
- serializer: serializer$1
1491
- };
1492
- const getOperationSpec = {
1493
- path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
1494
- httpMethod: "GET",
1495
- responses: {
1496
- 200: {
1497
- bodyMapper: Configuration
1498
- },
1499
- 404: {},
1500
- default: {
1501
- bodyMapper: ErrorResponse
1502
- }
1503
- },
1504
- queryParameters: [apiVersion],
1505
- urlParameters: [$host, configurationName],
1506
- headerParameters: [accept],
1507
- serializer: serializer$1
1508
- };
1509
- const createOperationSpec = {
1510
- path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
1511
- httpMethod: "PUT",
1512
- responses: {
1513
- 200: {
1514
- bodyMapper: Configuration
1515
- },
1516
- 201: {
1517
- bodyMapper: Configuration
1518
- },
1519
- default: {
1520
- bodyMapper: ErrorResponse
1521
- }
1522
- },
1523
- requestBody: tenantConfiguration,
1524
- queryParameters: [apiVersion],
1525
- urlParameters: [$host, configurationName],
1526
- headerParameters: [accept, contentType],
1527
- mediaType: "json",
1528
- serializer: serializer$1
1529
- };
1530
- const deleteOperationSpec = {
1531
- path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
1532
- httpMethod: "DELETE",
1533
- responses: {
1534
- 200: {},
1535
- 204: {},
1536
- default: {
1537
- bodyMapper: ErrorResponse
1538
- }
1539
- },
1540
- queryParameters: [apiVersion],
1541
- urlParameters: [$host, configurationName],
1542
- headerParameters: [accept],
1543
- serializer: serializer$1
1544
- };
1545
- const listNextOperationSpec$1 = {
1546
- path: "{nextLink}",
1547
- httpMethod: "GET",
1548
- responses: {
1549
- 200: {
1550
- bodyMapper: ConfigurationList
1551
- },
1552
- default: {
1553
- bodyMapper: ErrorResponse
1554
- }
1555
- },
1556
- urlParameters: [$host, nextLink],
1557
- headerParameters: [accept],
1558
- serializer: serializer$1
1559
- };
1560
-
1561
- /*
1562
- * Copyright (c) Microsoft Corporation.
1563
- * Licensed under the MIT License.
1564
- *
1565
- * Code generated by Microsoft (R) AutoRest Code Generator.
1566
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1567
- */
1568
- /// <reference lib="esnext.asynciterable" />
1569
- /** Class containing ListTenantConfigurationViolations operations. */
1570
- class ListTenantConfigurationViolationsImpl {
1571
- /**
1572
- * Initialize a new instance of the class ListTenantConfigurationViolations class.
1573
- * @param client Reference to the service client
1574
- */
1575
- constructor(client) {
1576
- this.client = client;
1577
- }
1578
- /**
1579
- * Gets list of items that violate tenant's configuration.
1580
- * @param options The options parameters.
1581
- */
1582
- list(options) {
1583
- const iter = this.listPagingAll(options);
1584
- return {
1585
- next() {
1586
- return iter.next();
1587
- },
1588
- [Symbol.asyncIterator]() {
1589
- return this;
1590
- },
1591
- byPage: (settings) => {
1592
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1593
- throw new Error("maxPageSize is not supported by this operation.");
1594
- }
1595
- return this.listPagingPage(options, settings);
1596
- }
1597
- };
1598
- }
1599
- listPagingPage(options, settings) {
1600
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1601
- let result;
1602
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1603
- if (!continuationToken) {
1604
- result = yield tslib.__await(this._list(options));
1605
- let page = result.value || [];
1606
- continuationToken = result.nextLink;
1607
- setContinuationToken(page, continuationToken);
1608
- yield yield tslib.__await(page);
1609
- }
1610
- while (continuationToken) {
1611
- result = yield tslib.__await(this._listNext(continuationToken, options));
1612
- continuationToken = result.nextLink;
1613
- let page = result.value || [];
1614
- setContinuationToken(page, continuationToken);
1615
- yield yield tslib.__await(page);
1616
- }
1617
- });
1618
- }
1619
- listPagingAll(options) {
1620
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1621
- var _a, e_1, _b, _c;
1622
- try {
1623
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1624
- _c = _f.value;
1625
- _d = false;
1626
- const page = _c;
1627
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1628
- }
1629
- }
1630
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1631
- finally {
1632
- try {
1633
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1634
- }
1635
- finally { if (e_1) throw e_1.error; }
1636
- }
1637
- });
1638
- }
1639
- /**
1640
- * Gets list of items that violate tenant's configuration.
1641
- * @param options The options parameters.
1642
- */
1643
- _list(options) {
1644
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1645
- }
1646
- /**
1647
- * ListNext
1648
- * @param nextLink The nextLink from the previous successful call to the List method.
1649
- * @param options The options parameters.
1650
- */
1651
- _listNext(nextLink, options) {
1652
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1653
- }
1654
- }
1655
- // Operation Specifications
1656
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1657
- const listOperationSpec = {
1658
- path: "/providers/Microsoft.Portal/listTenantConfigurationViolations",
1659
- httpMethod: "POST",
1660
- responses: {
1661
- 200: {
1662
- bodyMapper: ViolationsList
1663
- },
1664
- default: {
1665
- bodyMapper: ErrorResponse
1666
- }
1667
- },
1668
- queryParameters: [apiVersion],
1669
- urlParameters: [$host],
1670
- headerParameters: [accept],
1671
- serializer
1672
- };
1673
- const listNextOperationSpec = {
1674
- path: "{nextLink}",
1675
- httpMethod: "GET",
1676
- responses: {
1677
- 200: {
1678
- bodyMapper: ViolationsList
1679
- },
1680
- default: {
1681
- bodyMapper: ErrorResponse
1682
- }
1683
- },
1684
- urlParameters: [$host, nextLink],
1685
- headerParameters: [accept],
1686
- serializer
1687
- };
1688
-
1689
- /*
1690
- * Copyright (c) Microsoft Corporation.
1691
- * Licensed under the MIT License.
1692
- *
1693
- * Code generated by Microsoft (R) AutoRest Code Generator.
1694
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1695
- */
1696
- class Portal extends coreClient__namespace.ServiceClient {
1697
- /**
1698
- * Initializes a new instance of the Portal class.
1699
- * @param credentials Subscription credentials which uniquely identify client subscription.
1700
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
1701
- * 00000000-0000-0000-0000-000000000000)
1702
- * @param options The parameter options
1703
- */
1704
- constructor(credentials, subscriptionId, options) {
1705
- var _a, _b, _c;
1706
- if (credentials === undefined) {
1707
- throw new Error("'credentials' cannot be null");
1708
- }
1709
- if (subscriptionId === undefined) {
1710
- throw new Error("'subscriptionId' cannot be null");
1711
- }
1712
- // Initializing default values for options
1713
- if (!options) {
1714
- options = {};
1715
- }
1716
- const defaults = {
1717
- requestContentType: "application/json; charset=utf-8",
1718
- credential: credentials
1719
- };
1720
- const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.6`;
1721
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1722
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1723
- : `${packageDetails}`;
1724
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1725
- userAgentPrefix
1726
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1727
- super(optionsWithDefaults);
1728
- let bearerTokenAuthenticationPolicyFound = false;
1729
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1730
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1731
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1732
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1733
- }
1734
- if (!options ||
1735
- !options.pipeline ||
1736
- options.pipeline.getOrderedPolicies().length == 0 ||
1737
- !bearerTokenAuthenticationPolicyFound) {
1738
- this.pipeline.removePolicy({
1739
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1740
- });
1741
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1742
- credential: credentials,
1743
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1744
- challengeCallbacks: {
1745
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1746
- }
1747
- }));
1748
- }
1749
- // Parameter assignments
1750
- this.subscriptionId = subscriptionId;
1751
- // Assigning values to Constant parameters
1752
- this.$host = options.$host || "https://management.azure.com";
1753
- this.apiVersion = options.apiVersion || "2020-09-01-preview";
1754
- this.operations = new OperationsImpl(this);
1755
- this.dashboards = new DashboardsImpl(this);
1756
- this.tenantConfigurations = new TenantConfigurationsImpl(this);
1757
- this.listTenantConfigurationViolations = new ListTenantConfigurationViolationsImpl(this);
1758
- this.addCustomApiVersionPolicy(options.apiVersion);
1759
- }
1760
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1761
- addCustomApiVersionPolicy(apiVersion) {
1762
- if (!apiVersion) {
1763
- return;
1764
- }
1765
- const apiVersionPolicy = {
1766
- name: "CustomApiVersionPolicy",
1767
- sendRequest(request, next) {
1768
- return tslib.__awaiter(this, void 0, void 0, function* () {
1769
- const param = request.url.split("?");
1770
- if (param.length > 1) {
1771
- const newParams = param[1].split("&").map((item) => {
1772
- if (item.indexOf("api-version") > -1) {
1773
- return "api-version=" + apiVersion;
1774
- }
1775
- else {
1776
- return item;
1777
- }
1778
- });
1779
- request.url = param[0] + "?" + newParams.join("&");
1780
- }
1781
- return next(request);
1782
- });
1783
- }
1784
- };
1785
- this.pipeline.addPolicy(apiVersionPolicy);
1786
- }
1787
- }
1788
-
1789
- exports.Portal = Portal;
1790
- exports.getContinuationToken = getContinuationToken;
1791
- //# sourceMappingURL=index.js.map