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

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