google-apis-securityposture_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/securityposture_v1/classes.rb +1737 -0
- data/lib/google/apis/securityposture_v1/gem_version.rb +28 -0
- data/lib/google/apis/securityposture_v1/representations.rb +718 -0
- data/lib/google/apis/securityposture_v1/service.rb +952 -0
- data/lib/google/apis/securityposture_v1.rb +39 -0
- data/lib/google-apis-securityposture_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,718 @@
|
|
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 SecuritypostureV1
|
24
|
+
|
25
|
+
class AssetDetails
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class CancelOperationRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ComplianceStandard
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Constraint
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class CreateIaCValidationReportRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class CustomConfig
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class CustomOutputSpec
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Empty
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Expr
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ExtractPostureRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleCloudSecuritypostureV1CustomConstraint
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleCloudSecuritypostureV1PolicyRule
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleCloudSecuritypostureV1PolicyRuleStringValues
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class IaC
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class IaCValidationReport
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class ListLocationsResponse
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ListOperationsResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ListPostureDeploymentsResponse
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class ListPostureRevisionsResponse
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class ListPostureTemplatesResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class ListPosturesResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class ListReportsResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class Location
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class Operation
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class OperationMetadata
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class OrgPolicyConstraint
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class OrgPolicyConstraintCustom
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class Policy
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class PolicyDetails
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class PolicySet
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class Posture
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class PostureDeployment
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class PostureDetails
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class PostureTemplate
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class Property
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class Report
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class ResourceSelector
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
247
|
+
class ResourceTypes
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class SecurityHealthAnalyticsCustomModule
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class SecurityHealthAnalyticsModule
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class Status
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class Violation
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class AssetDetails
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
property :asset, as: 'asset'
|
281
|
+
property :asset_type, as: 'assetType'
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
class CancelOperationRequest
|
286
|
+
# @private
|
287
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
class ComplianceStandard
|
292
|
+
# @private
|
293
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
+
property :control, as: 'control'
|
295
|
+
property :standard, as: 'standard'
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
class Constraint
|
300
|
+
# @private
|
301
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
+
property :org_policy_constraint, as: 'orgPolicyConstraint', class: Google::Apis::SecuritypostureV1::OrgPolicyConstraint, decorator: Google::Apis::SecuritypostureV1::OrgPolicyConstraint::Representation
|
303
|
+
|
304
|
+
property :org_policy_constraint_custom, as: 'orgPolicyConstraintCustom', class: Google::Apis::SecuritypostureV1::OrgPolicyConstraintCustom, decorator: Google::Apis::SecuritypostureV1::OrgPolicyConstraintCustom::Representation
|
305
|
+
|
306
|
+
property :security_health_analytics_custom_module, as: 'securityHealthAnalyticsCustomModule', class: Google::Apis::SecuritypostureV1::SecurityHealthAnalyticsCustomModule, decorator: Google::Apis::SecuritypostureV1::SecurityHealthAnalyticsCustomModule::Representation
|
307
|
+
|
308
|
+
property :security_health_analytics_module, as: 'securityHealthAnalyticsModule', class: Google::Apis::SecuritypostureV1::SecurityHealthAnalyticsModule, decorator: Google::Apis::SecuritypostureV1::SecurityHealthAnalyticsModule::Representation
|
309
|
+
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
class CreateIaCValidationReportRequest
|
314
|
+
# @private
|
315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
+
property :iac, as: 'iac', class: Google::Apis::SecuritypostureV1::IaC, decorator: Google::Apis::SecuritypostureV1::IaC::Representation
|
317
|
+
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
class CustomConfig
|
322
|
+
# @private
|
323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
property :custom_output, as: 'customOutput', class: Google::Apis::SecuritypostureV1::CustomOutputSpec, decorator: Google::Apis::SecuritypostureV1::CustomOutputSpec::Representation
|
325
|
+
|
326
|
+
property :description, as: 'description'
|
327
|
+
property :predicate, as: 'predicate', class: Google::Apis::SecuritypostureV1::Expr, decorator: Google::Apis::SecuritypostureV1::Expr::Representation
|
328
|
+
|
329
|
+
property :recommendation, as: 'recommendation'
|
330
|
+
property :resource_selector, as: 'resourceSelector', class: Google::Apis::SecuritypostureV1::ResourceSelector, decorator: Google::Apis::SecuritypostureV1::ResourceSelector::Representation
|
331
|
+
|
332
|
+
property :severity, as: 'severity'
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
class CustomOutputSpec
|
337
|
+
# @private
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
339
|
+
collection :properties, as: 'properties', class: Google::Apis::SecuritypostureV1::Property, decorator: Google::Apis::SecuritypostureV1::Property::Representation
|
340
|
+
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
class Empty
|
345
|
+
# @private
|
346
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class Expr
|
351
|
+
# @private
|
352
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
353
|
+
property :description, as: 'description'
|
354
|
+
property :expression, as: 'expression'
|
355
|
+
property :location, as: 'location'
|
356
|
+
property :title, as: 'title'
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
class ExtractPostureRequest
|
361
|
+
# @private
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
+
property :posture_id, as: 'postureId'
|
364
|
+
property :workload, as: 'workload'
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
class GoogleCloudSecuritypostureV1CustomConstraint
|
369
|
+
# @private
|
370
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
371
|
+
property :action_type, as: 'actionType'
|
372
|
+
property :condition, as: 'condition'
|
373
|
+
property :description, as: 'description'
|
374
|
+
property :display_name, as: 'displayName'
|
375
|
+
collection :method_types, as: 'methodTypes'
|
376
|
+
property :name, as: 'name'
|
377
|
+
collection :resource_types, as: 'resourceTypes'
|
378
|
+
property :update_time, as: 'updateTime'
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
class GoogleCloudSecuritypostureV1PolicyRule
|
383
|
+
# @private
|
384
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
385
|
+
property :allow_all, as: 'allowAll'
|
386
|
+
property :condition, as: 'condition', class: Google::Apis::SecuritypostureV1::Expr, decorator: Google::Apis::SecuritypostureV1::Expr::Representation
|
387
|
+
|
388
|
+
property :deny_all, as: 'denyAll'
|
389
|
+
property :enforce, as: 'enforce'
|
390
|
+
hash :parameters, as: 'parameters'
|
391
|
+
property :resource_types, as: 'resourceTypes', class: Google::Apis::SecuritypostureV1::ResourceTypes, decorator: Google::Apis::SecuritypostureV1::ResourceTypes::Representation
|
392
|
+
|
393
|
+
property :values, as: 'values', class: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRuleStringValues, decorator: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRuleStringValues::Representation
|
394
|
+
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
class GoogleCloudSecuritypostureV1PolicyRuleStringValues
|
399
|
+
# @private
|
400
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
401
|
+
collection :allowed_values, as: 'allowedValues'
|
402
|
+
collection :denied_values, as: 'deniedValues'
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class IaC
|
407
|
+
# @private
|
408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
409
|
+
property :tf_plan, :base64 => true, as: 'tfPlan'
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
class IaCValidationReport
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
property :note, as: 'note'
|
417
|
+
collection :violations, as: 'violations', class: Google::Apis::SecuritypostureV1::Violation, decorator: Google::Apis::SecuritypostureV1::Violation::Representation
|
418
|
+
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
class ListLocationsResponse
|
423
|
+
# @private
|
424
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
425
|
+
collection :locations, as: 'locations', class: Google::Apis::SecuritypostureV1::Location, decorator: Google::Apis::SecuritypostureV1::Location::Representation
|
426
|
+
|
427
|
+
property :next_page_token, as: 'nextPageToken'
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
431
|
+
class ListOperationsResponse
|
432
|
+
# @private
|
433
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
434
|
+
property :next_page_token, as: 'nextPageToken'
|
435
|
+
collection :operations, as: 'operations', class: Google::Apis::SecuritypostureV1::Operation, decorator: Google::Apis::SecuritypostureV1::Operation::Representation
|
436
|
+
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
class ListPostureDeploymentsResponse
|
441
|
+
# @private
|
442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
443
|
+
property :next_page_token, as: 'nextPageToken'
|
444
|
+
collection :posture_deployments, as: 'postureDeployments', class: Google::Apis::SecuritypostureV1::PostureDeployment, decorator: Google::Apis::SecuritypostureV1::PostureDeployment::Representation
|
445
|
+
|
446
|
+
collection :unreachable, as: 'unreachable'
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
450
|
+
class ListPostureRevisionsResponse
|
451
|
+
# @private
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
453
|
+
property :next_page_token, as: 'nextPageToken'
|
454
|
+
collection :revisions, as: 'revisions', class: Google::Apis::SecuritypostureV1::Posture, decorator: Google::Apis::SecuritypostureV1::Posture::Representation
|
455
|
+
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
459
|
+
class ListPostureTemplatesResponse
|
460
|
+
# @private
|
461
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
462
|
+
property :next_page_token, as: 'nextPageToken'
|
463
|
+
collection :posture_templates, as: 'postureTemplates', class: Google::Apis::SecuritypostureV1::PostureTemplate, decorator: Google::Apis::SecuritypostureV1::PostureTemplate::Representation
|
464
|
+
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
class ListPosturesResponse
|
469
|
+
# @private
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
471
|
+
property :next_page_token, as: 'nextPageToken'
|
472
|
+
collection :postures, as: 'postures', class: Google::Apis::SecuritypostureV1::Posture, decorator: Google::Apis::SecuritypostureV1::Posture::Representation
|
473
|
+
|
474
|
+
collection :unreachable, as: 'unreachable'
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
478
|
+
class ListReportsResponse
|
479
|
+
# @private
|
480
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
481
|
+
property :next_page_token, as: 'nextPageToken'
|
482
|
+
collection :reports, as: 'reports', class: Google::Apis::SecuritypostureV1::Report, decorator: Google::Apis::SecuritypostureV1::Report::Representation
|
483
|
+
|
484
|
+
collection :unreachable, as: 'unreachable'
|
485
|
+
end
|
486
|
+
end
|
487
|
+
|
488
|
+
class Location
|
489
|
+
# @private
|
490
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
491
|
+
property :display_name, as: 'displayName'
|
492
|
+
hash :labels, as: 'labels'
|
493
|
+
property :location_id, as: 'locationId'
|
494
|
+
hash :metadata, as: 'metadata'
|
495
|
+
property :name, as: 'name'
|
496
|
+
end
|
497
|
+
end
|
498
|
+
|
499
|
+
class Operation
|
500
|
+
# @private
|
501
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
502
|
+
property :done, as: 'done'
|
503
|
+
property :error, as: 'error', class: Google::Apis::SecuritypostureV1::Status, decorator: Google::Apis::SecuritypostureV1::Status::Representation
|
504
|
+
|
505
|
+
hash :metadata, as: 'metadata'
|
506
|
+
property :name, as: 'name'
|
507
|
+
hash :response, as: 'response'
|
508
|
+
end
|
509
|
+
end
|
510
|
+
|
511
|
+
class OperationMetadata
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :api_version, as: 'apiVersion'
|
515
|
+
property :create_time, as: 'createTime'
|
516
|
+
property :end_time, as: 'endTime'
|
517
|
+
property :error_message, as: 'errorMessage'
|
518
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
519
|
+
property :status_message, as: 'statusMessage'
|
520
|
+
property :target, as: 'target'
|
521
|
+
property :verb, as: 'verb'
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
class OrgPolicyConstraint
|
526
|
+
# @private
|
527
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
528
|
+
property :canned_constraint_id, as: 'cannedConstraintId'
|
529
|
+
collection :policy_rules, as: 'policyRules', class: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRule, decorator: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRule::Representation
|
530
|
+
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
class OrgPolicyConstraintCustom
|
535
|
+
# @private
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
537
|
+
property :custom_constraint, as: 'customConstraint', class: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1CustomConstraint, decorator: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1CustomConstraint::Representation
|
538
|
+
|
539
|
+
collection :policy_rules, as: 'policyRules', class: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRule, decorator: Google::Apis::SecuritypostureV1::GoogleCloudSecuritypostureV1PolicyRule::Representation
|
540
|
+
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
544
|
+
class Policy
|
545
|
+
# @private
|
546
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
547
|
+
collection :compliance_standards, as: 'complianceStandards', class: Google::Apis::SecuritypostureV1::ComplianceStandard, decorator: Google::Apis::SecuritypostureV1::ComplianceStandard::Representation
|
548
|
+
|
549
|
+
property :constraint, as: 'constraint', class: Google::Apis::SecuritypostureV1::Constraint, decorator: Google::Apis::SecuritypostureV1::Constraint::Representation
|
550
|
+
|
551
|
+
property :description, as: 'description'
|
552
|
+
property :policy_id, as: 'policyId'
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
class PolicyDetails
|
557
|
+
# @private
|
558
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
559
|
+
collection :compliance_standards, as: 'complianceStandards'
|
560
|
+
property :constraint, as: 'constraint'
|
561
|
+
property :constraint_type, as: 'constraintType'
|
562
|
+
property :description, as: 'description'
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
class PolicySet
|
567
|
+
# @private
|
568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
569
|
+
property :description, as: 'description'
|
570
|
+
collection :policies, as: 'policies', class: Google::Apis::SecuritypostureV1::Policy, decorator: Google::Apis::SecuritypostureV1::Policy::Representation
|
571
|
+
|
572
|
+
property :policy_set_id, as: 'policySetId'
|
573
|
+
end
|
574
|
+
end
|
575
|
+
|
576
|
+
class Posture
|
577
|
+
# @private
|
578
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
579
|
+
hash :annotations, as: 'annotations'
|
580
|
+
collection :categories, as: 'categories'
|
581
|
+
property :create_time, as: 'createTime'
|
582
|
+
property :description, as: 'description'
|
583
|
+
property :etag, as: 'etag'
|
584
|
+
property :name, as: 'name'
|
585
|
+
collection :policy_sets, as: 'policySets', class: Google::Apis::SecuritypostureV1::PolicySet, decorator: Google::Apis::SecuritypostureV1::PolicySet::Representation
|
586
|
+
|
587
|
+
property :reconciling, as: 'reconciling'
|
588
|
+
property :revision_id, as: 'revisionId'
|
589
|
+
property :state, as: 'state'
|
590
|
+
property :update_time, as: 'updateTime'
|
591
|
+
end
|
592
|
+
end
|
593
|
+
|
594
|
+
class PostureDeployment
|
595
|
+
# @private
|
596
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
597
|
+
hash :annotations, as: 'annotations'
|
598
|
+
collection :categories, as: 'categories'
|
599
|
+
property :create_time, as: 'createTime'
|
600
|
+
property :description, as: 'description'
|
601
|
+
property :desired_posture_id, as: 'desiredPostureId'
|
602
|
+
property :desired_posture_revision_id, as: 'desiredPostureRevisionId'
|
603
|
+
property :etag, as: 'etag'
|
604
|
+
property :failure_message, as: 'failureMessage'
|
605
|
+
property :name, as: 'name'
|
606
|
+
property :posture_id, as: 'postureId'
|
607
|
+
property :posture_revision_id, as: 'postureRevisionId'
|
608
|
+
property :reconciling, as: 'reconciling'
|
609
|
+
property :state, as: 'state'
|
610
|
+
property :target_resource, as: 'targetResource'
|
611
|
+
property :update_time, as: 'updateTime'
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
class PostureDetails
|
616
|
+
# @private
|
617
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
618
|
+
property :policy_set, as: 'policySet'
|
619
|
+
property :posture, as: 'posture'
|
620
|
+
property :posture_deployment, as: 'postureDeployment'
|
621
|
+
property :posture_deployment_target_resource, as: 'postureDeploymentTargetResource'
|
622
|
+
property :posture_revision_id, as: 'postureRevisionId'
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
class PostureTemplate
|
627
|
+
# @private
|
628
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
629
|
+
collection :categories, as: 'categories'
|
630
|
+
property :description, as: 'description'
|
631
|
+
property :name, as: 'name'
|
632
|
+
collection :policy_sets, as: 'policySets', class: Google::Apis::SecuritypostureV1::PolicySet, decorator: Google::Apis::SecuritypostureV1::PolicySet::Representation
|
633
|
+
|
634
|
+
property :revision_id, as: 'revisionId'
|
635
|
+
property :state, as: 'state'
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
class Property
|
640
|
+
# @private
|
641
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
642
|
+
property :name, as: 'name'
|
643
|
+
property :value_expression, as: 'valueExpression', class: Google::Apis::SecuritypostureV1::Expr, decorator: Google::Apis::SecuritypostureV1::Expr::Representation
|
644
|
+
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
class Report
|
649
|
+
# @private
|
650
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
651
|
+
property :create_time, as: 'createTime'
|
652
|
+
property :iac_validation_report, as: 'iacValidationReport', class: Google::Apis::SecuritypostureV1::IaCValidationReport, decorator: Google::Apis::SecuritypostureV1::IaCValidationReport::Representation
|
653
|
+
|
654
|
+
property :name, as: 'name'
|
655
|
+
property :update_time, as: 'updateTime'
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
659
|
+
class ResourceSelector
|
660
|
+
# @private
|
661
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
662
|
+
collection :resource_types, as: 'resourceTypes'
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
666
|
+
class ResourceTypes
|
667
|
+
# @private
|
668
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
669
|
+
collection :included, as: 'included'
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
class SecurityHealthAnalyticsCustomModule
|
674
|
+
# @private
|
675
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
676
|
+
property :config, as: 'config', class: Google::Apis::SecuritypostureV1::CustomConfig, decorator: Google::Apis::SecuritypostureV1::CustomConfig::Representation
|
677
|
+
|
678
|
+
property :display_name, as: 'displayName'
|
679
|
+
property :id, as: 'id'
|
680
|
+
property :module_enablement_state, as: 'moduleEnablementState'
|
681
|
+
end
|
682
|
+
end
|
683
|
+
|
684
|
+
class SecurityHealthAnalyticsModule
|
685
|
+
# @private
|
686
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
687
|
+
property :module_enablement_state, as: 'moduleEnablementState'
|
688
|
+
property :module_name, as: 'moduleName'
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
692
|
+
class Status
|
693
|
+
# @private
|
694
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
695
|
+
property :code, as: 'code'
|
696
|
+
collection :details, as: 'details'
|
697
|
+
property :message, as: 'message'
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
701
|
+
class Violation
|
702
|
+
# @private
|
703
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
704
|
+
property :asset_id, as: 'assetId'
|
705
|
+
property :next_steps, as: 'nextSteps'
|
706
|
+
property :policy_id, as: 'policyId'
|
707
|
+
property :severity, as: 'severity'
|
708
|
+
property :violated_asset, as: 'violatedAsset', class: Google::Apis::SecuritypostureV1::AssetDetails, decorator: Google::Apis::SecuritypostureV1::AssetDetails::Representation
|
709
|
+
|
710
|
+
property :violated_policy, as: 'violatedPolicy', class: Google::Apis::SecuritypostureV1::PolicyDetails, decorator: Google::Apis::SecuritypostureV1::PolicyDetails::Representation
|
711
|
+
|
712
|
+
property :violated_posture, as: 'violatedPosture', class: Google::Apis::SecuritypostureV1::PostureDetails, decorator: Google::Apis::SecuritypostureV1::PostureDetails::Representation
|
713
|
+
|
714
|
+
end
|
715
|
+
end
|
716
|
+
end
|
717
|
+
end
|
718
|
+
end
|