google-apis-securitycenter_v1beta1 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.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-securitycenter_v1beta1.rb +15 -0
- data/lib/google/apis/securitycenter_v1beta1.rb +37 -0
- data/lib/google/apis/securitycenter_v1beta1/classes.rb +1942 -0
- data/lib/google/apis/securitycenter_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/securitycenter_v1beta1/representations.rb +753 -0
- data/lib/google/apis/securitycenter_v1beta1/service.rb +998 -0
- metadata +76 -0
@@ -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 SecuritycenterV1beta1
|
18
|
+
# Version of the google-apis-securitycenter_v1beta1 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,753 @@
|
|
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 SecuritycenterV1beta1
|
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 CancelOperationRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Empty
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Expr
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Finding
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class Folder
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GetIamPolicyRequest
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GetPolicyOptions
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GoogleCloudSecuritycenterV1Resource
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleCloudSecuritycenterV1beta1Finding
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class GoogleCloudSecuritycenterV1beta1SecurityMarks
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class GoogleCloudSecuritycenterV1p1beta1Finding
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class GoogleCloudSecuritycenterV1p1beta1Folder
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class GoogleCloudSecuritycenterV1p1beta1Resource
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class GroupAssetsRequest
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class GroupAssetsResponse
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class GroupFindingsRequest
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class GroupFindingsResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class GroupResult
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class ListAssetsResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class ListAssetsResult
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class ListFindingsResponse
|
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 Operation
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class OrganizationSettings
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class Policy
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
247
|
+
class RunAssetDiscoveryRequest
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class SecurityCenterProperties
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class SecurityMarks
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class SetFindingStateRequest
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class SetIamPolicyRequest
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class Source
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
283
|
+
class Status
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class TestIamPermissionsRequest
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class TestIamPermissionsResponse
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
301
|
+
class Asset
|
302
|
+
# @private
|
303
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
+
property :create_time, as: 'createTime'
|
305
|
+
property :name, as: 'name'
|
306
|
+
hash :resource_properties, as: 'resourceProperties'
|
307
|
+
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1beta1::SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1beta1::SecurityCenterProperties::Representation
|
308
|
+
|
309
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks::Representation
|
310
|
+
|
311
|
+
property :update_time, as: 'updateTime'
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
class AssetDiscoveryConfig
|
316
|
+
# @private
|
317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
+
property :inclusion_mode, as: 'inclusionMode'
|
319
|
+
collection :project_ids, as: 'projectIds'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class AuditConfig
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SecuritycenterV1beta1::AuditLogConfig, decorator: Google::Apis::SecuritycenterV1beta1::AuditLogConfig::Representation
|
327
|
+
|
328
|
+
property :service, as: 'service'
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
class AuditLogConfig
|
333
|
+
# @private
|
334
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
335
|
+
collection :exempted_members, as: 'exemptedMembers'
|
336
|
+
property :log_type, as: 'logType'
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
class Binding
|
341
|
+
# @private
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :condition, as: 'condition', class: Google::Apis::SecuritycenterV1beta1::Expr, decorator: Google::Apis::SecuritycenterV1beta1::Expr::Representation
|
344
|
+
|
345
|
+
collection :members, as: 'members'
|
346
|
+
property :role, as: 'role'
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class CancelOperationRequest
|
351
|
+
# @private
|
352
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
class Empty
|
357
|
+
# @private
|
358
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
class Expr
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
property :description, as: 'description'
|
366
|
+
property :expression, as: 'expression'
|
367
|
+
property :location, as: 'location'
|
368
|
+
property :title, as: 'title'
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
class Finding
|
373
|
+
# @private
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
375
|
+
property :category, as: 'category'
|
376
|
+
property :create_time, as: 'createTime'
|
377
|
+
property :event_time, as: 'eventTime'
|
378
|
+
property :external_uri, as: 'externalUri'
|
379
|
+
property :name, as: 'name'
|
380
|
+
property :parent, as: 'parent'
|
381
|
+
property :resource_name, as: 'resourceName'
|
382
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::SecurityMarks::Representation
|
383
|
+
|
384
|
+
property :severity, as: 'severity'
|
385
|
+
hash :source_properties, as: 'sourceProperties'
|
386
|
+
property :state, as: 'state'
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
390
|
+
class Folder
|
391
|
+
# @private
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
393
|
+
property :resource_folder, as: 'resourceFolder'
|
394
|
+
property :resource_folder_display_name, as: 'resourceFolderDisplayName'
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
class GetIamPolicyRequest
|
399
|
+
# @private
|
400
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
401
|
+
property :options, as: 'options', class: Google::Apis::SecuritycenterV1beta1::GetPolicyOptions, decorator: Google::Apis::SecuritycenterV1beta1::GetPolicyOptions::Representation
|
402
|
+
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class GetPolicyOptions
|
407
|
+
# @private
|
408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
409
|
+
property :requested_policy_version, as: 'requestedPolicyVersion'
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta1::Finding, decorator: Google::Apis::SecuritycenterV1beta1::Finding::Representation
|
417
|
+
|
418
|
+
property :notification_config_name, as: 'notificationConfigName'
|
419
|
+
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1Resource::Representation
|
420
|
+
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
class GoogleCloudSecuritycenterV1Resource
|
425
|
+
# @private
|
426
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
427
|
+
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta1::Folder, decorator: Google::Apis::SecuritycenterV1beta1::Folder::Representation
|
428
|
+
|
429
|
+
property :name, as: 'name'
|
430
|
+
property :parent, as: 'parent'
|
431
|
+
property :parent_display_name, as: 'parentDisplayName'
|
432
|
+
property :project, as: 'project'
|
433
|
+
property :project_display_name, as: 'projectDisplayName'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
438
|
+
# @private
|
439
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
440
|
+
property :duration, as: 'duration'
|
441
|
+
property :state, as: 'state'
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
class GoogleCloudSecuritycenterV1beta1Finding
|
446
|
+
# @private
|
447
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
448
|
+
property :category, as: 'category'
|
449
|
+
property :create_time, as: 'createTime'
|
450
|
+
property :event_time, as: 'eventTime'
|
451
|
+
property :external_uri, as: 'externalUri'
|
452
|
+
property :name, as: 'name'
|
453
|
+
property :parent, as: 'parent'
|
454
|
+
property :resource_name, as: 'resourceName'
|
455
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks::Representation
|
456
|
+
|
457
|
+
hash :source_properties, as: 'sourceProperties'
|
458
|
+
property :state, as: 'state'
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
|
463
|
+
# @private
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
465
|
+
property :duration, as: 'duration'
|
466
|
+
property :state, as: 'state'
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
class GoogleCloudSecuritycenterV1beta1SecurityMarks
|
471
|
+
# @private
|
472
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
473
|
+
hash :marks, as: 'marks'
|
474
|
+
property :name, as: 'name'
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
478
|
+
class GoogleCloudSecuritycenterV1p1beta1Finding
|
479
|
+
# @private
|
480
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
481
|
+
property :category, as: 'category'
|
482
|
+
property :create_time, as: 'createTime'
|
483
|
+
property :event_time, as: 'eventTime'
|
484
|
+
property :external_uri, as: 'externalUri'
|
485
|
+
property :name, as: 'name'
|
486
|
+
property :parent, as: 'parent'
|
487
|
+
property :resource_name, as: 'resourceName'
|
488
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
|
489
|
+
|
490
|
+
property :severity, as: 'severity'
|
491
|
+
hash :source_properties, as: 'sourceProperties'
|
492
|
+
property :state, as: 'state'
|
493
|
+
end
|
494
|
+
end
|
495
|
+
|
496
|
+
class GoogleCloudSecuritycenterV1p1beta1Folder
|
497
|
+
# @private
|
498
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
499
|
+
property :resource_folder, as: 'resourceFolder'
|
500
|
+
property :resource_folder_display_name, as: 'resourceFolderDisplayName'
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
|
505
|
+
# @private
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
507
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
|
508
|
+
|
509
|
+
property :notification_config_name, as: 'notificationConfigName'
|
510
|
+
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation
|
511
|
+
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|
515
|
+
class GoogleCloudSecuritycenterV1p1beta1Resource
|
516
|
+
# @private
|
517
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
518
|
+
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Folder, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Folder::Representation
|
519
|
+
|
520
|
+
property :name, as: 'name'
|
521
|
+
property :parent, as: 'parent'
|
522
|
+
property :parent_display_name, as: 'parentDisplayName'
|
523
|
+
property :project, as: 'project'
|
524
|
+
property :project_display_name, as: 'projectDisplayName'
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
|
529
|
+
# @private
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
531
|
+
property :duration, as: 'duration'
|
532
|
+
property :state, as: 'state'
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
|
537
|
+
# @private
|
538
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
539
|
+
hash :marks, as: 'marks'
|
540
|
+
property :name, as: 'name'
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
544
|
+
class GroupAssetsRequest
|
545
|
+
# @private
|
546
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
547
|
+
property :compare_duration, as: 'compareDuration'
|
548
|
+
property :filter, as: 'filter'
|
549
|
+
property :group_by, as: 'groupBy'
|
550
|
+
property :page_size, as: 'pageSize'
|
551
|
+
property :page_token, as: 'pageToken'
|
552
|
+
property :read_time, as: 'readTime'
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
class GroupAssetsResponse
|
557
|
+
# @private
|
558
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
559
|
+
collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1beta1::GroupResult, decorator: Google::Apis::SecuritycenterV1beta1::GroupResult::Representation
|
560
|
+
|
561
|
+
property :next_page_token, as: 'nextPageToken'
|
562
|
+
property :read_time, as: 'readTime'
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
class GroupFindingsRequest
|
567
|
+
# @private
|
568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
569
|
+
property :filter, as: 'filter'
|
570
|
+
property :group_by, as: 'groupBy'
|
571
|
+
property :page_size, as: 'pageSize'
|
572
|
+
property :page_token, as: 'pageToken'
|
573
|
+
property :read_time, as: 'readTime'
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
class GroupFindingsResponse
|
578
|
+
# @private
|
579
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
580
|
+
collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1beta1::GroupResult, decorator: Google::Apis::SecuritycenterV1beta1::GroupResult::Representation
|
581
|
+
|
582
|
+
property :next_page_token, as: 'nextPageToken'
|
583
|
+
property :read_time, as: 'readTime'
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
587
|
+
class GroupResult
|
588
|
+
# @private
|
589
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
590
|
+
property :count, :numeric_string => true, as: 'count'
|
591
|
+
hash :properties, as: 'properties'
|
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::SecuritycenterV1beta1::ListAssetsResult, decorator: Google::Apis::SecuritycenterV1beta1::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::SecuritycenterV1beta1::Asset, decorator: Google::Apis::SecuritycenterV1beta1::Asset::Representation
|
610
|
+
|
611
|
+
property :state, as: 'state'
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
class ListFindingsResponse
|
616
|
+
# @private
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
618
|
+
collection :findings, as: 'findings', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1Finding::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 ListOperationsResponse
|
627
|
+
# @private
|
628
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
629
|
+
property :next_page_token, as: 'nextPageToken'
|
630
|
+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta1::Operation, decorator: Google::Apis::SecuritycenterV1beta1::Operation::Representation
|
631
|
+
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
class ListSourcesResponse
|
636
|
+
# @private
|
637
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
638
|
+
property :next_page_token, as: 'nextPageToken'
|
639
|
+
collection :sources, as: 'sources', class: Google::Apis::SecuritycenterV1beta1::Source, decorator: Google::Apis::SecuritycenterV1beta1::Source::Representation
|
640
|
+
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
class Operation
|
645
|
+
# @private
|
646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
647
|
+
property :done, as: 'done'
|
648
|
+
property :error, as: 'error', class: Google::Apis::SecuritycenterV1beta1::Status, decorator: Google::Apis::SecuritycenterV1beta1::Status::Representation
|
649
|
+
|
650
|
+
hash :metadata, as: 'metadata'
|
651
|
+
property :name, as: 'name'
|
652
|
+
hash :response, as: 'response'
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
class OrganizationSettings
|
657
|
+
# @private
|
658
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
659
|
+
property :asset_discovery_config, as: 'assetDiscoveryConfig', class: Google::Apis::SecuritycenterV1beta1::AssetDiscoveryConfig, decorator: Google::Apis::SecuritycenterV1beta1::AssetDiscoveryConfig::Representation
|
660
|
+
|
661
|
+
property :enable_asset_discovery, as: 'enableAssetDiscovery'
|
662
|
+
property :name, as: 'name'
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
666
|
+
class Policy
|
667
|
+
# @private
|
668
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
669
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SecuritycenterV1beta1::AuditConfig, decorator: Google::Apis::SecuritycenterV1beta1::AuditConfig::Representation
|
670
|
+
|
671
|
+
collection :bindings, as: 'bindings', class: Google::Apis::SecuritycenterV1beta1::Binding, decorator: Google::Apis::SecuritycenterV1beta1::Binding::Representation
|
672
|
+
|
673
|
+
property :etag, :base64 => true, as: 'etag'
|
674
|
+
property :version, as: 'version'
|
675
|
+
end
|
676
|
+
end
|
677
|
+
|
678
|
+
class RunAssetDiscoveryRequest
|
679
|
+
# @private
|
680
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
681
|
+
end
|
682
|
+
end
|
683
|
+
|
684
|
+
class SecurityCenterProperties
|
685
|
+
# @private
|
686
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
687
|
+
property :resource_name, as: 'resourceName'
|
688
|
+
collection :resource_owners, as: 'resourceOwners'
|
689
|
+
property :resource_parent, as: 'resourceParent'
|
690
|
+
property :resource_project, as: 'resourceProject'
|
691
|
+
property :resource_type, as: 'resourceType'
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
695
|
+
class SecurityMarks
|
696
|
+
# @private
|
697
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
698
|
+
hash :marks, as: 'marks'
|
699
|
+
property :name, as: 'name'
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
703
|
+
class SetFindingStateRequest
|
704
|
+
# @private
|
705
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
706
|
+
property :start_time, as: 'startTime'
|
707
|
+
property :state, as: 'state'
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
class SetIamPolicyRequest
|
712
|
+
# @private
|
713
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
714
|
+
property :policy, as: 'policy', class: Google::Apis::SecuritycenterV1beta1::Policy, decorator: Google::Apis::SecuritycenterV1beta1::Policy::Representation
|
715
|
+
|
716
|
+
property :update_mask, as: 'updateMask'
|
717
|
+
end
|
718
|
+
end
|
719
|
+
|
720
|
+
class Source
|
721
|
+
# @private
|
722
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
723
|
+
property :description, as: 'description'
|
724
|
+
property :display_name, as: 'displayName'
|
725
|
+
property :name, as: 'name'
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
729
|
+
class Status
|
730
|
+
# @private
|
731
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
732
|
+
property :code, as: 'code'
|
733
|
+
collection :details, as: 'details'
|
734
|
+
property :message, as: 'message'
|
735
|
+
end
|
736
|
+
end
|
737
|
+
|
738
|
+
class TestIamPermissionsRequest
|
739
|
+
# @private
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
741
|
+
collection :permissions, as: 'permissions'
|
742
|
+
end
|
743
|
+
end
|
744
|
+
|
745
|
+
class TestIamPermissionsResponse
|
746
|
+
# @private
|
747
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
748
|
+
collection :permissions, as: 'permissions'
|
749
|
+
end
|
750
|
+
end
|
751
|
+
end
|
752
|
+
end
|
753
|
+
end
|