@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +98 -0
  4. package/dist/index.js +1627 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/models/index.d.ts +334 -0
  13. package/dist-esm/src/models/index.d.ts.map +1 -0
  14. package/dist-esm/src/models/index.js +13 -0
  15. package/dist-esm/src/models/index.js.map +1 -0
  16. package/dist-esm/src/models/mappers.d.ts +28 -0
  17. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  18. package/dist-esm/src/models/mappers.js +624 -0
  19. package/dist-esm/src/models/mappers.js.map +1 -0
  20. package/dist-esm/src/models/parameters.d.ts +14 -0
  21. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  22. package/dist-esm/src/models/parameters.js +120 -0
  23. package/dist-esm/src/models/parameters.js.map +1 -0
  24. package/dist-esm/src/operations/dashboards.d.ts +83 -0
  25. package/dist-esm/src/operations/dashboards.d.ts.map +1 -0
  26. package/dist-esm/src/operations/dashboards.js +361 -0
  27. package/dist-esm/src/operations/dashboards.js.map +1 -0
  28. package/dist-esm/src/operations/index.d.ts +5 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/dist-esm/src/operations/index.js +12 -0
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts +32 -0
  33. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/listTenantConfigurationViolations.js +120 -0
  35. package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +32 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +120 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/tenantConfigurations.d.ts +52 -0
  41. package/dist-esm/src/operations/tenantConfigurations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/tenantConfigurations.js +199 -0
  43. package/dist-esm/src/operations/tenantConfigurations.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/dashboards.d.ts +47 -0
  45. package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/dashboards.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/dashboards.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  57. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  61. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +1 -0
  64. package/dist-esm/src/portal.d.ts +22 -0
  65. package/dist-esm/src/portal.d.ts.map +1 -0
  66. package/dist-esm/src/portal.js +55 -0
  67. package/dist-esm/src/portal.js.map +1 -0
  68. package/dist-esm/test/sampleTest.d.ts +2 -0
  69. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  70. package/dist-esm/test/sampleTest.js +40 -0
  71. package/dist-esm/test/sampleTest.js.map +1 -0
  72. package/package.json +90 -0
  73. package/review/arm-portal.api.md +349 -0
  74. package/rollup.config.js +188 -0
  75. package/src/index.ts +12 -0
  76. package/src/models/index.ts +389 -0
  77. package/src/models/mappers.ts +658 -0
  78. package/src/models/parameters.ts +141 -0
  79. package/src/operations/dashboards.ts +451 -0
  80. package/src/operations/index.ts +12 -0
  81. package/src/operations/listTenantConfigurationViolations.ts +138 -0
  82. package/src/operations/operations.ts +137 -0
  83. package/src/operations/tenantConfigurations.ts +244 -0
  84. package/src/operationsInterfaces/dashboards.ts +91 -0
  85. package/src/operationsInterfaces/index.ts +12 -0
  86. package/src/operationsInterfaces/listTenantConfigurationViolations.ts +25 -0
  87. package/src/operationsInterfaces/operations.ts +25 -0
  88. package/src/operationsInterfaces/tenantConfigurations.ts +61 -0
  89. package/src/portal.ts +94 -0
  90. package/tsconfig.json +19 -0
  91. package/types/arm-portal.d.ts +505 -0
  92. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,141 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ Dashboard as DashboardMapper,
