@azure/arm-powerbiembedded 2.0.3-alpha.20250218.1 → 2.0.3-alpha.20250219.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/README.md +21 -15
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js +25 -0
  7. package/dist/browser/lroImpl.js.map +1 -0
  8. package/dist/browser/models/index.js.map +1 -0
  9. package/dist/browser/models/mappers.js.map +1 -0
  10. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  11. package/dist/browser/models/parameters.js.map +1 -0
  12. package/dist/browser/operations/index.d.ts +3 -0
  13. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  14. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  15. package/dist/browser/operations/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/workspaceCollections.d.ts +3 -3
  17. package/dist/browser/operations/workspaceCollections.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/workspaceCollections.js +36 -40
  19. package/dist/browser/operations/workspaceCollections.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
  21. package/dist/browser/operations/workspaces.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/workspaces.js +2 -2
  23. package/dist/browser/operations/workspaces.js.map +1 -0
  24. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  26. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  27. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaceCollections.d.ts +1 -1
  29. package/dist/browser/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
  30. package/dist/browser/operationsInterfaces/workspaceCollections.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
  32. package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
  34. package/dist/browser/package.json +3 -0
  35. package/dist/browser/pagingHelper.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/powerBIEmbeddedManagementClient.d.ts +2 -2
  37. package/dist/browser/powerBIEmbeddedManagementClient.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/powerBIEmbeddedManagementClient.js +17 -20
  39. package/dist/browser/powerBIEmbeddedManagementClient.js.map +1 -0
  40. package/dist/commonjs/index.d.ts +5 -0
  41. package/dist/commonjs/index.d.ts.map +1 -0
  42. package/dist/commonjs/index.js +19 -0
  43. package/dist/commonjs/index.js.map +1 -0
  44. package/dist/commonjs/lroImpl.d.ts +16 -0
  45. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  46. package/dist/commonjs/lroImpl.js +29 -0
  47. package/dist/commonjs/lroImpl.js.map +1 -0
  48. package/dist/commonjs/models/index.d.ts +230 -0
  49. package/dist/commonjs/models/index.d.ts.map +1 -0
  50. package/dist/commonjs/models/index.js +31 -0
  51. package/dist/commonjs/models/index.js.map +1 -0
  52. package/dist/commonjs/models/mappers.d.ts +19 -0
  53. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  54. package/dist/commonjs/models/mappers.js +459 -0
  55. package/dist/commonjs/models/mappers.js.map +1 -0
  56. package/dist/commonjs/models/parameters.d.ts +15 -0
  57. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  58. package/dist/commonjs/models/parameters.js +116 -0
  59. package/dist/commonjs/models/parameters.js.map +1 -0
  60. package/dist/commonjs/operations/index.d.ts +3 -0
  61. package/dist/commonjs/operations/index.d.ts.map +1 -0
  62. package/dist/commonjs/operations/index.js +13 -0
  63. package/dist/commonjs/operations/index.js.map +1 -0
  64. package/dist/commonjs/operations/workspaceCollections.d.ts +110 -0
  65. package/dist/commonjs/operations/workspaceCollections.d.ts.map +1 -0
  66. package/dist/commonjs/operations/workspaceCollections.js +470 -0
  67. package/dist/commonjs/operations/workspaceCollections.js.map +1 -0
  68. package/dist/commonjs/operations/workspaces.d.ts +30 -0
  69. package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
  70. package/dist/commonjs/operations/workspaces.js +109 -0
  71. package/dist/commonjs/operations/workspaces.js.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  73. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  75. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/workspaceCollections.d.ts +87 -0
  77. package/dist/commonjs/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/workspaceCollections.js +10 -0
  79. package/dist/commonjs/operationsInterfaces/workspaceCollections.js.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/workspaces.d.ts +13 -0
  81. package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
  83. package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
  84. package/dist/commonjs/package.json +3 -0
  85. package/dist/commonjs/pagingHelper.d.ts +13 -0
  86. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  87. package/dist/commonjs/pagingHelper.js +36 -0
  88. package/dist/commonjs/pagingHelper.js.map +1 -0
  89. package/dist/commonjs/powerBIEmbeddedManagementClient.d.ts +27 -0
  90. package/dist/commonjs/powerBIEmbeddedManagementClient.d.ts.map +1 -0
  91. package/dist/commonjs/powerBIEmbeddedManagementClient.js +131 -0
  92. package/dist/commonjs/powerBIEmbeddedManagementClient.js.map +1 -0
  93. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  94. package/dist/esm/index.d.ts +5 -0
  95. package/dist/esm/index.d.ts.map +1 -0
  96. package/{src/index.ts → dist/esm/index.js} +5 -5
  97. package/dist/esm/index.js.map +1 -0
  98. package/dist/esm/lroImpl.d.ts +16 -0
  99. package/dist/esm/lroImpl.d.ts.map +1 -0
  100. package/dist/esm/lroImpl.js +25 -0
  101. package/dist/esm/lroImpl.js.map +1 -0
  102. package/dist/esm/models/index.d.ts +230 -0
  103. package/dist/esm/models/index.d.ts.map +1 -0
  104. package/dist/esm/models/index.js +28 -0
  105. package/dist/esm/models/index.js.map +1 -0
  106. package/dist/esm/models/mappers.d.ts +19 -0
  107. package/dist/esm/models/mappers.d.ts.map +1 -0
  108. package/dist/esm/models/mappers.js +456 -0
  109. package/dist/esm/models/mappers.js.map +1 -0
  110. package/dist/esm/models/parameters.d.ts +15 -0
  111. package/dist/esm/models/parameters.d.ts.map +1 -0
  112. package/dist/esm/models/parameters.js +113 -0
  113. package/dist/esm/models/parameters.js.map +1 -0
  114. package/dist/esm/operations/index.d.ts +3 -0
  115. package/dist/esm/operations/index.d.ts.map +1 -0
  116. package/dist/esm/operations/index.js +10 -0
  117. package/dist/esm/operations/index.js.map +1 -0
  118. package/dist/esm/operations/workspaceCollections.d.ts +110 -0
  119. package/dist/esm/operations/workspaceCollections.d.ts.map +1 -0
  120. package/dist/esm/operations/workspaceCollections.js +466 -0
  121. package/dist/esm/operations/workspaceCollections.js.map +1 -0
  122. package/dist/esm/operations/workspaces.d.ts +30 -0
  123. package/dist/esm/operations/workspaces.d.ts.map +1 -0
  124. package/dist/esm/operations/workspaces.js +105 -0
  125. package/dist/esm/operations/workspaces.js.map +1 -0
  126. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  127. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  128. package/dist/esm/operationsInterfaces/index.js +10 -0
  129. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  130. package/dist/esm/operationsInterfaces/workspaceCollections.d.ts +87 -0
  131. package/dist/esm/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
  132. package/{src/operations/index.ts → dist/esm/operationsInterfaces/workspaceCollections.js} +2 -3
  133. package/dist/esm/operationsInterfaces/workspaceCollections.js.map +1 -0
  134. package/dist/esm/operationsInterfaces/workspaces.d.ts +13 -0
  135. package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
  136. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/workspaces.js} +2 -3
  137. package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
  138. package/dist/esm/package.json +3 -0
  139. package/dist/esm/pagingHelper.d.ts +13 -0
  140. package/dist/esm/pagingHelper.d.ts.map +1 -0
  141. package/dist/esm/pagingHelper.js +32 -0
  142. package/dist/esm/pagingHelper.js.map +1 -0
  143. package/dist/esm/powerBIEmbeddedManagementClient.d.ts +27 -0
  144. package/dist/esm/powerBIEmbeddedManagementClient.d.ts.map +1 -0
  145. package/dist/esm/powerBIEmbeddedManagementClient.js +126 -0
  146. package/dist/esm/powerBIEmbeddedManagementClient.js.map +1 -0
  147. package/dist/react-native/index.d.ts +5 -0
  148. package/dist/react-native/index.d.ts.map +1 -0
  149. package/dist/react-native/index.js +13 -0
  150. package/dist/react-native/index.js.map +1 -0
  151. package/dist/react-native/lroImpl.d.ts +16 -0
  152. package/dist/react-native/lroImpl.d.ts.map +1 -0
  153. package/dist/react-native/lroImpl.js +25 -0
  154. package/dist/react-native/lroImpl.js.map +1 -0
  155. package/dist/react-native/models/index.d.ts +230 -0
  156. package/dist/react-native/models/index.d.ts.map +1 -0
  157. package/dist/react-native/models/index.js +28 -0
  158. package/dist/react-native/models/index.js.map +1 -0
  159. package/dist/react-native/models/mappers.d.ts +19 -0
  160. package/dist/react-native/models/mappers.d.ts.map +1 -0
  161. package/dist/react-native/models/mappers.js +456 -0
  162. package/dist/react-native/models/mappers.js.map +1 -0
  163. package/dist/react-native/models/parameters.d.ts +15 -0
  164. package/dist/react-native/models/parameters.d.ts.map +1 -0
  165. package/dist/react-native/models/parameters.js +113 -0
  166. package/dist/react-native/models/parameters.js.map +1 -0
  167. package/dist/react-native/operations/index.d.ts +3 -0
  168. package/dist/react-native/operations/index.d.ts.map +1 -0
  169. package/dist/react-native/operations/index.js +10 -0
  170. package/dist/react-native/operations/index.js.map +1 -0
  171. package/dist/react-native/operations/workspaceCollections.d.ts +110 -0
  172. package/dist/react-native/operations/workspaceCollections.d.ts.map +1 -0
  173. package/dist/react-native/operations/workspaceCollections.js +466 -0
  174. package/dist/react-native/operations/workspaceCollections.js.map +1 -0
  175. package/dist/react-native/operations/workspaces.d.ts +30 -0
  176. package/dist/react-native/operations/workspaces.d.ts.map +1 -0
  177. package/dist/react-native/operations/workspaces.js +105 -0
  178. package/dist/react-native/operations/workspaces.js.map +1 -0
  179. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  180. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  181. package/dist/react-native/operationsInterfaces/index.js +10 -0
  182. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  183. package/dist/react-native/operationsInterfaces/workspaceCollections.d.ts +87 -0
  184. package/dist/react-native/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
  185. package/dist/react-native/operationsInterfaces/workspaceCollections.js +9 -0
  186. package/dist/react-native/operationsInterfaces/workspaceCollections.js.map +1 -0
  187. package/dist/react-native/operationsInterfaces/workspaces.d.ts +13 -0
  188. package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
  189. package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
  190. package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
  191. package/dist/react-native/package.json +3 -0
  192. package/dist/react-native/pagingHelper.d.ts +13 -0
  193. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  194. package/dist/react-native/pagingHelper.js +32 -0
  195. package/dist/react-native/pagingHelper.js.map +1 -0
  196. package/dist/react-native/powerBIEmbeddedManagementClient.d.ts +27 -0
  197. package/dist/react-native/powerBIEmbeddedManagementClient.d.ts.map +1 -0
  198. package/dist/react-native/powerBIEmbeddedManagementClient.js +126 -0
  199. package/dist/react-native/powerBIEmbeddedManagementClient.js.map +1 -0
  200. package/package.json +68 -37
  201. package/dist/index.js +0 -1388
  202. package/dist/index.js.map +0 -1
  203. package/dist/index.min.js +0 -1
  204. package/dist/index.min.js.map +0 -1
  205. package/dist-esm/src/index.d.ts +0 -5
  206. package/dist-esm/src/index.js.map +0 -1
  207. package/dist-esm/src/lroImpl.js +0 -29
  208. package/dist-esm/src/lroImpl.js.map +0 -1
  209. package/dist-esm/src/models/index.js.map +0 -1
  210. package/dist-esm/src/models/mappers.js.map +0 -1
  211. package/dist-esm/src/models/parameters.js.map +0 -1
  212. package/dist-esm/src/operations/index.d.ts +0 -3
  213. package/dist-esm/src/operations/index.js.map +0 -1
  214. package/dist-esm/src/operations/workspaceCollections.d.ts.map +0 -1
  215. package/dist-esm/src/operations/workspaceCollections.js.map +0 -1
  216. package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
  217. package/dist-esm/src/operations/workspaces.js.map +0 -1
  218. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  219. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  220. package/dist-esm/src/operationsInterfaces/workspaceCollections.d.ts.map +0 -1
  221. package/dist-esm/src/operationsInterfaces/workspaceCollections.js.map +0 -1
  222. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
  223. package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
  224. package/dist-esm/src/pagingHelper.js.map +0 -1
  225. package/dist-esm/src/powerBIEmbeddedManagementClient.d.ts.map +0 -1
  226. package/dist-esm/src/powerBIEmbeddedManagementClient.js.map +0 -1
  227. package/dist-esm/test/sampleTest.d.ts +0 -2
  228. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  229. package/dist-esm/test/sampleTest.js +0 -42
  230. package/dist-esm/test/sampleTest.js.map +0 -1
  231. package/src/lroImpl.ts +0 -34
  232. package/src/models/index.ts +0 -279
  233. package/src/models/mappers.ts +0 -474
  234. package/src/models/parameters.ts +0 -137
  235. package/src/operations/workspaceCollections.ts +0 -611
  236. package/src/operations/workspaces.ts +0 -141
  237. package/src/operationsInterfaces/workspaceCollections.ts +0 -163
  238. package/src/operationsInterfaces/workspaces.ts +0 -26
  239. package/src/pagingHelper.ts +0 -39
  240. package/src/powerBIEmbeddedManagementClient.ts +0 -181
  241. package/tsconfig.json +0 -33
  242. package/types/arm-powerbiembedded.d.ts +0 -409
  243. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  244. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  245. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  246. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  247. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  248. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  249. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  250. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  251. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  252. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  253. /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaceCollections.js +0 -0
  254. /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
  255. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  256. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  257. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -0,0 +1,30 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Workspaces } from "../operationsInterfaces/index.js";
