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