16
+ PatchableDashboard as PatchableDashboardMapper,
17
+ Configuration as ConfigurationMapper
18
+ } from "../models/mappers";
19
+
20
+ export const accept: OperationParameter = {
21
+ parameterPath: "accept",
22
+ mapper: {
23
+ defaultValue: "application/json",
24
+ isConstant: true,
25
+ serializedName: "Accept",
26
+ type: {
27
+ name: "String"
28
+ }
29
+ }
30
+ };
31
+
32
+ export const $host: OperationURLParameter = {
33
+ parameterPath: "$host",
34
+ mapper: {
35
+ serializedName: "$host",
36
+ required: true,
37
+ type: {
38
+ name: "String"
39
+ }
40
+ },
41
+ skipEncoding: true
42
+ };
43
+
44
+ export const apiVersion: OperationQueryParameter = {
45
+ parameterPath: "apiVersion",
46
+ mapper: {
47
+ defaultValue: "2020-09-01-preview",
48
+ isConstant: true,
49
+ serializedName: "api-version",
50
+ type: {
51
+ name: "String"
52
+ }
53
+ }
54
+ };
55
+
56
+ export const nextLink: OperationURLParameter = {
57
+ parameterPath: "nextLink",
58
+ mapper: {
59
+ serializedName: "nextLink",
60
+ required: true,
61
+ type: {
62
+ name: "String"
63
+ }
64
+ },
65
+ skipEncoding: true
66
+ };
67
+
68
+ export const contentType: OperationParameter = {
69
+ parameterPath: ["options", "contentType"],
70
+ mapper: {
71
+ defaultValue: "application/json",
72
+ isConstant: true,
73
+ serializedName: "Content-Type",
74
+ type: {
75
+ name: "String"
76
+ }
77
+ }
78
+ };
79
+
80
+ export const dashboard: OperationParameter = {
81
+ parameterPath: "dashboard",
82
+ mapper: DashboardMapper
83
+ };
84
+
85
+ export const subscriptionId: OperationURLParameter = {
86
+ parameterPath: "subscriptionId",
87
+ mapper: {
88
+ serializedName: "subscriptionId",
89
+ required: true,
90
+ type: {
91
+ name: "String"
92
+ }
93
+ }
94
+ };
95
+
96
+ export const resourceGroupName: OperationURLParameter = {
97
+ parameterPath: "resourceGroupName",
98
+ mapper: {
99
+ serializedName: "resourceGroupName",
100
+ required: true,
101
+ type: {
102
+ name: "String"
103
+ }
104
+ }
105
+ };
106
+
107
+ export const dashboardName: OperationURLParameter = {
108
+ parameterPath: "dashboardName",
109
+ mapper: {
110
+ constraints: {
111
+ MaxLength: 64,
112
+ MinLength: 3
113
+ },
114
+ serializedName: "dashboardName",
115
+ required: true,
116
+ type: {
117
+ name: "String"
118
+ }
119
+ }
120
+ };
121
+
122
+ export const dashboard1: OperationParameter = {
123
+ parameterPath: "dashboard",
124
+ mapper: PatchableDashboardMapper
125
+ };
126
+
127
+ export const configurationName: OperationURLParameter = {
128
+ parameterPath: "configurationName",
129
+ mapper: {
130
+ serializedName: "configurationName",
131
+ required: true,
132
+ type: {
133
+ name: "String"
134
+ }
135
+ }
136
+ };
137
+
138
+ export const tenantConfiguration: OperationParameter = {
139
+ parameterPath: "tenantConfiguration",
140
+ mapper: ConfigurationMapper
141
+ };
@@ -0,0 +1,451 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Dashboards } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { Portal } from "../portal";
15
+ import {
16
+ Dashboard,
17
+ DashboardsListByResourceGroupNextOptionalParams,
18
+ DashboardsListByResourceGroupOptionalParams,
19
+ DashboardsListBySubscriptionNextOptionalParams,
20
+ DashboardsListBySubscriptionOptionalParams,
21
+ DashboardsCreateOrUpdateOptionalParams,
22
+ DashboardsCreateOrUpdateResponse,
23
+ DashboardsDeleteOptionalParams,
24
+ DashboardsGetOptionalParams,
25
+ DashboardsGetResponse,
26
+ PatchableDashboard,
27
+ DashboardsUpdateOptionalParams,
28
+ DashboardsUpdateResponse,
29
+ DashboardsListByResourceGroupResponse,
30
+ DashboardsListBySubscriptionResponse,
31
+ DashboardsListByResourceGroupNextResponse,
32
+ DashboardsListBySubscriptionNextResponse
33
+ } from "../models";
34
+
35
+ /// <reference lib="esnext.asynciterable" />
36
+ /** Class containing Dashboards operations. */
37
+ export class DashboardsImpl implements Dashboards {
38
+ private readonly client: Portal;
39
+
40
+ /**
41
+ * Initialize a new instance of the class Dashboards class.
42
+ * @param client Reference to the service client
43
+ */
44
+ constructor(client: Portal) {
45
+ this.client = client;
46
+ }
47
+
48
+ /**
49
+ * Gets all the Dashboards within a resource group.
50
+ * @param resourceGroupName The name of the resource group.
51
+ * @param options The options parameters.
52
+ */
53
+ public listByResourceGroup(
54
+ resourceGroupName: string,
55
+ options?: DashboardsListByResourceGroupOptionalParams
56
+ ): PagedAsyncIterableIterator<Dashboard> {
57
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
58
+ return {
59
+ next() {
60
+ return iter.next();
61
+ },
62
+ [Symbol.asyncIterator]() {
63
+ return this;
64
+ },
65
+ byPage: () => {
66
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
67
+ }
68
+ };
69
+ }
70
+
71
+ private async *listByResourceGroupPagingPage(
72
+ resourceGroupName: string,
73
+ options?: DashboardsListByResourceGroupOptionalParams
74
+ ): AsyncIterableIterator<Dashboard[]> {
75
+ let result = await this._listByResourceGroup(resourceGroupName, options);
76
+ yield result.value || [];
77
+ let continuationToken = result.nextLink;
78
+ while (continuationToken) {
79
+ result = await this._listByResourceGroupNext(
80
+ resourceGroupName,
81
+ continuationToken,
82
+ options
83
+ );
84
+ continuationToken = result.nextLink;
85
+ yield result.value || [];
86
+ }
87
+ }
88
+
89
+ private async *listByResourceGroupPagingAll(
90
+ resourceGroupName: string,
91
+ options?: DashboardsListByResourceGroupOptionalParams
92
+ ): AsyncIterableIterator<Dashboard> {
93
+ for await (const page of this.listByResourceGroupPagingPage(
94
+ resourceGroupName,
95
+ options
96
+ )) {
97
+ yield* page;
98
+ }
99
+ }
100
+
101
+ /**
102
+ * Gets all the dashboards within a subscription.
103
+ * @param options The options parameters.
104
+ */
105
+ public listBySubscription(
106
+ options?: DashboardsListBySubscriptionOptionalParams
107
+ ): PagedAsyncIterableIterator<Dashboard> {
108
+ const iter = this.listBySubscriptionPagingAll(options);
109
+ return {
110
+ next() {
111
+ return iter.next();
112
+ },
113
+ [Symbol.asyncIterator]() {
114
+ return this;
115
+ },
116
+ byPage: () => {
117
+ return this.listBySubscriptionPagingPage(options);
118
+ }
119
+ };
120
+ }
121
+
122
+ private async *listBySubscriptionPagingPage(
123
+ options?: DashboardsListBySubscriptionOptionalParams
124
+ ): AsyncIterableIterator<Dashboard[]> {
125
+ let result = await this._listBySubscription(options);
126
+ yield result.value || [];
127
+ let continuationToken = result.nextLink;
128
+ while (continuationToken) {
129
+ result = await this._listBySubscriptionNext(continuationToken, options);
130
+ continuationToken = result.nextLink;
131
+ yield result.value || [];
132
+ }
133
+ }
134
+
135
+ private async *listBySubscriptionPagingAll(
136
+ options?: DashboardsListBySubscriptionOptionalParams
137
+ ): AsyncIterableIterator<Dashboard> {
138
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
139
+ yield* page;
140
+ }
141
+ }
142
+
143
+ /**
144
+ * Creates or updates a Dashboard.
145
+ * @param resourceGroupName The name of the resource group.
146
+ * @param dashboardName The name of the dashboard.
147
+ * @param dashboard The parameters required to create or update a dashboard.
148
+ * @param options The options parameters.
149
+ */
150
+ createOrUpdate(
151
+ resourceGroupName: string,
152
+ dashboardName: string,
153
+ dashboard: Dashboard,
154
+ options?: DashboardsCreateOrUpdateOptionalParams
155
+ ): Promise<DashboardsCreateOrUpdateResponse> {
156
+ return this.client.sendOperationRequest(
157
+ { resourceGroupName, dashboardName, dashboard, options },
158
+ createOrUpdateOperationSpec
159
+ );
160
+ }
161
+
162
+ /**
163
+ * Deletes the Dashboard.
164
+ * @param resourceGroupName The name of the resource group.
165
+ * @param dashboardName The name of the dashboard.
166
+ * @param options The options parameters.
167
+ */
168
+ delete(
169
+ resourceGroupName: string,
170
+ dashboardName: string,
171
+ options?: DashboardsDeleteOptionalParams
172
+ ): Promise<void> {
173
+ return this.client.sendOperationRequest(
174
+ { resourceGroupName, dashboardName, options },
175
+ deleteOperationSpec
176
+ );
177
+ }
178
+
179
+ /**
180
+ * Gets the Dashboard.
181
+ * @param resourceGroupName The name of the resource group.
182
+ * @param dashboardName The name of the dashboard.
183
+ * @param options The options parameters.
184
+ */
185
+ get(
186
+ resourceGroupName: string,
187
+ dashboardName: string,
188
+ options?: DashboardsGetOptionalParams
189
+ ): Promise<DashboardsGetResponse> {
190
+ return this.client.sendOperationRequest(
191
+ { resourceGroupName, dashboardName, options },
192
+ getOperationSpec
193
+ );
194
+ }
195
+
196
+ /**
197
+ * Updates an existing Dashboard.
198
+ * @param resourceGroupName The name of the resource group.
199
+ * @param dashboardName The name of the dashboard.
200
+ * @param dashboard The updatable fields of a Dashboard.
201
+ * @param options The options parameters.
202
+ */
203
+ update(
204
+ resourceGroupName: string,
205
+ dashboardName: string,
206
+ dashboard: PatchableDashboard,
207
+ options?: DashboardsUpdateOptionalParams
208
+ ): Promise<DashboardsUpdateResponse> {
209
+ return this.client.sendOperationRequest(
210
+ { resourceGroupName, dashboardName, dashboard, options },
211
+ updateOperationSpec
212
+ );
213
+ }
214
+
215
+ /**
216
+ * Gets all the Dashboards within a resource group.
217
+ * @param resourceGroupName The name of the resource group.
218
+ * @param options The options parameters.
219
+ */
220
+ private _listByResourceGroup(
221
+ resourceGroupName: string,
222
+ options?: DashboardsListByResourceGroupOptionalParams
223
+ ): Promise<DashboardsListByResourceGroupResponse> {
224
+ return this.client.sendOperationRequest(
225
+ { resourceGroupName, options },
226
+ listByResourceGroupOperationSpec
227
+ );
228
+ }
229
+
230
+ /**
231
+ * Gets all the dashboards within a subscription.
232
+ * @param options The options parameters.
233
+ */
234
+ private _listBySubscription(
235
+ options?: DashboardsListBySubscriptionOptionalParams
236
+ ): Promise<DashboardsListBySubscriptionResponse> {
237
+ return this.client.sendOperationRequest(
238
+ { options },
239
+ listBySubscriptionOperationSpec
240
+ );
241
+ }
242
+
243
+ /**
244
+ * ListByResourceGroupNext
245
+ * @param resourceGroupName The name of the resource group.
246
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
247
+ * @param options The options parameters.
248
+ */
249
+ private _listByResourceGroupNext(
250
+ resourceGroupName: string,
251
+ nextLink: string,
252
+ options?: DashboardsListByResourceGroupNextOptionalParams
253
+ ): Promise<DashboardsListByResourceGroupNextResponse> {
254
+ return this.client.sendOperationRequest(
255
+ { resourceGroupName, nextLink, options },
256
+ listByResourceGroupNextOperationSpec
257
+ );
258
+ }
259
+
260
+ /**
261
+ * ListBySubscriptionNext
262
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
263
+ * @param options The options parameters.
264
+ */
265
+ private _listBySubscriptionNext(
266
+ nextLink: string,
267
+ options?: DashboardsListBySubscriptionNextOptionalParams
268
+ ): Promise<DashboardsListBySubscriptionNextResponse> {
269
+ return this.client.sendOperationRequest(
270
+ { nextLink, options },
271
+ listBySubscriptionNextOperationSpec
272
+ );
273
+ }
274
+ }
275
+ // Operation Specifications
276
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
277
+
278
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
279
+ path:
280
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
281
+ httpMethod: "PUT",
282
+ responses: {
283
+ 200: {
284
+ bodyMapper: Mappers.Dashboard
285
+ },
286
+ 201: {
287
+ bodyMapper: Mappers.Dashboard
288
+ },
289
+ default: {
290
+ bodyMapper: Mappers.ErrorResponse
291
+ }
292
+ },
293
+ requestBody: Parameters.dashboard,
294
+ queryParameters: [Parameters.apiVersion],
295
+ urlParameters: [
296
+ Parameters.$host,
297
+ Parameters.subscriptionId,
298
+ Parameters.resourceGroupName,
299
+ Parameters.dashboardName
300
+ ],
301
+ headerParameters: [Parameters.accept, Parameters.contentType],
302
+ mediaType: "json",
303
+ serializer
304
+ };
305
+ const deleteOperationSpec: coreClient.OperationSpec = {
306
+ path:
307
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
308
+ httpMethod: "DELETE",
309
+ responses: {
310
+ 200: {},
311
+ 204: {},
312
+ default: {
313
+ bodyMapper: Mappers.ErrorResponse
314
+ }
315
+ },
316
+ queryParameters: [Parameters.apiVersion],
317
+ urlParameters: [
318
+ Parameters.$host,
319
+ Parameters.subscriptionId,
320
+ Parameters.resourceGroupName,
321
+ Parameters.dashboardName
322
+ ],
323
+ headerParameters: [Parameters.accept],
324
+ serializer
325
+ };
326
+ const getOperationSpec: coreClient.OperationSpec = {
327
+ path:
328
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
329
+ httpMethod: "GET",
330
+ responses: {
331
+ 200: {
332
+ bodyMapper: Mappers.Dashboard
333
+ },
334
+ 404: {},
335
+ default: {
336
+ bodyMapper: Mappers.ErrorResponse
337
+ }
338
+ },
339
+ queryParameters: [Parameters.apiVersion],
340
+ urlParameters: [
341
+ Parameters.$host,
342
+ Parameters.subscriptionId,
343
+ Parameters.resourceGroupName,
344
+ Parameters.dashboardName
345
+ ],
346
+ headerParameters: [Parameters.accept],
347
+ serializer
348
+ };
349
+ const updateOperationSpec: coreClient.OperationSpec = {
350
+ path:
351
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards/{dashboardName}",
352
+ httpMethod: "PATCH",
353
+ responses: {
354
+ 200: {
355
+ bodyMapper: Mappers.Dashboard
356
+ },
357
+ 404: {},
358
+ default: {
359
+ bodyMapper: Mappers.ErrorResponse
360
+ }
361
+ },
362
+ requestBody: Parameters.dashboard1,
363
+ queryParameters: [Parameters.apiVersion],
364
+ urlParameters: [
365
+ Parameters.$host,
366
+ Parameters.subscriptionId,
367
+ Parameters.resourceGroupName,
368
+ Parameters.dashboardName
369
+ ],
370
+ headerParameters: [Parameters.accept, Parameters.contentType],
371
+ mediaType: "json",
372
+ serializer
373
+ };
374
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
375
+ path:
376
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Portal/dashboards",
377
+ httpMethod: "GET",
378
+ responses: {
379
+ 200: {
380
+ bodyMapper: Mappers.DashboardListResult
381
+ },
382
+ default: {
383
+ bodyMapper: Mappers.ErrorResponse
384
+ }
385
+ },
386
+ queryParameters: [Parameters.apiVersion],
387
+ urlParameters: [
388
+ Parameters.$host,
389
+ Parameters.subscriptionId,
390
+ Parameters.resourceGroupName
391
+ ],
392
+ headerParameters: [Parameters.accept],
393
+ serializer
394
+ };
395
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
396
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Portal/dashboards",
397
+ httpMethod: "GET",
398
+ responses: {
399
+ 200: {
400
+ bodyMapper: Mappers.DashboardListResult
401
+ },
402
+ default: {
403
+ bodyMapper: Mappers.ErrorResponse
404
+ }
405
+ },
406
+ queryParameters: [Parameters.apiVersion],
407
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
408
+ headerParameters: [Parameters.accept],
409
+ serializer
410
+ };
411
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
412
+ path: "{nextLink}",
413
+ httpMethod: "GET",
414
+ responses: {
415
+ 200: {
416
+ bodyMapper: Mappers.DashboardListResult
417
+ },
418
+ default: {
419
+ bodyMapper: Mappers.ErrorResponse
420
+ }
421
+ },
422
+ queryParameters: [Parameters.apiVersion],
423
+ urlParameters: [
424
+ Parameters.$host,
425
+ Parameters.nextLink,
426
+ Parameters.subscriptionId,
427
+ Parameters.resourceGroupName
428
+ ],
429
+ headerParameters: [Parameters.accept],
430
+ serializer
431
+ };
432
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
433
+ path: "{nextLink}",
434
+ httpMethod: "GET",
435
+ responses: {
436
+ 200: {
437
+ bodyMapper: Mappers.DashboardListResult
438
+ },
439
+ default: {
440
+ bodyMapper: Mappers.ErrorResponse
441
+ }
442
+ },
443
+ queryParameters: [Parameters.apiVersion],
444
+ urlParameters: [
445
+ Parameters.$host,
446
+ Parameters.nextLink,
447
+ Parameters.subscriptionId
448
+ ],
449
+ headerParameters: [Parameters.accept],
450
+ serializer
451
+ };
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export * from "./operations";
10
+ export * from "./dashboards";
11
+ export * from "./tenantConfigurations";
12
+ export * from "./listTenantConfigurationViolations";