3
+ import { PowerBIEmbeddedManagementClient } from "../powerBIEmbeddedManagementClient.js";
4
+ import { Workspace, WorkspacesListOptionalParams } from "../models/index.js";
5
+ /** Class containing Workspaces operations. */
6
+ export declare class WorkspacesImpl implements Workspaces {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Workspaces class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: PowerBIEmbeddedManagementClient);
13
+ /**
14
+ * Retrieves all existing Power BI workspaces in the specified workspace collection.
15
+ * @param resourceGroupName Azure resource group
16
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
17
+ * @param options The options parameters.
18
+ */
19
+ list(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
20
+ private listPagingPage;
21
+ private listPagingAll;
22
+ /**
23
+ * Retrieves all existing Power BI workspaces in the specified workspace collection.
24
+ * @param resourceGroupName Azure resource group
25
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
26
+ * @param options The options parameters.
27
+ */
28
+ private _list;
29
+ }
30
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;IAEzD;;;OAGG;gBACS,MAAM,EAAE,+BAA+B;IAInD;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YA2BzB,cAAc;YAed,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;CAUd"}
@@ -0,0 +1,105 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Workspaces operations. */
14
+ export class WorkspacesImpl {
15
+ /**
16
+ * Initialize a new instance of the class Workspaces class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Retrieves all existing Power BI workspaces in the specified workspace collection.
24
+ * @param resourceGroupName Azure resource group
25
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
26
+ * @param options The options parameters.
27
+ */
28
+ list(resourceGroupName, workspaceCollectionName, options) {
29
+ const iter = this.listPagingAll(resourceGroupName, workspaceCollectionName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: (settings) => {
38
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ throw new Error("maxPageSize is not supported by this operation.");
40
+ }
41
+ return this.listPagingPage(resourceGroupName, workspaceCollectionName, options, settings);
42
+ }
43
+ };
44
+ }
45
+ listPagingPage(resourceGroupName, workspaceCollectionName, options, _settings) {
46
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
47
+ let result;
48
+ result = yield __await(this._list(resourceGroupName, workspaceCollectionName, options));
49
+ yield yield __await(result.value || []);
50
+ });
51
+ }
52
+ listPagingAll(resourceGroupName, workspaceCollectionName, options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var _a, e_1, _b, _c;
55
+ try {
56
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, workspaceCollectionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
57
+ _c = _f.value;
58
+ _d = false;
59
+ const page = _c;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Retrieves all existing Power BI workspaces in the specified workspace collection.
74
+ * @param resourceGroupName Azure resource group
75
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
76
+ * @param options The options parameters.
77
+ */
78
+ _list(resourceGroupName, workspaceCollectionName, options) {
79
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, options }, listOperationSpec);
80
+ }
81
+ }
82
+ // Operation Specifications
83
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
84
+ const listOperationSpec = {
85
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces",
86
+ httpMethod: "GET",
87
+ responses: {
88
+ 200: {
89
+ bodyMapper: Mappers.WorkspaceList
90
+ },
91
+ default: {
92
+ bodyMapper: Mappers.ErrorModel
93
+ }
94
+ },
95
+ queryParameters: [Parameters.apiVersion],
96
+ urlParameters: [
97
+ Parameters.$host,
98
+ Parameters.subscriptionId,
99
+ Parameters.resourceGroupName,
100
+ Parameters.workspaceCollectionName
101
+ ],
102
+ headerParameters: [Parameters.accept],
103
+ serializer
104
+ };
105
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mapp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,EAC/B,OAAsC;;;;gBAEtC,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAC1C,iBAAiB,EACjB,uBAAuB,EACvB,OAAO,CACR,CAAA,IAAA,+DAAE,CAAC;oBAJqB,cAIxB;oBAJwB,WAIxB;oBAJU,MAAM,IAAI,KAAA,CAAA;oBAKnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;gBACd,CAAC;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACK,KAAK,CACX,iBAAyB,EACzB,uBAA+B,EAC/B,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,EAAE,EACvD,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,0JAA0J;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Workspaces } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PowerBIEmbeddedManagementClient } from \"../powerBIEmbeddedManagementClient.js\";\nimport {\n Workspace,\n WorkspacesListOptionalParams,\n WorkspacesListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workspaces operations. */\nexport class WorkspacesImpl implements Workspaces {\n private readonly client: PowerBIEmbeddedManagementClient;\n\n /**\n * Initialize a new instance of the class Workspaces class.\n * @param client Reference to the service client\n */\n constructor(client: PowerBIEmbeddedManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all existing Power BI workspaces in the specified workspace collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listPagingAll(\n resourceGroupName,\n workspaceCollectionName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceCollectionName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Workspace[]> {\n let result: WorkspacesListResponse;\n result = await this._list(\n resourceGroupName,\n workspaceCollectionName,\n options\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceCollectionName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all existing Power BI workspaces in the specified workspace collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): Promise<WorkspacesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceCollectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./workspaceCollections.js";
2
+ export * from "./workspaces.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./workspaceCollections.js";
9
+ export * from "./workspaces.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./workspaceCollections.js\";\nexport * from \"./workspaces.js\";\n"]}
@@ -0,0 +1,87 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
3
+ import { WorkspaceCollection, WorkspaceCollectionsListByResourceGroupOptionalParams, WorkspaceCollectionsListBySubscriptionOptionalParams, WorkspaceCollectionsGetByNameOptionalParams, WorkspaceCollectionsGetByNameResponse, CreateWorkspaceCollectionRequest, WorkspaceCollectionsCreateOptionalParams, WorkspaceCollectionsCreateResponse, UpdateWorkspaceCollectionRequest, WorkspaceCollectionsUpdateOptionalParams, WorkspaceCollectionsUpdateResponse, WorkspaceCollectionsDeleteOptionalParams, CheckNameRequest, WorkspaceCollectionsCheckNameAvailabilityOptionalParams, WorkspaceCollectionsCheckNameAvailabilityResponse, WorkspaceCollectionsGetAccessKeysOptionalParams, WorkspaceCollectionsGetAccessKeysResponse, WorkspaceCollectionAccessKey, WorkspaceCollectionsRegenerateKeyOptionalParams, WorkspaceCollectionsRegenerateKeyResponse, MigrateWorkspaceCollectionRequest, WorkspaceCollectionsMigrateOptionalParams } from "../models/index.js";
4
+ /** Interface representing a WorkspaceCollections. */
5
+ export interface WorkspaceCollections {
6
+ /**
7
+ * Retrieves all existing Power BI workspace collections in the specified resource group.
8
+ * @param resourceGroupName Azure resource group
9
+ * @param options The options parameters.
10
+ */
11
+ listByResourceGroup(resourceGroupName: string, options?: WorkspaceCollectionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<WorkspaceCollection>;
12
+ /**
13
+ * Retrieves all existing Power BI workspace collections in the specified subscription.
14
+ * @param options The options parameters.
15
+ */
16
+ listBySubscription(options?: WorkspaceCollectionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<WorkspaceCollection>;
17
+ /**
18
+ * Retrieves an existing Power BI Workspace Collection.
19
+ * @param resourceGroupName Azure resource group
20
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
21
+ * @param options The options parameters.
22
+ */
23
+ getByName(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsGetByNameOptionalParams): Promise<WorkspaceCollectionsGetByNameResponse>;
24
+ /**
25
+ * Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace
26
+ * Collection contains one or more workspaces, and can be used to provision keys that provide API
27
+ * access to those workspaces.
28
+ * @param resourceGroupName Azure resource group
29
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
30
+ * @param body Create workspace collection request
31
+ * @param options The options parameters.
32
+ */
33
+ create(resourceGroupName: string, workspaceCollectionName: string, body: CreateWorkspaceCollectionRequest, options?: WorkspaceCollectionsCreateOptionalParams): Promise<WorkspaceCollectionsCreateResponse>;
34
+ /**
35
+ * Update an existing Power BI Workspace Collection with the specified properties.
36
+ * @param resourceGroupName Azure resource group
37
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
38
+ * @param body Update workspace collection request
39
+ * @param options The options parameters.
40
+ */
41
+ update(resourceGroupName: string, workspaceCollectionName: string, body: UpdateWorkspaceCollectionRequest, options?: WorkspaceCollectionsUpdateOptionalParams): Promise<WorkspaceCollectionsUpdateResponse>;
42
+ /**
43
+ * Delete a Power BI Workspace Collection.
44
+ * @param resourceGroupName Azure resource group
45
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
46
+ * @param options The options parameters.
47
+ */
48
+ beginDelete(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
49
+ /**
50
+ * Delete a Power BI Workspace Collection.
51
+ * @param resourceGroupName Azure resource group
52
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
53
+ * @param options The options parameters.
54
+ */
55
+ beginDeleteAndWait(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsDeleteOptionalParams): Promise<void>;
56
+ /**
57
+ * Verify the specified Power BI Workspace Collection name is valid and not already in use.
58
+ * @param location Azure location
59
+ * @param body Check name availability request
60
+ * @param options The options parameters.
61
+ */
62
+ checkNameAvailability(location: string, body: CheckNameRequest, options?: WorkspaceCollectionsCheckNameAvailabilityOptionalParams): Promise<WorkspaceCollectionsCheckNameAvailabilityResponse>;
63
+ /**
64
+ * Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection.
65
+ * @param resourceGroupName Azure resource group
66
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
67
+ * @param options The options parameters.
68
+ */
69
+ getAccessKeys(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsGetAccessKeysOptionalParams): Promise<WorkspaceCollectionsGetAccessKeysResponse>;
70
+ /**
71
+ * Regenerates the primary or secondary access key for the specified Power BI Workspace Collection.
72
+ * @param resourceGroupName Azure resource group
73
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
74
+ * @param body Access key to regenerate
75
+ * @param options The options parameters.
76
+ */
77
+ regenerateKey(resourceGroupName: string, workspaceCollectionName: string, body: WorkspaceCollectionAccessKey, options?: WorkspaceCollectionsRegenerateKeyOptionalParams): Promise<WorkspaceCollectionsRegenerateKeyResponse>;
78
+ /**
79
+ * Migrates an existing Power BI Workspace Collection to a different resource group and/or
80
+ * subscription.
81
+ * @param resourceGroupName Azure resource group
82
+ * @param body Workspace migration request
83
+ * @param options The options parameters.
84
+ */
85
+ migrate(resourceGroupName: string, body: MigrateWorkspaceCollectionRequest, options?: WorkspaceCollectionsMigrateOptionalParams): Promise<void>;
86
+ }
87
+ //# sourceMappingURL=workspaceCollections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceCollections.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaceCollections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,qDAAqD,EACrD,oDAAoD,EACpD,2CAA2C,EAC3C,qCAAqC,EACrC,gCAAgC,EAChC,wCAAwC,EACxC,kCAAkC,EAClC,gCAAgC,EAChC,wCAAwC,EACxC,kCAAkC,EAClC,wCAAwC,EACxC,gBAAgB,EAChB,uDAAuD,EACvD,iDAAiD,EACjD,+CAA+C,EAC/C,yCAAyC,EACzC,4BAA4B,EAC5B,+CAA+C,EAC/C,yCAAyC,EACzC,iCAAiC,EACjC,yCAAyC,EAC1C,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;OAKG;IACH,SAAS,CACP,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH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avior and will be lost if the code is regenerated.
7
7
  */
8
-
9
- export * from "./workspaceCollections";
10
- export * from "./workspaces";
8
+ export {};
9
+ //# sourceMappingURL=workspaceCollections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceCollections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaceCollections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n WorkspaceCollection,\n WorkspaceCollectionsListByResourceGroupOptionalParams,\n WorkspaceCollectionsListBySubscriptionOptionalParams,\n WorkspaceCollectionsGetByNameOptionalParams,\n WorkspaceCollectionsGetByNameResponse,\n CreateWorkspaceCollectionRequest,\n WorkspaceCollectionsCreateOptionalParams,\n WorkspaceCollectionsCreateResponse,\n UpdateWorkspaceCollectionRequest,\n WorkspaceCollectionsUpdateOptionalParams,\n WorkspaceCollectionsUpdateResponse,\n WorkspaceCollectionsDeleteOptionalParams,\n CheckNameRequest,\n WorkspaceCollectionsCheckNameAvailabilityOptionalParams,\n WorkspaceCollectionsCheckNameAvailabilityResponse,\n WorkspaceCollectionsGetAccessKeysOptionalParams,\n WorkspaceCollectionsGetAccessKeysResponse,\n WorkspaceCollectionAccessKey,\n WorkspaceCollectionsRegenerateKeyOptionalParams,\n WorkspaceCollectionsRegenerateKeyResponse,\n MigrateWorkspaceCollectionRequest,\n WorkspaceCollectionsMigrateOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a WorkspaceCollections. */\nexport interface WorkspaceCollections {\n /**\n * Retrieves all existing Power BI workspace collections in the specified resource group.\n * @param resourceGroupName Azure resource group\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspaceCollectionsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<WorkspaceCollection>;\n /**\n * Retrieves all existing Power BI workspace collections in the specified subscription.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: WorkspaceCollectionsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<WorkspaceCollection>;\n /**\n * Retrieves an existing Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n getByName(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsGetByNameOptionalParams\n ): Promise<WorkspaceCollectionsGetByNameResponse>;\n /**\n * Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace\n * Collection contains one or more workspaces, and can be used to provision keys that provide API\n * access to those workspaces.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param body Create workspace collection request\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceCollectionName: string,\n body: CreateWorkspaceCollectionRequest,\n options?: WorkspaceCollectionsCreateOptionalParams\n ): Promise<WorkspaceCollectionsCreateResponse>;\n /**\n * Update an existing Power BI Workspace Collection with the specified properties.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param body Update workspace collection request\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceCollectionName: string,\n body: UpdateWorkspaceCollectionRequest,\n options?: WorkspaceCollectionsUpdateOptionalParams\n ): Promise<WorkspaceCollectionsUpdateResponse>;\n /**\n * Delete a Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\n /**\n * Delete a Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsDeleteOptionalParams\n ): Promise<void>;\n /**\n * Verify the specified Power BI Workspace Collection name is valid and not already in use.\n * @param location Azure location\n * @param body Check name availability request\n * @param options The options parameters.\n */\n checkNameAvailability(\n location: string,\n body: CheckNameRequest,\n options?: WorkspaceCollectionsCheckNameAvailabilityOptionalParams\n ): Promise<WorkspaceCollectionsCheckNameAvailabilityResponse>;\n /**\n * Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n getAccessKeys(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsGetAccessKeysOptionalParams\n ): Promise<WorkspaceCollectionsGetAccessKeysResponse>;\n /**\n * Regenerates the primary or secondary access key for the specified Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param body Access key to regenerate\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n workspaceCollectionName: string,\n body: WorkspaceCollectionAccessKey,\n options?: WorkspaceCollectionsRegenerateKeyOptionalParams\n ): Promise<WorkspaceCollectionsRegenerateKeyResponse>;\n /**\n * Migrates an existing Power BI Workspace Collection to a different resource group and/or\n * subscription.\n * @param resourceGroupName Azure resource group\n * @param body Workspace migration request\n * @param options The options parameters.\n */\n migrate(\n resourceGroupName: string,\n body: MigrateWorkspaceCollectionRequest,\n options?: WorkspaceCollectionsMigrateOptionalParams\n ): Promise<void>;\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Workspace, WorkspacesListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Workspaces. */
4
+ export interface Workspaces {
5
+ /**
6
+ * Retrieves all existing Power BI workspaces in the specified workspace collection.
7
+ * @param resourceGroupName Azure resource group
8
+ * @param workspaceCollectionName Power BI Embedded Workspace Collection name
9
+ * @param options The options parameters.
10
+ */
11
+ list(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
12
+ }
13
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -5,6 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
- export * from "./workspaceCollections";
10
- export * from "./workspaces";
8
+ export {};
9
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Workspace, WorkspacesListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Workspaces. */\nexport interface Workspaces {\n /**\n * Retrieves all existing Power BI workspaces in the specified workspace collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given a result page from a pageable operation, returns a
6
+ * continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page A result object from calling .byPage() on a paged operation.
9
+ * @returns The continuation token that can be passed into byPage().
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given a result page from a pageable operation, returns a
11
+ * continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page A result object from calling .byPage() on a paged operation.
14
+ * @returns The continuation token that can be passed into byPage().
15
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { WorkspaceCollections, Workspaces } from "./operationsInterfaces/index.js";
4
+ import { PowerBIEmbeddedManagementClientOptionalParams, GetAvailableOperationsOptionalParams, GetAvailableOperationsResponse } from "./models/index.js";
5
+ export declare class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ subscriptionId: string;
8
+ apiVersion: string;
9
+ /**
10
+ * Initializes a new instance of the PowerBIEmbeddedManagementClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure
13
+ * subscription. The subscription ID forms part of the URI for every service call.
14
+ * @param options The parameter options
15
+ */
16
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PowerBIEmbeddedManagementClientOptionalParams);
17
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
18
+ private addCustomApiVersionPolicy;
19
+ /**
20
+ * Indicates which operations can be performed by the Power BI Resource Provider.
21
+ * @param options The options parameters.
22
+ */
23
+ getAvailableOperations(options?: GetAvailableOperationsOptionalParams): Promise<GetAvailableOperationsResponse>;
24
+ workspaceCollections: WorkspaceCollections;
25
+ workspaces: Workspaces;
26
+ }
27
+ //# sourceMappingURL=powerBIEmbeddedManagementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerBIEmbeddedManagementClient.d.ts","sourceRoot":"","sources":["../../src/powerBIEmbeddedManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAGnF,OAAO,EACL,6CAA6C,EAC7C,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6CAA6C;IA6EzD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACH,sBAAsB,CACpB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,126 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { WorkspaceCollectionsImpl, WorkspacesImpl } from "./operations/index.js";
11
+ import * as Parameters from "./models/parameters.js";
12
+ import * as Mappers from "./models/mappers.js";
13
+ export class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
14
+ /**
15
+ * Initializes a new instance of the PowerBIEmbeddedManagementClient class.
16
+ * @param credentials Subscription credentials which uniquely identify client subscription.
17
+ * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure
18
+ * subscription. The subscription ID forms part of the URI for every service call.
19
+ * @param options The parameter options
20
+ */
21
+ constructor(credentials, subscriptionId, options) {
22
+ var _a, _b, _c;
23
+ if (credentials === undefined) {
24
+ throw new Error("'credentials' cannot be null");
25
+ }
26
+ if (subscriptionId === undefined) {
27
+ throw new Error("'subscriptionId' cannot be null");
28
+ }
29
+ // Initializing default values for options
30
+ if (!options) {
31
+ options = {};
32
+ }
33
+ const defaults = {
34
+ requestContentType: "application/json; charset=utf-8",
35
+ credential: credentials
36
+ };
37
+ const packageDetails = `azsdk-js-arm-powerbiembedded/2.0.3`;
38
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
40
+ : `${packageDetails}`;
41
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ userAgentPrefix
43
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
44
+ super(optionsWithDefaults);
45
+ let bearerTokenAuthenticationPolicyFound = false;
46
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
47
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
48
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
49
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
+ }
51
+ if (!options ||
52
+ !options.pipeline ||
53
+ options.pipeline.getOrderedPolicies().length == 0 ||
54
+ !bearerTokenAuthenticationPolicyFound) {
55
+ this.pipeline.removePolicy({
56
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
57
+ });
58
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
59
+ credential: credentials,
60
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
61
+ challengeCallbacks: {
62
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
63
+ }
64
+ }));
65
+ }
66
+ // Parameter assignments
67
+ this.subscriptionId = subscriptionId;
68
+ // Assigning values to Constant parameters
69
+ this.$host = options.$host || "https://management.azure.com";
70
+ this.apiVersion = options.apiVersion || "2016-01-29";
71
+ this.workspaceCollections = new WorkspaceCollectionsImpl(this);
72
+ this.workspaces = new WorkspacesImpl(this);
73
+ this.addCustomApiVersionPolicy(options.apiVersion);
74
+ }
75
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
76
+ addCustomApiVersionPolicy(apiVersion) {
77
+ if (!apiVersion) {
78
+ return;
79
+ }
80
+ const apiVersionPolicy = {
81
+ name: "CustomApiVersionPolicy",
82
+ async sendRequest(request, next) {
83
+ const param = request.url.split("?");
84
+ if (param.length > 1) {
85
+ const newParams = param[1].split("&").map((item) => {
86
+ if (item.indexOf("api-version") > -1) {
87
+ return "api-version=" + apiVersion;
88
+ }
89
+ else {
90
+ return item;
91
+ }
92
+ });
93
+ request.url = param[0] + "?" + newParams.join("&");
94
+ }
95
+ return next(request);
96
+ }
97
+ };
98
+ this.pipeline.addPolicy(apiVersionPolicy);
99
+ }
100
+ /**
101
+ * Indicates which operations can be performed by the Power BI Resource Provider.
102
+ * @param options The options parameters.
103
+ */
104
+ getAvailableOperations(options) {
105
+ return this.sendOperationRequest({ options }, getAvailableOperationsOperationSpec);
106
+ }
107
+ }
108
+ // Operation Specifications
109
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
110
+ const getAvailableOperationsOperationSpec = {
111
+ path: "/providers/Microsoft.PowerBI/operations",
112
+ httpMethod: "GET",
113
+ responses: {
114
+ 200: {
115
+ bodyMapper: Mappers.OperationList
116
+ },
117
+ default: {
118
+ bodyMapper: Mappers.ErrorModel
119
+ }
120
+ },
121
+ queryParameters: [Parameters.apiVersion],
122
+ urlParameters: [Parameters.$host],
123
+ headerParameters: [Parameters.accept],
124
+ serializer
125
+ };
126
+ //# sourceMappingURL=powerBIEmbeddedManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"powerBIEmbeddedManagementClient.js","sourceRoot":"","sources":["../../src/powerBIEmbeddedManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAO/C,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAK3E;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuD;;QAEvD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ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C,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,OAA8C;QAE9C,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,OAAO,EAAE,EACX,mCAAmC,CACpC,CAAC;IACJ,CAAC;CAIF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { WorkspaceCollectionsImpl, WorkspacesImpl } from \"./operations/index.js\";\nimport { WorkspaceCollections, Workspaces } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n PowerBIEmbeddedManagementClientOptionalParams,\n GetAvailableOperationsOptionalParams,\n GetAvailableOperationsResponse\n} from \"./models/index.js\";\n\nexport class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the PowerBIEmbeddedManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PowerBIEmbeddedManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PowerBIEmbeddedManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-powerbiembedded/2.0.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-01-29\";\n this.workspaceCollections = new WorkspaceCollectionsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Indicates which operations can be performed by the Power BI Resource Provider.\n * @param options The options parameters.\n */\n getAvailableOperations(\n options?: GetAvailableOperationsOptionalParams\n ): Promise<GetAvailableOperationsResponse> {\n return this.sendOperationRequest(\n { options },\n getAvailableOperationsOperationSpec\n );\n }\n\n workspaceCollections: WorkspaceCollections;\n workspaces: Workspaces;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getAvailableOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.PowerBI/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { PowerBIEmbeddedManagementClient } from "./powerBIEmbeddedManagementClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ /// <reference lib="esnext.asynciterable" />
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { PowerBIEmbeddedManagementClient } from "./powerBIEmbeddedManagementClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { PowerBIEmbeddedManagementClient } from \"./powerBIEmbeddedManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}