@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,389 @@
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 * as coreClient from "@azure/core-client";
10
+
11
+ export type DashboardPartMetadataUnion =
12
+ | DashboardPartMetadata
13
+ | MarkdownPartMetadata;
14
+
15
+ /** Results of the request to list operations. */
16
+ export interface ResourceProviderOperationList {
17
+ /** List of operations supported by this resource provider. */
18
+ value?: ResourceProviderOperation[];
19
+ /** The URL to use for getting the next set of results. */
20
+ nextLink?: string;
21
+ }
22
+
23
+ /** Supported operations of this resource provider. */
24
+ export interface ResourceProviderOperation {
25
+ /** Operation name, in format of {provider}/{resource}/{operation} */
26
+ name?: string;
27
+ /** Indicates whether the operation applies to data-plane. */
28
+ isDataAction?: string;
29
+ /** Display metadata associated with the operation. */
30
+ display?: ResourceProviderOperationDisplay;
31
+ }
32
+
33
+ /** Display metadata associated with the operation. */
34
+ export interface ResourceProviderOperationDisplay {
35
+ /** Resource provider: Microsoft Custom Providers. */
36
+ provider?: string;
37
+ /** Resource on which the operation is performed. */
38
+ resource?: string;
39
+ /** Type of operation: get, read, delete, etc. */
40
+ operation?: string;
41
+ /** Description of this operation. */
42
+ description?: string;
43
+ }
44
+
45
+ /** Error response. */
46
+ export interface ErrorResponse {
47
+ /** The error details. */
48
+ error?: ErrorDefinition;
49
+ }
50
+
51
+ /** Error definition. */
52
+ export interface ErrorDefinition {
53
+ /**
54
+ * Service specific error code which serves as the substatus for the HTTP error code.
55
+ * NOTE: This property will not be serialized. It can only be populated by the server.
56
+ */
57
+ readonly code?: number;
58
+ /**
59
+ * Description of the error.
60
+ * NOTE: This property will not be serialized. It can only be populated by the server.
61
+ */
62
+ readonly message?: string;
63
+ /**
64
+ * Internal error details.
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
66
+ */
67
+ readonly details?: ErrorDefinition[];
68
+ }
69
+
70
+ /** The shared dashboard resource definition. */
71
+ export interface Dashboard {
72
+ /**
73
+ * Resource Id
74
+ * NOTE: This property will not be serialized. It can only be populated by the server.
75
+ */
76
+ readonly id?: string;
77
+ /**
78
+ * Resource name
79
+ * NOTE: This property will not be serialized. It can only be populated by the server.
80
+ */
81
+ readonly name?: string;
82
+ /**
83
+ * Resource type
84
+ * NOTE: This property will not be serialized. It can only be populated by the server.
85
+ */
86
+ readonly type?: string;
87
+ /** Resource location */
88
+ location: string;
89
+ /** Resource tags */
90
+ tags?: { [propertyName: string]: string };
91
+ /** The dashboard lenses. */
92
+ lenses?: DashboardLens[];
93
+ /** The dashboard metadata. */
94
+ metadata?: { [propertyName: string]: Record<string, unknown> };
95
+ }
96
+
97
+ /** A dashboard lens. */
98
+ export interface DashboardLens {
99
+ /** The lens order. */
100
+ order: number;
101
+ /** The dashboard parts. */
102
+ parts: DashboardParts[];
103
+ /** The dashboard len's metadata. */
104
+ metadata?: { [propertyName: string]: Record<string, unknown> };
105
+ }
106
+
107
+ /** A dashboard part. */
108
+ export interface DashboardParts {
109
+ /** The dashboard's part position. */
110
+ position: DashboardPartsPosition;
111
+ /** The dashboard part's metadata. */
112
+ metadata?: DashboardPartMetadataUnion;
113
+ }
114
+
115
+ /** The dashboard's part position. */
116
+ export interface DashboardPartsPosition {
117
+ /** The dashboard's part x coordinate. */
118
+ x: number;
119
+ /** The dashboard's part y coordinate. */
120
+ y: number;
121
+ /** The dashboard's part row span. */
122
+ rowSpan: number;
123
+ /** The dashboard's part column span. */
124
+ colSpan: number;
125
+ /** The dashboard part's metadata. */
126
+ metadata?: { [propertyName: string]: Record<string, unknown> };
127
+ }
128
+
129
+ /** A dashboard part metadata. */
130
+ export interface DashboardPartMetadata {
131
+ /** Polymorphic discriminator, which specifies the different types this object can be */
132
+ type: "Extension/HubsExtension/PartType/MarkdownPart";
133
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
134
+ [property: string]: any;
135
+ }
136
+
137
+ /** The shared dashboard resource definition. */
138
+ export interface PatchableDashboard {
139
+ /** Resource tags */
140
+ tags?: { [propertyName: string]: string };
141
+ /** The dashboard lenses. */
142
+ lenses?: DashboardLens[];
143
+ /** The dashboard metadata. */
144
+ metadata?: { [propertyName: string]: Record<string, unknown> };
145
+ }
146
+
147
+ /** List of dashboards. */
148
+ export interface DashboardListResult {
149
+ /** The array of custom resource provider manifests. */
150
+ value?: Dashboard[];
151
+ /** The URL to use for getting the next set of results. */
152
+ nextLink?: string;
153
+ }
154
+
155
+ /** List of tenant configurations. */
156
+ export interface ConfigurationList {
157
+ /** The array of tenant configurations. */
158
+ value?: Configuration[];
159
+ /** The URL to use for getting the next set of results. */
160
+ nextLink?: string;
161
+ }
162
+
163
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
164
+ export interface Resource {
165
+ /**
166
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
167
+ * NOTE: This property will not be serialized. It can only be populated by the server.
168
+ */
169
+ readonly id?: string;
170
+ /**
171
+ * The name of the resource
172
+ * NOTE: This property will not be serialized. It can only be populated by the server.
173
+ */
174
+ readonly name?: string;
175
+ /**
176
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
177
+ * NOTE: This property will not be serialized. It can only be populated by the server.
178
+ */
179
+ readonly type?: string;
180
+ }
181
+
182
+ /** List of list of items that violate tenant's configuration. */
183
+ export interface ViolationsList {
184
+ /** The array of violations. */
185
+ value?: Violation[];
186
+ /** The URL to use for getting the next set of results. */
187
+ nextLink?: string;
188
+ }
189
+
190
+ /** Violation information. */
191
+ export interface Violation {
192
+ /**
193
+ * Id of the item that violates tenant configuration.
194
+ * NOTE: This property will not be serialized. It can only be populated by the server.
195
+ */
196
+ readonly id?: string;
197
+ /**
198
+ * Id of the user who owns violated item.
199
+ * NOTE: This property will not be serialized. It can only be populated by the server.
200
+ */
201
+ readonly userId?: string;
202
+ /**
203
+ * Error message.
204
+ * NOTE: This property will not be serialized. It can only be populated by the server.
205
+ */
206
+ readonly errorMessage?: string;
207
+ }
208
+
209
+ /** Markdown part settings. */
210
+ export interface MarkdownPartMetadataSettings {
211
+ /** The content of markdown part. */
212
+ content?: MarkdownPartMetadataSettingsContent;
213
+ }
214
+
215
+ /** The content of markdown part. */
216
+ export interface MarkdownPartMetadataSettingsContent {
217
+ /** The setting of the content of markdown part. */
218
+ settings?: MarkdownPartMetadataSettingsContentSettings;
219
+ }
220
+
221
+ /** The setting of the content of markdown part. */
222
+ export interface MarkdownPartMetadataSettingsContentSettings {
223
+ /** The content of the markdown part. */
224
+ content?: string;
225
+ /** The title of the markdown part. */
226
+ title?: string;
227
+ /** The subtitle of the markdown part. */
228
+ subtitle?: string;
229
+ /** The source of the content of the markdown part. */
230
+ markdownSource?: number;
231
+ /** The uri of markdown content. */
232
+ markdownUri?: string;
233
+ }
234
+
235
+ /** Markdown part metadata. */
236
+ export type MarkdownPartMetadata = DashboardPartMetadata & {
237
+ /** Polymorphic discriminator, which specifies the different types this object can be */
238
+ type: "Extension/HubsExtension/PartType/MarkdownPart";
239
+ /** Input to dashboard part. */
240
+ inputs?: Record<string, unknown>[];
241
+ /** Markdown part settings. */
242
+ settings?: MarkdownPartMetadataSettings;
243
+ };
244
+
245
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
246
+ export type ProxyResource = Resource & {};
247
+
248
+ /** Tenant configuration. */
249
+ export type Configuration = ProxyResource & {
250
+ /** When flag is set to true Markdown tile will require external storage configuration (URI). The inline content configuration will be prohibited. */
251
+ enforcePrivateMarkdownStorage?: boolean;
252
+ };
253
+
254
+ /** Known values of {@link ConfigurationName} that the service accepts. */
255
+ export enum KnownConfigurationName {
256
+ Default = "default"
257
+ }
258
+
259
+ /**
260
+ * Defines values for ConfigurationName. \
261
+ * {@link KnownConfigurationName} can be used interchangeably with ConfigurationName,
262
+ * this enum contains the known values that the service supports.
263
+ * ### Known values supported by the service
264
+ * **default**
265
+ */
266
+ export type ConfigurationName = string;
267
+
268
+ /** Optional parameters. */
269
+ export interface OperationsListOptionalParams
270
+ extends coreClient.OperationOptions {}
271
+
272
+ /** Contains response data for the list operation. */
273
+ export type OperationsListResponse = ResourceProviderOperationList;
274
+
275
+ /** Optional parameters. */
276
+ export interface OperationsListNextOptionalParams
277
+ extends coreClient.OperationOptions {}
278
+
279
+ /** Contains response data for the listNext operation. */
280
+ export type OperationsListNextResponse = ResourceProviderOperationList;
281
+
282
+ /** Optional parameters. */
283
+ export interface DashboardsCreateOrUpdateOptionalParams
284
+ extends coreClient.OperationOptions {}
285
+
286
+ /** Contains response data for the createOrUpdate operation. */
287
+ export type DashboardsCreateOrUpdateResponse = Dashboard;
288
+
289
+ /** Optional parameters. */
290
+ export interface DashboardsDeleteOptionalParams
291
+ extends coreClient.OperationOptions {}
292
+
293
+ /** Optional parameters. */
294
+ export interface DashboardsGetOptionalParams
295
+ extends coreClient.OperationOptions {}
296
+
297
+ /** Contains response data for the get operation. */
298
+ export type DashboardsGetResponse = Dashboard;
299
+
300
+ /** Optional parameters. */
301
+ export interface DashboardsUpdateOptionalParams
302
+ extends coreClient.OperationOptions {}
303
+
304
+ /** Contains response data for the update operation. */
305
+ export type DashboardsUpdateResponse = Dashboard;
306
+
307
+ /** Optional parameters. */
308
+ export interface DashboardsListByResourceGroupOptionalParams
309
+ extends coreClient.OperationOptions {}
310
+
311
+ /** Contains response data for the listByResourceGroup operation. */
312
+ export type DashboardsListByResourceGroupResponse = DashboardListResult;
313
+
314
+ /** Optional parameters. */
315
+ export interface DashboardsListBySubscriptionOptionalParams
316
+ extends coreClient.OperationOptions {}
317
+
318
+ /** Contains response data for the listBySubscription operation. */
319
+ export type DashboardsListBySubscriptionResponse = DashboardListResult;
320
+
321
+ /** Optional parameters. */
322
+ export interface DashboardsListByResourceGroupNextOptionalParams
323
+ extends coreClient.OperationOptions {}
324
+
325
+ /** Contains response data for the listByResourceGroupNext operation. */
326
+ export type DashboardsListByResourceGroupNextResponse = DashboardListResult;
327
+
328
+ /** Optional parameters. */
329
+ export interface DashboardsListBySubscriptionNextOptionalParams
330
+ extends coreClient.OperationOptions {}
331
+
332
+ /** Contains response data for the listBySubscriptionNext operation. */
333
+ export type DashboardsListBySubscriptionNextResponse = DashboardListResult;
334
+
335
+ /** Optional parameters. */
336
+ export interface TenantConfigurationsListOptionalParams
337
+ extends coreClient.OperationOptions {}
338
+
339
+ /** Contains response data for the list operation. */
340
+ export type TenantConfigurationsListResponse = ConfigurationList;
341
+
342
+ /** Optional parameters. */
343
+ export interface TenantConfigurationsGetOptionalParams
344
+ extends coreClient.OperationOptions {}
345
+
346
+ /** Contains response data for the get operation. */
347
+ export type TenantConfigurationsGetResponse = Configuration;
348
+
349
+ /** Optional parameters. */
350
+ export interface TenantConfigurationsCreateOptionalParams
351
+ extends coreClient.OperationOptions {}
352
+
353
+ /** Contains response data for the create operation. */
354
+ export type TenantConfigurationsCreateResponse = Configuration;
355
+
356
+ /** Optional parameters. */
357
+ export interface TenantConfigurationsDeleteOptionalParams
358
+ extends coreClient.OperationOptions {}
359
+
360
+ /** Optional parameters. */
361
+ export interface TenantConfigurationsListNextOptionalParams
362
+ extends coreClient.OperationOptions {}
363
+
364
+ /** Contains response data for the listNext operation. */
365
+ export type TenantConfigurationsListNextResponse = ConfigurationList;
366
+
367
+ /** Optional parameters. */
368
+ export interface ListTenantConfigurationViolationsListOptionalParams
369
+ extends coreClient.OperationOptions {}
370
+
371
+ /** Contains response data for the list operation. */
372
+ export type ListTenantConfigurationViolationsListResponse = ViolationsList;
373
+
374
+ /** Optional parameters. */
375
+ export interface ListTenantConfigurationViolationsListNextOptionalParams
376
+ extends coreClient.OperationOptions {}
377
+
378
+ /** Contains response data for the listNext operation. */
379
+ export type ListTenantConfigurationViolationsListNextResponse = ViolationsList;
380
+
381
+ /** Optional parameters. */
382
+ export interface PortalOptionalParams extends coreClient.ServiceClientOptions {
383
+ /** server parameter */
384
+ $host?: string;
385
+ /** Api Version */
386
+ apiVersion?: string;
387
+ /** Overrides client endpoint. */
388
+ endpoint?: string;
389
+ }