@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/dist/index.js
DELETED
|
@@ -1,1388 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given a result page from a pageable operation, returns a
|
|
40
|
-
* continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage().
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/*
|
|
54
|
-
* Copyright (c) Microsoft Corporation.
|
|
55
|
-
* Licensed under the MIT License.
|
|
56
|
-
*
|
|
57
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
58
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
59
|
-
*/
|
|
60
|
-
/** Known values of {@link AzureSkuName} that the service accepts. */
|
|
61
|
-
exports.KnownAzureSkuName = void 0;
|
|
62
|
-
(function (KnownAzureSkuName) {
|
|
63
|
-
/** S1 */
|
|
64
|
-
KnownAzureSkuName["S1"] = "S1";
|
|
65
|
-
})(exports.KnownAzureSkuName || (exports.KnownAzureSkuName = {}));
|
|
66
|
-
/** Known values of {@link AzureSkuTier} that the service accepts. */
|
|
67
|
-
exports.KnownAzureSkuTier = void 0;
|
|
68
|
-
(function (KnownAzureSkuTier) {
|
|
69
|
-
/** Standard */
|
|
70
|
-
KnownAzureSkuTier["Standard"] = "Standard";
|
|
71
|
-
})(exports.KnownAzureSkuTier || (exports.KnownAzureSkuTier = {}));
|
|
72
|
-
/** Known values of {@link CheckNameReason} that the service accepts. */
|
|
73
|
-
exports.KnownCheckNameReason = void 0;
|
|
74
|
-
(function (KnownCheckNameReason) {
|
|
75
|
-
/** Unavailable */
|
|
76
|
-
KnownCheckNameReason["Unavailable"] = "Unavailable";
|
|
77
|
-
/** Invalid */
|
|
78
|
-
KnownCheckNameReason["Invalid"] = "Invalid";
|
|
79
|
-
})(exports.KnownCheckNameReason || (exports.KnownCheckNameReason = {}));
|
|
80
|
-
|
|
81
|
-
/*
|
|
82
|
-
* Copyright (c) Microsoft Corporation.
|
|
83
|
-
* Licensed under the MIT License.
|
|
84
|
-
*
|
|
85
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
86
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
87
|
-
*/
|
|
88
|
-
const WorkspaceCollection = {
|
|
89
|
-
type: {
|
|
90
|
-
name: "Composite",
|
|
91
|
-
className: "WorkspaceCollection",
|
|
92
|
-
modelProperties: {
|
|
93
|
-
id: {
|
|
94
|
-
serializedName: "id",
|
|
95
|
-
type: {
|
|
96
|
-
name: "String"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
name: {
|
|
100
|
-
serializedName: "name",
|
|
101
|
-
type: {
|
|
102
|
-
name: "String"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
type: {
|
|
106
|
-
serializedName: "type",
|
|
107
|
-
type: {
|
|
108
|
-
name: "String"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
location: {
|
|
112
|
-
serializedName: "location",
|
|
113
|
-
type: {
|
|
114
|
-
name: "String"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
tags: {
|
|
118
|
-
serializedName: "tags",
|
|
119
|
-
type: {
|
|
120
|
-
name: "Dictionary",
|
|
121
|
-
value: { type: { name: "String" } }
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
sku: {
|
|
125
|
-
serializedName: "sku",
|
|
126
|
-
type: {
|
|
127
|
-
name: "Composite",
|
|
128
|
-
className: "AzureSku"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
properties: {
|
|
132
|
-
serializedName: "properties",
|
|
133
|
-
type: {
|
|
134
|
-
name: "Dictionary",
|
|
135
|
-
value: { type: { name: "any" } }
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const AzureSku = {
|
|
142
|
-
type: {
|
|
143
|
-
name: "Composite",
|
|
144
|
-
className: "AzureSku",
|
|
145
|
-
modelProperties: {
|
|
146
|
-
name: {
|
|
147
|
-
serializedName: "name",
|
|
148
|
-
required: true,
|
|
149
|
-
type: {
|
|
150
|
-
name: "String"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
tier: {
|
|
154
|
-
serializedName: "tier",
|
|
155
|
-
required: true,
|
|
156
|
-
type: {
|
|
157
|
-
name: "String"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
const ErrorModel = {
|
|
164
|
-
type: {
|
|
165
|
-
name: "Composite",
|
|
166
|
-
className: "ErrorModel",
|
|
167
|
-
modelProperties: {
|
|
168
|
-
code: {
|
|
169
|
-
serializedName: "code",
|
|
170
|
-
type: {
|
|
171
|
-
name: "String"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
message: {
|
|
175
|
-
serializedName: "message",
|
|
176
|
-
type: {
|
|
177
|
-
name: "String"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
target: {
|
|
181
|
-
serializedName: "target",
|
|
182
|
-
type: {
|
|
183
|
-
name: "String"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
details: {
|
|
187
|
-
serializedName: "details",
|
|
188
|
-
type: {
|
|
189
|
-
name: "Sequence",
|
|
190
|
-
element: {
|
|
191
|
-
type: {
|
|
192
|
-
name: "Composite",
|
|
193
|
-
className: "ErrorDetail"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
const ErrorDetail = {
|
|
202
|
-
type: {
|
|
203
|
-
name: "Composite",
|
|
204
|
-
className: "ErrorDetail",
|
|
205
|
-
modelProperties: {
|
|
206
|
-
code: {
|
|
207
|
-
serializedName: "code",
|
|
208
|
-
type: {
|
|
209
|
-
name: "String"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
message: {
|
|
213
|
-
serializedName: "message",
|
|
214
|
-
type: {
|
|
215
|
-
name: "String"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
target: {
|
|
219
|
-
serializedName: "target",
|
|
220
|
-
type: {
|
|
221
|
-
name: "String"
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
const CreateWorkspaceCollectionRequest = {
|
|
228
|
-
type: {
|
|
229
|
-
name: "Composite",
|
|
230
|
-
className: "CreateWorkspaceCollectionRequest",
|
|
231
|
-
modelProperties: {
|
|
232
|
-
location: {
|
|
233
|
-
serializedName: "location",
|
|
234
|
-
type: {
|
|
235
|
-
name: "String"
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
tags: {
|
|
239
|
-
serializedName: "tags",
|
|
240
|
-
type: {
|
|
241
|
-
name: "Dictionary",
|
|
242
|
-
value: { type: { name: "String" } }
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
sku: {
|
|
246
|
-
serializedName: "sku",
|
|
247
|
-
type: {
|
|
248
|
-
name: "Composite",
|
|
249
|
-
className: "AzureSku"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
const UpdateWorkspaceCollectionRequest = {
|
|
256
|
-
type: {
|
|
257
|
-
name: "Composite",
|
|
258
|
-
className: "UpdateWorkspaceCollectionRequest",
|
|
259
|
-
modelProperties: {
|
|
260
|
-
tags: {
|
|
261
|
-
serializedName: "tags",
|
|
262
|
-
type: {
|
|
263
|
-
name: "Dictionary",
|
|
264
|
-
value: { type: { name: "String" } }
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
sku: {
|
|
268
|
-
serializedName: "sku",
|
|
269
|
-
type: {
|
|
270
|
-
name: "Composite",
|
|
271
|
-
className: "AzureSku"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
const CheckNameRequest = {
|
|
278
|
-
type: {
|
|
279
|
-
name: "Composite",
|
|
280
|
-
className: "CheckNameRequest",
|
|
281
|
-
modelProperties: {
|
|
282
|
-
name: {
|
|
283
|
-
serializedName: "name",
|
|
284
|
-
type: {
|
|
285
|
-
name: "String"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
type: {
|
|
289
|
-
defaultValue: "Microsoft.PowerBI/workspaceCollections",
|
|
290
|
-
serializedName: "type",
|
|
291
|
-
type: {
|
|
292
|
-
name: "String"
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
const CheckNameResponse = {
|
|
299
|
-
type: {
|
|
300
|
-
name: "Composite",
|
|
301
|
-
className: "CheckNameResponse",
|
|
302
|
-
modelProperties: {
|
|
303
|
-
nameAvailable: {
|
|
304
|
-
serializedName: "nameAvailable",
|
|
305
|
-
type: {
|
|
306
|
-
name: "Boolean"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
reason: {
|
|
310
|
-
serializedName: "reason",
|
|
311
|
-
type: {
|
|
312
|
-
name: "String"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
message: {
|
|
316
|
-
serializedName: "message",
|
|
317
|
-
type: {
|
|
318
|
-
name: "String"
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
const WorkspaceCollectionList = {
|
|
325
|
-
type: {
|
|
326
|
-
name: "Composite",
|
|
327
|
-
className: "WorkspaceCollectionList",
|
|
328
|
-
modelProperties: {
|
|
329
|
-
value: {
|
|
330
|
-
serializedName: "value",
|
|
331
|
-
type: {
|
|
332
|
-
name: "Sequence",
|
|
333
|
-
element: {
|
|
334
|
-
type: {
|
|
335
|
-
name: "Composite",
|
|
336
|
-
className: "WorkspaceCollection"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
const WorkspaceCollectionAccessKeys = {
|
|
345
|
-
type: {
|
|
346
|
-
name: "Composite",
|
|
347
|
-
className: "WorkspaceCollectionAccessKeys",
|
|
348
|
-
modelProperties: {
|
|
349
|
-
key1: {
|
|
350
|
-
serializedName: "key1",
|
|
351
|
-
type: {
|
|
352
|
-
name: "String"
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
key2: {
|
|
356
|
-
serializedName: "key2",
|
|
357
|
-
type: {
|
|
358
|
-
name: "String"
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
const WorkspaceCollectionAccessKey = {
|
|
365
|
-
type: {
|
|
366
|
-
name: "Composite",
|
|
367
|
-
className: "WorkspaceCollectionAccessKey",
|
|
368
|
-
modelProperties: {
|
|
369
|
-
keyName: {
|
|
370
|
-
serializedName: "keyName",
|
|
371
|
-
type: {
|
|
372
|
-
name: "Enum",
|
|
373
|
-
allowedValues: ["key1", "key2"]
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
const OperationList = {
|
|
380
|
-
type: {
|
|
381
|
-
name: "Composite",
|
|
382
|
-
className: "OperationList",
|
|
383
|
-
modelProperties: {
|
|
384
|
-
value: {
|
|
385
|
-
serializedName: "value",
|
|
386
|
-
type: {
|
|
387
|
-
name: "Sequence",
|
|
388
|
-
element: {
|
|
389
|
-
type: {
|
|
390
|
-
name: "Composite",
|
|
391
|
-
className: "Operation"
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
const Operation = {
|
|
400
|
-
type: {
|
|
401
|
-
name: "Composite",
|
|
402
|
-
className: "Operation",
|
|
403
|
-
modelProperties: {
|
|
404
|
-
name: {
|
|
405
|
-
serializedName: "name",
|
|
406
|
-
type: {
|
|
407
|
-
name: "String"
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
display: {
|
|
411
|
-
serializedName: "display",
|
|
412
|
-
type: {
|
|
413
|
-
name: "Composite",
|
|
414
|
-
className: "Display"
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
const Display = {
|
|
421
|
-
type: {
|
|
422
|
-
name: "Composite",
|
|
423
|
-
className: "Display",
|
|
424
|
-
modelProperties: {
|
|
425
|
-
provider: {
|
|
426
|
-
serializedName: "provider",
|
|
427
|
-
type: {
|
|
428
|
-
name: "String"
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
resource: {
|
|
432
|
-
serializedName: "resource",
|
|
433
|
-
type: {
|
|
434
|
-
name: "String"
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
operation: {
|
|
438
|
-
serializedName: "operation",
|
|
439
|
-
type: {
|
|
440
|
-
name: "String"
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
description: {
|
|
444
|
-
serializedName: "description",
|
|
445
|
-
type: {
|
|
446
|
-
name: "String"
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
origin: {
|
|
450
|
-
serializedName: "origin",
|
|
451
|
-
type: {
|
|
452
|
-
name: "String"
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
const WorkspaceList = {
|
|
459
|
-
type: {
|
|
460
|
-
name: "Composite",
|
|
461
|
-
className: "WorkspaceList",
|
|
462
|
-
modelProperties: {
|
|
463
|
-
value: {
|
|
464
|
-
serializedName: "value",
|
|
465
|
-
type: {
|
|
466
|
-
name: "Sequence",
|
|
467
|
-
element: {
|
|
468
|
-
type: {
|
|
469
|
-
name: "Composite",
|
|
470
|
-
className: "Workspace"
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
const Workspace = {
|
|
479
|
-
type: {
|
|
480
|
-
name: "Composite",
|
|
481
|
-
className: "Workspace",
|
|
482
|
-
modelProperties: {
|
|
483
|
-
id: {
|
|
484
|
-
serializedName: "id",
|
|
485
|
-
type: {
|
|
486
|
-
name: "String"
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
name: {
|
|
490
|
-
serializedName: "name",
|
|
491
|
-
type: {
|
|
492
|
-
name: "String"
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
type: {
|
|
496
|
-
serializedName: "type",
|
|
497
|
-
type: {
|
|
498
|
-
name: "String"
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
properties: {
|
|
502
|
-
serializedName: "properties",
|
|
503
|
-
type: {
|
|
504
|
-
name: "Dictionary",
|
|
505
|
-
value: { type: { name: "any" } }
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
const MigrateWorkspaceCollectionRequest = {
|
|
512
|
-
type: {
|
|
513
|
-
name: "Composite",
|
|
514
|
-
className: "MigrateWorkspaceCollectionRequest",
|
|
515
|
-
modelProperties: {
|
|
516
|
-
targetResourceGroup: {
|
|
517
|
-
serializedName: "targetResourceGroup",
|
|
518
|
-
type: {
|
|
519
|
-
name: "String"
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
resources: {
|
|
523
|
-
serializedName: "resources",
|
|
524
|
-
type: {
|
|
525
|
-
name: "Sequence",
|
|
526
|
-
element: {
|
|
527
|
-
type: {
|
|
528
|
-
name: "String"
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
538
|
-
__proto__: null,
|
|
539
|
-
AzureSku: AzureSku,
|
|
540
|
-
CheckNameRequest: CheckNameRequest,
|
|
541
|
-
CheckNameResponse: CheckNameResponse,
|
|
542
|
-
CreateWorkspaceCollectionRequest: CreateWorkspaceCollectionRequest,
|
|
543
|
-
Display: Display,
|
|
544
|
-
ErrorDetail: ErrorDetail,
|
|
545
|
-
ErrorModel: ErrorModel,
|
|
546
|
-
MigrateWorkspaceCollectionRequest: MigrateWorkspaceCollectionRequest,
|
|
547
|
-
Operation: Operation,
|
|
548
|
-
OperationList: OperationList,
|
|
549
|
-
UpdateWorkspaceCollectionRequest: UpdateWorkspaceCollectionRequest,
|
|
550
|
-
Workspace: Workspace,
|
|
551
|
-
WorkspaceCollection: WorkspaceCollection,
|
|
552
|
-
WorkspaceCollectionAccessKey: WorkspaceCollectionAccessKey,
|
|
553
|
-
WorkspaceCollectionAccessKeys: WorkspaceCollectionAccessKeys,
|
|
554
|
-
WorkspaceCollectionList: WorkspaceCollectionList,
|
|
555
|
-
WorkspaceList: WorkspaceList
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
/*
|
|
559
|
-
* Copyright (c) Microsoft Corporation.
|
|
560
|
-
* Licensed under the MIT License.
|
|
561
|
-
*
|
|
562
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
563
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
564
|
-
*/
|
|
565
|
-
const accept = {
|
|
566
|
-
parameterPath: "accept",
|
|
567
|
-
mapper: {
|
|
568
|
-
defaultValue: "application/json",
|
|
569
|
-
isConstant: true,
|
|
570
|
-
serializedName: "Accept",
|
|
571
|
-
type: {
|
|
572
|
-
name: "String"
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
const $host = {
|
|
577
|
-
parameterPath: "$host",
|
|
578
|
-
mapper: {
|
|
579
|
-
serializedName: "$host",
|
|
580
|
-
required: true,
|
|
581
|
-
type: {
|
|
582
|
-
name: "String"
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
skipEncoding: true
|
|
586
|
-
};
|
|
587
|
-
const subscriptionId = {
|
|
588
|
-
parameterPath: "subscriptionId",
|
|
589
|
-
mapper: {
|
|
590
|
-
serializedName: "subscriptionId",
|
|
591
|
-
required: true,
|
|
592
|
-
type: {
|
|
593
|
-
name: "String"
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
|
-
const resourceGroupName = {
|
|
598
|
-
parameterPath: "resourceGroupName",
|
|
599
|
-
mapper: {
|
|
600
|
-
serializedName: "resourceGroupName",
|
|
601
|
-
required: true,
|
|
602
|
-
type: {
|
|
603
|
-
name: "String"
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
};
|
|
607
|
-
const workspaceCollectionName = {
|
|
608
|
-
parameterPath: "workspaceCollectionName",
|
|
609
|
-
mapper: {
|
|
610
|
-
serializedName: "workspaceCollectionName",
|
|
611
|
-
required: true,
|
|
612
|
-
type: {
|
|
613
|
-
name: "String"
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
const apiVersion = {
|
|
618
|
-
parameterPath: "apiVersion",
|
|
619
|
-
mapper: {
|
|
620
|
-
defaultValue: "2016-01-29",
|
|
621
|
-
isConstant: true,
|
|
622
|
-
serializedName: "api-version",
|
|
623
|
-
type: {
|
|
624
|
-
name: "String"
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
const contentType = {
|
|
629
|
-
parameterPath: ["options", "contentType"],
|
|
630
|
-
mapper: {
|
|
631
|
-
defaultValue: "application/json",
|
|
632
|
-
isConstant: true,
|
|
633
|
-
serializedName: "Content-Type",
|
|
634
|
-
type: {
|
|
635
|
-
name: "String"
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
const body = {
|
|
640
|
-
parameterPath: "body",
|
|
641
|
-
mapper: CreateWorkspaceCollectionRequest
|
|
642
|
-
};
|
|
643
|
-
const body1 = {
|
|
644
|
-
parameterPath: "body",
|
|
645
|
-
mapper: UpdateWorkspaceCollectionRequest
|
|
646
|
-
};
|
|
647
|
-
const body2 = {
|
|
648
|
-
parameterPath: "body",
|
|
649
|
-
mapper: CheckNameRequest
|
|
650
|
-
};
|
|
651
|
-
const location = {
|
|
652
|
-
parameterPath: "location",
|
|
653
|
-
mapper: {
|
|
654
|
-
serializedName: "location",
|
|
655
|
-
required: true,
|
|
656
|
-
type: {
|
|
657
|
-
name: "String"
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
const body3 = {
|
|
662
|
-
parameterPath: "body",
|
|
663
|
-
mapper: WorkspaceCollectionAccessKey
|
|
664
|
-
};
|
|
665
|
-
const body4 = {
|
|
666
|
-
parameterPath: "body",
|
|
667
|
-
mapper: MigrateWorkspaceCollectionRequest
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
/*
|
|
671
|
-
* Copyright (c) Microsoft Corporation.
|
|
672
|
-
* Licensed under the MIT License.
|
|
673
|
-
*
|
|
674
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
675
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
676
|
-
*/
|
|
677
|
-
class LroImpl {
|
|
678
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
679
|
-
this.sendOperationFn = sendOperationFn;
|
|
680
|
-
this.args = args;
|
|
681
|
-
this.spec = spec;
|
|
682
|
-
this.requestPath = requestPath;
|
|
683
|
-
this.requestMethod = requestMethod;
|
|
684
|
-
}
|
|
685
|
-
sendInitialRequest() {
|
|
686
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
687
|
-
return this.sendOperationFn(this.args, this.spec);
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
sendPollRequest(path) {
|
|
691
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
692
|
-
const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
693
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/*
|
|
699
|
-
* Copyright (c) Microsoft Corporation.
|
|
700
|
-
* Licensed under the MIT License.
|
|
701
|
-
*
|
|
702
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
703
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
704
|
-
*/
|
|
705
|
-
/// <reference lib="esnext.asynciterable" />
|
|
706
|
-
/** Class containing WorkspaceCollections operations. */
|
|
707
|
-
class WorkspaceCollectionsImpl {
|
|
708
|
-
/**
|
|
709
|
-
* Initialize a new instance of the class WorkspaceCollections class.
|
|
710
|
-
* @param client Reference to the service client
|
|
711
|
-
*/
|
|
712
|
-
constructor(client) {
|
|
713
|
-
this.client = client;
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
* Retrieves all existing Power BI workspace collections in the specified resource group.
|
|
717
|
-
* @param resourceGroupName Azure resource group
|
|
718
|
-
* @param options The options parameters.
|
|
719
|
-
*/
|
|
720
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
721
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
722
|
-
return {
|
|
723
|
-
next() {
|
|
724
|
-
return iter.next();
|
|
725
|
-
},
|
|
726
|
-
[Symbol.asyncIterator]() {
|
|
727
|
-
return this;
|
|
728
|
-
},
|
|
729
|
-
byPage: (settings) => {
|
|
730
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
731
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
732
|
-
}
|
|
733
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
738
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
739
|
-
let result;
|
|
740
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
741
|
-
yield yield tslib.__await(result.value || []);
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
745
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
746
|
-
var _a, e_1, _b, _c;
|
|
747
|
-
try {
|
|
748
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
749
|
-
_c = _f.value;
|
|
750
|
-
_d = false;
|
|
751
|
-
const page = _c;
|
|
752
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
756
|
-
finally {
|
|
757
|
-
try {
|
|
758
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
759
|
-
}
|
|
760
|
-
finally { if (e_1) throw e_1.error; }
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
* Retrieves all existing Power BI workspace collections in the specified subscription.
|
|
766
|
-
* @param options The options parameters.
|
|
767
|
-
*/
|
|
768
|
-
listBySubscription(options) {
|
|
769
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
770
|
-
return {
|
|
771
|
-
next() {
|
|
772
|
-
return iter.next();
|
|
773
|
-
},
|
|
774
|
-
[Symbol.asyncIterator]() {
|
|
775
|
-
return this;
|
|
776
|
-
},
|
|
777
|
-
byPage: (settings) => {
|
|
778
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
779
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
780
|
-
}
|
|
781
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
listBySubscriptionPagingPage(options, _settings) {
|
|
786
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
787
|
-
let result;
|
|
788
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
789
|
-
yield yield tslib.__await(result.value || []);
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
listBySubscriptionPagingAll(options) {
|
|
793
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
794
|
-
var _a, e_2, _b, _c;
|
|
795
|
-
try {
|
|
796
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
797
|
-
_c = _f.value;
|
|
798
|
-
_d = false;
|
|
799
|
-
const page = _c;
|
|
800
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
804
|
-
finally {
|
|
805
|
-
try {
|
|
806
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
807
|
-
}
|
|
808
|
-
finally { if (e_2) throw e_2.error; }
|
|
809
|
-
}
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* Retrieves an existing Power BI Workspace Collection.
|
|
814
|
-
* @param resourceGroupName Azure resource group
|
|
815
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
816
|
-
* @param options The options parameters.
|
|
817
|
-
*/
|
|
818
|
-
getByName(resourceGroupName, workspaceCollectionName, options) {
|
|
819
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, options }, getByNameOperationSpec);
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
* Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace
|
|
823
|
-
* Collection contains one or more workspaces, and can be used to provision keys that provide API
|
|
824
|
-
* access to those workspaces.
|
|
825
|
-
* @param resourceGroupName Azure resource group
|
|
826
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
827
|
-
* @param body Create workspace collection request
|
|
828
|
-
* @param options The options parameters.
|
|
829
|
-
*/
|
|
830
|
-
create(resourceGroupName, workspaceCollectionName, body, options) {
|
|
831
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, body, options }, createOperationSpec);
|
|
832
|
-
}
|
|
833
|
-
/**
|
|
834
|
-
* Update an existing Power BI Workspace Collection with the specified properties.
|
|
835
|
-
* @param resourceGroupName Azure resource group
|
|
836
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
837
|
-
* @param body Update workspace collection request
|
|
838
|
-
* @param options The options parameters.
|
|
839
|
-
*/
|
|
840
|
-
update(resourceGroupName, workspaceCollectionName, body, options) {
|
|
841
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, body, options }, updateOperationSpec);
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* Delete a Power BI Workspace Collection.
|
|
845
|
-
* @param resourceGroupName Azure resource group
|
|
846
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
847
|
-
* @param options The options parameters.
|
|
848
|
-
*/
|
|
849
|
-
beginDelete(resourceGroupName, workspaceCollectionName, options) {
|
|
850
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
851
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
852
|
-
return this.client.sendOperationRequest(args, spec);
|
|
853
|
-
});
|
|
854
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
855
|
-
var _a;
|
|
856
|
-
let currentRawResponse = undefined;
|
|
857
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
858
|
-
const callback = (rawResponse, flatResponse) => {
|
|
859
|
-
currentRawResponse = rawResponse;
|
|
860
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
861
|
-
};
|
|
862
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
863
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
864
|
-
return {
|
|
865
|
-
flatResponse,
|
|
866
|
-
rawResponse: {
|
|
867
|
-
statusCode: currentRawResponse.status,
|
|
868
|
-
body: currentRawResponse.parsedBody,
|
|
869
|
-
headers: currentRawResponse.headers.toJSON()
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
});
|
|
873
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceCollectionName, options }, deleteOperationSpec);
|
|
874
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
875
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
876
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
877
|
-
});
|
|
878
|
-
yield poller.poll();
|
|
879
|
-
return poller;
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* Delete a Power BI Workspace Collection.
|
|
884
|
-
* @param resourceGroupName Azure resource group
|
|
885
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
886
|
-
* @param options The options parameters.
|
|
887
|
-
*/
|
|
888
|
-
beginDeleteAndWait(resourceGroupName, workspaceCollectionName, options) {
|
|
889
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
890
|
-
const poller = yield this.beginDelete(resourceGroupName, workspaceCollectionName, options);
|
|
891
|
-
return poller.pollUntilDone();
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* Verify the specified Power BI Workspace Collection name is valid and not already in use.
|
|
896
|
-
* @param location Azure location
|
|
897
|
-
* @param body Check name availability request
|
|
898
|
-
* @param options The options parameters.
|
|
899
|
-
*/
|
|
900
|
-
checkNameAvailability(location, body, options) {
|
|
901
|
-
return this.client.sendOperationRequest({ location, body, options }, checkNameAvailabilityOperationSpec);
|
|
902
|
-
}
|
|
903
|
-
/**
|
|
904
|
-
* Retrieves all existing Power BI workspace collections in the specified resource group.
|
|
905
|
-
* @param resourceGroupName Azure resource group
|
|
906
|
-
* @param options The options parameters.
|
|
907
|
-
*/
|
|
908
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
909
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* Retrieves all existing Power BI workspace collections in the specified subscription.
|
|
913
|
-
* @param options The options parameters.
|
|
914
|
-
*/
|
|
915
|
-
_listBySubscription(options) {
|
|
916
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
917
|
-
}
|
|
918
|
-
/**
|
|
919
|
-
* Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection.
|
|
920
|
-
* @param resourceGroupName Azure resource group
|
|
921
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
922
|
-
* @param options The options parameters.
|
|
923
|
-
*/
|
|
924
|
-
getAccessKeys(resourceGroupName, workspaceCollectionName, options) {
|
|
925
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, options }, getAccessKeysOperationSpec);
|
|
926
|
-
}
|
|
927
|
-
/**
|
|
928
|
-
* Regenerates the primary or secondary access key for the specified Power BI Workspace Collection.
|
|
929
|
-
* @param resourceGroupName Azure resource group
|
|
930
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
931
|
-
* @param body Access key to regenerate
|
|
932
|
-
* @param options The options parameters.
|
|
933
|
-
*/
|
|
934
|
-
regenerateKey(resourceGroupName, workspaceCollectionName, body, options) {
|
|
935
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, body, options }, regenerateKeyOperationSpec);
|
|
936
|
-
}
|
|
937
|
-
/**
|
|
938
|
-
* Migrates an existing Power BI Workspace Collection to a different resource group and/or
|
|
939
|
-
* subscription.
|
|
940
|
-
* @param resourceGroupName Azure resource group
|
|
941
|
-
* @param body Workspace migration request
|
|
942
|
-
* @param options The options parameters.
|
|
943
|
-
*/
|
|
944
|
-
migrate(resourceGroupName, body, options) {
|
|
945
|
-
return this.client.sendOperationRequest({ resourceGroupName, body, options }, migrateOperationSpec);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
// Operation Specifications
|
|
949
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
950
|
-
const getByNameOperationSpec = {
|
|
951
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}",
|
|
952
|
-
httpMethod: "GET",
|
|
953
|
-
responses: {
|
|
954
|
-
200: {
|
|
955
|
-
bodyMapper: WorkspaceCollection
|
|
956
|
-
},
|
|
957
|
-
default: {
|
|
958
|
-
bodyMapper: ErrorModel
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
queryParameters: [apiVersion],
|
|
962
|
-
urlParameters: [
|
|
963
|
-
$host,
|
|
964
|
-
subscriptionId,
|
|
965
|
-
resourceGroupName,
|
|
966
|
-
workspaceCollectionName
|
|
967
|
-
],
|
|
968
|
-
headerParameters: [accept],
|
|
969
|
-
serializer: serializer$2
|
|
970
|
-
};
|
|
971
|
-
const createOperationSpec = {
|
|
972
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}",
|
|
973
|
-
httpMethod: "PUT",
|
|
974
|
-
responses: {
|
|
975
|
-
200: {
|
|
976
|
-
bodyMapper: WorkspaceCollection
|
|
977
|
-
},
|
|
978
|
-
default: {
|
|
979
|
-
bodyMapper: ErrorModel
|
|
980
|
-
}
|
|
981
|
-
},
|
|
982
|
-
requestBody: body,
|
|
983
|
-
queryParameters: [apiVersion],
|
|
984
|
-
urlParameters: [
|
|
985
|
-
$host,
|
|
986
|
-
subscriptionId,
|
|
987
|
-
resourceGroupName,
|
|
988
|
-
workspaceCollectionName
|
|
989
|
-
],
|
|
990
|
-
headerParameters: [accept, contentType],
|
|
991
|
-
mediaType: "json",
|
|
992
|
-
serializer: serializer$2
|
|
993
|
-
};
|
|
994
|
-
const updateOperationSpec = {
|
|
995
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}",
|
|
996
|
-
httpMethod: "PATCH",
|
|
997
|
-
responses: {
|
|
998
|
-
200: {
|
|
999
|
-
bodyMapper: WorkspaceCollection
|
|
1000
|
-
},
|
|
1001
|
-
default: {
|
|
1002
|
-
bodyMapper: ErrorModel
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
requestBody: body1,
|
|
1006
|
-
queryParameters: [apiVersion],
|
|
1007
|
-
urlParameters: [
|
|
1008
|
-
$host,
|
|
1009
|
-
subscriptionId,
|
|
1010
|
-
resourceGroupName,
|
|
1011
|
-
workspaceCollectionName
|
|
1012
|
-
],
|
|
1013
|
-
headerParameters: [accept, contentType],
|
|
1014
|
-
mediaType: "json",
|
|
1015
|
-
serializer: serializer$2
|
|
1016
|
-
};
|
|
1017
|
-
const deleteOperationSpec = {
|
|
1018
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}",
|
|
1019
|
-
httpMethod: "DELETE",
|
|
1020
|
-
responses: {
|
|
1021
|
-
200: {},
|
|
1022
|
-
201: {},
|
|
1023
|
-
202: {},
|
|
1024
|
-
204: {},
|
|
1025
|
-
default: {
|
|
1026
|
-
bodyMapper: ErrorModel
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
queryParameters: [apiVersion],
|
|
1030
|
-
urlParameters: [
|
|
1031
|
-
$host,
|
|
1032
|
-
subscriptionId,
|
|
1033
|
-
resourceGroupName,
|
|
1034
|
-
workspaceCollectionName
|
|
1035
|
-
],
|
|
1036
|
-
headerParameters: [accept],
|
|
1037
|
-
serializer: serializer$2
|
|
1038
|
-
};
|
|
1039
|
-
const checkNameAvailabilityOperationSpec = {
|
|
1040
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/locations/{location}/checkNameAvailability",
|
|
1041
|
-
httpMethod: "POST",
|
|
1042
|
-
responses: {
|
|
1043
|
-
200: {
|
|
1044
|
-
bodyMapper: CheckNameResponse
|
|
1045
|
-
},
|
|
1046
|
-
default: {
|
|
1047
|
-
bodyMapper: ErrorModel
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
requestBody: body2,
|
|
1051
|
-
queryParameters: [apiVersion],
|
|
1052
|
-
urlParameters: [
|
|
1053
|
-
$host,
|
|
1054
|
-
subscriptionId,
|
|
1055
|
-
location
|
|
1056
|
-
],
|
|
1057
|
-
headerParameters: [accept, contentType],
|
|
1058
|
-
mediaType: "json",
|
|
1059
|
-
serializer: serializer$2
|
|
1060
|
-
};
|
|
1061
|
-
const listByResourceGroupOperationSpec = {
|
|
1062
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections",
|
|
1063
|
-
httpMethod: "GET",
|
|
1064
|
-
responses: {
|
|
1065
|
-
200: {
|
|
1066
|
-
bodyMapper: WorkspaceCollectionList
|
|
1067
|
-
},
|
|
1068
|
-
default: {
|
|
1069
|
-
bodyMapper: ErrorModel
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
queryParameters: [apiVersion],
|
|
1073
|
-
urlParameters: [
|
|
1074
|
-
$host,
|
|
1075
|
-
subscriptionId,
|
|
1076
|
-
resourceGroupName
|
|
1077
|
-
],
|
|
1078
|
-
headerParameters: [accept],
|
|
1079
|
-
serializer: serializer$2
|
|
1080
|
-
};
|
|
1081
|
-
const listBySubscriptionOperationSpec = {
|
|
1082
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/workspaceCollections",
|
|
1083
|
-
httpMethod: "GET",
|
|
1084
|
-
responses: {
|
|
1085
|
-
200: {
|
|
1086
|
-
bodyMapper: WorkspaceCollectionList
|
|
1087
|
-
},
|
|
1088
|
-
default: {
|
|
1089
|
-
bodyMapper: ErrorModel
|
|
1090
|
-
}
|
|
1091
|
-
},
|
|
1092
|
-
queryParameters: [apiVersion],
|
|
1093
|
-
urlParameters: [$host, subscriptionId],
|
|
1094
|
-
headerParameters: [accept],
|
|
1095
|
-
serializer: serializer$2
|
|
1096
|
-
};
|
|
1097
|
-
const getAccessKeysOperationSpec = {
|
|
1098
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys",
|
|
1099
|
-
httpMethod: "POST",
|
|
1100
|
-
responses: {
|
|
1101
|
-
200: {
|
|
1102
|
-
bodyMapper: WorkspaceCollectionAccessKeys
|
|
1103
|
-
},
|
|
1104
|
-
default: {
|
|
1105
|
-
bodyMapper: ErrorModel
|
|
1106
|
-
}
|
|
1107
|
-
},
|
|
1108
|
-
queryParameters: [apiVersion],
|
|
1109
|
-
urlParameters: [
|
|
1110
|
-
$host,
|
|
1111
|
-
subscriptionId,
|
|
1112
|
-
resourceGroupName,
|
|
1113
|
-
workspaceCollectionName
|
|
1114
|
-
],
|
|
1115
|
-
headerParameters: [accept],
|
|
1116
|
-
serializer: serializer$2
|
|
1117
|
-
};
|
|
1118
|
-
const regenerateKeyOperationSpec = {
|
|
1119
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/regenerateKey",
|
|
1120
|
-
httpMethod: "POST",
|
|
1121
|
-
responses: {
|
|
1122
|
-
200: {
|
|
1123
|
-
bodyMapper: WorkspaceCollectionAccessKeys
|
|
1124
|
-
},
|
|
1125
|
-
default: {
|
|
1126
|
-
bodyMapper: ErrorModel
|
|
1127
|
-
}
|
|
1128
|
-
},
|
|
1129
|
-
requestBody: body3,
|
|
1130
|
-
queryParameters: [apiVersion],
|
|
1131
|
-
urlParameters: [
|
|
1132
|
-
$host,
|
|
1133
|
-
subscriptionId,
|
|
1134
|
-
resourceGroupName,
|
|
1135
|
-
workspaceCollectionName
|
|
1136
|
-
],
|
|
1137
|
-
headerParameters: [accept, contentType],
|
|
1138
|
-
mediaType: "json",
|
|
1139
|
-
serializer: serializer$2
|
|
1140
|
-
};
|
|
1141
|
-
const migrateOperationSpec = {
|
|
1142
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources",
|
|
1143
|
-
httpMethod: "POST",
|
|
1144
|
-
responses: {
|
|
1145
|
-
200: {},
|
|
1146
|
-
default: {
|
|
1147
|
-
bodyMapper: ErrorModel
|
|
1148
|
-
}
|
|
1149
|
-
},
|
|
1150
|
-
requestBody: body4,
|
|
1151
|
-
queryParameters: [apiVersion],
|
|
1152
|
-
urlParameters: [
|
|
1153
|
-
$host,
|
|
1154
|
-
subscriptionId,
|
|
1155
|
-
resourceGroupName
|
|
1156
|
-
],
|
|
1157
|
-
headerParameters: [accept, contentType],
|
|
1158
|
-
mediaType: "json",
|
|
1159
|
-
serializer: serializer$2
|
|
1160
|
-
};
|
|
1161
|
-
|
|
1162
|
-
/*
|
|
1163
|
-
* Copyright (c) Microsoft Corporation.
|
|
1164
|
-
* Licensed under the MIT License.
|
|
1165
|
-
*
|
|
1166
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1167
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1168
|
-
*/
|
|
1169
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1170
|
-
/** Class containing Workspaces operations. */
|
|
1171
|
-
class WorkspacesImpl {
|
|
1172
|
-
/**
|
|
1173
|
-
* Initialize a new instance of the class Workspaces class.
|
|
1174
|
-
* @param client Reference to the service client
|
|
1175
|
-
*/
|
|
1176
|
-
constructor(client) {
|
|
1177
|
-
this.client = client;
|
|
1178
|
-
}
|
|
1179
|
-
/**
|
|
1180
|
-
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
1181
|
-
* @param resourceGroupName Azure resource group
|
|
1182
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
1183
|
-
* @param options The options parameters.
|
|
1184
|
-
*/
|
|
1185
|
-
list(resourceGroupName, workspaceCollectionName, options) {
|
|
1186
|
-
const iter = this.listPagingAll(resourceGroupName, workspaceCollectionName, options);
|
|
1187
|
-
return {
|
|
1188
|
-
next() {
|
|
1189
|
-
return iter.next();
|
|
1190
|
-
},
|
|
1191
|
-
[Symbol.asyncIterator]() {
|
|
1192
|
-
return this;
|
|
1193
|
-
},
|
|
1194
|
-
byPage: (settings) => {
|
|
1195
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1196
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1197
|
-
}
|
|
1198
|
-
return this.listPagingPage(resourceGroupName, workspaceCollectionName, options, settings);
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
listPagingPage(resourceGroupName, workspaceCollectionName, options, _settings) {
|
|
1203
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1204
|
-
let result;
|
|
1205
|
-
result = yield tslib.__await(this._list(resourceGroupName, workspaceCollectionName, options));
|
|
1206
|
-
yield yield tslib.__await(result.value || []);
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
listPagingAll(resourceGroupName, workspaceCollectionName, options) {
|
|
1210
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1211
|
-
var _a, e_1, _b, _c;
|
|
1212
|
-
try {
|
|
1213
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceCollectionName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1214
|
-
_c = _f.value;
|
|
1215
|
-
_d = false;
|
|
1216
|
-
const page = _c;
|
|
1217
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1221
|
-
finally {
|
|
1222
|
-
try {
|
|
1223
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1224
|
-
}
|
|
1225
|
-
finally { if (e_1) throw e_1.error; }
|
|
1226
|
-
}
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
/**
|
|
1230
|
-
* Retrieves all existing Power BI workspaces in the specified workspace collection.
|
|
1231
|
-
* @param resourceGroupName Azure resource group
|
|
1232
|
-
* @param workspaceCollectionName Power BI Embedded Workspace Collection name
|
|
1233
|
-
* @param options The options parameters.
|
|
1234
|
-
*/
|
|
1235
|
-
_list(resourceGroupName, workspaceCollectionName, options) {
|
|
1236
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceCollectionName, options }, listOperationSpec);
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
// Operation Specifications
|
|
1240
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1241
|
-
const listOperationSpec = {
|
|
1242
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces",
|
|
1243
|
-
httpMethod: "GET",
|
|
1244
|
-
responses: {
|
|
1245
|
-
200: {
|
|
1246
|
-
bodyMapper: WorkspaceList
|
|
1247
|
-
},
|
|
1248
|
-
default: {
|
|
1249
|
-
bodyMapper: ErrorModel
|
|
1250
|
-
}
|
|
1251
|
-
},
|
|
1252
|
-
queryParameters: [apiVersion],
|
|
1253
|
-
urlParameters: [
|
|
1254
|
-
$host,
|
|
1255
|
-
subscriptionId,
|
|
1256
|
-
resourceGroupName,
|
|
1257
|
-
workspaceCollectionName
|
|
1258
|
-
],
|
|
1259
|
-
headerParameters: [accept],
|
|
1260
|
-
serializer: serializer$1
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
/*
|
|
1264
|
-
* Copyright (c) Microsoft Corporation.
|
|
1265
|
-
* Licensed under the MIT License.
|
|
1266
|
-
*
|
|
1267
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1268
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1269
|
-
*/
|
|
1270
|
-
class PowerBIEmbeddedManagementClient extends coreClient__namespace.ServiceClient {
|
|
1271
|
-
/**
|
|
1272
|
-
* Initializes a new instance of the PowerBIEmbeddedManagementClient class.
|
|
1273
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1274
|
-
* @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure
|
|
1275
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
|
1276
|
-
* @param options The parameter options
|
|
1277
|
-
*/
|
|
1278
|
-
constructor(credentials, subscriptionId, options) {
|
|
1279
|
-
var _a, _b, _c;
|
|
1280
|
-
if (credentials === undefined) {
|
|
1281
|
-
throw new Error("'credentials' cannot be null");
|
|
1282
|
-
}
|
|
1283
|
-
if (subscriptionId === undefined) {
|
|
1284
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
1285
|
-
}
|
|
1286
|
-
// Initializing default values for options
|
|
1287
|
-
if (!options) {
|
|
1288
|
-
options = {};
|
|
1289
|
-
}
|
|
1290
|
-
const defaults = {
|
|
1291
|
-
requestContentType: "application/json; charset=utf-8",
|
|
1292
|
-
credential: credentials
|
|
1293
|
-
};
|
|
1294
|
-
const packageDetails = `azsdk-js-arm-powerbiembedded/2.0.3`;
|
|
1295
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1296
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1297
|
-
: `${packageDetails}`;
|
|
1298
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1299
|
-
userAgentPrefix
|
|
1300
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1301
|
-
super(optionsWithDefaults);
|
|
1302
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
1303
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1304
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1305
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1306
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1307
|
-
}
|
|
1308
|
-
if (!options ||
|
|
1309
|
-
!options.pipeline ||
|
|
1310
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1311
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
1312
|
-
this.pipeline.removePolicy({
|
|
1313
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1314
|
-
});
|
|
1315
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1316
|
-
credential: credentials,
|
|
1317
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1318
|
-
challengeCallbacks: {
|
|
1319
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1320
|
-
}
|
|
1321
|
-
}));
|
|
1322
|
-
}
|
|
1323
|
-
// Parameter assignments
|
|
1324
|
-
this.subscriptionId = subscriptionId;
|
|
1325
|
-
// Assigning values to Constant parameters
|
|
1326
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
1327
|
-
this.apiVersion = options.apiVersion || "2016-01-29";
|
|
1328
|
-
this.workspaceCollections = new WorkspaceCollectionsImpl(this);
|
|
1329
|
-
this.workspaces = new WorkspacesImpl(this);
|
|
1330
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1331
|
-
}
|
|
1332
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1333
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1334
|
-
if (!apiVersion) {
|
|
1335
|
-
return;
|
|
1336
|
-
}
|
|
1337
|
-
const apiVersionPolicy = {
|
|
1338
|
-
name: "CustomApiVersionPolicy",
|
|
1339
|
-
sendRequest(request, next) {
|
|
1340
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1341
|
-
const param = request.url.split("?");
|
|
1342
|
-
if (param.length > 1) {
|
|
1343
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1344
|
-
if (item.indexOf("api-version") > -1) {
|
|
1345
|
-
return "api-version=" + apiVersion;
|
|
1346
|
-
}
|
|
1347
|
-
else {
|
|
1348
|
-
return item;
|
|
1349
|
-
}
|
|
1350
|
-
});
|
|
1351
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1352
|
-
}
|
|
1353
|
-
return next(request);
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1358
|
-
}
|
|
1359
|
-
/**
|
|
1360
|
-
* Indicates which operations can be performed by the Power BI Resource Provider.
|
|
1361
|
-
* @param options The options parameters.
|
|
1362
|
-
*/
|
|
1363
|
-
getAvailableOperations(options) {
|
|
1364
|
-
return this.sendOperationRequest({ options }, getAvailableOperationsOperationSpec);
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
// Operation Specifications
|
|
1368
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1369
|
-
const getAvailableOperationsOperationSpec = {
|
|
1370
|
-
path: "/providers/Microsoft.PowerBI/operations",
|
|
1371
|
-
httpMethod: "GET",
|
|
1372
|
-
responses: {
|
|
1373
|
-
200: {
|
|
1374
|
-
bodyMapper: OperationList
|
|
1375
|
-
},
|
|
1376
|
-
default: {
|
|
1377
|
-
bodyMapper: ErrorModel
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
queryParameters: [apiVersion],
|
|
1381
|
-
urlParameters: [$host],
|
|
1382
|
-
headerParameters: [accept],
|
|
1383
|
-
serializer
|
|
1384
|
-
};
|
|
1385
|
-
|
|
1386
|
-
exports.PowerBIEmbeddedManagementClient = PowerBIEmbeddedManagementClient;
|
|
1387
|
-
exports.getContinuationToken = getContinuationToken;
|
|
1388
|
-
//# sourceMappingURL=index.js.map
|