google-apis-auditmanager_v1 0.1.0

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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module AuditmanagerV1
18
+ # Version of the google-apis-auditmanager_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.19.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20260908"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,489 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AuditmanagerV1
24
+
25
+ class AuditReport
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditSchedule
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AuditScopeReport
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelOperationRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Control
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ControlDetails
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ControlFamily
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DestinationDetails
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class EligibleDestination
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Empty
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class EnrollResourceRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Enrollment
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GenerateAuditReportRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GenerateAuditScopeReportRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListAuditReportsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListAuditSchedulesResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListControlsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListLocationsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListOperationsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListResourceEnrollmentStatusesResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Location
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Operation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class OperationMetadata
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ReportGenerationProgress
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ReportSummary
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ResourceEnrollmentStatus
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ScheduleConfig
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Status
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class AuditReport
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :compliance_framework, as: 'complianceFramework'
197
+ property :compliance_standard, as: 'complianceStandard'
198
+ collection :control_details, as: 'controlDetails', class: Google::Apis::AuditmanagerV1::ControlDetails, decorator: Google::Apis::AuditmanagerV1::ControlDetails::Representation
199
+
200
+ property :create_time, as: 'createTime'
201
+ property :destination_details, as: 'destinationDetails', class: Google::Apis::AuditmanagerV1::DestinationDetails, decorator: Google::Apis::AuditmanagerV1::DestinationDetails::Representation
202
+
203
+ property :name, as: 'name'
204
+ property :operation_id, as: 'operationId'
205
+ property :report_generation_state, as: 'reportGenerationState'
206
+ property :report_summary, as: 'reportSummary', class: Google::Apis::AuditmanagerV1::ReportSummary, decorator: Google::Apis::AuditmanagerV1::ReportSummary::Representation
207
+
208
+ property :scope, as: 'scope'
209
+ property :scope_id, as: 'scopeId'
210
+ end
211
+ end
212
+
213
+ class AuditSchedule
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :compliance_framework, as: 'complianceFramework'
217
+ property :create_time, as: 'createTime'
218
+ property :display_name, as: 'displayName'
219
+ property :error_message, as: 'errorMessage'
220
+ property :gcs_uri, as: 'gcsUri'
221
+ property :last_trigger_time, as: 'lastTriggerTime'
222
+ property :name, as: 'name'
223
+ property :next_run_time, as: 'nextRunTime'
224
+ property :report_format, as: 'reportFormat'
225
+ property :schedule_config, as: 'scheduleConfig', class: Google::Apis::AuditmanagerV1::ScheduleConfig, decorator: Google::Apis::AuditmanagerV1::ScheduleConfig::Representation
226
+
227
+ property :state, as: 'state'
228
+ property :update_time, as: 'updateTime'
229
+ end
230
+ end
231
+
232
+ class AuditScopeReport
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :name, as: 'name'
236
+ property :scope_report_contents, :base64 => true, as: 'scopeReportContents'
237
+ end
238
+ end
239
+
240
+ class CancelOperationRequest
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ end
244
+ end
245
+
246
+ class Control
247
+ # @private
248
+ class Representation < Google::Apis::Core::JsonRepresentation
249
+ property :control_family, as: 'controlFamily', class: Google::Apis::AuditmanagerV1::ControlFamily, decorator: Google::Apis::AuditmanagerV1::ControlFamily::Representation
250
+
251
+ property :customer_responsibility_description, as: 'customerResponsibilityDescription'
252
+ property :customer_responsibility_implementation, as: 'customerResponsibilityImplementation'
253
+ property :description, as: 'description'
254
+ property :display_name, as: 'displayName'
255
+ property :family, as: 'family'
256
+ property :google_responsibility_description, as: 'googleResponsibilityDescription'
257
+ property :google_responsibility_implementation, as: 'googleResponsibilityImplementation'
258
+ property :id, as: 'id'
259
+ property :responsibility_type, as: 'responsibilityType'
260
+ end
261
+ end
262
+
263
+ class ControlDetails
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :compliance_state, as: 'complianceState'
267
+ property :control, as: 'control', class: Google::Apis::AuditmanagerV1::Control, decorator: Google::Apis::AuditmanagerV1::Control::Representation
268
+
269
+ property :control_report_summary, as: 'controlReportSummary', class: Google::Apis::AuditmanagerV1::ReportSummary, decorator: Google::Apis::AuditmanagerV1::ReportSummary::Representation
270
+
271
+ end
272
+ end
273
+
274
+ class ControlFamily
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :display_name, as: 'displayName'
278
+ property :family_id, as: 'familyId'
279
+ end
280
+ end
281
+
282
+ class DestinationDetails
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :gcs_bucket_uri, as: 'gcsBucketUri'
286
+ end
287
+ end
288
+
289
+ class EligibleDestination
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :eligible_gcs_bucket, as: 'eligibleGcsBucket'
293
+ end
294
+ end
295
+
296
+ class Empty
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ end
300
+ end
301
+
302
+ class EnrollResourceRequest
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ collection :destinations, as: 'destinations', class: Google::Apis::AuditmanagerV1::EligibleDestination, decorator: Google::Apis::AuditmanagerV1::EligibleDestination::Representation
306
+
307
+ property :validate_only, as: 'validateOnly'
308
+ end
309
+ end
310
+
311
+ class Enrollment
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ collection :destination_details, as: 'destinationDetails', class: Google::Apis::AuditmanagerV1::DestinationDetails, decorator: Google::Apis::AuditmanagerV1::DestinationDetails::Representation
315
+
316
+ property :name, as: 'name'
317
+ end
318
+ end
319
+
320
+ class GenerateAuditReportRequest
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :compliance_framework, as: 'complianceFramework'
324
+ property :compliance_standard, as: 'complianceStandard'
325
+ property :gcs_uri, as: 'gcsUri'
326
+ property :report_format, as: 'reportFormat'
327
+ property :validate_only, as: 'validateOnly'
328
+ end
329
+ end
330
+
331
+ class GenerateAuditScopeReportRequest
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :compliance_framework, as: 'complianceFramework'
335
+ property :compliance_standard, as: 'complianceStandard'
336
+ property :report_format, as: 'reportFormat'
337
+ property :validate_only, as: 'validateOnly'
338
+ end
339
+ end
340
+
341
+ class ListAuditReportsResponse
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ collection :audit_reports, as: 'auditReports', class: Google::Apis::AuditmanagerV1::AuditReport, decorator: Google::Apis::AuditmanagerV1::AuditReport::Representation
345
+
346
+ property :next_page_token, as: 'nextPageToken'
347
+ end
348
+ end
349
+
350
+ class ListAuditSchedulesResponse
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ collection :audit_schedules, as: 'auditSchedules', class: Google::Apis::AuditmanagerV1::AuditSchedule, decorator: Google::Apis::AuditmanagerV1::AuditSchedule::Representation
354
+
355
+ property :next_page_token, as: 'nextPageToken'
356
+ collection :unreachable, as: 'unreachable'
357
+ end
358
+ end
359
+
360
+ class ListControlsResponse
361
+ # @private
362
+ class Representation < Google::Apis::Core::JsonRepresentation
363
+ collection :controls, as: 'controls', class: Google::Apis::AuditmanagerV1::Control, decorator: Google::Apis::AuditmanagerV1::Control::Representation
364
+
365
+ property :next_page_token, as: 'nextPageToken'
366
+ end
367
+ end
368
+
369
+ class ListLocationsResponse
370
+ # @private
371
+ class Representation < Google::Apis::Core::JsonRepresentation
372
+ collection :locations, as: 'locations', class: Google::Apis::AuditmanagerV1::Location, decorator: Google::Apis::AuditmanagerV1::Location::Representation
373
+
374
+ property :next_page_token, as: 'nextPageToken'
375
+ end
376
+ end
377
+
378
+ class ListOperationsResponse
379
+ # @private
380
+ class Representation < Google::Apis::Core::JsonRepresentation
381
+ property :next_page_token, as: 'nextPageToken'
382
+ collection :operations, as: 'operations', class: Google::Apis::AuditmanagerV1::Operation, decorator: Google::Apis::AuditmanagerV1::Operation::Representation
383
+
384
+ collection :unreachable, as: 'unreachable'
385
+ end
386
+ end
387
+
388
+ class ListResourceEnrollmentStatusesResponse
389
+ # @private
390
+ class Representation < Google::Apis::Core::JsonRepresentation
391
+ property :next_page_token, as: 'nextPageToken'
392
+ collection :resource_enrollment_statuses, as: 'resourceEnrollmentStatuses', class: Google::Apis::AuditmanagerV1::ResourceEnrollmentStatus, decorator: Google::Apis::AuditmanagerV1::ResourceEnrollmentStatus::Representation
393
+
394
+ end
395
+ end
396
+
397
+ class Location
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :display_name, as: 'displayName'
401
+ hash :labels, as: 'labels'
402
+ property :location_id, as: 'locationId'
403
+ hash :metadata, as: 'metadata'
404
+ property :name, as: 'name'
405
+ end
406
+ end
407
+
408
+ class Operation
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :done, as: 'done'
412
+ property :error, as: 'error', class: Google::Apis::AuditmanagerV1::Status, decorator: Google::Apis::AuditmanagerV1::Status::Representation
413
+
414
+ hash :metadata, as: 'metadata'
415
+ property :name, as: 'name'
416
+ hash :response, as: 'response'
417
+ end
418
+ end
419
+
420
+ class OperationMetadata
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ property :api_version, as: 'apiVersion'
424
+ property :create_time, as: 'createTime'
425
+ property :end_time, as: 'endTime'
426
+ property :requested_cancellation, as: 'requestedCancellation'
427
+ property :status_message, as: 'statusMessage'
428
+ property :target, as: 'target'
429
+ property :verb, as: 'verb'
430
+ end
431
+ end
432
+
433
+ class ReportGenerationProgress
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :audit_report, as: 'auditReport'
437
+ property :destination_gcs_bucket, as: 'destinationGcsBucket'
438
+ property :evaluation_percent_complete, as: 'evaluationPercentComplete'
439
+ property :failure_reason, as: 'failureReason'
440
+ property :report_generation_percent_complete, as: 'reportGenerationPercentComplete'
441
+ property :report_uploading_percent_complete, as: 'reportUploadingPercentComplete'
442
+ property :state, as: 'state'
443
+ end
444
+ end
445
+
446
+ class ReportSummary
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ property :compliant_count, as: 'compliantCount'
450
+ property :error_count, as: 'errorCount'
451
+ property :manual_review_needed_count, as: 'manualReviewNeededCount'
452
+ property :total_count, as: 'totalCount'
453
+ property :violation_count, as: 'violationCount'
454
+ end
455
+ end
456
+
457
+ class ResourceEnrollmentStatus
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ property :display_name, as: 'displayName'
461
+ property :enrolled, as: 'enrolled'
462
+ property :enrollment, as: 'enrollment', class: Google::Apis::AuditmanagerV1::Enrollment, decorator: Google::Apis::AuditmanagerV1::Enrollment::Representation
463
+
464
+ property :enrollment_state, as: 'enrollmentState'
465
+ property :name, as: 'name'
466
+ end
467
+ end
468
+
469
+ class ScheduleConfig
470
+ # @private
471
+ class Representation < Google::Apis::Core::JsonRepresentation
472
+ property :end_time, as: 'endTime'
473
+ property :frequency, as: 'frequency'
474
+ property :start_time, as: 'startTime'
475
+ property :time_zone, as: 'timeZone'
476
+ end
477
+ end
478
+
479
+ class Status
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :code, as: 'code'
483
+ collection :details, as: 'details'
484
+ property :message, as: 'message'
485
+ end
486
+ end
487
+ end
488
+ end
489
+ end