@azure/arm-powerbiembedded 2.0.3-alpha.20250218.1 → 2.0.3-alpha.20250220.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Workspaces } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { PowerBIEmbeddedManagementClient } from "../powerBIEmbeddedManagementClient.js";
|
|
4
|
+
import { Workspace, WorkspacesListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Workspaces operations. */
|
|
6
|
+
export declare class WorkspacesImpl implements Workspaces {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Workspaces class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: PowerBIEmbeddedManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
15
|
+
* @param resourceGroupName Azure resource group
|
|
16
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
|
|
20
|
+
private listPagingPage;
|
|
21
|
+
private listPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
24
|
+
* @param resourceGroupName Azure resource group
|
|
25
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _list;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;IAEzD;;;OAGG;gBACS,MAAM,EAAE,+BAA+B;IAInD;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YA2BzB,cAAc;YAed,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;CAUd"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.WorkspacesImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Workspaces operations. */
|
|
17
|
+
class WorkspacesImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Workspaces class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
27
|
+
* @param resourceGroupName Azure resource group
|
|
28
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(resourceGroupName, workspaceCollectionName, options) {
|
|
32
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceCollectionName, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: (settings) => {
|
|
41
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
42
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
+
}
|
|
44
|
+
return this.listPagingPage(resourceGroupName, workspaceCollectionName, options, settings);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
listPagingPage(resourceGroupName, workspaceCollectionName, options, _settings) {
|
|
49
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
result = yield tslib_1.__await(this._list(resourceGroupName, workspaceCollectionName, options));
|
|
52
|
+
yield yield tslib_1.__await(result.value || []);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
listPagingAll(resourceGroupName, workspaceCollectionName, options) {
|
|
56
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
57
|
+
var _a, e_1, _b, _c;
|
|
58
|
+
try {
|
|
59
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, workspaceCollectionName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
+
_c = _f.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const page = _c;
|
|
63
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
77
|
+
* @param resourceGroupName Azure resource group
|
|
78
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
79
|
+
* @param options The options parameters.
|
|
80
|
+
*/
|
|
81
|
+
_list(resourceGroupName, workspaceCollectionName, options) {
|
|
82
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, options }, listOperationSpec);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.WorkspacesImpl = WorkspacesImpl;
|
|
86
|
+
// Operation Specifications
|
|
87
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
88
|
+
const listOperationSpec = {
|
|
89
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces",
|
|
90
|
+
httpMethod: "GET",
|
|
91
|
+
responses: {
|
|
92
|
+
200: {
|
|
93
|
+
bodyMapper: Mappers.WorkspaceList
|
|
94
|
+
},
|
|
95
|
+
default: {
|
|
96
|
+
bodyMapper: Mappers.ErrorModel
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
queryParameters: [Parameters.apiVersion],
|
|
100
|
+
urlParameters: [
|
|
101
|
+
Parameters.$host,
|
|
102
|
+
Parameters.subscriptionId,
|
|
103
|
+
Parameters.resourceGroupName,
|
|
104
|
+
Parameters.workspaceCollectionName
|
|
105
|
+
],
|
|
106
|
+
headerParameters: [Parameters.accept],
|
|
107
|
+
serializer
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=workspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,uBAAuB,EACvB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EA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J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Workspaces } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PowerBIEmbeddedManagementClient } from \"../powerBIEmbeddedManagementClient.js\";\nimport {\n Workspace,\n WorkspacesListOptionalParams,\n WorkspacesListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workspaces operations. */\nexport class WorkspacesImpl implements Workspaces {\n private readonly client: PowerBIEmbeddedManagementClient;\n\n /**\n * Initialize a new instance of the class Workspaces class.\n * @param client Reference to the service client\n */\n constructor(client: PowerBIEmbeddedManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves all existing Power BI workspaces in the specified workspace collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listPagingAll(\n resourceGroupName,\n workspaceCollectionName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n workspaceCollectionName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Workspace[]> {\n let result: WorkspacesListResponse;\n result = await this._list(\n resourceGroupName,\n workspaceCollectionName,\n options\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n workspaceCollectionName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all existing Power BI workspaces in the specified workspace collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): Promise<WorkspacesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceCollectionName, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceCollectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./workspaceCollections.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./workspaces.js"), exports);
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,oEAA0C;AAC1C,0DAAgC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./workspaceCollections.js\";\nexport * from \"./workspaces.js\";\n"]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { WorkspaceCollection, WorkspaceCollectionsListByResourceGroupOptionalParams, WorkspaceCollectionsListBySubscriptionOptionalParams, WorkspaceCollectionsGetByNameOptionalParams, WorkspaceCollectionsGetByNameResponse, CreateWorkspaceCollectionRequest, WorkspaceCollectionsCreateOptionalParams, WorkspaceCollectionsCreateResponse, UpdateWorkspaceCollectionRequest, WorkspaceCollectionsUpdateOptionalParams, WorkspaceCollectionsUpdateResponse, WorkspaceCollectionsDeleteOptionalParams, CheckNameRequest, WorkspaceCollectionsCheckNameAvailabilityOptionalParams, WorkspaceCollectionsCheckNameAvailabilityResponse, WorkspaceCollectionsGetAccessKeysOptionalParams, WorkspaceCollectionsGetAccessKeysResponse, WorkspaceCollectionAccessKey, WorkspaceCollectionsRegenerateKeyOptionalParams, WorkspaceCollectionsRegenerateKeyResponse, MigrateWorkspaceCollectionRequest, WorkspaceCollectionsMigrateOptionalParams } from "../models/index.js";
|
|
4
|
+
/** Interface representing a WorkspaceCollections. */
|
|
5
|
+
export interface WorkspaceCollections {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves all existing Power BI workspace collections in the specified resource group.
|
|
8
|
+
* @param resourceGroupName Azure resource group
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
listByResourceGroup(resourceGroupName: string, options?: WorkspaceCollectionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<WorkspaceCollection>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves all existing Power BI workspace collections in the specified subscription.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listBySubscription(options?: WorkspaceCollectionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<WorkspaceCollection>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves an existing Power BI Workspace Collection.
|
|
19
|
+
* @param resourceGroupName Azure resource group
|
|
20
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
getByName(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsGetByNameOptionalParams): Promise<WorkspaceCollectionsGetByNameResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace
|
|
26
|
+
* Collection contains one or more workspaces, and can be used to provision keys that provide API
|
|
27
|
+
* access to those workspaces.
|
|
28
|
+
* @param resourceGroupName Azure resource group
|
|
29
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
30
|
+
* @param body Create workspace collection request
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
create(resourceGroupName: string, workspaceCollectionName: string, body: CreateWorkspaceCollectionRequest, options?: WorkspaceCollectionsCreateOptionalParams): Promise<WorkspaceCollectionsCreateResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Update an existing Power BI Workspace Collection with the specified properties.
|
|
36
|
+
* @param resourceGroupName Azure resource group
|
|
37
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
38
|
+
* @param body Update workspace collection request
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
update(resourceGroupName: string, workspaceCollectionName: string, body: UpdateWorkspaceCollectionRequest, options?: WorkspaceCollectionsUpdateOptionalParams): Promise<WorkspaceCollectionsUpdateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete a Power BI Workspace Collection.
|
|
44
|
+
* @param resourceGroupName Azure resource group
|
|
45
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
beginDelete(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
49
|
+
/**
|
|
50
|
+
* Delete a Power BI Workspace Collection.
|
|
51
|
+
* @param resourceGroupName Azure resource group
|
|
52
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginDeleteAndWait(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsDeleteOptionalParams): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Verify the specified Power BI Workspace Collection name is valid and not already in use.
|
|
58
|
+
* @param location Azure location
|
|
59
|
+
* @param body Check name availability request
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
checkNameAvailability(location: string, body: CheckNameRequest, options?: WorkspaceCollectionsCheckNameAvailabilityOptionalParams): Promise<WorkspaceCollectionsCheckNameAvailabilityResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection.
|
|
65
|
+
* @param resourceGroupName Azure resource group
|
|
66
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
getAccessKeys(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspaceCollectionsGetAccessKeysOptionalParams): Promise<WorkspaceCollectionsGetAccessKeysResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Regenerates the primary or secondary access key for the specified Power BI Workspace Collection.
|
|
72
|
+
* @param resourceGroupName Azure resource group
|
|
73
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
74
|
+
* @param body Access key to regenerate
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
regenerateKey(resourceGroupName: string, workspaceCollectionName: string, body: WorkspaceCollectionAccessKey, options?: WorkspaceCollectionsRegenerateKeyOptionalParams): Promise<WorkspaceCollectionsRegenerateKeyResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Migrates an existing Power BI Workspace Collection to a different resource group and/or
|
|
80
|
+
* subscription.
|
|
81
|
+
* @param resourceGroupName Azure resource group
|
|
82
|
+
* @param body Workspace migration request
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
migrate(resourceGroupName: string, body: MigrateWorkspaceCollectionRequest, options?: WorkspaceCollectionsMigrateOptionalParams): Promise<void>;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=workspaceCollections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceCollections.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaceCollections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,qDAAqD,EACrD,oDAAoD,EACpD,2CAA2C,EAC3C,qCAAqC,EACrC,gCAAgC,EAChC,wCAAwC,EACxC,kCAAkC,EAClC,gCAAgC,EAChC,wCAAwC,EACxC,kCAAkC,EAClC,wCAAwC,EACxC,gBAAgB,EAChB,uDAAuD,EACvD,iDAAiD,EACjD,+CAA+C,EAC/C,yCAAyC,EACzC,4BAA4B,EAC5B,+CAA+C,EAC/C,yCAAyC,EACzC,iCAAiC,EACjC,yCAAyC,EAC1C,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;OAKG;IACH,SAAS,CACP,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,IAAI,EAAE,gCAAgC,EACtC,OA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CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=workspaceCollections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceCollections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaceCollections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n WorkspaceCollection,\n WorkspaceCollectionsListByResourceGroupOptionalParams,\n WorkspaceCollectionsListBySubscriptionOptionalParams,\n WorkspaceCollectionsGetByNameOptionalParams,\n WorkspaceCollectionsGetByNameResponse,\n CreateWorkspaceCollectionRequest,\n WorkspaceCollectionsCreateOptionalParams,\n WorkspaceCollectionsCreateResponse,\n UpdateWorkspaceCollectionRequest,\n WorkspaceCollectionsUpdateOptionalParams,\n WorkspaceCollectionsUpdateResponse,\n WorkspaceCollectionsDeleteOptionalParams,\n CheckNameRequest,\n WorkspaceCollectionsCheckNameAvailabilityOptionalParams,\n WorkspaceCollectionsCheckNameAvailabilityResponse,\n WorkspaceCollectionsGetAccessKeysOptionalParams,\n WorkspaceCollectionsGetAccessKeysResponse,\n WorkspaceCollectionAccessKey,\n WorkspaceCollectionsRegenerateKeyOptionalParams,\n WorkspaceCollectionsRegenerateKeyResponse,\n MigrateWorkspaceCollectionRequest,\n WorkspaceCollectionsMigrateOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a WorkspaceCollections. */\nexport interface WorkspaceCollections {\n /**\n * Retrieves all existing Power BI workspace collections in the specified resource group.\n * @param resourceGroupName Azure resource group\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspaceCollectionsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<WorkspaceCollection>;\n /**\n * Retrieves all existing Power BI workspace collections in the specified subscription.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: WorkspaceCollectionsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<WorkspaceCollection>;\n /**\n * Retrieves an existing Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n getByName(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsGetByNameOptionalParams\n ): Promise<WorkspaceCollectionsGetByNameResponse>;\n /**\n * Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace\n * Collection contains one or more workspaces, and can be used to provision keys that provide API\n * access to those workspaces.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param body Create workspace collection request\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceCollectionName: string,\n body: CreateWorkspaceCollectionRequest,\n options?: WorkspaceCollectionsCreateOptionalParams\n ): Promise<WorkspaceCollectionsCreateResponse>;\n /**\n * Update an existing Power BI Workspace Collection with the specified properties.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param body Update workspace collection request\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceCollectionName: string,\n body: UpdateWorkspaceCollectionRequest,\n options?: WorkspaceCollectionsUpdateOptionalParams\n ): Promise<WorkspaceCollectionsUpdateResponse>;\n /**\n * Delete a Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\n /**\n * Delete a Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsDeleteOptionalParams\n ): Promise<void>;\n /**\n * Verify the specified Power BI Workspace Collection name is valid and not already in use.\n * @param location Azure location\n * @param body Check name availability request\n * @param options The options parameters.\n */\n checkNameAvailability(\n location: string,\n body: CheckNameRequest,\n options?: WorkspaceCollectionsCheckNameAvailabilityOptionalParams\n ): Promise<WorkspaceCollectionsCheckNameAvailabilityResponse>;\n /**\n * Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n getAccessKeys(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspaceCollectionsGetAccessKeysOptionalParams\n ): Promise<WorkspaceCollectionsGetAccessKeysResponse>;\n /**\n * Regenerates the primary or secondary access key for the specified Power BI Workspace Collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param body Access key to regenerate\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n workspaceCollectionName: string,\n body: WorkspaceCollectionAccessKey,\n options?: WorkspaceCollectionsRegenerateKeyOptionalParams\n ): Promise<WorkspaceCollectionsRegenerateKeyResponse>;\n /**\n * Migrates an existing Power BI Workspace Collection to a different resource group and/or\n * subscription.\n * @param resourceGroupName Azure resource group\n * @param body Workspace migration request\n * @param options The options parameters.\n */\n migrate(\n resourceGroupName: string,\n body: MigrateWorkspaceCollectionRequest,\n options?: WorkspaceCollectionsMigrateOptionalParams\n ): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Workspace, WorkspacesListOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Workspaces. */
|
|
4
|
+
export interface Workspaces {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
7
|
+
* @param resourceGroupName Azure resource group
|
|
8
|
+
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
list(resourceGroupName: string, workspaceCollectionName: string, options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=workspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaces.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Workspace, WorkspacesListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Workspaces. */\nexport interface Workspaces {\n /**\n * Retrieves all existing Power BI workspaces in the specified workspace collection.\n * @param resourceGroupName Azure resource group\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n workspaceCollectionName: string,\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given a result page from a pageable operation, returns a
|
|
6
|
+
* continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage().
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getContinuationToken = getContinuationToken;
|
|
11
|
+
exports.setContinuationToken = setContinuationToken;
|
|
12
|
+
const pageMap = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* Given a result page from a pageable operation, returns a
|
|
15
|
+
* continuation token that can be used to begin paging from
|
|
16
|
+
* that point later.
|
|
17
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
18
|
+
* @returns The continuation token that can be passed into byPage().
|
|
19
|
+
*/
|
|
20
|
+
function getContinuationToken(page) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (typeof page !== "object" || page === null) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
26
|
+
}
|
|
27
|
+
function setContinuationToken(page, continuationToken) {
|
|
28
|
+
var _a;
|
|
29
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
33
|
+
pageInfo.continuationToken = continuationToken;
|
|
34
|
+
pageMap.set(page, pageInfo);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { WorkspaceCollections, Workspaces } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { PowerBIEmbeddedManagementClientOptionalParams, GetAvailableOperationsOptionalParams, GetAvailableOperationsResponse } from "./models/index.js";
|
|
5
|
+
export declare class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
apiVersion: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the PowerBIEmbeddedManagementClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure
|
|
13
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
14
|
+
* @param options The parameter options
|
|
15
|
+
*/
|
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PowerBIEmbeddedManagementClientOptionalParams);
|
|
17
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
18
|
+
private addCustomApiVersionPolicy;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates which operations can be performed by the Power BI Resource Provider.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
getAvailableOperations(options?: GetAvailableOperationsOptionalParams): Promise<GetAvailableOperationsResponse>;
|
|
24
|
+
workspaceCollections: WorkspaceCollections;
|
|
25
|
+
workspaces: Workspaces;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=powerBIEmbeddedManagementClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powerBIEmbeddedManagementClient.d.ts","sourceRoot":"","sources":["../../src/powerBIEmbeddedManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAGnF,OAAO,EACL,6CAA6C,EAC7C,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6CAA6C;IA6EzD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACH,sBAAsB,CACpB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PowerBIEmbeddedManagementClient = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
|
+
const index_js_1 = require("./operations/index.js");
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("./models/parameters.js"));
|
|
16
|
+
const Mappers = tslib_1.__importStar(require("./models/mappers.js"));
|
|
17
|
+
class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {
|
|
18
|
+
/**
|
|
19
|
+
* Initializes a new instance of the PowerBIEmbeddedManagementClient class.
|
|
20
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
21
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure
|
|
22
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
23
|
+
* @param options The parameter options
|
|
24
|
+
*/
|
|
25
|
+
constructor(credentials, subscriptionId, options) {
|
|
26
|
+
var _a, _b, _c;
|
|
27
|
+
if (credentials === undefined) {
|
|
28
|
+
throw new Error("'credentials' cannot be null");
|
|
29
|
+
}
|
|
30
|
+
if (subscriptionId === undefined) {
|
|
31
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
32
|
+
}
|
|
33
|
+
// Initializing default values for options
|
|
34
|
+
if (!options) {
|
|
35
|
+
options = {};
|
|
36
|
+
}
|
|
37
|
+
const defaults = {
|
|
38
|
+
requestContentType: "application/json; charset=utf-8",
|
|
39
|
+
credential: credentials
|
|
40
|
+
};
|
|
41
|
+
const packageDetails = `azsdk-js-arm-powerbiembedded/2.0.3`;
|
|
42
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
43
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
44
|
+
: `${packageDetails}`;
|
|
45
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
46
|
+
userAgentPrefix
|
|
47
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
48
|
+
super(optionsWithDefaults);
|
|
49
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
50
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
51
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
52
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
53
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
54
|
+
}
|
|
55
|
+
if (!options ||
|
|
56
|
+
!options.pipeline ||
|
|
57
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
58
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
59
|
+
this.pipeline.removePolicy({
|
|
60
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
61
|
+
});
|
|
62
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
63
|
+
credential: credentials,
|
|
64
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
65
|
+
challengeCallbacks: {
|
|
66
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
// Parameter assignments
|
|
71
|
+
this.subscriptionId = subscriptionId;
|
|
72
|
+
// Assigning values to Constant parameters
|
|
73
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
74
|
+
this.apiVersion = options.apiVersion || "2016-01-29";
|
|
75
|
+
this.workspaceCollections = new index_js_1.WorkspaceCollectionsImpl(this);
|
|
76
|
+
this.workspaces = new index_js_1.WorkspacesImpl(this);
|
|
77
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
78
|
+
}
|
|
79
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
80
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
81
|
+
if (!apiVersion) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const apiVersionPolicy = {
|
|
85
|
+
name: "CustomApiVersionPolicy",
|
|
86
|
+
async sendRequest(request, next) {
|
|
87
|
+
const param = request.url.split("?");
|
|
88
|
+
if (param.length > 1) {
|
|
89
|
+
const newParams = param[1].split("&").map((item) => {
|
|
90
|
+
if (item.indexOf("api-version") > -1) {
|
|
91
|
+
return "api-version=" + apiVersion;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return item;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
98
|
+
}
|
|
99
|
+
return next(request);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Indicates which operations can be performed by the Power BI Resource Provider.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
getAvailableOperations(options) {
|
|
109
|
+
return this.sendOperationRequest({ options }, getAvailableOperationsOperationSpec);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.PowerBIEmbeddedManagementClient = PowerBIEmbeddedManagementClient;
|
|
113
|
+
// Operation Specifications
|
|
114
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
115
|
+
const getAvailableOperationsOperationSpec = {
|
|
116
|
+
path: "/providers/Microsoft.PowerBI/operations",
|
|
117
|
+
httpMethod: "GET",
|
|
118
|
+
responses: {
|
|
119
|
+
200: {
|
|
120
|
+
bodyMapper: Mappers.OperationList
|
|
121
|
+
},
|
|
122
|
+
default: {
|
|
123
|
+
bodyMapper: Mappers.ErrorModel
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
queryParameters: [Parameters.apiVersion],
|
|
127
|
+
urlParameters: [Parameters.$host],
|
|
128
|
+
headerParameters: [Parameters.accept],
|
|
129
|
+
serializer
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=powerBIEmbeddedManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powerBIEmbeddedManagementClient.js","sourceRoot":"","sources":["../../src/powerBIEmbeddedManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAAiF;AAEjF,2EAAqD;AACrD,qEAA+C;AAO/C,MAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAK3E;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuD;;QAEvD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAkD;YAC9D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,oCAAoC,CAAC;QAC5D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAA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C,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,OAA8C;QAE9C,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,OAAO,EAAE,EACX,mCAAmC,CACpC,CAAC;IACJ,CAAC;CAIF;AAvID,0EAuIC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { WorkspaceCollectionsImpl, WorkspacesImpl } from \"./operations/index.js\";\nimport { WorkspaceCollections, Workspaces } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n PowerBIEmbeddedManagementClientOptionalParams,\n GetAvailableOperationsOptionalParams,\n GetAvailableOperationsResponse\n} from \"./models/index.js\";\n\nexport class PowerBIEmbeddedManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the PowerBIEmbeddedManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PowerBIEmbeddedManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PowerBIEmbeddedManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-powerbiembedded/2.0.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-01-29\";\n this.workspaceCollections = new WorkspaceCollectionsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Indicates which operations can be performed by the Power BI Resource Provider.\n * @param options The options parameters.\n */\n getAvailableOperations(\n options?: GetAvailableOperationsOptionalParams\n ): Promise<GetAvailableOperationsResponse> {\n return this.sendOperationRequest(\n { options },\n getAvailableOperationsOperationSpec\n );\n }\n\n workspaceCollections: WorkspaceCollections;\n workspaces: Workspaces;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getAvailableOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.PowerBI/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
2
|
+
export * from "./models/index.js";
|
|
3
|
+
export { PowerBIEmbeddedManagementClient } from "./powerBIEmbeddedManagementClient.js";
|
|
4
|
+
export * from "./operationsInterfaces/index.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,cAAc,iCAAiC,CAAC"}
|