@azure/arm-appcomplianceautomation 1.0.0-alpha.20221102.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 (143) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2463 -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/samples-dev/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +42 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/reportCreateOrUpdateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/reportCreateOrUpdateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/reportCreateOrUpdateSample.js +42 -0
  15. package/dist-esm/samples-dev/reportCreateOrUpdateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/reportDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/reportDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/reportDeleteSample.js +29 -0
  19. package/dist-esm/samples-dev/reportDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/reportGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/reportGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/reportGetSample.js +29 -0
  23. package/dist-esm/samples-dev/reportGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/reportUpdateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/reportUpdateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/reportUpdateSample.js +42 -0
  27. package/dist-esm/samples-dev/reportUpdateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/reportsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/reportsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/reportsListSample.js +52 -0
  31. package/dist-esm/samples-dev/reportsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/snapshotDownloadSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/snapshotDownloadSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/snapshotDownloadSample.js +101 -0
  35. package/dist-esm/samples-dev/snapshotDownloadSample.js.map +1 -0
  36. package/dist-esm/samples-dev/snapshotGetSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/snapshotGetSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/snapshotGetSample.js +30 -0
  39. package/dist-esm/samples-dev/snapshotGetSample.js.map +1 -0
  40. package/dist-esm/samples-dev/snapshotsListSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/snapshotsListSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/snapshotsListSample.js +53 -0
  43. package/dist-esm/samples-dev/snapshotsListSample.js.map +1 -0
  44. package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.d.ts +22 -0
  45. package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.d.ts.map +1 -0
  46. package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.js +101 -0
  47. package/dist-esm/src/appComplianceAutomationToolForMicrosoft365.js.map +1 -0
  48. package/dist-esm/src/index.d.ts +5 -0
  49. package/dist-esm/src/index.d.ts.map +1 -0
  50. package/dist-esm/src/index.js +12 -0
  51. package/dist-esm/src/index.js.map +1 -0
  52. package/dist-esm/src/lroImpl.d.ts +16 -0
  53. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  54. package/dist-esm/src/lroImpl.js +29 -0
  55. package/dist-esm/src/lroImpl.js.map +1 -0
  56. package/dist-esm/src/models/index.d.ts +1046 -0
  57. package/dist-esm/src/models/index.d.ts.map +1 -0
  58. package/dist-esm/src/models/index.js +166 -0
  59. package/dist-esm/src/models/index.js.map +1 -0
  60. package/dist-esm/src/models/mappers.d.ts +33 -0
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  62. package/dist-esm/src/models/mappers.js +1167 -0
  63. package/dist-esm/src/models/mappers.js.map +1 -0
  64. package/dist-esm/src/models/parameters.d.ts +17 -0
  65. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  66. package/dist-esm/src/models/parameters.js +157 -0
  67. package/dist-esm/src/models/parameters.js.map +1 -0
  68. package/dist-esm/src/operations/index.d.ts +6 -0
  69. package/dist-esm/src/operations/index.d.ts.map +1 -0
  70. package/dist-esm/src/operations/index.js +13 -0
  71. package/dist-esm/src/operations/index.js.map +1 -0
  72. package/dist-esm/src/operations/operations.d.ts +32 -0
  73. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/operations.js +120 -0
  75. package/dist-esm/src/operations/operations.js.map +1 -0
  76. package/dist-esm/src/operations/report.d.ts +60 -0
  77. package/dist-esm/src/operations/report.d.ts.map +1 -0
  78. package/dist-esm/src/operations/report.js +275 -0
  79. package/dist-esm/src/operations/report.js.map +1 -0
  80. package/dist-esm/src/operations/reports.d.ts +32 -0
  81. package/dist-esm/src/operations/reports.d.ts.map +1 -0
  82. package/dist-esm/src/operations/reports.js +134 -0
  83. package/dist-esm/src/operations/reports.js.map +1 -0
  84. package/dist-esm/src/operations/snapshot.d.ts +37 -0
  85. package/dist-esm/src/operations/snapshot.d.ts.map +1 -0
  86. package/dist-esm/src/operations/snapshot.js +140 -0
  87. package/dist-esm/src/operations/snapshot.js.map +1 -0
  88. package/dist-esm/src/operations/snapshots.d.ts +35 -0
  89. package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
  90. package/dist-esm/src/operations/snapshots.js +137 -0
  91. package/dist-esm/src/operations/snapshots.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  93. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  95. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  97. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/report.d.ts +52 -0
  101. package/dist-esm/src/operationsInterfaces/report.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/report.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/report.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/reports.d.ts +11 -0
  105. package/dist-esm/src/operationsInterfaces/reports.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/reports.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/reports.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/snapshot.d.ts +29 -0
  109. package/dist-esm/src/operationsInterfaces/snapshot.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/snapshot.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/snapshot.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/snapshots.d.ts +12 -0
  113. package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +2 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +38 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +122 -0
  121. package/review/arm-appcomplianceautomation.api.md +588 -0
  122. package/rollup.config.js +122 -0
  123. package/src/appComplianceAutomationToolForMicrosoft365.ts +153 -0
  124. package/src/index.ts +12 -0
  125. package/src/lroImpl.ts +34 -0
  126. package/src/models/index.ts +1144 -0
  127. package/src/models/mappers.ts +1207 -0
  128. package/src/models/parameters.ts +181 -0
  129. package/src/operations/index.ts +13 -0
  130. package/src/operations/operations.ts +137 -0
  131. package/src/operations/report.ts +388 -0
  132. package/src/operations/reports.ts +151 -0
  133. package/src/operations/snapshot.ts +201 -0
  134. package/src/operations/snapshots.ts +163 -0
  135. package/src/operationsInterfaces/index.ts +13 -0
  136. package/src/operationsInterfaces/operations.ts +22 -0
  137. package/src/operationsInterfaces/report.ts +102 -0
  138. package/src/operationsInterfaces/reports.ts +22 -0
  139. package/src/operationsInterfaces/snapshot.ts +62 -0
  140. package/src/operationsInterfaces/snapshots.ts +24 -0
  141. package/tsconfig.json +33 -0
  142. package/types/arm-appcomplianceautomation.d.ts +1261 -0
  143. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,588 @@
