@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.
- package/README.md +21 -15
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaceCollections.d.ts +3 -3
- package/dist/browser/operations/workspaceCollections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaceCollections.js +36 -40
- package/dist/browser/operations/workspaceCollections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
- package/dist/browser/operations/workspaces.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workspaces.js +2 -2
- package/dist/browser/operations/workspaces.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaceCollections.d.ts +1 -1
- package/dist/browser/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
- package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/powerBIEmbeddedManagementClient.d.ts +2 -2
- package/dist/browser/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/powerBIEmbeddedManagementClient.js +17 -20
- package/dist/browser/powerBIEmbeddedManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +230 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +31 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +19 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +459 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +116 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/workspaceCollections.d.ts +110 -0
- package/dist/commonjs/operations/workspaceCollections.d.ts.map +1 -0
- package/dist/commonjs/operations/workspaceCollections.js +470 -0
- package/dist/commonjs/operations/workspaceCollections.js.map +1 -0
- package/dist/commonjs/operations/workspaces.d.ts +30 -0
- package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operations/workspaces.js +109 -0
- package/dist/commonjs/operations/workspaces.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.d.ts +87 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts +13 -0
- package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
- package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.d.ts +27 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.js +131 -0
- package/dist/commonjs/powerBIEmbeddedManagementClient.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +230 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +19 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +456 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +113 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/workspaceCollections.d.ts +110 -0
- package/dist/esm/operations/workspaceCollections.d.ts.map +1 -0
- package/dist/esm/operations/workspaceCollections.js +466 -0
- package/dist/esm/operations/workspaceCollections.js.map +1 -0
- package/dist/esm/operations/workspaces.d.ts +30 -0
- package/dist/esm/operations/workspaces.d.ts.map +1 -0
- package/dist/esm/operations/workspaces.js +105 -0
- package/dist/esm/operations/workspaces.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspaceCollections.d.ts +87 -0
- package/dist/esm/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/workspaceCollections.js} +2 -3
- package/dist/esm/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts +13 -0
- package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/workspaces.js} +2 -3
- package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/powerBIEmbeddedManagementClient.d.ts +27 -0
- package/dist/esm/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/dist/esm/powerBIEmbeddedManagementClient.js +126 -0
- package/dist/esm/powerBIEmbeddedManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +230 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +28 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +19 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +456 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +113 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/workspaceCollections.d.ts +110 -0
- package/dist/react-native/operations/workspaceCollections.d.ts.map +1 -0
- package/dist/react-native/operations/workspaceCollections.js +466 -0
- package/dist/react-native/operations/workspaceCollections.js.map +1 -0
- package/dist/react-native/operations/workspaces.d.ts +30 -0
- package/dist/react-native/operations/workspaces.d.ts.map +1 -0
- package/dist/react-native/operations/workspaces.js +105 -0
- package/dist/react-native/operations/workspaces.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.d.ts +87 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.js +9 -0
- package/dist/react-native/operationsInterfaces/workspaceCollections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts +13 -0
- package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
- package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.d.ts +27 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.d.ts.map +1 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.js +126 -0
- package/dist/react-native/powerBIEmbeddedManagementClient.js.map +1 -0
- package/package.json +68 -37
- package/dist/index.js +0 -1388
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/workspaceCollections.d.ts.map +0 -1
- package/dist-esm/src/operations/workspaceCollections.js.map +0 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operations/workspaces.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaceCollections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaceCollections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/powerBIEmbeddedManagementClient.d.ts.map +0 -1
- package/dist-esm/src/powerBIEmbeddedManagementClient.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -279
- package/src/models/mappers.ts +0 -474
- package/src/models/parameters.ts +0 -137
- package/src/operations/workspaceCollections.ts +0 -611
- package/src/operations/workspaces.ts +0 -141
- package/src/operationsInterfaces/workspaceCollections.ts +0 -163
- package/src/operationsInterfaces/workspaces.ts +0 -26
- package/src/pagingHelper.ts +0 -39
- package/src/powerBIEmbeddedManagementClient.ts +0 -181
- package/tsconfig.json +0 -33
- package/types/arm-powerbiembedded.d.ts +0 -409
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaceCollections.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/README.md
CHANGED
|
@@ -48,20 +48,28 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
|
|
|
48
48
|
|
|
49
49
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
52
|
+
|
|
53
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
54
|
+
import { PowerBIEmbeddedManagementClient } from "@azure/arm-powerbiembedded";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
56
|
|
|
56
57
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
58
|
const client = new PowerBIEmbeddedManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { PowerBIEmbeddedManagementClient } from "@azure/arm-powerbiembedded";
|
|
66
|
+
|
|
67
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
|
+
const credential = new InteractiveBrowserCredential({
|
|
69
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
71
|
+
});
|
|
72
|
+
const client = new PowerBIEmbeddedManagementClient(credential, subscriptionId);
|
|
65
73
|
```
|
|
66
74
|
|
|
67
75
|
### JavaScript Bundle
|
|
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
88
|
|
|
81
89
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
82
90
|
|
|
83
|
-
```
|
|
84
|
-
|
|
91
|
+
```ts snippet:SetLogLevel
|
|
92
|
+
import { setLogLevel } from "@azure/logger";
|
|
93
|
+
|
|
85
94
|
setLogLevel("info");
|
|
86
95
|
```
|
|
87
96
|
|
|
@@ -99,11 +108,8 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
99
108
|
|
|
100
109
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
101
110
|
|
|
102
|
-
|
|
103
|
-
|
|
104
111
|
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
|
-
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
113
|
[azure_portal]: https://portal.azure.com
|
|
108
114
|
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
109
115
|
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
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"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
/// <reference lib="esnext.asynciterable" />
|
|
9
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
10
|
-
export * from "./models";
|
|
11
|
-
export { PowerBIEmbeddedManagementClient } from "./powerBIEmbeddedManagementClient";
|
|
12
|
-
export * from "./operationsInterfaces";
|
|
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
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"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { __rest } from "tslib";
|
|
9
|
+
export class LroImpl {
|
|
10
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
|
+
this.sendOperationFn = sendOperationFn;
|
|
12
|
+
this.args = args;
|
|
13
|
+
this.spec = spec;
|
|
14
|
+
this.requestPath = requestPath;
|
|
15
|
+
this.requestMethod = requestMethod;
|
|
16
|
+
}
|
|
17
|
+
async sendInitialRequest() {
|
|
18
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
19
|
+
}
|
|
20
|
+
async sendPollRequest(path) {
|
|
21
|
+
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
22
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkIH,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,SAAS;IACT,8BAAS,CAAA;AACX,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAWD,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,eAAe;IACf,0CAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAWD,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,kBAAkB;IAClB,mDAA2B,CAAA;IAC3B,cAAc;IACd,2CAAmB,CAAA;AACrB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B","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\";\n\nexport interface WorkspaceCollection {\n /** Resource id */\n id?: string;\n /** Workspace collection name */\n name?: string;\n /** Resource type */\n type?: string;\n /** Azure location */\n location?: string;\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n sku?: AzureSku;\n /** Properties */\n properties?: Record<string, unknown>;\n}\n\nexport interface AzureSku {\n /** SKU name */\n name: AzureSkuName;\n /** SKU tier */\n tier: AzureSkuTier;\n}\n\nexport interface ErrorModel {\n code?: string;\n message?: string;\n target?: string;\n details?: ErrorDetail[];\n}\n\nexport interface ErrorDetail {\n code?: string;\n message?: string;\n target?: string;\n}\n\nexport interface CreateWorkspaceCollectionRequest {\n /** Azure location */\n location?: string;\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n sku?: AzureSku;\n}\n\nexport interface UpdateWorkspaceCollectionRequest {\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n sku?: AzureSku;\n}\n\nexport interface CheckNameRequest {\n /** Workspace collection name */\n name?: string;\n /** Resource type */\n type?: string;\n}\n\nexport interface CheckNameResponse {\n /** Specifies a Boolean value that indicates whether the specified Power BI Workspace Collection name is available to use. */\n nameAvailable?: boolean;\n /** Reason why the workspace collection name cannot be used. */\n reason?: CheckNameReason;\n /** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */\n message?: string;\n}\n\nexport interface WorkspaceCollectionList {\n value?: WorkspaceCollection[];\n}\n\nexport interface WorkspaceCollectionAccessKeys {\n /** Access key 1 */\n key1?: string;\n /** Access key 2 */\n key2?: string;\n}\n\nexport interface WorkspaceCollectionAccessKey {\n /** Key name */\n keyName?: AccessKeyName;\n}\n\nexport interface OperationList {\n value?: Operation[];\n}\n\nexport interface Operation {\n /** The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service. */\n name?: string;\n display?: Display;\n}\n\nexport interface Display {\n /** The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with \"Microsoft\" for 1st party services. */\n provider?: string;\n /** The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the \"name\" section. */\n resource?: string;\n /** The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies. */\n operation?: string;\n /** The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views. */\n description?: string;\n /** The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system' */\n origin?: string;\n}\n\nexport interface WorkspaceList {\n value?: Workspace[];\n}\n\nexport interface Workspace {\n /** Workspace id */\n id?: string;\n /** Workspace name */\n name?: string;\n /** Resource type */\n type?: string;\n /** Property bag */\n properties?: Record<string, unknown>;\n}\n\nexport interface MigrateWorkspaceCollectionRequest {\n /** Name of the resource group the Power BI workspace collections will be migrated to. */\n targetResourceGroup?: string;\n resources?: string[];\n}\n\n/** Known values of {@link AzureSkuName} that the service accepts. */\nexport enum KnownAzureSkuName {\n /** S1 */\n S1 = \"S1\"\n}\n\n/**\n * Defines values for AzureSkuName. \\\n * {@link KnownAzureSkuName} can be used interchangeably with AzureSkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S1**\n */\nexport type AzureSkuName = string;\n\n/** Known values of {@link AzureSkuTier} that the service accepts. */\nexport enum KnownAzureSkuTier {\n /** Standard */\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for AzureSkuTier. \\\n * {@link KnownAzureSkuTier} can be used interchangeably with AzureSkuTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard**\n */\nexport type AzureSkuTier = string;\n\n/** Known values of {@link CheckNameReason} that the service accepts. */\nexport enum KnownCheckNameReason {\n /** Unavailable */\n Unavailable = \"Unavailable\",\n /** Invalid */\n Invalid = \"Invalid\"\n}\n\n/**\n * Defines values for CheckNameReason. \\\n * {@link KnownCheckNameReason} can be used interchangeably with CheckNameReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unavailable** \\\n * **Invalid**\n */\nexport type CheckNameReason = string;\n/** Defines values for AccessKeyName. */\nexport type AccessKeyName = \"key1\" | \"key2\";\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsGetByNameOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getByName operation. */\nexport type WorkspaceCollectionsGetByNameResponse = WorkspaceCollection;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsCreateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type WorkspaceCollectionsCreateResponse = WorkspaceCollection;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type WorkspaceCollectionsUpdateResponse = WorkspaceCollection;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsCheckNameAvailabilityOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the checkNameAvailability operation. */\nexport type WorkspaceCollectionsCheckNameAvailabilityResponse = CheckNameResponse;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type WorkspaceCollectionsListByResourceGroupResponse = WorkspaceCollectionList;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type WorkspaceCollectionsListBySubscriptionResponse = WorkspaceCollectionList;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsGetAccessKeysOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getAccessKeys operation. */\nexport type WorkspaceCollectionsGetAccessKeysResponse = WorkspaceCollectionAccessKeys;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsRegenerateKeyOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the regenerateKey operation. */\nexport type WorkspaceCollectionsRegenerateKeyResponse = WorkspaceCollectionAccessKeys;\n\n/** Optional parameters. */\nexport interface WorkspaceCollectionsMigrateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetAvailableOperationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getAvailableOperations operation. */\nexport type GetAvailableOperationsResponse = OperationList;\n\n/** Optional parameters. */\nexport interface WorkspacesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type WorkspacesListResponse = WorkspaceList;\n\n/** Optional parameters. */\nexport interface PowerBIEmbeddedManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF;YACD,GAAG,EAAE;gBACH,cAAc,EAAE,KAAK;gBACrB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,UAAU;i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AAM,SAAS,GAA+B;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAA+B;IAC3E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,mCAAmC;QAC9C,eAAe,EAAE;YACf,mBAAmB,EAAE;gBACnB,cAAc,EAAE,qBAAqB;gBACrC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;KACF;CACF,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\";\n\nexport const WorkspaceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceCollection\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"AzureSku\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const AzureSku: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AzureSku\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tier: {\n serializedName: \"tier\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CreateWorkspaceCollectionRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CreateWorkspaceCollectionRequest\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"AzureSku\"\n }\n }\n }\n }\n};\n\nexport const UpdateWorkspaceCollectionRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UpdateWorkspaceCollectionRequest\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"AzureSku\"\n }\n }\n }\n }\n};\n\nexport const CheckNameRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameRequest\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n type: {\n defaultValue: \"Microsoft.PowerBI/workspaceCollections\",\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameResponse\",\n modelProperties: {\n nameAvailable: {\n serializedName: \"nameAvailable\",\n type: {\n name: \"Boolean\"\n }\n },\n reason: {\n serializedName: \"reason\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceCollectionList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceCollectionList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"WorkspaceCollection\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const WorkspaceCollectionAccessKeys: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceCollectionAccessKeys\",\n modelProperties: {\n key1: {\n serializedName: \"key1\",\n type: {\n name: \"String\"\n }\n },\n key2: {\n serializedName: \"key2\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceCollectionAccessKey: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceCollectionAccessKey\",\n modelProperties: {\n keyName: {\n serializedName: \"keyName\",\n type: {\n name: \"Enum\",\n allowedValues: [\"key1\", \"key2\"]\n }\n }\n }\n }\n};\n\nexport const OperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"Display\"\n }\n }\n }\n }\n};\n\nexport const Display: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Display\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n origin: {\n serializedName: \"origin\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Workspace\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Workspace: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Workspace\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const MigrateWorkspaceCollectionRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MigrateWorkspaceCollectionRequest\",\n modelProperties: {\n targetResourceGroup: {\n serializedName: \"targetResourceGroup\",\n type: {\n name: \"String\"\n }\n },\n resources: {\n serializedName: \"resources\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
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
|
-
import { CreateWorkspaceCollectionRequest as CreateWorkspaceCollectionRequestMapper, UpdateWorkspaceCollectionRequest as UpdateWorkspaceCollectionRequestMapper, CheckNameRequest as CheckNameRequestMapper, WorkspaceCollectionAccessKey as WorkspaceCollectionAccessKeyMapper, MigrateWorkspaceCollectionRequest as MigrateWorkspaceCollectionRequestMapper } from "../models/mappers";
|
|
8
|
+
import { CreateWorkspaceCollectionRequest as CreateWorkspaceCollectionRequestMapper, UpdateWorkspaceCollectionRequest as UpdateWorkspaceCollectionRequestMapper, CheckNameRequest as CheckNameRequestMapper, WorkspaceCollectionAccessKey as WorkspaceCollectionAccessKeyMapper, MigrateWorkspaceCollectionRequest as MigrateWorkspaceCollectionRequestMapper } from "../models/mappers.js";
|
|
9
9
|
export const accept = {
|
|
10
10
|
parameterPath: "accept",
|
|
11
11
|
mapper: {
|
|
@@ -0,0 +1 @@
|
|
|
1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ourcesContent":["/*\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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n CreateWorkspaceCollectionRequest as CreateWorkspaceCollectionRequestMapper,\n UpdateWorkspaceCollectionRequest as UpdateWorkspaceCollectionRequestMapper,\n CheckNameRequest as CheckNameRequestMapper,\n WorkspaceCollectionAccessKey as WorkspaceCollectionAccessKeyMapper,\n MigrateWorkspaceCollectionRequest as MigrateWorkspaceCollectionRequestMapper\n} from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const workspaceCollectionName: OperationURLParameter = {\n parameterPath: \"workspaceCollectionName\",\n mapper: {\n serializedName: \"workspaceCollectionName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2016-01-29\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const body: OperationParameter = {\n parameterPath: \"body\",\n mapper: CreateWorkspaceCollectionRequestMapper\n};\n\nexport const body1: OperationParameter = {\n parameterPath: \"body\",\n mapper: UpdateWorkspaceCollectionRequestMapper\n};\n\nexport const body2: OperationParameter = {\n parameterPath: \"body\",\n mapper: CheckNameRequestMapper\n};\n\nexport const location: OperationURLParameter = {\n parameterPath: \"location\",\n mapper: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const body3: OperationParameter = {\n parameterPath: \"body\",\n mapper: WorkspaceCollectionAccessKeyMapper\n};\n\nexport const body4: OperationParameter = {\n parameterPath: \"body\",\n mapper: MigrateWorkspaceCollectionRequestMapper\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -5,6 +5,6 @@
|
|
|
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
|
-
export * from "./workspaceCollections";
|
|
9
|
-
export * from "./workspaces";
|
|
8
|
+
export * from "./workspaceCollections.js";
|
|
9
|
+
export * from "./workspaces.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { WorkspaceCollections } from "../operationsInterfaces";
|
|
3
|
-
import { PowerBIEmbeddedManagementClient } from "../powerBIEmbeddedManagementClient";
|
|
2
|
+
import { WorkspaceCollections } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { PowerBIEmbeddedManagementClient } from "../powerBIEmbeddedManagementClient.js";
|
|
4
4
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
-
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";
|
|
5
|
+
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";
|
|
6
6
|
/** Class containing WorkspaceCollections operations. */
|
|
7
7
|
export declare class WorkspaceCollectionsImpl implements WorkspaceCollections {
|
|
8
8
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceCollections.d.ts","sourceRoot":"","sources":["../../../src/operations/workspaceCollections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,mBAAmB,EACnB,qDAAqD,EAErD,oDAAoD,EAEpD,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,wDAA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D,OAAO,CAAC,IAAI,CAAC;IAShB;;;;;OAKG;IACH,qBAAqB,CACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;IAO7D;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;OAKG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;OAMG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;OAMG;IACH,OAAO,CACL,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -5,12 +5,12 @@
|
|
|
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
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
import { LroEngine } from "@azure/core-lro";
|
|
13
|
-
import { LroImpl } from "../lroImpl";
|
|
13
|
+
import { LroImpl } from "../lroImpl.js";
|
|
14
14
|
/// <reference lib="esnext.asynciterable" />
|
|
15
15
|
/** Class containing WorkspaceCollections operations. */
|
|
16
16
|
export class WorkspaceCollectionsImpl {
|
|
@@ -155,38 +155,36 @@ export class WorkspaceCollectionsImpl {
|
|
|
155
155
|
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
156
156
|
* @param options The options parameters.
|
|
157
157
|
*/
|
|
158
|
-
beginDelete(resourceGroupName, workspaceCollectionName, options) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
186
|
-
});
|
|
187
|
-
yield poller.poll();
|
|
188
|
-
return poller;
|
|
158
|
+
async beginDelete(resourceGroupName, workspaceCollectionName, options) {
|
|
159
|
+
const directSendOperation = async (args, spec) => {
|
|
160
|
+
return this.client.sendOperationRequest(args, spec);
|
|
161
|
+
};
|
|
162
|
+
const sendOperation = async (args, spec) => {
|
|
163
|
+
var _a;
|
|
164
|
+
let currentRawResponse = undefined;
|
|
165
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
166
|
+
const callback = (rawResponse, flatResponse) => {
|
|
167
|
+
currentRawResponse = rawResponse;
|
|
168
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
169
|
+
};
|
|
170
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
171
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
172
|
+
return {
|
|
173
|
+
flatResponse,
|
|
174
|
+
rawResponse: {
|
|
175
|
+
statusCode: currentRawResponse.status,
|
|
176
|
+
body: currentRawResponse.parsedBody,
|
|
177
|
+
headers: currentRawResponse.headers.toJSON()
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceCollectionName, options }, deleteOperationSpec);
|
|
182
|
+
const poller = new LroEngine(lro, {
|
|
183
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
184
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
189
185
|
});
|
|
186
|
+
await poller.poll();
|
|
187
|
+
return poller;
|
|
190
188
|
}
|
|
191
189
|
/**
|
|
192
190
|
* Delete a Power BI Workspace Collection.
|
|
@@ -194,11 +192,9 @@ export class WorkspaceCollectionsImpl {
|
|
|
194
192
|
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
195
193
|
* @param options The options parameters.
|
|
196
194
|
*/
|
|
197
|
-
beginDeleteAndWait(resourceGroupName, workspaceCollectionName, options) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
return poller.pollUntilDone();
|
|
201
|
-
});
|
|
195
|
+
async beginDeleteAndWait(resourceGroupName, workspaceCollectionName, options) {
|
|
196
|
+
const poller = await this.beginDelete(resourceGroupName, workspaceCollectionName, options);
|
|
197
|
+
return poller.pollUntilDone();
|
|
202
198
|
}
|
|
203
199
|
/**
|
|
204
200
|
* Verify the specified Power BI Workspace Collection name is valid and not already in use.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceCollections.js","sourceRoot":"","sources":["../../../src/operations/workspaceCollections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM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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 { WorkspaceCollections } 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 { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n WorkspaceCollection,\n WorkspaceCollectionsListByResourceGroupOptionalParams,\n WorkspaceCollectionsListByResourceGroupResponse,\n WorkspaceCollectionsListBySubscriptionOptionalParams,\n WorkspaceCollectionsListBySubscriptionResponse,\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/** Class containing WorkspaceCollections operations. */\nexport class WorkspaceCollectionsImpl implements WorkspaceCollections {\n private readonly client: PowerBIEmbeddedManagementClient;\n\n /**\n * Initialize a new instance of the class WorkspaceCollections 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 workspace collections in the specified resource group.\n * @param resourceGroupName Azure resource group\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspaceCollectionsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<WorkspaceCollection> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkspaceCollectionsListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<WorkspaceCollection[]> {\n let result: WorkspaceCollectionsListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkspaceCollectionsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<WorkspaceCollection> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all existing Power BI workspace collections in the specified subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: WorkspaceCollectionsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<WorkspaceCollection> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: WorkspaceCollectionsListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<WorkspaceCollection[]> {\n let result: WorkspaceCollectionsListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: WorkspaceCollectionsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<WorkspaceCollection> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, options },\n getByNameOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, body, options },\n createOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, body, options },\n updateOperationSpec\n );\n }\n\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 async beginDelete(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, workspaceCollectionName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\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 async beginDeleteAndWait(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n workspaceCollectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\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 return this.client.sendOperationRequest(\n { location, body, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\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 private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspaceCollectionsListByResourceGroupOptionalParams\n ): Promise<WorkspaceCollectionsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieves all existing Power BI workspace collections in the specified subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: WorkspaceCollectionsListBySubscriptionOptionalParams\n ): Promise<WorkspaceCollectionsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, options },\n getAccessKeysOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, body, options },\n regenerateKeyOperationSpec\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, body, options },\n migrateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByNameOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollection\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};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollection\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceCollectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollection\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceCollectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/locations/{location}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResponse\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollectionList\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/workspaceCollections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollectionList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAccessKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollectionAccessKeys\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};\nconst regenerateKeyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/regenerateKey\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceCollectionAccessKeys\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceCollectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst migrateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Workspaces } from "../operationsInterfaces";
|
|
3
|
-
import { PowerBIEmbeddedManagementClient } from "../powerBIEmbeddedManagementClient";
|
|
4
|
-
import { Workspace, WorkspacesListOptionalParams } from "../models";
|
|
2
|
+
import { Workspaces } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { PowerBIEmbeddedManagementClient } from "../powerBIEmbeddedManagementClient.js";
|
|
4
|
+
import { Workspace, WorkspacesListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Workspaces operations. */
|
|
6
6
|
export declare class WorkspacesImpl implements Workspaces {
|
|
7
7
|
private readonly client;
|
|
@@ -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"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Class containing Workspaces operations. */
|
|
14
14
|
export class WorkspacesImpl {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,uBAA+B,EAC/B,OAAsC;QAEtC,MAAM,IAAI,GA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EtC,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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -5,6 +5,6 @@
|
|
|
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
|
-
export * from "./workspaceCollections";
|
|
9
|
-
export * from "./workspaces";
|
|
8
|
+
export * from "./workspaceCollections.js";
|
|
9
|
+
export * from "./workspaces.js";
|
|
10
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"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
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";
|
|
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
4
|
/** Interface representing a WorkspaceCollections. */
|
|
5
5
|
export interface WorkspaceCollections {
|
|
6
6
|
/**
|
|
@@ -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,iBAA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,iCAAiC,EACvC,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -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"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Workspace, WorkspacesListOptionalParams } from "../models";
|
|
2
|
+
import { Workspace, WorkspacesListOptionalParams } from "../models/index.js";
|
|
3
3
|
/** Interface representing a Workspaces. */
|
|
4
4
|
export interface Workspaces {
|
|
5
5
|
/**
|
|
@@ -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"}
|
|
@@ -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"]}
|