@azure/arm-portal 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +1627 -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/models/index.d.ts +334 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +13 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +28 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +624 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +120 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/dashboards.d.ts +83 -0
- package/dist-esm/src/operations/dashboards.d.ts.map +1 -0
- package/dist-esm/src/operations/dashboards.js +361 -0
- package/dist-esm/src/operations/dashboards.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts +32 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +1 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.js +120 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/tenantConfigurations.d.ts +52 -0
- package/dist-esm/src/operations/tenantConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/tenantConfigurations.js +199 -0
- package/dist-esm/src/operations/tenantConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dashboards.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dashboards.js +9 -0
- package/dist-esm/src/operationsInterfaces/dashboards.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +1 -0
- package/dist-esm/src/portal.d.ts +22 -0
- package/dist-esm/src/portal.d.ts.map +1 -0
- package/dist-esm/src/portal.js +55 -0
- package/dist-esm/src/portal.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 +90 -0
- package/review/arm-portal.api.md +349 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +389 -0
- package/src/models/mappers.ts +658 -0
- package/src/models/parameters.ts +141 -0
- package/src/operations/dashboards.ts +451 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/listTenantConfigurationViolations.ts +138 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/tenantConfigurations.ts +244 -0
- package/src/operationsInterfaces/dashboards.ts +91 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/listTenantConfigurationViolations.ts +25 -0
- package/src/operationsInterfaces/operations.ts +25 -0
- package/src/operationsInterfaces/tenantConfigurations.ts +61 -0
- package/src/portal.ts +94 -0
- package/tsconfig.json +19 -0
- package/types/arm-portal.d.ts +505 -0
- package/types/tsdoc-metadata.json +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1627 @@
|
|
|
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
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*
|
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
+
*/
|
|
15
|
+
(function (KnownConfigurationName) {
|
|
16
|
+
KnownConfigurationName["Default"] = "default";
|
|
17
|
+
})(exports.KnownConfigurationName || (exports.KnownConfigurationName = {}));
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Copyright (c) Microsoft Corporation.
|
|
21
|
+
* Licensed under the MIT License.
|
|
22
|
+
*
|
|
23
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
24
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
25
|
+
*/
|
|
26
|
+
const ResourceProviderOperationList = {
|
|
27
|
+
type: {
|
|
28
|
+
name: "Composite",
|
|
29
|
+
className: "ResourceProviderOperationList",
|
|
30
|
+
modelProperties: {
|
|
31
|
+
value: {
|
|
32
|
+
serializedName: "value",
|
|
33
|
+
type: {
|
|
34
|
+
name: "Sequence",
|
|
35
|
+
element: {
|
|
36
|
+
type: {
|
|
37
|
+
name: "Composite",
|
|
38
|
+
className: "ResourceProviderOperation"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
nextLink: {
|
|
44
|
+
serializedName: "nextLink",
|
|
45
|
+
type: {
|
|
46
|
+
name: "String"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const ResourceProviderOperation = {
|
|
53
|
+
type: {
|
|
54
|
+
name: "Composite",
|
|
55
|
+
className: "ResourceProviderOperation",
|
|
56
|
+
modelProperties: {
|
|
57
|
+
name: {
|
|
58
|
+
serializedName: "name",
|
|
59
|
+
type: {
|
|
60
|
+
name: "String"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
isDataAction: {
|
|
64
|
+
serializedName: "isDataAction",
|
|
65
|
+
type: {
|
|
66
|
+
name: "String"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
display: {
|
|
70
|
+
serializedName: "display",
|
|
71
|
+
type: {
|
|
72
|
+
name: "Composite",
|
|
73
|
+
className: "ResourceProviderOperationDisplay"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const ResourceProviderOperationDisplay = {
|
|
80
|
+
type: {
|
|
81
|
+
name: "Composite",
|
|
82
|
+
className: "ResourceProviderOperationDisplay",
|
|
83
|
+
modelProperties: {
|
|
84
|
+
provider: {
|
|
85
|
+
serializedName: "provider",
|
|
86
|
+
type: {
|
|
87
|
+
name: "String"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
resource: {
|
|
91
|
+
serializedName: "resource",
|
|
92
|
+
type: {
|
|
93
|
+
name: "String"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
operation: {
|
|
97
|
+
serializedName: "operation",
|
|
98
|
+
type: {
|
|
99
|
+
name: "String"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
description: {
|
|
103
|
+
serializedName: "description",
|
|
104
|
+
type: {
|
|
105
|
+
name: "String"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const ErrorResponse = {
|
|
112
|
+
type: {
|
|
113
|
+
name: "Composite",
|
|
114
|
+
className: "ErrorResponse",
|
|
115
|
+
modelProperties: {
|
|
116
|
+
error: {
|
|
117
|
+
serializedName: "error",
|
|
118
|
+
type: {
|
|
119
|
+
name: "Composite",
|
|
120
|
+
className: "ErrorDefinition"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const ErrorDefinition = {
|
|
127
|
+
type: {
|
|
128
|
+
name: "Composite",
|
|
129
|
+
className: "ErrorDefinition",
|
|
130
|
+
modelProperties: {
|
|
131
|
+
code: {
|
|
132
|
+
serializedName: "code",
|
|
133
|
+
readOnly: true,
|
|
134
|
+
type: {
|
|
135
|
+
name: "Number"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
message: {
|
|
139
|
+
serializedName: "message",
|
|
140
|
+
readOnly: true,
|
|
141
|
+
type: {
|
|
142
|
+
name: "String"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
details: {
|
|
146
|
+
serializedName: "details",
|
|
147
|
+
readOnly: true,
|
|
148
|
+
type: {
|
|
149
|
+
name: "Sequence",
|
|
150
|
+
element: {
|
|
151
|
+
type: {
|
|
152
|
+
name: "Composite",
|
|
153
|
+
className: "ErrorDefinition"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const Dashboard = {
|
|
162
|
+
type: {
|
|
163
|
+
name: "Composite",
|
|
164
|
+
className: "Dashboard",
|
|
165
|
+
modelProperties: {
|
|
166
|
+
id: {
|
|
167
|
+
serializedName: "id",
|
|
168
|
+
readOnly: true,
|
|
169
|
+
type: {
|
|
170
|
+
name: "String"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
name: {
|
|
174
|
+
serializedName: "name",
|
|
175
|
+
readOnly: true,
|
|
176
|
+
type: {
|
|
177
|
+
name: "String"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
type: {
|
|
181
|
+
serializedName: "type",
|
|
182
|
+
readOnly: true,
|
|
183
|
+
type: {
|
|
184
|
+
name: "String"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
location: {
|
|
188
|
+
serializedName: "location",
|
|
189
|
+
required: true,
|
|
190
|
+
type: {
|
|
191
|
+
name: "String"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
tags: {
|
|
195
|
+
serializedName: "tags",
|
|
196
|
+
type: {
|
|
197
|
+
name: "Dictionary",
|
|
198
|
+
value: { type: { name: "String" } }
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
lenses: {
|
|
202
|
+
serializedName: "properties.lenses",
|
|
203
|
+
type: {
|
|
204
|
+
name: "Sequence",
|
|
205
|
+
element: {
|
|
206
|
+
type: {
|
|
207
|
+
name: "Composite",
|
|
208
|
+
className: "DashboardLens"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
metadata: {
|
|
214
|
+
serializedName: "properties.metadata",
|
|
215
|
+
type: {
|
|
216
|
+
name: "Dictionary",
|
|
217
|
+
value: {
|
|
218
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const DashboardLens = {
|
|
226
|
+
type: {
|
|
227
|
+
name: "Composite",
|
|
228
|
+
className: "DashboardLens",
|
|
229
|
+
modelProperties: {
|
|
230
|
+
order: {
|
|
231
|
+
serializedName: "order",
|
|
232
|
+
required: true,
|
|
233
|
+
type: {
|
|
234
|
+
name: "Number"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
parts: {
|
|
238
|
+
serializedName: "parts",
|
|
239
|
+
required: true,
|
|
240
|
+
type: {
|
|
241
|
+
name: "Sequence",
|
|
242
|
+
element: {
|
|
243
|
+
type: {
|
|
244
|
+
name: "Composite",
|
|
245
|
+
className: "DashboardParts"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
metadata: {
|
|
251
|
+
serializedName: "metadata",
|
|
252
|
+
type: {
|
|
253
|
+
name: "Dictionary",
|
|
254
|
+
value: {
|
|
255
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const DashboardParts = {
|
|
263
|
+
type: {
|
|
264
|
+
name: "Composite",
|
|
265
|
+
className: "DashboardParts",
|
|
266
|
+
modelProperties: {
|
|
267
|
+
position: {
|
|
268
|
+
serializedName: "position",
|
|
269
|
+
type: {
|
|
270
|
+
name: "Composite",
|
|
271
|
+
className: "DashboardPartsPosition"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
metadata: {
|
|
275
|
+
serializedName: "metadata",
|
|
276
|
+
type: {
|
|
277
|
+
name: "Composite",
|
|
278
|
+
className: "DashboardPartMetadata"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const DashboardPartsPosition = {
|
|
285
|
+
type: {
|
|
286
|
+
name: "Composite",
|
|
287
|
+
className: "DashboardPartsPosition",
|
|
288
|
+
modelProperties: {
|
|
289
|
+
x: {
|
|
290
|
+
serializedName: "x",
|
|
291
|
+
required: true,
|
|
292
|
+
type: {
|
|
293
|
+
name: "Number"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
y: {
|
|
297
|
+
serializedName: "y",
|
|
298
|
+
required: true,
|
|
299
|
+
type: {
|
|
300
|
+
name: "Number"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
rowSpan: {
|
|
304
|
+
serializedName: "rowSpan",
|
|
305
|
+
required: true,
|
|
306
|
+
type: {
|
|
307
|
+
name: "Number"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
colSpan: {
|
|
311
|
+
serializedName: "colSpan",
|
|
312
|
+
required: true,
|
|
313
|
+
type: {
|
|
314
|
+
name: "Number"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
metadata: {
|
|
318
|
+
serializedName: "metadata",
|
|
319
|
+
type: {
|
|
320
|
+
name: "Dictionary",
|
|
321
|
+
value: {
|
|
322
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const DashboardPartMetadata = {
|
|
330
|
+
serializedName: "DashboardPartMetadata",
|
|
331
|
+
type: {
|
|
332
|
+
name: "Composite",
|
|
333
|
+
className: "DashboardPartMetadata",
|
|
334
|
+
uberParent: "DashboardPartMetadata",
|
|
335
|
+
additionalProperties: { type: { name: "Object" } },
|
|
336
|
+
polymorphicDiscriminator: {
|
|
337
|
+
serializedName: "type",
|
|
338
|
+
clientName: "type"
|
|
339
|
+
},
|
|
340
|
+
modelProperties: {
|
|
341
|
+
type: {
|
|
342
|
+
serializedName: "type",
|
|
343
|
+
required: true,
|
|
344
|
+
type: {
|
|
345
|
+
name: "String"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const PatchableDashboard = {
|
|
352
|
+
type: {
|
|
353
|
+
name: "Composite",
|
|
354
|
+
className: "PatchableDashboard",
|
|
355
|
+
modelProperties: {
|
|
356
|
+
tags: {
|
|
357
|
+
serializedName: "tags",
|
|
358
|
+
type: {
|
|
359
|
+
name: "Dictionary",
|
|
360
|
+
value: { type: { name: "String" } }
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
lenses: {
|
|
364
|
+
serializedName: "properties.lenses",
|
|
365
|
+
type: {
|
|
366
|
+
name: "Sequence",
|
|
367
|
+
element: {
|
|
368
|
+
type: {
|
|
369
|
+
name: "Composite",
|
|
370
|
+
className: "DashboardLens"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
metadata: {
|
|
376
|
+
serializedName: "properties.metadata",
|
|
377
|
+
type: {
|
|
378
|
+
name: "Dictionary",
|
|
379
|
+
value: {
|
|
380
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
const DashboardListResult = {
|
|
388
|
+
type: {
|
|
389
|
+
name: "Composite",
|
|
390
|
+
className: "DashboardListResult",
|
|
391
|
+
modelProperties: {
|
|
392
|
+
value: {
|
|
393
|
+
serializedName: "value",
|
|
394
|
+
type: {
|
|
395
|
+
name: "Sequence",
|
|
396
|
+
element: {
|
|
397
|
+
type: {
|
|
398
|
+
name: "Composite",
|
|
399
|
+
className: "Dashboard"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
nextLink: {
|
|
405
|
+
serializedName: "nextLink",
|
|
406
|
+
type: {
|
|
407
|
+
name: "String"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
const ConfigurationList = {
|
|
414
|
+
type: {
|
|
415
|
+
name: "Composite",
|
|
416
|
+
className: "ConfigurationList",
|
|
417
|
+
modelProperties: {
|
|
418
|
+
value: {
|
|
419
|
+
serializedName: "value",
|
|
420
|
+
type: {
|
|
421
|
+
name: "Sequence",
|
|
422
|
+
element: {
|
|
423
|
+
type: {
|
|
424
|
+
name: "Composite",
|
|
425
|
+
className: "Configuration"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
nextLink: {
|
|
431
|
+
serializedName: "nextLink",
|
|
432
|
+
type: {
|
|
433
|
+
name: "String"
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
const Resource = {
|
|
440
|
+
type: {
|
|
441
|
+
name: "Composite",
|
|
442
|
+
className: "Resource",
|
|
443
|
+
modelProperties: {
|
|
444
|
+
id: {
|
|
445
|
+
serializedName: "id",
|
|
446
|
+
readOnly: true,
|
|
447
|
+
type: {
|
|
448
|
+
name: "String"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
name: {
|
|
452
|
+
serializedName: "name",
|
|
453
|
+
readOnly: true,
|
|
454
|
+
type: {
|
|
455
|
+
name: "String"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
type: {
|
|
459
|
+
serializedName: "type",
|
|
460
|
+
readOnly: true,
|
|
461
|
+
type: {
|
|
462
|
+
name: "String"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
const ViolationsList = {
|
|
469
|
+
type: {
|
|
470
|
+
name: "Composite",
|
|
471
|
+
className: "ViolationsList",
|
|
472
|
+
modelProperties: {
|
|
473
|
+
value: {
|
|
474
|
+
serializedName: "value",
|
|
475
|
+
type: {
|
|
476
|
+
name: "Sequence",
|
|
477
|
+
element: {
|
|
478
|
+
type: {
|
|
479
|
+
name: "Composite",
|
|
480
|
+
className: "Violation"
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
nextLink: {
|
|
486
|
+
serializedName: "nextLink",
|
|
487
|
+
type: {
|
|
488
|
+
name: "String"
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
const Violation = {
|
|
495
|
+
type: {
|
|
496
|
+
name: "Composite",
|
|
497
|
+
className: "Violation",
|
|
498
|
+
modelProperties: {
|
|
499
|
+
id: {
|
|
500
|
+
serializedName: "id",
|
|
501
|
+
readOnly: true,
|
|
502
|
+
type: {
|
|
503
|
+
name: "String"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
userId: {
|
|
507
|
+
serializedName: "userId",
|
|
508
|
+
readOnly: true,
|
|
509
|
+
type: {
|
|
510
|
+
name: "String"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
errorMessage: {
|
|
514
|
+
serializedName: "errorMessage",
|
|
515
|
+
readOnly: true,
|
|
516
|
+
type: {
|
|
517
|
+
name: "String"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
const MarkdownPartMetadataSettings = {
|
|
524
|
+
type: {
|
|
525
|
+
name: "Composite",
|
|
526
|
+
className: "MarkdownPartMetadataSettings",
|
|
527
|
+
modelProperties: {
|
|
528
|
+
content: {
|
|
529
|
+
serializedName: "content",
|
|
530
|
+
type: {
|
|
531
|
+
name: "Composite",
|
|
532
|
+
className: "MarkdownPartMetadataSettingsContent"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
const MarkdownPartMetadataSettingsContent = {
|
|
539
|
+
type: {
|
|
540
|
+
name: "Composite",
|
|
541
|
+
className: "MarkdownPartMetadataSettingsContent",
|
|
542
|
+
modelProperties: {
|
|
543
|
+
settings: {
|
|
544
|
+
serializedName: "settings",
|
|
545
|
+
type: {
|
|
546
|
+
name: "Composite",
|
|
547
|
+
className: "MarkdownPartMetadataSettingsContentSettings"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
const MarkdownPartMetadataSettingsContentSettings = {
|
|
554
|
+
type: {
|
|
555
|
+
name: "Composite",
|
|
556
|
+
className: "MarkdownPartMetadataSettingsContentSettings",
|
|
557
|
+
modelProperties: {
|
|
558
|
+
content: {
|
|
559
|
+
serializedName: "content",
|
|
560
|
+
type: {
|
|
561
|
+
name: "String"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
title: {
|
|
565
|
+
serializedName: "title",
|
|
566
|
+
type: {
|
|
567
|
+
name: "String"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
subtitle: {
|
|
571
|
+
serializedName: "subtitle",
|
|
572
|
+
type: {
|
|
573
|
+
name: "String"
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
markdownSource: {
|
|
577
|
+
serializedName: "markdownSource",
|
|
578
|
+
type: {
|
|
579
|
+
name: "Number"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
markdownUri: {
|
|
583
|
+
serializedName: "markdownUri",
|
|
584
|
+
type: {
|
|
585
|
+
name: "String"
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
const MarkdownPartMetadata = {
|
|
592
|
+
serializedName: "Extension/HubsExtension/PartType/MarkdownPart",
|
|
593
|
+
type: {
|
|
594
|
+
name: "Composite",
|
|
595
|
+
className: "MarkdownPartMetadata",
|
|
596
|
+
uberParent: "DashboardPartMetadata",
|
|
597
|
+
additionalProperties: { type: { name: "Object" } },
|
|
598
|
+
polymorphicDiscriminator: DashboardPartMetadata.type.polymorphicDiscriminator,
|
|
599
|
+
modelProperties: Object.assign(Object.assign({}, DashboardPartMetadata.type.modelProperties), { inputs: {
|
|
600
|
+
serializedName: "inputs",
|
|
601
|
+
type: {
|
|
602
|
+
name: "Sequence",
|
|
603
|
+
element: {
|
|
604
|
+
type: {
|
|
605
|
+
name: "Dictionary",
|
|
606
|
+
value: { type: { name: "any" } }
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}, settings: {
|
|
611
|
+
serializedName: "settings",
|
|
612
|
+
type: {
|
|
613
|
+
name: "Composite",
|
|
614
|
+
className: "MarkdownPartMetadataSettings"
|
|
615
|
+
}
|
|
616
|
+
} })
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
const ProxyResource = {
|
|
620
|
+
type: {
|
|
621
|
+
name: "Composite",
|
|
622
|
+
className: "ProxyResource",
|
|
623
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
const Configuration = {
|
|
627
|
+
type: {
|
|
628
|
+
name: "Composite",
|
|
629
|
+
className: "Configuration",
|
|
630
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { enforcePrivateMarkdownStorage: {
|
|
631
|
+
serializedName: "properties.enforcePrivateMarkdownStorage",
|
|
632
|
+
type: {
|
|
633
|
+
name: "Boolean"
|
|
634
|
+
}
|
|
635
|
+
} })
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
let discriminators = {
|
|
639
|
+
DashboardPartMetadata: DashboardPartMetadata,
|
|
640
|
+
"DashboardPartMetadata.Extension/HubsExtension/PartType/MarkdownPart": MarkdownPartMetadata
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
644
|
+
__proto__: null,
|
|
645
|
+
ResourceProviderOperationList: ResourceProviderOperationList,
|
|
646
|
+
ResourceProviderOperation: ResourceProviderOperation,
|
|
647
|
+
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
|
648
|
+
ErrorResponse: ErrorResponse,
|
|
649
|
+
ErrorDefinition: ErrorDefinition,
|
|
650
|
+
Dashboard: Dashboard,
|
|
651
|
+
DashboardLens: DashboardLens,
|
|
652
|
+
DashboardParts: DashboardParts,
|
|
653
|
+
DashboardPartsPosition: DashboardPartsPosition,
|
|
654
|
+
DashboardPartMetadata: DashboardPartMetadata,
|
|
655
|
+
PatchableDashboard: PatchableDashboard,
|
|
656
|
+
DashboardListResult: DashboardListResult,
|
|
657
|
+
ConfigurationList: ConfigurationList,
|
|
658
|
+
Resource: Resource,
|
|
659
|
+
ViolationsList: ViolationsList,
|
|
660
|
+
Violation: Violation,
|
|
661
|
+
MarkdownPartMetadataSettings: MarkdownPartMetadataSettings,
|
|
662
|
+
MarkdownPartMetadataSettingsContent: MarkdownPartMetadataSettingsContent,
|
|
663
|
+
MarkdownPartMetadataSettingsContentSettings: MarkdownPartMetadataSettingsContentSettings,
|
|
664
|
+
MarkdownPartMetadata: MarkdownPartMetadata,
|
|
665
|
+
ProxyResource: ProxyResource,
|
|
666
|
+
Configuration: Configuration,
|
|
667
|
+
discriminators: discriminators
|
|
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
|
+
const accept = {
|
|
678
|
+
parameterPath: "accept",
|
|
679
|
+
mapper: {
|
|
680
|
+
defaultValue: "application/json",
|
|
681
|
+
isConstant: true,
|
|
682
|
+
serializedName: "Accept",
|
|
683
|
+
type: {
|
|
684
|
+
name: "String"
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
const $host = {
|
|
689
|
+
parameterPath: "$host",
|
|
690
|
+
mapper: {
|
|
691
|
+
serializedName: "$host",
|
|
692
|
+
required: true,
|
|
693
|
+
type: {
|
|
694
|
+
name: "String"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
skipEncoding: true
|
|
698
|
+
};
|
|
699
|
+
const apiVersion = {
|
|
700
|
+
parameterPath: "apiVersion",
|
|
701
|
+
mapper: {
|
|
702
|
+
defaultValue: "2020-09-01-preview",
|
|
703
|
+
isConstant: true,
|
|
704
|
+
serializedName: "api-version",
|
|
705
|
+
type: {
|
|
706
|
+
name: "String"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
const nextLink = {
|
|
711
|
+
parameterPath: "nextLink",
|
|
712
|
+
mapper: {
|
|
713
|
+
serializedName: "nextLink",
|
|
714
|
+
required: true,
|
|
715
|
+
type: {
|
|
716
|
+
name: "String"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
skipEncoding: true
|
|
720
|
+
};
|
|
721
|
+
const contentType = {
|
|
722
|
+
parameterPath: ["options", "contentType"],
|
|
723
|
+
mapper: {
|
|
724
|
+
defaultValue: "application/json",
|
|
725
|
+
isConstant: true,
|
|
726
|
+
serializedName: "Content-Type",
|
|
727
|
+
type: {
|
|
728
|
+
name: "String"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
const dashboard = {
|
|
733
|
+
parameterPath: "dashboard",
|
|
734
|
+
mapper: Dashboard
|
|
735
|
+
};
|
|
736
|
+
const subscriptionId = {
|
|
737
|
+
parameterPath: "subscriptionId",
|
|
738
|
+
mapper: {
|
|
739
|
+
serializedName: "subscriptionId",
|
|
740
|
+
required: true,
|
|
741
|
+
type: {
|
|
742
|
+
name: "String"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
const resourceGroupName = {
|
|
747
|
+
parameterPath: "resourceGroupName",
|
|
748
|
+
mapper: {
|
|
749
|
+
serializedName: "resourceGroupName",
|
|
750
|
+
required: true,
|
|
751
|
+
type: {
|
|
752
|
+
name: "String"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
const dashboardName = {
|
|
757
|
+
parameterPath: "dashboardName",
|
|
758
|
+
mapper: {
|
|
759
|
+
constraints: {
|
|
760
|
+
MaxLength: 64,
|
|
761
|
+
MinLength: 3
|
|
762
|
+
},
|
|
763
|
+
serializedName: "dashboardName",
|
|
764
|
+
required: true,
|
|
765
|
+
type: {
|
|
766
|
+
name: "String"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
const dashboard1 = {
|
|
771
|
+
parameterPath: "dashboard",
|
|
772
|
+
mapper: PatchableDashboard
|
|
773
|
+
};
|
|
774
|
+
const configurationName = {
|
|
775
|
+
parameterPath: "configurationName",
|
|
776
|
+
mapper: {
|
|
777
|
+
serializedName: "configurationName",
|
|
778
|
+
required: true,
|
|
779
|
+
type: {
|
|
780
|
+
name: "String"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
const tenantConfiguration = {
|
|
785
|
+
parameterPath: "tenantConfiguration",
|
|
786
|
+
mapper: Configuration
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
/*
|
|
790
|
+
* Copyright (c) Microsoft Corporation.
|
|
791
|
+
* Licensed under the MIT License.
|
|
792
|
+
*
|
|
793
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
794
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
795
|
+
*/
|
|
796
|
+
/// <reference lib="esnext.asynciterable" />
|
|
797
|
+
/** Class containing Operations operations. */
|
|
798
|
+
class OperationsImpl {
|
|
799
|
+
/**
|
|
800
|
+
* Initialize a new instance of the class Operations class.
|
|
801
|
+
* @param client Reference to the service client
|
|
802
|
+
*/
|
|
803
|
+
constructor(client) {
|
|
804
|
+
this.client = client;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* The Microsoft Portal operations API.
|
|
808
|
+
* @param options The options parameters.
|
|
809
|
+
*/
|
|
810
|
+
list(options) {
|
|
811
|
+
const iter = this.listPagingAll(options);
|
|
812
|
+
return {
|
|
813
|
+
next() {
|
|
814
|
+
return iter.next();
|
|
815
|
+
},
|
|
816
|
+
[Symbol.asyncIterator]() {
|
|
817
|
+
return this;
|
|
818
|
+
},
|
|
819
|
+
byPage: () => {
|
|
820
|
+
return this.listPagingPage(options);
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
listPagingPage(options) {
|
|
825
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
826
|
+
let result = yield tslib.__await(this._list(options));
|
|
827
|
+
yield yield tslib.__await(result.value || []);
|
|
828
|
+
let continuationToken = result.nextLink;
|
|
829
|
+
while (continuationToken) {
|
|
830
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
831
|
+
continuationToken = result.nextLink;
|
|
832
|
+
yield yield tslib.__await(result.value || []);
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
listPagingAll(options) {
|
|
837
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
838
|
+
var e_1, _a;
|
|
839
|
+
try {
|
|
840
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
841
|
+
const page = _c.value;
|
|
842
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
846
|
+
finally {
|
|
847
|
+
try {
|
|
848
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
849
|
+
}
|
|
850
|
+
finally { if (e_1) throw e_1.error; }
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* The Microsoft Portal operations API.
|
|
856
|
+
* @param options The options parameters.
|
|
857
|
+
*/
|
|
858
|
+
_list(options) {
|
|
859
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* ListNext
|
|
863
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
864
|
+
* @param options The options parameters.
|
|
865
|
+
*/
|
|
866
|
+
_listNext(nextLink, options) {
|
|
867
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
// Operation Specifications
|
|
871
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
872
|
+
const listOperationSpec = {
|
|
873
|
+
path: "/providers/Microsoft.Portal/operations",
|
|
874
|
+
httpMethod: "GET",
|
|
875
|
+
responses: {
|
|
876
|
+
200: {
|
|
877
|
+
bodyMapper: ResourceProviderOperationList
|
|
878
|
+
},
|
|
879
|
+
default: {
|
|
880
|
+
bodyMapper: ErrorResponse
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
queryParameters: [apiVersion],
|
|
884
|
+
urlParameters: [$host],
|
|
885
|
+
headerParameters: [accept],
|
|
886
|
+
serializer
|
|
887
|
+
};
|
|
888
|
+
const listNextOperationSpec = {
|
|
889
|
+
path: "{nextLink}",
|
|
890
|
+
httpMethod: "GET",
|
|
891
|
+
responses: {
|
|
892
|
+
200: {
|
|
893
|
+
bodyMapper: ResourceProviderOperationList
|
|
894
|
+
},
|
|
895
|
+
default: {
|
|
896
|
+
bodyMapper: ErrorResponse
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
queryParameters: [apiVersion],
|
|
900
|
+
urlParameters: [$host, nextLink],
|
|
901
|
+
headerParameters: [accept],
|
|
902
|
+
serializer
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
/*
|
|
906
|
+
* Copyright (c) Microsoft Corporation.
|
|
907
|
+
* Licensed under the MIT License.
|
|
908
|
+
*
|
|
909
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
910
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
911
|
+
*/
|
|
912
|
+
/// <reference lib="esnext.asynciterable" />
|
|
913
|
+
/** Class containing Dashboards operations. */
|
|
914
|
+
class DashboardsImpl {
|
|
915
|
+
/**
|
|
916
|
+
* Initialize a new instance of the class Dashboards class.
|
|
917
|
+
* @param client Reference to the service client
|
|
918
|
+
*/
|
|
919
|
+
constructor(client) {
|
|
920
|
+
this.client = client;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Gets all the Dashboards within a resource group.
|
|
924
|
+
* @param resourceGroupName The name of the resource group.
|
|
925
|
+
* @param options The options parameters.
|
|
926
|
+
*/
|
|
927
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
928
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
929
|
+
return {
|
|
930
|
+
next() {
|
|
931
|
+
return iter.next();
|
|
932
|
+
},
|
|
933
|
+
[Symbol.asyncIterator]() {
|
|
934
|
+
return this;
|
|
935
|
+
},
|
|
936
|
+
byPage: () => {
|
|
937
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
942
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
943
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
944
|
+
yield yield tslib.__await(result.value || []);
|
|
945
|
+
let continuationToken = result.nextLink;
|
|
946
|
+
while (continuationToken) {
|
|
947
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
948
|
+
continuationToken = result.nextLink;
|
|
949
|
+
yield yield tslib.__await(result.value || []);
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
954
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
955
|
+
var e_1, _a;
|
|
956
|
+
try {
|
|
957
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
958
|
+
const page = _c.value;
|
|
959
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
963
|
+
finally {
|
|
964
|
+
try {
|
|
965
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
966
|
+
}
|
|
967
|
+
finally { if (e_1) throw e_1.error; }
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Gets all the dashboards within a subscription.
|
|
973
|
+
* @param options The options parameters.
|
|
974
|
+
*/
|
|
975
|
+
listBySubscription(options) {
|
|
976
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
977
|
+
return {
|
|
978
|
+
next() {
|
|
979
|
+
return iter.next();
|
|
980
|
+
},
|
|
981
|
+
[Symbol.asyncIterator]() {
|
|
982
|
+
return this;
|
|
983
|
+
},
|
|
984
|
+
byPage: () => {
|
|
985
|
+
return this.listBySubscriptionPagingPage(options);
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
listBySubscriptionPagingPage(options) {
|
|
990
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
991
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
|
992
|
+
yield yield tslib.__await(result.value || []);
|
|
993
|
+
let continuationToken = result.nextLink;
|
|
994
|
+
while (continuationToken) {
|
|
995
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
996
|
+
continuationToken = result.nextLink;
|
|
997
|
+
yield yield tslib.__await(result.value || []);
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
listBySubscriptionPagingAll(options) {
|
|
1002
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1003
|
+
var e_2, _a;
|
|
1004
|
+
try {
|
|
1005
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1006
|
+
const page = _c.value;
|
|
1007
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1011
|
+
finally {
|
|
1012
|
+
try {
|
|
1013
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1014
|
+
}
|
|
1015
|
+
finally { if (e_2) throw e_2.error; }
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Creates or updates a Dashboard.
|
|
1021
|
+
* @param resourceGroupName The name of the resource group.
|
|
1022
|
+
* @param dashboardName The name of the dashboard.
|
|
1023
|
+
* @param dashboard The parameters required to create or update a dashboard.
|
|
1024
|
+
* @param options The options parameters.
|
|
1025
|
+
*/
|
|
1026
|
+
createOrUpdate(resourceGroupName, dashboardName, dashboard, options) {
|
|
1027
|
+
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, dashboard, options }, createOrUpdateOperationSpec);
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Deletes the Dashboard.
|
|
1031
|
+
* @param resourceGroupName The name of the resource group.
|
|
1032
|
+
* @param dashboardName The name of the dashboard.
|
|
1033
|
+
* @param options The options parameters.
|
|
1034
|
+
*/
|
|
1035
|
+
delete(resourceGroupName, dashboardName, options) {
|
|
1036
|
+
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, deleteOperationSpec);
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Gets the Dashboard.
|
|
1040
|
+
* @param resourceGroupName The name of the resource group.
|
|
1041
|
+
* @param dashboardName The name of the dashboard.
|
|
1042
|
+
* @param options The options parameters.
|
|
1043
|
+
*/
|
|
1044
|
+
get(resourceGroupName, dashboardName, options) {
|
|
1045
|
+
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, options }, getOperationSpec);
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Updates an existing Dashboard.
|
|
1049
|
+
* @param resourceGroupName The name of the resource group.
|
|
1050
|
+
* @param dashboardName The name of the dashboard.
|
|
1051
|
+
* @param dashboard The updatable fields of a Dashboard.
|
|
1052
|
+
* @param options The options parameters.
|
|
1053
|
+
*/
|
|
1054
|
+
update(resourceGroupName, dashboardName, dashboard, options) {
|
|
1055
|
+
return this.client.sendOperationRequest({ resourceGroupName, dashboardName, dashboard, options }, updateOperationSpec);
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Gets all the Dashboards within a resource group.
|
|
1059
|
+
* @param resourceGroupName The name of the resource group.
|
|
1060
|
+
* @param options The options parameters.
|
|
1061
|
+
*/
|
|
1062
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1063
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Gets all the dashboards within a subscription.
|
|
1067
|
+
* @param options The options parameters.
|
|
1068
|
+
*/
|
|
1069
|
+
_listBySubscription(options) {
|
|
1070
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* ListByResourceGroupNext
|
|
1074
|
+
* @param resourceGroupName The name of the resource group.
|
|
1075
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1076
|
+
* @param options The options parameters.
|
|
1077
|
+
*/
|
|
1078
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1079
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* ListBySubscriptionNext
|
|
1083
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1084
|
+
* @param options The options parameters.
|
|
1085
|
+
*/
|
|
1086
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1087
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
// Operation Specifications
|
|
1091
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1092
|
+
const createOrUpdateOperationSpec = {
|
|
1093
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1094
|
+
httpMethod: "PUT",
|
|
1095
|
+
responses: {
|
|
1096
|
+
200: {
|
|
1097
|
+
bodyMapper: Dashboard
|
|
1098
|
+
},
|
|
1099
|
+
201: {
|
|
1100
|
+
bodyMapper: Dashboard
|
|
1101
|
+
},
|
|
1102
|
+
default: {
|
|
1103
|
+
bodyMapper: ErrorResponse
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
requestBody: dashboard,
|
|
1107
|
+
queryParameters: [apiVersion],
|
|
1108
|
+
urlParameters: [
|
|
1109
|
+
$host,
|
|
1110
|
+
subscriptionId,
|
|
1111
|
+
resourceGroupName,
|
|
1112
|
+
dashboardName
|
|
1113
|
+
],
|
|
1114
|
+
headerParameters: [accept, contentType],
|
|
1115
|
+
mediaType: "json",
|
|
1116
|
+
serializer: serializer$1
|
|
1117
|
+
};
|
|
1118
|
+
const deleteOperationSpec = {
|
|
1119
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1120
|
+
httpMethod: "DELETE",
|
|
1121
|
+
responses: {
|
|
1122
|
+
200: {},
|
|
1123
|
+
204: {},
|
|
1124
|
+
default: {
|
|
1125
|
+
bodyMapper: ErrorResponse
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
queryParameters: [apiVersion],
|
|
1129
|
+
urlParameters: [
|
|
1130
|
+
$host,
|
|
1131
|
+
subscriptionId,
|
|
1132
|
+
resourceGroupName,
|
|
1133
|
+
dashboardName
|
|
1134
|
+
],
|
|
1135
|
+
headerParameters: [accept],
|
|
1136
|
+
serializer: serializer$1
|
|
1137
|
+
};
|
|
1138
|
+
const getOperationSpec = {
|
|
1139
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1140
|
+
httpMethod: "GET",
|
|
1141
|
+
responses: {
|
|
1142
|
+
200: {
|
|
1143
|
+
bodyMapper: Dashboard
|
|
1144
|
+
},
|
|
1145
|
+
404: {},
|
|
1146
|
+
default: {
|
|
1147
|
+
bodyMapper: ErrorResponse
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
queryParameters: [apiVersion],
|
|
1151
|
+
urlParameters: [
|
|
1152
|
+
$host,
|
|
1153
|
+
subscriptionId,
|
|
1154
|
+
resourceGroupName,
|
|
1155
|
+
dashboardName
|
|
1156
|
+
],
|
|
1157
|
+
headerParameters: [accept],
|
|
1158
|
+
serializer: serializer$1
|
|
1159
|
+
};
|
|
1160
|
+
const updateOperationSpec = {
|
|
1161
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
|
|
1162
|
+
httpMethod: "PATCH",
|
|
1163
|
+
responses: {
|
|
1164
|
+
200: {
|
|
1165
|
+
bodyMapper: Dashboard
|
|
1166
|
+
},
|
|
1167
|
+
404: {},
|
|
1168
|
+
default: {
|
|
1169
|
+
bodyMapper: ErrorResponse
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
requestBody: dashboard1,
|
|
1173
|
+
queryParameters: [apiVersion],
|
|
1174
|
+
urlParameters: [
|
|
1175
|
+
$host,
|
|
1176
|
+
subscriptionId,
|
|
1177
|
+
resourceGroupName,
|
|
1178
|
+
dashboardName
|
|
1179
|
+
],
|
|
1180
|
+
headerParameters: [accept, contentType],
|
|
1181
|
+
mediaType: "json",
|
|
1182
|
+
serializer: serializer$1
|
|
1183
|
+
};
|
|
1184
|
+
const listByResourceGroupOperationSpec = {
|
|
1185
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards",
|
|
1186
|
+
httpMethod: "GET",
|
|
1187
|
+
responses: {
|
|
1188
|
+
200: {
|
|
1189
|
+
bodyMapper: DashboardListResult
|
|
1190
|
+
},
|
|
1191
|
+
default: {
|
|
1192
|
+
bodyMapper: ErrorResponse
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
queryParameters: [apiVersion],
|
|
1196
|
+
urlParameters: [
|
|
1197
|
+
$host,
|
|
1198
|
+
subscriptionId,
|
|
1199
|
+
resourceGroupName
|
|
1200
|
+
],
|
|
1201
|
+
headerParameters: [accept],
|
|
1202
|
+
serializer: serializer$1
|
|
1203
|
+
};
|
|
1204
|
+
const listBySubscriptionOperationSpec = {
|
|
1205
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards",
|
|
1206
|
+
httpMethod: "GET",
|
|
1207
|
+
responses: {
|
|
1208
|
+
200: {
|
|
1209
|
+
bodyMapper: DashboardListResult
|
|
1210
|
+
},
|
|
1211
|
+
default: {
|
|
1212
|
+
bodyMapper: ErrorResponse
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
queryParameters: [apiVersion],
|
|
1216
|
+
urlParameters: [$host, subscriptionId],
|
|
1217
|
+
headerParameters: [accept],
|
|
1218
|
+
serializer: serializer$1
|
|
1219
|
+
};
|
|
1220
|
+
const listByResourceGroupNextOperationSpec = {
|
|
1221
|
+
path: "{nextLink}",
|
|
1222
|
+
httpMethod: "GET",
|
|
1223
|
+
responses: {
|
|
1224
|
+
200: {
|
|
1225
|
+
bodyMapper: DashboardListResult
|
|
1226
|
+
},
|
|
1227
|
+
default: {
|
|
1228
|
+
bodyMapper: ErrorResponse
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
queryParameters: [apiVersion],
|
|
1232
|
+
urlParameters: [
|
|
1233
|
+
$host,
|
|
1234
|
+
nextLink,
|
|
1235
|
+
subscriptionId,
|
|
1236
|
+
resourceGroupName
|
|
1237
|
+
],
|
|
1238
|
+
headerParameters: [accept],
|
|
1239
|
+
serializer: serializer$1
|
|
1240
|
+
};
|
|
1241
|
+
const listBySubscriptionNextOperationSpec = {
|
|
1242
|
+
path: "{nextLink}",
|
|
1243
|
+
httpMethod: "GET",
|
|
1244
|
+
responses: {
|
|
1245
|
+
200: {
|
|
1246
|
+
bodyMapper: DashboardListResult
|
|
1247
|
+
},
|
|
1248
|
+
default: {
|
|
1249
|
+
bodyMapper: ErrorResponse
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
queryParameters: [apiVersion],
|
|
1253
|
+
urlParameters: [
|
|
1254
|
+
$host,
|
|
1255
|
+
nextLink,
|
|
1256
|
+
subscriptionId
|
|
1257
|
+
],
|
|
1258
|
+
headerParameters: [accept],
|
|
1259
|
+
serializer: serializer$1
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
/*
|
|
1263
|
+
* Copyright (c) Microsoft Corporation.
|
|
1264
|
+
* Licensed under the MIT License.
|
|
1265
|
+
*
|
|
1266
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1267
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1268
|
+
*/
|
|
1269
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1270
|
+
/** Class containing TenantConfigurations operations. */
|
|
1271
|
+
class TenantConfigurationsImpl {
|
|
1272
|
+
/**
|
|
1273
|
+
* Initialize a new instance of the class TenantConfigurations class.
|
|
1274
|
+
* @param client Reference to the service client
|
|
1275
|
+
*/
|
|
1276
|
+
constructor(client) {
|
|
1277
|
+
this.client = client;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Gets list of the tenant configurations.
|
|
1281
|
+
* @param options The options parameters.
|
|
1282
|
+
*/
|
|
1283
|
+
list(options) {
|
|
1284
|
+
const iter = this.listPagingAll(options);
|
|
1285
|
+
return {
|
|
1286
|
+
next() {
|
|
1287
|
+
return iter.next();
|
|
1288
|
+
},
|
|
1289
|
+
[Symbol.asyncIterator]() {
|
|
1290
|
+
return this;
|
|
1291
|
+
},
|
|
1292
|
+
byPage: () => {
|
|
1293
|
+
return this.listPagingPage(options);
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
listPagingPage(options) {
|
|
1298
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1299
|
+
let result = yield tslib.__await(this._list(options));
|
|
1300
|
+
yield yield tslib.__await(result.value || []);
|
|
1301
|
+
let continuationToken = result.nextLink;
|
|
1302
|
+
while (continuationToken) {
|
|
1303
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1304
|
+
continuationToken = result.nextLink;
|
|
1305
|
+
yield yield tslib.__await(result.value || []);
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
listPagingAll(options) {
|
|
1310
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1311
|
+
var e_1, _a;
|
|
1312
|
+
try {
|
|
1313
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1314
|
+
const page = _c.value;
|
|
1315
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1319
|
+
finally {
|
|
1320
|
+
try {
|
|
1321
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1322
|
+
}
|
|
1323
|
+
finally { if (e_1) throw e_1.error; }
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Gets list of the tenant configurations.
|
|
1329
|
+
* @param options The options parameters.
|
|
1330
|
+
*/
|
|
1331
|
+
_list(options) {
|
|
1332
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* Gets the tenant configuration.
|
|
1336
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
1337
|
+
* @param options The options parameters.
|
|
1338
|
+
*/
|
|
1339
|
+
get(configurationName, options) {
|
|
1340
|
+
return this.client.sendOperationRequest({ configurationName, options }, getOperationSpec$1);
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Create the tenant configuration. If configuration already exists - update it. User has to be a
|
|
1344
|
+
* Tenant Admin for this operation.
|
|
1345
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
1346
|
+
* @param tenantConfiguration The parameters required to create or update tenant configuration.
|
|
1347
|
+
* @param options The options parameters.
|
|
1348
|
+
*/
|
|
1349
|
+
create(configurationName, tenantConfiguration, options) {
|
|
1350
|
+
return this.client.sendOperationRequest({ configurationName, tenantConfiguration, options }, createOperationSpec);
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Delete the tenant configuration. User has to be a Tenant Admin for this operation.
|
|
1354
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
1355
|
+
* @param options The options parameters.
|
|
1356
|
+
*/
|
|
1357
|
+
delete(configurationName, options) {
|
|
1358
|
+
return this.client.sendOperationRequest({ configurationName, options }, deleteOperationSpec$1);
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* ListNext
|
|
1362
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1363
|
+
* @param options The options parameters.
|
|
1364
|
+
*/
|
|
1365
|
+
_listNext(nextLink, options) {
|
|
1366
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
// Operation Specifications
|
|
1370
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1371
|
+
const listOperationSpec$1 = {
|
|
1372
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations",
|
|
1373
|
+
httpMethod: "GET",
|
|
1374
|
+
responses: {
|
|
1375
|
+
200: {
|
|
1376
|
+
bodyMapper: ConfigurationList
|
|
1377
|
+
},
|
|
1378
|
+
default: {
|
|
1379
|
+
bodyMapper: ErrorResponse
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
queryParameters: [apiVersion],
|
|
1383
|
+
urlParameters: [$host],
|
|
1384
|
+
headerParameters: [accept],
|
|
1385
|
+
serializer: serializer$2
|
|
1386
|
+
};
|
|
1387
|
+
const getOperationSpec$1 = {
|
|
1388
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
1389
|
+
httpMethod: "GET",
|
|
1390
|
+
responses: {
|
|
1391
|
+
200: {
|
|
1392
|
+
bodyMapper: Configuration
|
|
1393
|
+
},
|
|
1394
|
+
404: {},
|
|
1395
|
+
default: {
|
|
1396
|
+
bodyMapper: ErrorResponse
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
queryParameters: [apiVersion],
|
|
1400
|
+
urlParameters: [$host, configurationName],
|
|
1401
|
+
headerParameters: [accept],
|
|
1402
|
+
serializer: serializer$2
|
|
1403
|
+
};
|
|
1404
|
+
const createOperationSpec = {
|
|
1405
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
1406
|
+
httpMethod: "PUT",
|
|
1407
|
+
responses: {
|
|
1408
|
+
200: {
|
|
1409
|
+
bodyMapper: Configuration
|
|
1410
|
+
},
|
|
1411
|
+
201: {
|
|
1412
|
+
bodyMapper: Configuration
|
|
1413
|
+
},
|
|
1414
|
+
default: {
|
|
1415
|
+
bodyMapper: ErrorResponse
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
requestBody: tenantConfiguration,
|
|
1419
|
+
queryParameters: [apiVersion],
|
|
1420
|
+
urlParameters: [$host, configurationName],
|
|
1421
|
+
headerParameters: [accept, contentType],
|
|
1422
|
+
mediaType: "json",
|
|
1423
|
+
serializer: serializer$2
|
|
1424
|
+
};
|
|
1425
|
+
const deleteOperationSpec$1 = {
|
|
1426
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
1427
|
+
httpMethod: "DELETE",
|
|
1428
|
+
responses: {
|
|
1429
|
+
200: {},
|
|
1430
|
+
204: {},
|
|
1431
|
+
default: {
|
|
1432
|
+
bodyMapper: ErrorResponse
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
queryParameters: [apiVersion],
|
|
1436
|
+
urlParameters: [$host, configurationName],
|
|
1437
|
+
headerParameters: [accept],
|
|
1438
|
+
serializer: serializer$2
|
|
1439
|
+
};
|
|
1440
|
+
const listNextOperationSpec$1 = {
|
|
1441
|
+
path: "{nextLink}",
|
|
1442
|
+
httpMethod: "GET",
|
|
1443
|
+
responses: {
|
|
1444
|
+
200: {
|
|
1445
|
+
bodyMapper: ConfigurationList
|
|
1446
|
+
},
|
|
1447
|
+
default: {
|
|
1448
|
+
bodyMapper: ErrorResponse
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
queryParameters: [apiVersion],
|
|
1452
|
+
urlParameters: [$host, nextLink],
|
|
1453
|
+
headerParameters: [accept],
|
|
1454
|
+
serializer: serializer$2
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
/*
|
|
1458
|
+
* Copyright (c) Microsoft Corporation.
|
|
1459
|
+
* Licensed under the MIT License.
|
|
1460
|
+
*
|
|
1461
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1462
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1463
|
+
*/
|
|
1464
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1465
|
+
/** Class containing ListTenantConfigurationViolations operations. */
|
|
1466
|
+
class ListTenantConfigurationViolationsImpl {
|
|
1467
|
+
/**
|
|
1468
|
+
* Initialize a new instance of the class ListTenantConfigurationViolations class.
|
|
1469
|
+
* @param client Reference to the service client
|
|
1470
|
+
*/
|
|
1471
|
+
constructor(client) {
|
|
1472
|
+
this.client = client;
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Gets list of items that violate tenant's configuration.
|
|
1476
|
+
* @param options The options parameters.
|
|
1477
|
+
*/
|
|
1478
|
+
list(options) {
|
|
1479
|
+
const iter = this.listPagingAll(options);
|
|
1480
|
+
return {
|
|
1481
|
+
next() {
|
|
1482
|
+
return iter.next();
|
|
1483
|
+
},
|
|
1484
|
+
[Symbol.asyncIterator]() {
|
|
1485
|
+
return this;
|
|
1486
|
+
},
|
|
1487
|
+
byPage: () => {
|
|
1488
|
+
return this.listPagingPage(options);
|
|
1489
|
+
}
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
listPagingPage(options) {
|
|
1493
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1494
|
+
let result = yield tslib.__await(this._list(options));
|
|
1495
|
+
yield yield tslib.__await(result.value || []);
|
|
1496
|
+
let continuationToken = result.nextLink;
|
|
1497
|
+
while (continuationToken) {
|
|
1498
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1499
|
+
continuationToken = result.nextLink;
|
|
1500
|
+
yield yield tslib.__await(result.value || []);
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1504
|
+
listPagingAll(options) {
|
|
1505
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1506
|
+
var e_1, _a;
|
|
1507
|
+
try {
|
|
1508
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1509
|
+
const page = _c.value;
|
|
1510
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1514
|
+
finally {
|
|
1515
|
+
try {
|
|
1516
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1517
|
+
}
|
|
1518
|
+
finally { if (e_1) throw e_1.error; }
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Gets list of items that violate tenant's configuration.
|
|
1524
|
+
* @param options The options parameters.
|
|
1525
|
+
*/
|
|
1526
|
+
_list(options) {
|
|
1527
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* ListNext
|
|
1531
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1532
|
+
* @param options The options parameters.
|
|
1533
|
+
*/
|
|
1534
|
+
_listNext(nextLink, options) {
|
|
1535
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
// Operation Specifications
|
|
1539
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1540
|
+
const listOperationSpec$2 = {
|
|
1541
|
+
path: "/providers/Microsoft.Portal/listTenantConfigurationViolations",
|
|
1542
|
+
httpMethod: "POST",
|
|
1543
|
+
responses: {
|
|
1544
|
+
200: {
|
|
1545
|
+
bodyMapper: ViolationsList
|
|
1546
|
+
},
|
|
1547
|
+
default: {
|
|
1548
|
+
bodyMapper: ErrorResponse
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
queryParameters: [apiVersion],
|
|
1552
|
+
urlParameters: [$host],
|
|
1553
|
+
headerParameters: [accept],
|
|
1554
|
+
serializer: serializer$3
|
|
1555
|
+
};
|
|
1556
|
+
const listNextOperationSpec$2 = {
|
|
1557
|
+
path: "{nextLink}",
|
|
1558
|
+
httpMethod: "GET",
|
|
1559
|
+
responses: {
|
|
1560
|
+
200: {
|
|
1561
|
+
bodyMapper: ViolationsList
|
|
1562
|
+
},
|
|
1563
|
+
default: {
|
|
1564
|
+
bodyMapper: ErrorResponse
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
queryParameters: [apiVersion],
|
|
1568
|
+
urlParameters: [$host, nextLink],
|
|
1569
|
+
headerParameters: [accept],
|
|
1570
|
+
serializer: serializer$3
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
/*
|
|
1574
|
+
* Copyright (c) Microsoft Corporation.
|
|
1575
|
+
* Licensed under the MIT License.
|
|
1576
|
+
*
|
|
1577
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1578
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1579
|
+
*/
|
|
1580
|
+
class Portal extends coreClient.ServiceClient {
|
|
1581
|
+
/**
|
|
1582
|
+
* Initializes a new instance of the Portal class.
|
|
1583
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1584
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
1585
|
+
* 00000000-0000-0000-0000-000000000000)
|
|
1586
|
+
* @param options The parameter options
|
|
1587
|
+
*/
|
|
1588
|
+
constructor(credentials, subscriptionId, options) {
|
|
1589
|
+
if (credentials === undefined) {
|
|
1590
|
+
throw new Error("'credentials' cannot be null");
|
|
1591
|
+
}
|
|
1592
|
+
if (subscriptionId === undefined) {
|
|
1593
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1594
|
+
}
|
|
1595
|
+
// Initializing default values for options
|
|
1596
|
+
if (!options) {
|
|
1597
|
+
options = {};
|
|
1598
|
+
}
|
|
1599
|
+
const defaults = {
|
|
1600
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1601
|
+
credential: credentials
|
|
1602
|
+
};
|
|
1603
|
+
const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.1`;
|
|
1604
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1605
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1606
|
+
: `${packageDetails}`;
|
|
1607
|
+
if (!options.credentialScopes) {
|
|
1608
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1609
|
+
}
|
|
1610
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1611
|
+
userAgentPrefix
|
|
1612
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1613
|
+
super(optionsWithDefaults);
|
|
1614
|
+
// Parameter assignments
|
|
1615
|
+
this.subscriptionId = subscriptionId;
|
|
1616
|
+
// Assigning values to Constant parameters
|
|
1617
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1618
|
+
this.apiVersion = options.apiVersion || "2020-09-01-preview";
|
|
1619
|
+
this.operations = new OperationsImpl(this);
|
|
1620
|
+
this.dashboards = new DashboardsImpl(this);
|
|
1621
|
+
this.tenantConfigurations = new TenantConfigurationsImpl(this);
|
|
1622
|
+
this.listTenantConfigurationViolations = new ListTenantConfigurationViolationsImpl(this);
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
exports.Portal = Portal;
|
|
1627
|
+
//# sourceMappingURL=index.js.map
|