1
+ ## API Report File for "@azure/arm-appcomplianceautomation"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+ import { PollerLike } from '@azure/core-lro';
11
+ import { PollOperationState } from '@azure/core-lro';
12
+
13
+ // @public
14
+ export type ActionType = string;
15
+
16
+ // @public (undocumented)
17
+ export class AppComplianceAutomationToolForMicrosoft365 extends coreClient.ServiceClient {
18
+ // (undocumented)
19
+ $host: string;
20
+ constructor(credentials: coreAuth.TokenCredential, options?: AppComplianceAutomationToolForMicrosoft365OptionalParams);
21
+ // (undocumented)
22
+ apiVersion: string;
23
+ // (undocumented)
24
+ operations: Operations;
25
+ // (undocumented)
26
+ report: Report;
27
+ // (undocumented)
28
+ reports: Reports;
29
+ // (undocumented)
30
+ snapshot: Snapshot;
31
+ // (undocumented)
32
+ snapshots: Snapshots;
33
+ }
34
+
35
+ // @public
36
+ export interface AppComplianceAutomationToolForMicrosoft365OptionalParams extends coreClient.ServiceClientOptions {
37
+ $host?: string;
38
+ apiVersion?: string;
39
+ endpoint?: string;
40
+ }
41
+
42
+ // @public
43
+ export interface Assessment {
44
+ readonly description?: string;
45
+ readonly isPass?: IsPass;
46
+ readonly name?: string;
47
+ readonly policyId?: string;
48
+ readonly remediation?: string;
49
+ readonly resourceList?: AssessmentResource[];
50
+ readonly severity?: AssessmentSeverity;
51
+ }
52
+
53
+ // @public
54
+ export interface AssessmentResource {
55
+ readonly reason?: string;
56
+ readonly resourceId?: string;
57
+ readonly resourceStatus?: ResourceStatus;
58
+ readonly statusChangeDate?: string;
59
+ }
60
+
61
+ // @public
62
+ export type AssessmentSeverity = string;
63
+
64
+ // @public
65
+ export interface Category {
66
+ readonly categoryName?: string;
67
+ readonly categoryStatus?: CategoryStatus;
68
+ readonly categoryType?: CategoryType;
69
+ readonly controlFamilies?: ControlFamily[];
70
+ }
71
+
72
+ // @public
73
+ export type CategoryStatus = string;
74
+
75
+ // @public
76
+ export type CategoryType = string;
77
+
78
+ // @public
79
+ export interface ComplianceReportItem {
80
+ readonly categoryName?: string;
81
+ readonly complianceState?: ComplianceState;
82
+ readonly controlId?: string;
83
+ readonly controlName?: string;
84
+ readonly controlType?: ControlType;
85
+ readonly policyDescription?: string;
86
+ readonly policyDisplayName?: string;
87
+ readonly policyId?: string;
88
+ readonly resourceGroup?: string;
89
+ readonly resourceId?: string;
90
+ readonly resourceType?: string;
91
+ readonly statusChangeDate?: string;
92
+ readonly subscriptionId?: string;
93
+ }
94
+
95
+ // @public
96
+ export interface ComplianceResult {
97
+ readonly categories?: Category[];
98
+ readonly complianceName?: string;
99
+ }
100
+
101
+ // @public
102
+ export type ComplianceState = string;
103
+
104
+ // @public
105
+ export interface Control {
106
+ readonly assessments?: Assessment[];
107
+ readonly controlDescription?: string;
108
+ readonly controlDescriptionHyperLink?: string;
109
+ readonly controlFullName?: string;
110
+ readonly controlId?: string;
111
+ readonly controlShortName?: string;
112
+ readonly controlStatus?: ControlStatus;
113
+ readonly controlType?: ControlType;
114
+ }
115
+
116
+ // @public
117
+ export interface ControlFamily {
118
+ readonly controls?: Control[];
119
+ readonly familyName?: string;
120
+ readonly familyStatus?: ControlFamilyStatus;
121
+ readonly familyType?: ControlFamilyType;
122
+ }
123
+
124
+ // @public
125
+ export type ControlFamilyStatus = string;
126
+
127
+ // @public
128
+ export type ControlFamilyType = string;
129
+
130
+ // @public
131
+ export type ControlStatus = string;
132
+
133
+ // @public
134
+ export type ControlType = string;
135
+
136
+ // @public
137
+ export type CreatedByType = string;
138
+
139
+ // @public
140
+ export interface DownloadResponse {
141
+ readonly complianceDetailedPdfReport?: DownloadResponseComplianceDetailedPdfReport;
142
+ readonly compliancePdfReport?: DownloadResponseCompliancePdfReport;
143
+ readonly complianceReport?: ComplianceReportItem[];
144
+ readonly resourceList?: ResourceItem[];
145
+ }
146
+
147
+ // @public
148
+ export interface DownloadResponseComplianceDetailedPdfReport {
149
+ readonly sasUri?: string;
150
+ }
151
+
152
+ // @public
153
+ export interface DownloadResponseCompliancePdfReport {
154
+ readonly sasUri?: string;
155
+ }
156
+
157
+ // @public
158
+ export type DownloadType = string;
159
+
160
+ // @public
161
+ export interface ErrorAdditionalInfo {
162
+ readonly info?: Record<string, unknown>;
163
+ readonly type?: string;
164
+ }
165
+
166
+ // @public
167
+ export interface ErrorDetail {
168
+ readonly additionalInfo?: ErrorAdditionalInfo[];
169
+ readonly code?: string;
170
+ readonly details?: ErrorDetail[];
171
+ readonly message?: string;
172
+ readonly target?: string;
173
+ }
174
+
175
+ // @public
176
+ export interface ErrorResponse {
177
+ error?: ErrorDetail;
178
+ }
179
+
180
+ // @public
181
+ export type IsPass = string;
182
+
183
+ // @public
184
+ export enum KnownActionType {
185
+ Internal = "Internal"
186
+ }
187
+
188
+ // @public
189
+ export enum KnownAssessmentSeverity {
190
+ High = "High",
191
+ Low = "Low",
192
+ Medium = "Medium"
193
+ }
194
+
195
+ // @public
196
+ export enum KnownCategoryStatus {
197
+ Healthy = "Healthy",
198
+ Unhealthy = "Unhealthy"
199
+ }
200
+
201
+ // @public
202
+ export enum KnownCategoryType {
203
+ FullyAutomated = "FullyAutomated",
204
+ Manual = "Manual",
205
+ PartiallyAutomated = "PartiallyAutomated"
206
+ }
207
+
208
+ // @public
209
+ export enum KnownComplianceState {
210
+ Healthy = "Healthy",
211
+ Unhealthy = "Unhealthy"
212
+ }
213
+
214
+ // @public
215
+ export enum KnownControlFamilyStatus {
216
+ Healthy = "Healthy",
217
+ Unhealthy = "Unhealthy"
218
+ }
219
+
220
+ // @public
221
+ export enum KnownControlFamilyType {
222
+ FullyAutomated = "FullyAutomated",
223
+ Manual = "Manual",
224
+ PartiallyAutomated = "PartiallyAutomated"
225
+ }
226
+
227
+ // @public
228
+ export enum KnownControlStatus {
229
+ Failed = "Failed",
230
+ NotApplicable = "NotApplicable",
231
+ Passed = "Passed"
232
+ }
233
+
234
+ // @public
235
+ export enum KnownControlType {
236
+ FullyAutomated = "FullyAutomated",
237
+ Manual = "Manual",
238
+ PartiallyAutomated = "PartiallyAutomated"
239
+ }
240
+
241
+ // @public
242
+ export enum KnownCreatedByType {
243
+ Application = "Application",
244
+ Key = "Key",
245
+ ManagedIdentity = "ManagedIdentity",
246
+ User = "User"
247
+ }
248
+
249
+ // @public
250
+ export enum KnownDownloadType {
251
+ ComplianceDetailedPdfReport = "ComplianceDetailedPdfReport",
252
+ CompliancePdfReport = "CompliancePdfReport",
253
+ ComplianceReport = "ComplianceReport",
254
+ ResourceList = "ResourceList"
255
+ }
256
+
257
+ // @public
258
+ export enum KnownIsPass {
259
+ False = "False",
260
+ True = "True"
261
+ }
262
+
263
+ // @public
264
+ export enum KnownOrigin {
265
+ System = "system",
266
+ User = "user",
267
+ UserSystem = "user,system"
268
+ }
269
+
270
+ // @public
271
+ export enum KnownProvisioningState {
272
+ Canceled = "Canceled",
273
+ Creating = "Creating",
274
+ Deleting = "Deleting",
275
+ Failed = "Failed",
276
+ Succeeded = "Succeeded",
277
+ Updating = "Updating"
278
+ }
279
+
280
+ // @public
281
+ export enum KnownReportStatus {
282
+ Active = "Active",
283
+ Disabled = "Disabled",
284
+ Failed = "Failed"
285
+ }
286
+
287
+ // @public
288
+ export enum KnownResourceStatus {
289
+ Healthy = "Healthy",
290
+ NotApplicable = "NotApplicable",
291
+ Unhealthy = "Unhealthy"
292
+ }
293
+
294
+ // @public
295
+ export interface Operation {
296
+ readonly actionType?: ActionType;
297
+ display?: OperationDisplay;
298
+ readonly isDataAction?: boolean;
299
+ readonly name?: string;
300
+ readonly origin?: Origin;
301
+ }
302
+
303
+ // @public
304
+ export interface OperationDisplay {
305
+ readonly description?: string;
306
+ readonly operation?: string;
307
+ readonly provider?: string;
308
+ readonly resource?: string;
309
+ }
310
+
311
+ // @public
312
+ export interface OperationListResult {
313
+ readonly nextLink?: string;
314
+ readonly value?: Operation[];
315
+ }
316
+
317
+ // @public
318
+ export interface Operations {
319
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
320
+ }
321
+
322
+ // @public
323
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
324
+ }
325
+
326
+ // @public
327
+ export type OperationsListNextResponse = OperationListResult;
328
+
329
+ // @public
330
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
331
+ }
332
+
333
+ // @public
334
+ export type OperationsListResponse = OperationListResult;
335
+
336
+ // @public
337
+ export type Origin = string;
338
+
339
+ // @public
340
+ export interface OverviewStatus {
341
+ failedCount?: number;
342
+ manualCount?: number;
343
+ passedCount?: number;
344
+ }
345
+
346
+ // @public
347
+ export type ProvisioningState = string;
348
+
349
+ // @public
350
+ export interface ProxyResource extends Resource {
351
+ }
352
+
353
+ // @public
354
+ export interface Report {
355
+ beginCreateOrUpdate(reportName: string, parameters: ReportResource, options?: ReportCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ReportCreateOrUpdateResponse>, ReportCreateOrUpdateResponse>>;
356
+ beginCreateOrUpdateAndWait(reportName: string, parameters: ReportResource, options?: ReportCreateOrUpdateOptionalParams): Promise<ReportCreateOrUpdateResponse>;
357
+ beginDelete(reportName: string, options?: ReportDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
358
+ beginDeleteAndWait(reportName: string, options?: ReportDeleteOptionalParams): Promise<void>;
359
+ beginUpdate(reportName: string, parameters: ReportResourcePatch, options?: ReportUpdateOptionalParams): Promise<PollerLike<PollOperationState<ReportUpdateResponse>, ReportUpdateResponse>>;
360
+ beginUpdateAndWait(reportName: string, parameters: ReportResourcePatch, options?: ReportUpdateOptionalParams): Promise<ReportUpdateResponse>;
361
+ get(reportName: string, options?: ReportGetOptionalParams): Promise<ReportGetResponse>;
362
+ }
363
+
364
+ // @public
365
+ export interface ReportComplianceStatus {
366
+ m365?: OverviewStatus;
367
+ }
368
+
369
+ // @public
370
+ export interface ReportCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
371
+ resumeFrom?: string;
372
+ updateIntervalInMs?: number;
373
+ }
374
+
375
+ // @public
376
+ export type ReportCreateOrUpdateResponse = ReportResource;
377
+
378
+ // @public
379
+ export interface ReportDeleteOptionalParams extends coreClient.OperationOptions {
380
+ resumeFrom?: string;
381
+ updateIntervalInMs?: number;
382
+ }
383
+
384
+ // @public
385
+ export interface ReportGetOptionalParams extends coreClient.OperationOptions {
386
+ }
387
+
388
+ // @public
389
+ export type ReportGetResponse = ReportResource;
390
+
391
+ // @public
392
+ export interface ReportProperties {
393
+ readonly complianceStatus?: ReportComplianceStatus;
394
+ readonly id?: string;
395
+ readonly lastTriggerTime?: Date;
396
+ readonly nextTriggerTime?: Date;
397
+ offerGuid?: string;
398
+ readonly provisioningState?: ProvisioningState;
399
+ readonly reportName?: string;
400
+ resources: ResourceMetadata[];
401
+ readonly status?: ReportStatus;
402
+ readonly subscriptions?: string[];
403
+ readonly tenantId?: string;
404
+ timeZone: string;
405
+ triggerTime: Date;
406
+ }
407
+
408
+ // @public
409
+ export interface ReportResource extends ProxyResource {
410
+ properties: ReportProperties;
411
+ }
412
+
413
+ // @public
414
+ export interface ReportResourceList {
415
+ nextLink?: string;
416
+ readonly value?: ReportResource[];
417
+ }
418
+
419
+ // @public
420
+ export interface ReportResourcePatch {
421
+ properties?: ReportProperties;
422
+ }
423
+
424
+ // @public
425
+ export interface Reports {
426
+ list(options?: ReportsListOptionalParams): PagedAsyncIterableIterator<ReportResource>;
427
+ }
428
+
429
+ // @public
430
+ export interface ReportsListNextOptionalParams extends coreClient.OperationOptions {
431
+ offerGuid?: string;
432
+ reportCreatorTenantId?: string;
433
+ select?: string;
434
+ skipToken?: string;
435
+ top?: number;
436
+ }
437
+
438
+ // @public
439
+ export type ReportsListNextResponse = ReportResourceList;
440
+
441
+ // @public
442
+ export interface ReportsListOptionalParams extends coreClient.OperationOptions {
443
+ offerGuid?: string;
444
+ reportCreatorTenantId?: string;
445
+ select?: string;
446
+ skipToken?: string;
447
+ top?: number;
448
+ }
449
+
450
+ // @public
451
+ export type ReportsListResponse = ReportResourceList;
452
+
453
+ // @public
454
+ export type ReportStatus = string;
455
+
456
+ // @public
457
+ export interface ReportUpdateOptionalParams extends coreClient.OperationOptions {
458
+ resumeFrom?: string;
459
+ updateIntervalInMs?: number;
460
+ }
461
+
462
+ // @public
463
+ export type ReportUpdateResponse = ReportResource;
464
+
465
+ // @public
466
+ export interface Resource {
467
+ readonly id?: string;
468
+ readonly name?: string;
469
+ readonly systemData?: SystemData;
470
+ readonly type?: string;
471
+ }
472
+
473
+ // @public
474
+ export interface ResourceItem {
475
+ readonly resourceGroup?: string;
476
+ readonly resourceId?: string;
477
+ readonly resourceType?: string;
478
+ readonly subscriptionId?: string;
479
+ }
480
+
481
+ // @public
482
+ export interface ResourceMetadata {
483
+ resourceId: string;
484
+ resourceKind?: string;
485
+ resourceName?: string;
486
+ resourceType?: string;
487
+ tags?: {
488
+ [propertyName: string]: string;
489
+ };
490
+ }
491
+
492
+ // @public
493
+ export type ResourceStatus = string;
494
+
495
+ // @public
496
+ export interface Snapshot {
497
+ beginDownload(reportName: string, snapshotName: string, parameters: SnapshotDownloadRequest, options?: SnapshotDownloadOptionalParams): Promise<PollerLike<PollOperationState<SnapshotDownloadResponse>, SnapshotDownloadResponse>>;
498
+ beginDownloadAndWait(reportName: string, snapshotName: string, parameters: SnapshotDownloadRequest, options?: SnapshotDownloadOptionalParams): Promise<SnapshotDownloadResponse>;
499
+ get(reportName: string, snapshotName: string, options?: SnapshotGetOptionalParams): Promise<SnapshotGetResponse>;
500
+ }
501
+
502
+ // @public
503
+ export interface SnapshotDownloadOptionalParams extends coreClient.OperationOptions {
504
+ resumeFrom?: string;
505
+ updateIntervalInMs?: number;
506
+ }
507
+
508
+ // @public
509
+ export interface SnapshotDownloadRequest {
510
+ downloadType: DownloadType;
511
+ offerGuid?: string;
512
+ reportCreatorTenantId?: string;
513
+ }
514
+
515
+ // @public
516
+ export type SnapshotDownloadResponse = DownloadResponse;
517
+
518
+ // @public
519
+ export interface SnapshotGetOptionalParams extends coreClient.OperationOptions {
520
+ }
521
+
522
+ // @public
523
+ export type SnapshotGetResponse = SnapshotResource;
524
+
525
+ // @public
526
+ export interface SnapshotProperties {
527
+ readonly complianceResults?: ComplianceResult[];
528
+ readonly createdAt?: Date;
529
+ readonly id?: string;
530
+ readonly provisioningState?: ProvisioningState;
531
+ readonly reportProperties?: ReportProperties;
532
+ readonly reportSystemData?: SystemData;
533
+ readonly snapshotName?: string;
534
+ }
535
+
536
+ // @public
537
+ export interface SnapshotResource extends ProxyResource {
538
+ readonly properties?: SnapshotProperties;
539
+ }
540
+
541
+ // @public
542
+ export interface SnapshotResourceList {
543
+ nextLink?: string;
544
+ readonly value?: SnapshotResource[];
545
+ }
546
+
547
+ // @public
548
+ export interface Snapshots {
549
+ list(reportName: string, options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator<SnapshotResource>;
550
+ }
551
+
552
+ // @public
553
+ export interface SnapshotsListNextOptionalParams extends coreClient.OperationOptions {
554
+ offerGuid?: string;
555
+ reportCreatorTenantId?: string;
556
+ select?: string;
557
+ skipToken?: string;
558
+ top?: number;
559
+ }
560
+
561
+ // @public
562
+ export type SnapshotsListNextResponse = SnapshotResourceList;
563
+
564
+ // @public
565
+ export interface SnapshotsListOptionalParams extends coreClient.OperationOptions {
566
+ offerGuid?: string;
567
+ reportCreatorTenantId?: string;
568
+ select?: string;
569
+ skipToken?: string;
570
+ top?: number;
571
+ }
572
+
573
+ // @public
574
+ export type SnapshotsListResponse = SnapshotResourceList;
575
+
576
+ // @public
577
+ export interface SystemData {
578
+ createdAt?: Date;
579
+ createdBy?: string;
580
+ createdByType?: CreatedByType;
581
+ lastModifiedAt?: Date;
582
+ lastModifiedBy?: string;
583
+ lastModifiedByType?: CreatedByType;
584
+ }
585
+
586
+ // (No @packageDocumentation comment for this package)
587
+
588
+ ```
@@ -0,0 +1,122 @@
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 nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ // #region Warning Handler
18
+
19
+ /**
20
+ * A function that can determine whether a rollup warning should be ignored. If
21
+ * the function returns `true`, then the warning will not be displayed.
22
+ */
23
+
24
+ function ignoreNiseSinonEval(warning) {
25
+ return (
26
+ warning.code === "EVAL" &&
27
+ warning.id &&
28
+ (warning.id.includes("node_modules/nise") ||
29
+ warning.id.includes("node_modules/sinon")) === true
30
+ );
31
+ }
32
+
33
+ function ignoreChaiCircularDependency(warning) {
34
+ return (
35
+ warning.code === "CIRCULAR_DEPENDENCY" &&
36
+ warning.importer && warning.importer.includes("node_modules/chai") === true
37
+ );
38
+ }
39
+
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
+
42
+ /**
43
+ * Construct a warning handler for the shared rollup configuration
44
+ * that ignores certain warnings that are not relevant to testing.
45
+ */
46
+ function makeOnWarnForTesting() {
47
+ return (warning, warn) => {
48
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
+ warn(warning);
51
+ }
52
+ };
53
+ }
54
+
55
+ // #endregion
56
+
57
+ function makeBrowserTestConfig() {
58
+ const config = {
59
+ input: {
60
+ include: ["dist-esm/test/**/*.spec.js"],
61
+ exclude: ["dist-esm/test/**/node/**"]
62
+ },
63
+ output: {
64
+ file: `dist-test/index.browser.js`,
65
+ format: "umd",
66
+ sourcemap: true
67
+ },
68
+ preserveSymlinks: false,
69
+ plugins: [
70
+ multiEntry({ exports: false }),
71
+ nodeResolve({
72
+ mainFields: ["module", "browser"]
73
+ }),
74
+ cjs(),
75
+ json(),
76
+ sourcemaps()
77
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
+ ],
79
+ onwarn: makeOnWarnForTesting(),
80
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
+ // rollup started respecting the "sideEffects" field in package.json. Since
82
+ // our package.json sets "sideEffects=false", this also applies to test
83
+ // code, which causes all tests to be removed by tree-shaking.
84
+ treeshake: false
85
+ };
86
+
87
+ return config;
88
+ }
89
+
90
+ const defaultConfigurationOptions = {
91
+ disableBrowserBundle: false
92
+ };
93
+
94
+ export function makeConfig(pkg, options) {
95
+ options = {
96
+ ...defaultConfigurationOptions,
97
+ ...(options || {})
98
+ };
99
+
100
+ const baseConfig = {
101
+ // Use the package's module field if it has one
102
+ input: pkg["module"] || "dist-esm/src/index.js",
103
+ external: [
104
+ ...nodeBuiltins,
105
+ ...Object.keys(pkg.dependencies),
106
+ ...Object.keys(pkg.devDependencies)
107
+ ],
108
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
+ preserveSymlinks: false,
110
+ plugins: [sourcemaps(), nodeResolve()]
111
+ };
112
+
113
+ const config = [baseConfig];
114
+
115
+ if (!options.disableBrowserBundle) {
116
+ config.push(makeBrowserTestConfig());
117
+ }
118
+
119
+ return config;
120
+ }
121
+
122
+ export default makeConfig(require("./package.json"));