google-apis-securitycenter_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 SecuritycenterV1
18
+ # Version of the google-apis-securitycenter_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201231"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,810 @@
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 SecuritycenterV1
24
+
25
+ class Asset
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AssetDiscoveryConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AuditConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AuditLogConfig
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Binding
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Finding
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Folder
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GetIamPolicyRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GetPolicyOptions
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudSecuritycenterV1NotificationMessage
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudSecuritycenterV1Resource
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudSecuritycenterV1p1beta1Finding
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleCloudSecuritycenterV1p1beta1Folder
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudSecuritycenterV1p1beta1Resource
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class GroupAssetsRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class GroupAssetsResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GroupFindingsRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class GroupFindingsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GroupResult
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class IamPolicy
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ListAssetsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class ListAssetsResult
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class ListFindingsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class ListFindingsResult
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class ListNotificationConfigsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class ListOperationsResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class ListSourcesResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class NotificationConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Operation
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class OrganizationSettings
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class Policy
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class Resource
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class RunAssetDiscoveryRequest
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class SecurityCenterProperties
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class SecurityMarks
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class SetFindingStateRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class SetIamPolicyRequest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class Source
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class Status
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class StreamingConfig
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class TestIamPermissionsRequest
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class TestIamPermissionsResponse
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class Asset
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :create_time, as: 'createTime'
323
+ property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1::IamPolicy, decorator: Google::Apis::SecuritycenterV1::IamPolicy::Representation
324
+
325
+ property :name, as: 'name'
326
+ hash :resource_properties, as: 'resourceProperties'
327
+ property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1::SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1::SecurityCenterProperties::Representation
328
+
329
+ property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1::SecurityMarks::Representation
330
+
331
+ property :update_time, as: 'updateTime'
332
+ end
333
+ end
334
+
335
+ class AssetDiscoveryConfig
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ collection :folder_ids, as: 'folderIds'
339
+ property :inclusion_mode, as: 'inclusionMode'
340
+ collection :project_ids, as: 'projectIds'
341
+ end
342
+ end
343
+
344
+ class AuditConfig
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SecuritycenterV1::AuditLogConfig, decorator: Google::Apis::SecuritycenterV1::AuditLogConfig::Representation
348
+
349
+ property :service, as: 'service'
350
+ end
351
+ end
352
+
353
+ class AuditLogConfig
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ collection :exempted_members, as: 'exemptedMembers'
357
+ property :log_type, as: 'logType'
358
+ end
359
+ end
360
+
361
+ class Binding
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :condition, as: 'condition', class: Google::Apis::SecuritycenterV1::Expr, decorator: Google::Apis::SecuritycenterV1::Expr::Representation
365
+
366
+ collection :members, as: 'members'
367
+ property :role, as: 'role'
368
+ end
369
+ end
370
+
371
+ class Empty
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ end
375
+ end
376
+
377
+ class Expr
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :description, as: 'description'
381
+ property :expression, as: 'expression'
382
+ property :location, as: 'location'
383
+ property :title, as: 'title'
384
+ end
385
+ end
386
+
387
+ class Finding
388
+ # @private
389
+ class Representation < Google::Apis::Core::JsonRepresentation
390
+ property :category, as: 'category'
391
+ property :create_time, as: 'createTime'
392
+ property :event_time, as: 'eventTime'
393
+ property :external_uri, as: 'externalUri'
394
+ property :name, as: 'name'
395
+ property :parent, as: 'parent'
396
+ property :resource_name, as: 'resourceName'
397
+ property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1::SecurityMarks::Representation
398
+
399
+ property :severity, as: 'severity'
400
+ hash :source_properties, as: 'sourceProperties'
401
+ property :state, as: 'state'
402
+ end
403
+ end
404
+
405
+ class Folder
406
+ # @private
407
+ class Representation < Google::Apis::Core::JsonRepresentation
408
+ property :resource_folder, as: 'resourceFolder'
409
+ property :resource_folder_display_name, as: 'resourceFolderDisplayName'
410
+ end
411
+ end
412
+
413
+ class GetIamPolicyRequest
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ property :options, as: 'options', class: Google::Apis::SecuritycenterV1::GetPolicyOptions, decorator: Google::Apis::SecuritycenterV1::GetPolicyOptions::Representation
417
+
418
+ end
419
+ end
420
+
421
+ class GetPolicyOptions
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ property :requested_policy_version, as: 'requestedPolicyVersion'
425
+ end
426
+ end
427
+
428
+ class GoogleCloudSecuritycenterV1NotificationMessage
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation
432
+
433
+ property :notification_config_name, as: 'notificationConfigName'
434
+ property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1Resource::Representation
435
+
436
+ end
437
+ end
438
+
439
+ class GoogleCloudSecuritycenterV1Resource
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1::Folder, decorator: Google::Apis::SecuritycenterV1::Folder::Representation
443
+
444
+ property :name, as: 'name'
445
+ property :parent, as: 'parent'
446
+ property :parent_display_name, as: 'parentDisplayName'
447
+ property :project, as: 'project'
448
+ property :project_display_name, as: 'projectDisplayName'
449
+ end
450
+ end
451
+
452
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ property :duration, as: 'duration'
456
+ property :state, as: 'state'
457
+ end
458
+ end
459
+
460
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
461
+ # @private
462
+ class Representation < Google::Apis::Core::JsonRepresentation
463
+ property :duration, as: 'duration'
464
+ property :state, as: 'state'
465
+ end
466
+ end
467
+
468
+ class GoogleCloudSecuritycenterV1p1beta1Finding
469
+ # @private
470
+ class Representation < Google::Apis::Core::JsonRepresentation
471
+ property :category, as: 'category'
472
+ property :create_time, as: 'createTime'
473
+ property :event_time, as: 'eventTime'
474
+ property :external_uri, as: 'externalUri'
475
+ property :name, as: 'name'
476
+ property :parent, as: 'parent'
477
+ property :resource_name, as: 'resourceName'
478
+ property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
479
+
480
+ property :severity, as: 'severity'
481
+ hash :source_properties, as: 'sourceProperties'
482
+ property :state, as: 'state'
483
+ end
484
+ end
485
+
486
+ class GoogleCloudSecuritycenterV1p1beta1Folder
487
+ # @private
488
+ class Representation < Google::Apis::Core::JsonRepresentation
489
+ property :resource_folder, as: 'resourceFolder'
490
+ property :resource_folder_display_name, as: 'resourceFolderDisplayName'
491
+ end
492
+ end
493
+
494
+ class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
498
+
499
+ property :notification_config_name, as: 'notificationConfigName'
500
+ property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
501
+
502
+ end
503
+ end
504
+
505
+ class GoogleCloudSecuritycenterV1p1beta1Resource
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Folder, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Folder::Representation
509
+
510
+ property :name, as: 'name'
511
+ property :parent, as: 'parent'
512
+ property :parent_display_name, as: 'parentDisplayName'
513
+ property :project, as: 'project'
514
+ property :project_display_name, as: 'projectDisplayName'
515
+ end
516
+ end
517
+
518
+ class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ property :duration, as: 'duration'
522
+ property :state, as: 'state'
523
+ end
524
+ end
525
+
526
+ class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
527
+ # @private
528
+ class Representation < Google::Apis::Core::JsonRepresentation
529
+ hash :marks, as: 'marks'
530
+ property :name, as: 'name'
531
+ end
532
+ end
533
+
534
+ class GroupAssetsRequest
535
+ # @private
536
+ class Representation < Google::Apis::Core::JsonRepresentation
537
+ property :compare_duration, as: 'compareDuration'
538
+ property :filter, as: 'filter'
539
+ property :group_by, as: 'groupBy'
540
+ property :page_size, as: 'pageSize'
541
+ property :page_token, as: 'pageToken'
542
+ property :read_time, as: 'readTime'
543
+ end
544
+ end
545
+
546
+ class GroupAssetsResponse
547
+ # @private
548
+ class Representation < Google::Apis::Core::JsonRepresentation
549
+ collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1::GroupResult, decorator: Google::Apis::SecuritycenterV1::GroupResult::Representation
550
+
551
+ property :next_page_token, as: 'nextPageToken'
552
+ property :read_time, as: 'readTime'
553
+ property :total_size, as: 'totalSize'
554
+ end
555
+ end
556
+
557
+ class GroupFindingsRequest
558
+ # @private
559
+ class Representation < Google::Apis::Core::JsonRepresentation
560
+ property :compare_duration, as: 'compareDuration'
561
+ property :filter, as: 'filter'
562
+ property :group_by, as: 'groupBy'
563
+ property :page_size, as: 'pageSize'
564
+ property :page_token, as: 'pageToken'
565
+ property :read_time, as: 'readTime'
566
+ end
567
+ end
568
+
569
+ class GroupFindingsResponse
570
+ # @private
571
+ class Representation < Google::Apis::Core::JsonRepresentation
572
+ collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1::GroupResult, decorator: Google::Apis::SecuritycenterV1::GroupResult::Representation
573
+
574
+ property :next_page_token, as: 'nextPageToken'
575
+ property :read_time, as: 'readTime'
576
+ property :total_size, as: 'totalSize'
577
+ end
578
+ end
579
+
580
+ class GroupResult
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ property :count, :numeric_string => true, as: 'count'
584
+ hash :properties, as: 'properties'
585
+ end
586
+ end
587
+
588
+ class IamPolicy
589
+ # @private
590
+ class Representation < Google::Apis::Core::JsonRepresentation
591
+ property :policy_blob, as: 'policyBlob'
592
+ end
593
+ end
594
+
595
+ class ListAssetsResponse
596
+ # @private
597
+ class Representation < Google::Apis::Core::JsonRepresentation
598
+ collection :list_assets_results, as: 'listAssetsResults', class: Google::Apis::SecuritycenterV1::ListAssetsResult, decorator: Google::Apis::SecuritycenterV1::ListAssetsResult::Representation
599
+
600
+ property :next_page_token, as: 'nextPageToken'
601
+ property :read_time, as: 'readTime'
602
+ property :total_size, as: 'totalSize'
603
+ end
604
+ end
605
+
606
+ class ListAssetsResult
607
+ # @private
608
+ class Representation < Google::Apis::Core::JsonRepresentation
609
+ property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1::Asset, decorator: Google::Apis::SecuritycenterV1::Asset::Representation
610
+
611
+ property :state_change, as: 'stateChange'
612
+ end
613
+ end
614
+
615
+ class ListFindingsResponse
616
+ # @private
617
+ class Representation < Google::Apis::Core::JsonRepresentation
618
+ collection :list_findings_results, as: 'listFindingsResults', class: Google::Apis::SecuritycenterV1::ListFindingsResult, decorator: Google::Apis::SecuritycenterV1::ListFindingsResult::Representation
619
+
620
+ property :next_page_token, as: 'nextPageToken'
621
+ property :read_time, as: 'readTime'
622
+ property :total_size, as: 'totalSize'
623
+ end
624
+ end
625
+
626
+ class ListFindingsResult
627
+ # @private
628
+ class Representation < Google::Apis::Core::JsonRepresentation
629
+ property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation
630
+
631
+ property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::Resource, decorator: Google::Apis::SecuritycenterV1::Resource::Representation
632
+
633
+ property :state_change, as: 'stateChange'
634
+ end
635
+ end
636
+
637
+ class ListNotificationConfigsResponse
638
+ # @private
639
+ class Representation < Google::Apis::Core::JsonRepresentation
640
+ property :next_page_token, as: 'nextPageToken'
641
+ collection :notification_configs, as: 'notificationConfigs', class: Google::Apis::SecuritycenterV1::NotificationConfig, decorator: Google::Apis::SecuritycenterV1::NotificationConfig::Representation
642
+
643
+ end
644
+ end
645
+
646
+ class ListOperationsResponse
647
+ # @private
648
+ class Representation < Google::Apis::Core::JsonRepresentation
649
+ property :next_page_token, as: 'nextPageToken'
650
+ collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1::Operation, decorator: Google::Apis::SecuritycenterV1::Operation::Representation
651
+
652
+ end
653
+ end
654
+
655
+ class ListSourcesResponse
656
+ # @private
657
+ class Representation < Google::Apis::Core::JsonRepresentation
658
+ property :next_page_token, as: 'nextPageToken'
659
+ collection :sources, as: 'sources', class: Google::Apis::SecuritycenterV1::Source, decorator: Google::Apis::SecuritycenterV1::Source::Representation
660
+
661
+ end
662
+ end
663
+
664
+ class NotificationConfig
665
+ # @private
666
+ class Representation < Google::Apis::Core::JsonRepresentation
667
+ property :description, as: 'description'
668
+ property :name, as: 'name'
669
+ property :pubsub_topic, as: 'pubsubTopic'
670
+ property :service_account, as: 'serviceAccount'
671
+ property :streaming_config, as: 'streamingConfig', class: Google::Apis::SecuritycenterV1::StreamingConfig, decorator: Google::Apis::SecuritycenterV1::StreamingConfig::Representation
672
+
673
+ end
674
+ end
675
+
676
+ class Operation
677
+ # @private
678
+ class Representation < Google::Apis::Core::JsonRepresentation
679
+ property :done, as: 'done'
680
+ property :error, as: 'error', class: Google::Apis::SecuritycenterV1::Status, decorator: Google::Apis::SecuritycenterV1::Status::Representation
681
+
682
+ hash :metadata, as: 'metadata'
683
+ property :name, as: 'name'
684
+ hash :response, as: 'response'
685
+ end
686
+ end
687
+
688
+ class OrganizationSettings
689
+ # @private
690
+ class Representation < Google::Apis::Core::JsonRepresentation
691
+ property :asset_discovery_config, as: 'assetDiscoveryConfig', class: Google::Apis::SecuritycenterV1::AssetDiscoveryConfig, decorator: Google::Apis::SecuritycenterV1::AssetDiscoveryConfig::Representation
692
+
693
+ property :enable_asset_discovery, as: 'enableAssetDiscovery'
694
+ property :name, as: 'name'
695
+ end
696
+ end
697
+
698
+ class Policy
699
+ # @private
700
+ class Representation < Google::Apis::Core::JsonRepresentation
701
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SecuritycenterV1::AuditConfig, decorator: Google::Apis::SecuritycenterV1::AuditConfig::Representation
702
+
703
+ collection :bindings, as: 'bindings', class: Google::Apis::SecuritycenterV1::Binding, decorator: Google::Apis::SecuritycenterV1::Binding::Representation
704
+
705
+ property :etag, :base64 => true, as: 'etag'
706
+ property :version, as: 'version'
707
+ end
708
+ end
709
+
710
+ class Resource
711
+ # @private
712
+ class Representation < Google::Apis::Core::JsonRepresentation
713
+ collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1::Folder, decorator: Google::Apis::SecuritycenterV1::Folder::Representation
714
+
715
+ property :name, as: 'name'
716
+ property :parent_display_name, as: 'parentDisplayName'
717
+ property :parent_name, as: 'parentName'
718
+ property :project_display_name, as: 'projectDisplayName'
719
+ property :project_name, as: 'projectName'
720
+ end
721
+ end
722
+
723
+ class RunAssetDiscoveryRequest
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ end
727
+ end
728
+
729
+ class SecurityCenterProperties
730
+ # @private
731
+ class Representation < Google::Apis::Core::JsonRepresentation
732
+ collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1::Folder, decorator: Google::Apis::SecuritycenterV1::Folder::Representation
733
+
734
+ property :resource_display_name, as: 'resourceDisplayName'
735
+ property :resource_name, as: 'resourceName'
736
+ collection :resource_owners, as: 'resourceOwners'
737
+ property :resource_parent, as: 'resourceParent'
738
+ property :resource_parent_display_name, as: 'resourceParentDisplayName'
739
+ property :resource_project, as: 'resourceProject'
740
+ property :resource_project_display_name, as: 'resourceProjectDisplayName'
741
+ property :resource_type, as: 'resourceType'
742
+ end
743
+ end
744
+
745
+ class SecurityMarks
746
+ # @private
747
+ class Representation < Google::Apis::Core::JsonRepresentation
748
+ hash :marks, as: 'marks'
749
+ property :name, as: 'name'
750
+ end
751
+ end
752
+
753
+ class SetFindingStateRequest
754
+ # @private
755
+ class Representation < Google::Apis::Core::JsonRepresentation
756
+ property :start_time, as: 'startTime'
757
+ property :state, as: 'state'
758
+ end
759
+ end
760
+
761
+ class SetIamPolicyRequest
762
+ # @private
763
+ class Representation < Google::Apis::Core::JsonRepresentation
764
+ property :policy, as: 'policy', class: Google::Apis::SecuritycenterV1::Policy, decorator: Google::Apis::SecuritycenterV1::Policy::Representation
765
+
766
+ property :update_mask, as: 'updateMask'
767
+ end
768
+ end
769
+
770
+ class Source
771
+ # @private
772
+ class Representation < Google::Apis::Core::JsonRepresentation
773
+ property :description, as: 'description'
774
+ property :display_name, as: 'displayName'
775
+ property :name, as: 'name'
776
+ end
777
+ end
778
+
779
+ class Status
780
+ # @private
781
+ class Representation < Google::Apis::Core::JsonRepresentation
782
+ property :code, as: 'code'
783
+ collection :details, as: 'details'
784
+ property :message, as: 'message'
785
+ end
786
+ end
787
+
788
+ class StreamingConfig
789
+ # @private
790
+ class Representation < Google::Apis::Core::JsonRepresentation
791
+ property :filter, as: 'filter'
792
+ end
793
+ end
794
+
795
+ class TestIamPermissionsRequest
796
+ # @private
797
+ class Representation < Google::Apis::Core::JsonRepresentation
798
+ collection :permissions, as: 'permissions'
799
+ end
800
+ end
801
+
802
+ class TestIamPermissionsResponse
803
+ # @private
804
+ class Representation < Google::Apis::Core::JsonRepresentation
805
+ collection :permissions, as: 'permissions'
806
+ end
807
+ end
808
+ end
809
+ end
810
+ end