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