@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,1261 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /**
8
+ * Defines values for ActionType. \
9
+ * {@link KnownActionType} can be used interchangeably with ActionType,
10
+ * this enum contains the known values that the service supports.
11
+ * ### Known values supported by the service
12
+ * **Internal**
13
+ */
14
+ export declare type ActionType = string;
15
+
16
+ export declare class AppComplianceAutomationToolForMicrosoft365 extends coreClient.ServiceClient {
17
+ $host: string;
18
+ apiVersion: string;
19
+ /**
20
+ * Initializes a new instance of the AppComplianceAutomationToolForMicrosoft365 class.
21
+ * @param credentials Subscription credentials which uniquely identify client subscription.
22
+ * @param options The parameter options
23
+ */
24
+ constructor(credentials: coreAuth.TokenCredential, options?: AppComplianceAutomationToolForMicrosoft365OptionalParams);
25
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
26
+ private addCustomApiVersionPolicy;
27
+ operations: Operations;
28
+ reports: Reports;
29
+ report: Report;
30
+ snapshots: Snapshots;
31
+ snapshot: Snapshot;
32
+ }
33
+
34
+ /** Optional parameters. */
35
+ export declare interface AppComplianceAutomationToolForMicrosoft365OptionalParams extends coreClient.ServiceClientOptions {
36
+ /** server parameter */
37
+ $host?: string;
38
+ /** Api Version */
39
+ apiVersion?: string;
40
+ /** Overrides client endpoint. */
41
+ endpoint?: string;
42
+ }
43
+
44
+ /** A class represent the assessment. */
45
+ export declare interface Assessment {
46
+ /**
47
+ * The name of the assessment.
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
49
+ */
50
+ readonly name?: string;
51
+ /**
52
+ * The severity level of this assessment.
53
+ * NOTE: This property will not be serialized. It can only be populated by the server.
54
+ */
55
+ readonly severity?: AssessmentSeverity;
56
+ /**
57
+ * The description of the assessment.
58
+ * NOTE: This property will not be serialized. It can only be populated by the server.
59
+ */
60
+ readonly description?: string;
61
+ /**
62
+ * The remediation of the assessment.
63
+ * NOTE: This property will not be serialized. It can only be populated by the server.
64
+ */
65
+ readonly remediation?: string;
66
+ /**
67
+ * Indicates whether all the resource(s) are compliant.
68
+ * NOTE: This property will not be serialized. It can only be populated by the server.
69
+ */
70
+ readonly isPass?: IsPass;
71
+ /**
72
+ * The policy id mapping to this assessment.
73
+ * NOTE: This property will not be serialized. It can only be populated by the server.
74
+ */
75
+ readonly policyId?: string;
76
+ /**
77
+ * List of resource assessments.
78
+ * NOTE: This property will not be serialized. It can only be populated by the server.
79
+ */
80
+ readonly resourceList?: AssessmentResource[];
81
+ }
82
+
83
+ /** A class represent the assessment resource. */
84
+ export declare interface AssessmentResource {
85
+ /**
86
+ * The Id of the resource.
87
+ * NOTE: This property will not be serialized. It can only be populated by the server.
88
+ */
89
+ readonly resourceId?: string;
90
+ /**
91
+ * Resource status.
92
+ * NOTE: This property will not be serialized. It can only be populated by the server.
93
+ */
94
+ readonly resourceStatus?: ResourceStatus;
95
+ /**
96
+ * The reason for the N/A resource.
97
+ * NOTE: This property will not be serialized. It can only be populated by the server.
98
+ */
99
+ readonly reason?: string;
100
+ /**
101
+ * The status change date for the resource. For unavailable date, set it as N/A.
102
+ * NOTE: This property will not be serialized. It can only be populated by the server.
103
+ */
104
+ readonly statusChangeDate?: string;
105
+ }
106
+
107
+ /**
108
+ * Defines values for AssessmentSeverity. \
109
+ * {@link KnownAssessmentSeverity} can be used interchangeably with AssessmentSeverity,
110
+ * this enum contains the known values that the service supports.
111
+ * ### Known values supported by the service
112
+ * **High** \
113
+ * **Medium** \
114
+ * **Low**
115
+ */
116
+ export declare type AssessmentSeverity = string;
117
+
118
+ /** A class represent the compliance category. */
119
+ export declare interface Category {
120
+ /**
121
+ * The name of the compliance category. e.g. "Operational Security"
122
+ * NOTE: This property will not be serialized. It can only be populated by the server.
123
+ */
124
+ readonly categoryName?: string;
125
+ /**
126
+ * The category type
127
+ * NOTE: This property will not be serialized. It can only be populated by the server.
128
+ */
129
+ readonly categoryType?: CategoryType;
130
+ /**
131
+ * Category status.
132
+ * NOTE: This property will not be serialized. It can only be populated by the server.
133
+ */
134
+ readonly categoryStatus?: CategoryStatus;
135
+ /**
136
+ * List of control families.
137
+ * NOTE: This property will not be serialized. It can only be populated by the server.
138
+ */
139
+ readonly controlFamilies?: ControlFamily[];
140
+ }
141
+
142
+ /**
143
+ * Defines values for CategoryStatus. \
144
+ * {@link KnownCategoryStatus} can be used interchangeably with CategoryStatus,
145
+ * this enum contains the known values that the service supports.
146
+ * ### Known values supported by the service
147
+ * **Healthy** \
148
+ * **Unhealthy**
149
+ */
150
+ export declare type CategoryStatus = string;
151
+
152
+ /**
153
+ * Defines values for CategoryType. \
154
+ * {@link KnownCategoryType} can be used interchangeably with CategoryType,
155
+ * this enum contains the known values that the service supports.
156
+ * ### Known values supported by the service
157
+ * **FullyAutomated** \
158
+ * **PartiallyAutomated** \
159
+ * **Manual**
160
+ */
161
+ export declare type CategoryType = string;
162
+
163
+ /** Object that includes all the content for single compliance result. */
164
+ export declare interface ComplianceReportItem {
165
+ /**
166
+ * The category name.
167
+ * NOTE: This property will not be serialized. It can only be populated by the server.
168
+ */
169
+ readonly categoryName?: string;
170
+ /**
171
+ * The control Id - e.g. "1".
172
+ * NOTE: This property will not be serialized. It can only be populated by the server.
173
+ */
174
+ readonly controlId?: string;
175
+ /**
176
+ * The control name.
177
+ * NOTE: This property will not be serialized. It can only be populated by the server.
178
+ */
179
+ readonly controlName?: string;
180
+ /**
181
+ * The control type.
182
+ * NOTE: This property will not be serialized. It can only be populated by the server.
183
+ */
184
+ readonly controlType?: ControlType;
185
+ /**
186
+ * The compliance result's status.
187
+ * NOTE: This property will not be serialized. It can only be populated by the server.
188
+ */
189
+ readonly complianceState?: ComplianceState;
190
+ /**
191
+ * The compliance result mapped policy Id.
192
+ * NOTE: This property will not be serialized. It can only be populated by the server.
193
+ */
194
+ readonly policyId?: string;
195
+ /**
196
+ * The policy's display name.
197
+ * NOTE: This property will not be serialized. It can only be populated by the server.
198
+ */
199
+ readonly policyDisplayName?: string;
200
+ /**
201
+ * The policy's detail description.
202
+ * NOTE: This property will not be serialized. It can only be populated by the server.
203
+ */
204
+ readonly policyDescription?: string;
205
+ /**
206
+ * The compliance result mapped subscription Id.
207
+ * NOTE: This property will not be serialized. It can only be populated by the server.
208
+ */
209
+ readonly subscriptionId?: string;
210
+ /**
211
+ * The compliance result mapped resource group.
212
+ * NOTE: This property will not be serialized. It can only be populated by the server.
213
+ */
214
+ readonly resourceGroup?: string;
215
+ /**
216
+ * The compliance result mapped resource type.
217
+ * NOTE: This property will not be serialized. It can only be populated by the server.
218
+ */
219
+ readonly resourceType?: string;
220
+ /**
221
+ * The compliance result mapped resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1".
222
+ * NOTE: This property will not be serialized. It can only be populated by the server.
223
+ */
224
+ readonly resourceId?: string;
225
+ /**
226
+ * The compliance result last changed date - e.g. "2022-10-24T02:55:16.3274379Z". For unavailable date, set it as "N/A".
227
+ * NOTE: This property will not be serialized. It can only be populated by the server.
228
+ */
229
+ readonly statusChangeDate?: string;
230
+ }
231
+
232
+ /** A class represent the compliance result. */
233
+ export declare interface ComplianceResult {
234
+ /**
235
+ * The name of the compliance. e.g. "M365"
236
+ * NOTE: This property will not be serialized. It can only be populated by the server.
237
+ */
238
+ readonly complianceName?: string;
239
+ /**
240
+ * List of categories.
241
+ * NOTE: This property will not be serialized. It can only be populated by the server.
242
+ */
243
+ readonly categories?: Category[];
244
+ }
245
+
246
+ /**
247
+ * Defines values for ComplianceState. \
248
+ * {@link KnownComplianceState} can be used interchangeably with ComplianceState,
249
+ * this enum contains the known values that the service supports.
250
+ * ### Known values supported by the service
251
+ * **Healthy** \
252
+ * **Unhealthy**
253
+ */
254
+ export declare type ComplianceState = string;
255
+
256
+ /** A class represent the control. */
257
+ export declare interface Control {
258
+ /**
259
+ * The Id of the control. e.g. "Operational Security#10"
260
+ * NOTE: This property will not be serialized. It can only be populated by the server.
261
+ */
262
+ readonly controlId?: string;
263
+ /**
264
+ * The short name of the control. e.g. "Unsupported OS and Software."
265
+ * NOTE: This property will not be serialized. It can only be populated by the server.
266
+ */
267
+ readonly controlShortName?: string;
268
+ /**
269
+ * The full name of the control. e.g. "Validate that unsupported operating systems and software components are not in use."
270
+ * NOTE: This property will not be serialized. It can only be populated by the server.
271
+ */
272
+ readonly controlFullName?: string;
273
+ /**
274
+ * The control type
275
+ * NOTE: This property will not be serialized. It can only be populated by the server.
276
+ */
277
+ readonly controlType?: ControlType;
278
+ /**
279
+ * The control's description
280
+ * NOTE: This property will not be serialized. It can only be populated by the server.
281
+ */
282
+ readonly controlDescription?: string;
283
+ /**
284
+ * The hyper link to the control's description'.
285
+ * NOTE: This property will not be serialized. It can only be populated by the server.
286
+ */
287
+ readonly controlDescriptionHyperLink?: string;
288
+ /**
289
+ * Control status.
290
+ * NOTE: This property will not be serialized. It can only be populated by the server.
291
+ */
292
+ readonly controlStatus?: ControlStatus;
293
+ /**
294
+ * List of assessments.
295
+ * NOTE: This property will not be serialized. It can only be populated by the server.
296
+ */
297
+ readonly assessments?: Assessment[];
298
+ }
299
+
300
+ /** A class represent the control family. */
301
+ export declare interface ControlFamily {
302
+ /**
303
+ * The name of the control family. e.g. "Malware Protection - Anti-Virus"
304
+ * NOTE: This property will not be serialized. It can only be populated by the server.
305
+ */
306
+ readonly familyName?: string;
307
+ /**
308
+ * The control family type
309
+ * NOTE: This property will not be serialized. It can only be populated by the server.
310
+ */
311
+ readonly familyType?: ControlFamilyType;
312
+ /**
313
+ * Control family status.
314
+ * NOTE: This property will not be serialized. It can only be populated by the server.
315
+ */
316
+ readonly familyStatus?: ControlFamilyStatus;
317
+ /**
318
+ * List of controls.
319
+ * NOTE: This property will not be serialized. It can only be populated by the server.
320
+ */
321
+ readonly controls?: Control[];
322
+ }
323
+
324
+ /**
325
+ * Defines values for ControlFamilyStatus. \
326
+ * {@link KnownControlFamilyStatus} can be used interchangeably with ControlFamilyStatus,
327
+ * this enum contains the known values that the service supports.
328
+ * ### Known values supported by the service
329
+ * **Healthy** \
330
+ * **Unhealthy**
331
+ */
332
+ export declare type ControlFamilyStatus = string;
333
+
334
+ /**
335
+ * Defines values for ControlFamilyType. \
336
+ * {@link KnownControlFamilyType} can be used interchangeably with ControlFamilyType,
337
+ * this enum contains the known values that the service supports.
338
+ * ### Known values supported by the service
339
+ * **FullyAutomated** \
340
+ * **PartiallyAutomated** \
341
+ * **Manual**
342
+ */
343
+ export declare type ControlFamilyType = string;
344
+
345
+ /**
346
+ * Defines values for ControlStatus. \
347
+ * {@link KnownControlStatus} can be used interchangeably with ControlStatus,
348
+ * this enum contains the known values that the service supports.
349
+ * ### Known values supported by the service
350
+ * **Passed** \
351
+ * **Failed** \
352
+ * **NotApplicable**
353
+ */
354
+ export declare type ControlStatus = string;
355
+
356
+ /**
357
+ * Defines values for ControlType. \
358
+ * {@link KnownControlType} can be used interchangeably with ControlType,
359
+ * this enum contains the known values that the service supports.
360
+ * ### Known values supported by the service
361
+ * **FullyAutomated** \
362
+ * **PartiallyAutomated** \
363
+ * **Manual**
364
+ */
365
+ export declare type ControlType = string;
366
+
367
+ /**
368
+ * Defines values for CreatedByType. \
369
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
370
+ * this enum contains the known values that the service supports.
371
+ * ### Known values supported by the service
372
+ * **User** \
373
+ * **Application** \
374
+ * **ManagedIdentity** \
375
+ * **Key**
376
+ */
377
+ export declare type CreatedByType = string;
378
+
379
+ /** Object that includes all the possible response for the download operation. */
380
+ export declare interface DownloadResponse {
381
+ /**
382
+ * List of the reports
383
+ * NOTE: This property will not be serialized. It can only be populated by the server.
384
+ */
385
+ readonly resourceList?: ResourceItem[];
386
+ /**
387
+ * List of the compliance result
388
+ * NOTE: This property will not be serialized. It can only be populated by the server.
389
+ */
390
+ readonly complianceReport?: ComplianceReportItem[];
391
+ /**
392
+ * compliance pdf report
393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
394
+ */
395
+ readonly compliancePdfReport?: DownloadResponseCompliancePdfReport;
396
+ /**
397
+ * compliance detailed pdf report
398
+ * NOTE: This property will not be serialized. It can only be populated by the server.
399
+ */
400
+ readonly complianceDetailedPdfReport?: DownloadResponseComplianceDetailedPdfReport;
401
+ }
402
+
403
+ /** compliance detailed pdf report */
404
+ export declare interface DownloadResponseComplianceDetailedPdfReport {
405
+ /**
406
+ * uri of compliance detailed pdf report
407
+ * NOTE: This property will not be serialized. It can only be populated by the server.
408
+ */
409
+ readonly sasUri?: string;
410
+ }
411
+
412
+ /** compliance pdf report */
413
+ export declare interface DownloadResponseCompliancePdfReport {
414
+ /**
415
+ * uri of compliance pdf report
416
+ * NOTE: This property will not be serialized. It can only be populated by the server.
417
+ */
418
+ readonly sasUri?: string;
419
+ }
420
+
421
+ /**
422
+ * Defines values for DownloadType. \
423
+ * {@link KnownDownloadType} can be used interchangeably with DownloadType,
424
+ * this enum contains the known values that the service supports.
425
+ * ### Known values supported by the service
426
+ * **ComplianceReport** \
427
+ * **CompliancePdfReport** \
428
+ * **ComplianceDetailedPdfReport** \
429
+ * **ResourceList**
430
+ */
431
+ export declare type DownloadType = string;
432
+
433
+ /** The resource management error additional info. */
434
+ export declare interface ErrorAdditionalInfo {
435
+ /**
436
+ * The additional info type.
437
+ * NOTE: This property will not be serialized. It can only be populated by the server.
438
+ */
439
+ readonly type?: string;
440
+ /**
441
+ * The additional info.
442
+ * NOTE: This property will not be serialized. It can only be populated by the server.
443
+ */
444
+ readonly info?: Record<string, unknown>;
445
+ }
446
+
447
+ /** The error detail. */
448
+ export declare interface ErrorDetail {
449
+ /**
450
+ * The error code.
451
+ * NOTE: This property will not be serialized. It can only be populated by the server.
452
+ */
453
+ readonly code?: string;
454
+ /**
455
+ * The error message.
456
+ * NOTE: This property will not be serialized. It can only be populated by the server.
457
+ */
458
+ readonly message?: string;
459
+ /**
460
+ * The error target.
461
+ * NOTE: This property will not be serialized. It can only be populated by the server.
462
+ */
463
+ readonly target?: string;
464
+ /**
465
+ * The error details.
466
+ * NOTE: This property will not be serialized. It can only be populated by the server.
467
+ */
468
+ readonly details?: ErrorDetail[];
469
+ /**
470
+ * The error additional info.
471
+ * NOTE: This property will not be serialized. It can only be populated by the server.
472
+ */
473
+ readonly additionalInfo?: ErrorAdditionalInfo[];
474
+ }
475
+
476
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
477
+ export declare interface ErrorResponse {
478
+ /** The error object. */
479
+ error?: ErrorDetail;
480
+ }
481
+
482
+ /**
483
+ * Defines values for IsPass. \
484
+ * {@link KnownIsPass} can be used interchangeably with IsPass,
485
+ * this enum contains the known values that the service supports.
486
+ * ### Known values supported by the service
487
+ * **True** \
488
+ * **False**
489
+ */
490
+ export declare type IsPass = string;
491
+
492
+ /** Known values of {@link ActionType} that the service accepts. */
493
+ export declare enum KnownActionType {
494
+ /** Internal */
495
+ Internal = "Internal"
496
+ }
497
+
498
+ /** Known values of {@link AssessmentSeverity} that the service accepts. */
499
+ export declare enum KnownAssessmentSeverity {
500
+ /** High */
501
+ High = "High",
502
+ /** Medium */
503
+ Medium = "Medium",
504
+ /** Low */
505
+ Low = "Low"
506
+ }
507
+
508
+ /** Known values of {@link CategoryStatus} that the service accepts. */
509
+ export declare enum KnownCategoryStatus {
510
+ /** Healthy */
511
+ Healthy = "Healthy",
512
+ /** Unhealthy */
513
+ Unhealthy = "Unhealthy"
514
+ }
515
+
516
+ /** Known values of {@link CategoryType} that the service accepts. */
517
+ export declare enum KnownCategoryType {
518
+ /** FullyAutomated */
519
+ FullyAutomated = "FullyAutomated",
520
+ /** PartiallyAutomated */
521
+ PartiallyAutomated = "PartiallyAutomated",
522
+ /** Manual */
523
+ Manual = "Manual"
524
+ }
525
+
526
+ /** Known values of {@link ComplianceState} that the service accepts. */
527
+ export declare enum KnownComplianceState {
528
+ /** Healthy */
529
+ Healthy = "Healthy",
530
+ /** Unhealthy */
531
+ Unhealthy = "Unhealthy"
532
+ }
533
+
534
+ /** Known values of {@link ControlFamilyStatus} that the service accepts. */
535
+ export declare enum KnownControlFamilyStatus {
536
+ /** Healthy */
537
+ Healthy = "Healthy",
538
+ /** Unhealthy */
539
+ Unhealthy = "Unhealthy"
540
+ }
541
+
542
+ /** Known values of {@link ControlFamilyType} that the service accepts. */
543
+ export declare enum KnownControlFamilyType {
544
+ /** FullyAutomated */
545
+ FullyAutomated = "FullyAutomated",
546
+ /** PartiallyAutomated */
547
+ PartiallyAutomated = "PartiallyAutomated",
548
+ /** Manual */
549
+ Manual = "Manual"
550
+ }
551
+
552
+ /** Known values of {@link ControlStatus} that the service accepts. */
553
+ export declare enum KnownControlStatus {
554
+ /** Passed */
555
+ Passed = "Passed",
556
+ /** Failed */
557
+ Failed = "Failed",
558
+ /** NotApplicable */
559
+ NotApplicable = "NotApplicable"
560
+ }
561
+
562
+ /** Known values of {@link ControlType} that the service accepts. */
563
+ export declare enum KnownControlType {
564
+ /** FullyAutomated */
565
+ FullyAutomated = "FullyAutomated",
566
+ /** PartiallyAutomated */
567
+ PartiallyAutomated = "PartiallyAutomated",
568
+ /** Manual */
569
+ Manual = "Manual"
570
+ }
571
+
572
+ /** Known values of {@link CreatedByType} that the service accepts. */
573
+ export declare enum KnownCreatedByType {
574
+ /** User */
575
+ User = "User",
576
+ /** Application */
577
+ Application = "Application",
578
+ /** ManagedIdentity */
579
+ ManagedIdentity = "ManagedIdentity",
580
+ /** Key */
581
+ Key = "Key"
582
+ }
583
+
584
+ /** Known values of {@link DownloadType} that the service accepts. */
585
+ export declare enum KnownDownloadType {
586
+ /** ComplianceReport */
587
+ ComplianceReport = "ComplianceReport",
588
+ /** CompliancePdfReport */
589
+ CompliancePdfReport = "CompliancePdfReport",
590
+ /** ComplianceDetailedPdfReport */
591
+ ComplianceDetailedPdfReport = "ComplianceDetailedPdfReport",
592
+ /** ResourceList */
593
+ ResourceList = "ResourceList"
594
+ }
595
+
596
+ /** Known values of {@link IsPass} that the service accepts. */
597
+ export declare enum KnownIsPass {
598
+ /** True */
599
+ True = "True",
600
+ /** False */
601
+ False = "False"
602
+ }
603
+
604
+ /** Known values of {@link Origin} that the service accepts. */
605
+ export declare enum KnownOrigin {
606
+ /** User */
607
+ User = "user",
608
+ /** System */
609
+ System = "system",
610
+ /** UserSystem */
611
+ UserSystem = "user,system"
612
+ }
613
+
614
+ /** Known values of {@link ProvisioningState} that the service accepts. */
615
+ export declare enum KnownProvisioningState {
616
+ /** Succeeded */
617
+ Succeeded = "Succeeded",
618
+ /** Failed */
619
+ Failed = "Failed",
620
+ /** Canceled */
621
+ Canceled = "Canceled",
622
+ /** Creating */
623
+ Creating = "Creating",
624
+ /** Deleting */
625
+ Deleting = "Deleting",
626
+ /** Updating */
627
+ Updating = "Updating"
628
+ }
629
+
630
+ /** Known values of {@link ReportStatus} that the service accepts. */
631
+ export declare enum KnownReportStatus {
632
+ /** Active */
633
+ Active = "Active",
634
+ /** Failed */
635
+ Failed = "Failed",
636
+ /** Disabled */
637
+ Disabled = "Disabled"
638
+ }
639
+
640
+ /** Known values of {@link ResourceStatus} that the service accepts. */
641
+ export declare enum KnownResourceStatus {
642
+ /** Healthy */
643
+ Healthy = "Healthy",
644
+ /** Unhealthy */
645
+ Unhealthy = "Unhealthy",
646
+ /** NotApplicable */
647
+ NotApplicable = "NotApplicable"
648
+ }
649
+
650
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
651
+ export declare interface Operation {
652
+ /**
653
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
654
+ * NOTE: This property will not be serialized. It can only be populated by the server.
655
+ */
656
+ readonly name?: string;
657
+ /**
658
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
659
+ * NOTE: This property will not be serialized. It can only be populated by the server.
660
+ */
661
+ readonly isDataAction?: boolean;
662
+ /** Localized display information for this particular operation. */
663
+ display?: OperationDisplay;
664
+ /**
665
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
666
+ * NOTE: This property will not be serialized. It can only be populated by the server.
667
+ */
668
+ readonly origin?: Origin;
669
+ /**
670
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
671
+ * NOTE: This property will not be serialized. It can only be populated by the server.
672
+ */
673
+ readonly actionType?: ActionType;
674
+ }
675
+
676
+ /** Localized display information for this particular operation. */
677
+ export declare interface OperationDisplay {
678
+ /**
679
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
680
+ * NOTE: This property will not be serialized. It can only be populated by the server.
681
+ */
682
+ readonly provider?: string;
683
+ /**
684
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
685
+ * NOTE: This property will not be serialized. It can only be populated by the server.
686
+ */
687
+ readonly resource?: string;
688
+ /**
689
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
690
+ * NOTE: This property will not be serialized. It can only be populated by the server.
691
+ */
692
+ readonly operation?: string;
693
+ /**
694
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
695
+ * NOTE: This property will not be serialized. It can only be populated by the server.
696
+ */
697
+ readonly description?: string;
698
+ }
699
+
700
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
701
+ export declare interface OperationListResult {
702
+ /**
703
+ * List of operations supported by the resource provider
704
+ * NOTE: This property will not be serialized. It can only be populated by the server.
705
+ */
706
+ readonly value?: Operation[];
707
+ /**
708
+ * URL to get the next set of operation list results (if there are any).
709
+ * NOTE: This property will not be serialized. It can only be populated by the server.
710
+ */
711
+ readonly nextLink?: string;
712
+ }
713
+
714
+ /** Interface representing a Operations. */
715
+ export declare interface Operations {
716
+ /**
717
+ * Lists all of the available REST API operations of the Microsoft.AppComplianceAutomation provider.
718
+ * @param options The options parameters.
719
+ */
720
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
721
+ }
722
+
723
+ /** Optional parameters. */
724
+ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
725
+ }
726
+
727
+ /** Contains response data for the listNext operation. */
728
+ export declare type OperationsListNextResponse = OperationListResult;
729
+
730
+ /** Optional parameters. */
731
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
732
+ }
733
+
734
+ /** Contains response data for the list operation. */
735
+ export declare type OperationsListResponse = OperationListResult;
736
+
737
+ /**
738
+ * Defines values for Origin. \
739
+ * {@link KnownOrigin} can be used interchangeably with Origin,
740
+ * this enum contains the known values that the service supports.
741
+ * ### Known values supported by the service
742
+ * **user** \
743
+ * **system** \
744
+ * **user,system**
745
+ */
746
+ export declare type Origin = string;
747
+
748
+ /** The overview of the compliance result for one report. */
749
+ export declare interface OverviewStatus {
750
+ /** The count of all passed full automation control. */
751
+ passedCount?: number;
752
+ /** The count of all failed full automation control. */
753
+ failedCount?: number;
754
+ /** The count of all manual control. */
755
+ manualCount?: number;
756
+ }
757
+
758
+ /**
759
+ * Defines values for ProvisioningState. \
760
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
761
+ * this enum contains the known values that the service supports.
762
+ * ### Known values supported by the service
763
+ * **Succeeded** \
764
+ * **Failed** \
765
+ * **Canceled** \
766
+ * **Creating** \
767
+ * **Deleting** \
768
+ * **Updating**
769
+ */
770
+ export declare type ProvisioningState = string;
771
+
772
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
773
+ export declare interface ProxyResource extends Resource {
774
+ }
775
+
776
+ /** Interface representing a Report. */
777
+ export declare interface Report {
778
+ /**
779
+ * Get the AppComplianceAutomation report and its properties.
780
+ * @param reportName Report Name.
781
+ * @param options The options parameters.
782
+ */
783
+ get(reportName: string, options?: ReportGetOptionalParams): Promise<ReportGetResponse>;
784
+ /**
785
+ * Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
786
+ * @param reportName Report Name.
787
+ * @param parameters Parameters for the create or update operation
788
+ * @param options The options parameters.
789
+ */
790
+ beginCreateOrUpdate(reportName: string, parameters: ReportResource, options?: ReportCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ReportCreateOrUpdateResponse>, ReportCreateOrUpdateResponse>>;
791
+ /**
792
+ * Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
793
+ * @param reportName Report Name.
794
+ * @param parameters Parameters for the create or update operation
795
+ * @param options The options parameters.
796
+ */
797
+ beginCreateOrUpdateAndWait(reportName: string, parameters: ReportResource, options?: ReportCreateOrUpdateOptionalParams): Promise<ReportCreateOrUpdateResponse>;
798
+ /**
799
+ * Update an exiting AppComplianceAutomation report.
800
+ * @param reportName Report Name.
801
+ * @param parameters Parameters for the create or update operation
802
+ * @param options The options parameters.
803
+ */
804
+ beginUpdate(reportName: string, parameters: ReportResourcePatch, options?: ReportUpdateOptionalParams): Promise<PollerLike<PollOperationState<ReportUpdateResponse>, ReportUpdateResponse>>;
805
+ /**
806
+ * Update an exiting AppComplianceAutomation report.
807
+ * @param reportName Report Name.
808
+ * @param parameters Parameters for the create or update operation
809
+ * @param options The options parameters.
810
+ */
811
+ beginUpdateAndWait(reportName: string, parameters: ReportResourcePatch, options?: ReportUpdateOptionalParams): Promise<ReportUpdateResponse>;
812
+ /**
813
+ * Delete an AppComplianceAutomation report.
814
+ * @param reportName Report Name.
815
+ * @param options The options parameters.
816
+ */
817
+ beginDelete(reportName: string, options?: ReportDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
818
+ /**
819
+ * Delete an AppComplianceAutomation report.
820
+ * @param reportName Report Name.
821
+ * @param options The options parameters.
822
+ */
823
+ beginDeleteAndWait(reportName: string, options?: ReportDeleteOptionalParams): Promise<void>;
824
+ }
825
+
826
+ /** A list which includes all the compliance result for one report. */
827
+ export declare interface ReportComplianceStatus {
828
+ /** The Microsoft 365 certification name. */
829
+ m365?: OverviewStatus;
830
+ }
831
+
832
+ /** Optional parameters. */
833
+ export declare interface ReportCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
834
+ /** Delay to wait until next poll, in milliseconds. */
835
+ updateIntervalInMs?: number;
836
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
837
+ resumeFrom?: string;
838
+ }
839
+
840
+ /** Contains response data for the createOrUpdate operation. */
841
+ export declare type ReportCreateOrUpdateResponse = ReportResource;
842
+
843
+ /** Optional parameters. */
844
+ export declare interface ReportDeleteOptionalParams extends coreClient.OperationOptions {
845
+ /** Delay to wait until next poll, in milliseconds. */
846
+ updateIntervalInMs?: number;
847
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
848
+ resumeFrom?: string;
849
+ }
850
+
851
+ /** Optional parameters. */
852
+ export declare interface ReportGetOptionalParams extends coreClient.OperationOptions {
853
+ }
854
+
855
+ /** Contains response data for the get operation. */
856
+ export declare type ReportGetResponse = ReportResource;
857
+
858
+ /** Report's properties. */
859
+ export declare interface ReportProperties {
860
+ /**
861
+ * Report id in database.
862
+ * NOTE: This property will not be serialized. It can only be populated by the server.
863
+ */
864
+ readonly id?: string;
865
+ /**
866
+ * Report status.
867
+ * NOTE: This property will not be serialized. It can only be populated by the server.
868
+ */
869
+ readonly status?: ReportStatus;
870
+ /**
871
+ * Report's tenant id.
872
+ * NOTE: This property will not be serialized. It can only be populated by the server.
873
+ */
874
+ readonly tenantId?: string;
875
+ /**
876
+ * Report name.
877
+ * NOTE: This property will not be serialized. It can only be populated by the server.
878
+ */
879
+ readonly reportName?: string;
880
+ /** Report offer Guid. */
881
+ offerGuid?: string;
882
+ /**
883
+ * Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable" in PowerShell.
884
+ * An example of valid timezone id is "Pacific Standard Time".
885
+ */
886
+ timeZone: string;
887
+ /** Report collection trigger time. */
888
+ triggerTime: Date;
889
+ /**
890
+ * Report next collection trigger time.
891
+ * NOTE: This property will not be serialized. It can only be populated by the server.
892
+ */
893
+ readonly nextTriggerTime?: Date;
894
+ /**
895
+ * Report last collection trigger time.
896
+ * NOTE: This property will not be serialized. It can only be populated by the server.
897
+ */
898
+ readonly lastTriggerTime?: Date;
899
+ /**
900
+ * List of subscription Ids.
901
+ * NOTE: This property will not be serialized. It can only be populated by the server.
902
+ */
903
+ readonly subscriptions?: string[];
904
+ /** List of resource data. */
905
+ resources: ResourceMetadata[];
906
+ /**
907
+ * Report compliance status.
908
+ * NOTE: This property will not be serialized. It can only be populated by the server.
909
+ */
910
+ readonly complianceStatus?: ReportComplianceStatus;
911
+ /**
912
+ * Azure lifecycle management
913
+ * NOTE: This property will not be serialized. It can only be populated by the server.
914
+ */
915
+ readonly provisioningState?: ProvisioningState;
916
+ }
917
+
918
+ /** A class represent an AppComplianceAutomation report resource. */
919
+ export declare interface ReportResource extends ProxyResource {
920
+ /** Report property. */
921
+ properties: ReportProperties;
922
+ }
923
+
924
+ /** Object that includes an array of resources and a possible link for next set. */
925
+ export declare interface ReportResourceList {
926
+ /**
927
+ * List of the reports
928
+ * NOTE: This property will not be serialized. It can only be populated by the server.
929
+ */
930
+ readonly value?: ReportResource[];
931
+ /**
932
+ * The URL the client should use to fetch the next page (per server side paging).
933
+ * It's null for now, added for future use.
934
+ */
935
+ nextLink?: string;
936
+ }
937
+
938
+ /** A class represent a AppComplianceAutomation report resource update properties. */
939
+ export declare interface ReportResourcePatch {
940
+ /** Report property. */
941
+ properties?: ReportProperties;
942
+ }
943
+
944
+ /** Interface representing a Reports. */
945
+ export declare interface Reports {
946
+ /**
947
+ * Get the AppComplianceAutomation report list for the tenant.
948
+ * @param options The options parameters.
949
+ */
950
+ list(options?: ReportsListOptionalParams): PagedAsyncIterableIterator<ReportResource>;
951
+ }
952
+
953
+ /** Optional parameters. */
954
+ export declare interface ReportsListNextOptionalParams extends coreClient.OperationOptions {
955
+ /** Skip over when retrieving results. */
956
+ skipToken?: string;
957
+ /** Number of elements to return when retrieving results. */
958
+ top?: number;
959
+ /** OData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id. */
960
+ select?: string;
961
+ /** The offerGuid which mapping to the reports. */
962
+ offerGuid?: string;
963
+ /** The tenant id of the report creator. */
964
+ reportCreatorTenantId?: string;
965
+ }
966
+
967
+ /** Contains response data for the listNext operation. */
968
+ export declare type ReportsListNextResponse = ReportResourceList;
969
+
970
+ /** Optional parameters. */
971
+ export declare interface ReportsListOptionalParams extends coreClient.OperationOptions {
972
+ /** Skip over when retrieving results. */
973
+ skipToken?: string;
974
+ /** Number of elements to return when retrieving results. */
975
+ top?: number;
976
+ /** OData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id. */
977
+ select?: string;
978
+ /** The offerGuid which mapping to the reports. */
979
+ offerGuid?: string;
980
+ /** The tenant id of the report creator. */
981
+ reportCreatorTenantId?: string;
982
+ }
983
+
984
+ /** Contains response data for the list operation. */
985
+ export declare type ReportsListResponse = ReportResourceList;
986
+
987
+ /**
988
+ * Defines values for ReportStatus. \
989
+ * {@link KnownReportStatus} can be used interchangeably with ReportStatus,
990
+ * this enum contains the known values that the service supports.
991
+ * ### Known values supported by the service
992
+ * **Active** \
993
+ * **Failed** \
994
+ * **Disabled**
995
+ */
996
+ export declare type ReportStatus = string;
997
+
998
+ /** Optional parameters. */
999
+ export declare interface ReportUpdateOptionalParams extends coreClient.OperationOptions {
1000
+ /** Delay to wait until next poll, in milliseconds. */
1001
+ updateIntervalInMs?: number;
1002
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1003
+ resumeFrom?: string;
1004
+ }
1005
+
1006
+ /** Contains response data for the update operation. */
1007
+ export declare type ReportUpdateResponse = ReportResource;
1008
+
1009
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
1010
+ export declare interface Resource {
1011
+ /**
1012
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
1013
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1014
+ */
1015
+ readonly id?: string;
1016
+ /**
1017
+ * The name of the resource
1018
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1019
+ */
1020
+ readonly name?: string;
1021
+ /**
1022
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
1023
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1024
+ */
1025
+ readonly type?: string;
1026
+ /**
1027
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
1028
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1029
+ */
1030
+ readonly systemData?: SystemData;
1031
+ }
1032
+
1033
+ /** Resource Id. */
1034
+ export declare interface ResourceItem {
1035
+ /**
1036
+ * The subscription Id of this resource.
1037
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1038
+ */
1039
+ readonly subscriptionId?: string;
1040
+ /**
1041
+ * The resource group name of this resource.
1042
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1043
+ */
1044
+ readonly resourceGroup?: string;
1045
+ /**
1046
+ * The resource type of this resource.
1047
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1048
+ */
1049
+ readonly resourceType?: string;
1050
+ /**
1051
+ * The resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1".
1052
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1053
+ */
1054
+ readonly resourceId?: string;
1055
+ }
1056
+
1057
+ /** Single resource Id's metadata. */
1058
+ export declare interface ResourceMetadata {
1059
+ /** Resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1". */
1060
+ resourceId: string;
1061
+ /** Resource type. */
1062
+ resourceType?: string;
1063
+ /** Resource kind. */
1064
+ resourceKind?: string;
1065
+ /** Resource name. */
1066
+ resourceName?: string;
1067
+ /** Resource's tag type. */
1068
+ tags?: {
1069
+ [propertyName: string]: string;
1070
+ };
1071
+ }
1072
+
1073
+ /**
1074
+ * Defines values for ResourceStatus. \
1075
+ * {@link KnownResourceStatus} can be used interchangeably with ResourceStatus,
1076
+ * this enum contains the known values that the service supports.
1077
+ * ### Known values supported by the service
1078
+ * **Healthy** \
1079
+ * **Unhealthy** \
1080
+ * **NotApplicable**
1081
+ */
1082
+ export declare type ResourceStatus = string;
1083
+
1084
+ /** Interface representing a Snapshot. */
1085
+ export declare interface Snapshot {
1086
+ /**
1087
+ * Get the AppComplianceAutomation snapshot and its properties.
1088
+ * @param reportName Report Name.
1089
+ * @param snapshotName Snapshot Name.
1090
+ * @param options The options parameters.
1091
+ */
1092
+ get(reportName: string, snapshotName: string, options?: SnapshotGetOptionalParams): Promise<SnapshotGetResponse>;
1093
+ /**
1094
+ * Download compliance needs from snapshot, like: Compliance Report, Resource List.
1095
+ * @param reportName Report Name.
1096
+ * @param snapshotName Snapshot Name.
1097
+ * @param parameters Parameters for the query operation
1098
+ * @param options The options parameters.
1099
+ */
1100
+ beginDownload(reportName: string, snapshotName: string, parameters: SnapshotDownloadRequest, options?: SnapshotDownloadOptionalParams): Promise<PollerLike<PollOperationState<SnapshotDownloadResponse>, SnapshotDownloadResponse>>;
1101
+ /**
1102
+ * Download compliance needs from snapshot, like: Compliance Report, Resource List.
1103
+ * @param reportName Report Name.
1104
+ * @param snapshotName Snapshot Name.
1105
+ * @param parameters Parameters for the query operation
1106
+ * @param options The options parameters.
1107
+ */
1108
+ beginDownloadAndWait(reportName: string, snapshotName: string, parameters: SnapshotDownloadRequest, options?: SnapshotDownloadOptionalParams): Promise<SnapshotDownloadResponse>;
1109
+ }
1110
+
1111
+ /** Optional parameters. */
1112
+ export declare interface SnapshotDownloadOptionalParams extends coreClient.OperationOptions {
1113
+ /** Delay to wait until next poll, in milliseconds. */
1114
+ updateIntervalInMs?: number;
1115
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1116
+ resumeFrom?: string;
1117
+ }
1118
+
1119
+ /** Snapshot's download request. */
1120
+ export declare interface SnapshotDownloadRequest {
1121
+ /** Tenant id. */
1122
+ reportCreatorTenantId?: string;
1123
+ /** Indicates the download type. */
1124
+ downloadType: DownloadType;
1125
+ /** The offerGuid which mapping to the reports. */
1126
+ offerGuid?: string;
1127
+ }
1128
+
1129
+ /** Contains response data for the download operation. */
1130
+ export declare type SnapshotDownloadResponse = DownloadResponse;
1131
+
1132
+ /** Optional parameters. */
1133
+ export declare interface SnapshotGetOptionalParams extends coreClient.OperationOptions {
1134
+ }
1135
+
1136
+ /** Contains response data for the get operation. */
1137
+ export declare type SnapshotGetResponse = SnapshotResource;
1138
+
1139
+ /** Snapshot's properties. */
1140
+ export declare interface SnapshotProperties {
1141
+ /**
1142
+ * Snapshot id in the database.
1143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1144
+ */
1145
+ readonly id?: string;
1146
+ /**
1147
+ * Snapshot name.
1148
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1149
+ */
1150
+ readonly snapshotName?: string;
1151
+ /**
1152
+ * The timestamp of resource creation (UTC).
1153
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1154
+ */
1155
+ readonly createdAt?: Date;
1156
+ /**
1157
+ * Azure lifecycle management
1158
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1159
+ */
1160
+ readonly provisioningState?: ProvisioningState;
1161
+ /**
1162
+ * The report essential info.
1163
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1164
+ */
1165
+ readonly reportProperties?: ReportProperties;
1166
+ /**
1167
+ * Metadata pertaining to creation and last modification of the resource.
1168
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1169
+ */
1170
+ readonly reportSystemData?: SystemData;
1171
+ /**
1172
+ * List of compliance results.
1173
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1174
+ */
1175
+ readonly complianceResults?: ComplianceResult[];
1176
+ }
1177
+
1178
+ /** A class represent a AppComplianceAutomation snapshot resource. */
1179
+ export declare interface SnapshotResource extends ProxyResource {
1180
+ /**
1181
+ * Snapshot's property'.
1182
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1183
+ */
1184
+ readonly properties?: SnapshotProperties;
1185
+ }
1186
+
1187
+ /** Object that includes an array of resources and a possible link for next set. */
1188
+ export declare interface SnapshotResourceList {
1189
+ /**
1190
+ * List of the snapshots
1191
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1192
+ */
1193
+ readonly value?: SnapshotResource[];
1194
+ /**
1195
+ * The URL the client should use to fetch the next page (per server side paging).
1196
+ * It's null for now, added for future use.
1197
+ */
1198
+ nextLink?: string;
1199
+ }
1200
+
1201
+ /** Interface representing a Snapshots. */
1202
+ export declare interface Snapshots {
1203
+ /**
1204
+ * Get the AppComplianceAutomation snapshot list.
1205
+ * @param reportName Report Name.
1206
+ * @param options The options parameters.
1207
+ */
1208
+ list(reportName: string, options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator<SnapshotResource>;
1209
+ }
1210
+
1211
+ /** Optional parameters. */
1212
+ export declare interface SnapshotsListNextOptionalParams extends coreClient.OperationOptions {
1213
+ /** Skip over when retrieving results. */
1214
+ skipToken?: string;
1215
+ /** Number of elements to return when retrieving results. */
1216
+ top?: number;
1217
+ /** OData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id. */
1218
+ select?: string;
1219
+ /** The offerGuid which mapping to the reports. */
1220
+ offerGuid?: string;
1221
+ /** The tenant id of the report creator. */
1222
+ reportCreatorTenantId?: string;
1223
+ }
1224
+
1225
+ /** Contains response data for the listNext operation. */
1226
+ export declare type SnapshotsListNextResponse = SnapshotResourceList;
1227
+
1228
+ /** Optional parameters. */
1229
+ export declare interface SnapshotsListOptionalParams extends coreClient.OperationOptions {
1230
+ /** Skip over when retrieving results. */
1231
+ skipToken?: string;
1232
+ /** Number of elements to return when retrieving results. */
1233
+ top?: number;
1234
+ /** OData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id. */
1235
+ select?: string;
1236
+ /** The offerGuid which mapping to the reports. */
1237
+ offerGuid?: string;
1238
+ /** The tenant id of the report creator. */
1239
+ reportCreatorTenantId?: string;
1240
+ }
1241
+
1242
+ /** Contains response data for the list operation. */
1243
+ export declare type SnapshotsListResponse = SnapshotResourceList;
1244
+
1245
+ /** Metadata pertaining to creation and last modification of the resource. */
1246
+ export declare interface SystemData {
1247
+ /** The identity that created the resource. */
1248
+ createdBy?: string;
1249
+ /** The type of identity that created the resource. */
1250
+ createdByType?: CreatedByType;
1251
+ /** The timestamp of resource creation (UTC). */
1252
+ createdAt?: Date;
1253
+ /** The identity that last modified the resource. */
1254
+ lastModifiedBy?: string;
1255
+ /** The type of identity that last modified the resource. */
1256
+ lastModifiedByType?: CreatedByType;
1257
+ /** The timestamp of resource last modification (UTC) */
1258
+ lastModifiedAt?: Date;
1259
+ }
1260
+
1261
+ export { }