google-apis-policysimulator_v1alpha 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicysimulatorV1alpha
18
18
  # Version of the google-apis-policysimulator_v1alpha gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230304"
25
+ REVISION = "20230723"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,42 @@ module Google
22
22
  module Apis
23
23
  module PolicysimulatorV1alpha
24
24
 
25
+ class GoogleCloudOrgpolicyV2AlternatePolicySpec
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudOrgpolicyV2CustomConstraint
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudOrgpolicyV2Policy
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudOrgpolicyV2PolicySpec
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
25
61
  class GoogleCloudPolicysimulatorV1Replay
26
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
63
 
@@ -46,6 +82,102 @@ module Google
46
82
  include Google::Apis::Core::JsonObjectSupport
47
83
  end
48
84
 
85
+ class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleCloudPolicysimulatorV1alphaResourceContext
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
49
181
  class GoogleIamV1AuditConfig
50
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
183
 
@@ -100,6 +232,75 @@ module Google
100
232
  include Google::Apis::Core::JsonObjectSupport
101
233
  end
102
234
 
235
+ class GoogleCloudOrgpolicyV2AlternatePolicySpec
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :launch, as: 'launch'
239
+ property :spec, as: 'spec', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpec::Representation
240
+
241
+ end
242
+ end
243
+
244
+ class GoogleCloudOrgpolicyV2CustomConstraint
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :action_type, as: 'actionType'
248
+ property :condition, as: 'condition'
249
+ property :description, as: 'description'
250
+ property :display_name, as: 'displayName'
251
+ collection :method_types, as: 'methodTypes'
252
+ property :name, as: 'name'
253
+ collection :resource_types, as: 'resourceTypes'
254
+ property :update_time, as: 'updateTime'
255
+ end
256
+ end
257
+
258
+ class GoogleCloudOrgpolicyV2Policy
259
+ # @private
260
+ class Representation < Google::Apis::Core::JsonRepresentation
261
+ property :alternate, as: 'alternate', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2AlternatePolicySpec, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2AlternatePolicySpec::Representation
262
+
263
+ property :dry_run_spec, as: 'dryRunSpec', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpec::Representation
264
+
265
+ property :name, as: 'name'
266
+ property :spec, as: 'spec', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpec::Representation
267
+
268
+ end
269
+ end
270
+
271
+ class GoogleCloudOrgpolicyV2PolicySpec
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :etag, as: 'etag'
275
+ property :inherit_from_parent, as: 'inheritFromParent'
276
+ property :reset, as: 'reset'
277
+ collection :rules, as: 'rules', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpecPolicyRule, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpecPolicyRule::Representation
278
+
279
+ property :update_time, as: 'updateTime'
280
+ end
281
+ end
282
+
283
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :allow_all, as: 'allowAll'
287
+ property :condition, as: 'condition', class: Google::Apis::PolicysimulatorV1alpha::GoogleTypeExpr, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleTypeExpr::Representation
288
+
289
+ property :deny_all, as: 'denyAll'
290
+ property :enforce, as: 'enforce'
291
+ property :values, as: 'values', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::Representation
292
+
293
+ end
294
+ end
295
+
296
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ collection :allowed_values, as: 'allowedValues'
300
+ collection :denied_values, as: 'deniedValues'
301
+ end
302
+ end
303
+
103
304
  class GoogleCloudPolicysimulatorV1Replay
104
305
  # @private
105
306
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -142,6 +343,174 @@ module Google
142
343
  end
143
344
  end
144
345
 
346
+ class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ property :request_time, as: 'requestTime'
350
+ property :resources_found, as: 'resourcesFound'
351
+ property :resources_pending, as: 'resourcesPending'
352
+ property :resources_scanned, as: 'resourcesScanned'
353
+ property :start_time, as: 'startTime'
354
+ property :state, as: 'state'
355
+ end
356
+ end
357
+
358
+ class GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ property :next_page_token, as: 'nextPageToken'
362
+ collection :org_policy_violations_previews, as: 'orgPolicyViolationsPreviews', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
363
+
364
+ end
365
+ end
366
+
367
+ class GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :next_page_token, as: 'nextPageToken'
371
+ collection :org_policy_violations, as: 'orgPolicyViolations', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolation, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolation::Representation
372
+
373
+ end
374
+ end
375
+
376
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
377
+ # @private
378
+ class Representation < Google::Apis::Core::JsonRepresentation
379
+ collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay::Representation
380
+
381
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay::Representation
382
+
383
+ end
384
+ end
385
+
386
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint::Representation
390
+
391
+ property :custom_constraint_parent, as: 'customConstraintParent'
392
+ end
393
+ end
394
+
395
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy::Representation
399
+
400
+ property :policy_parent, as: 'policyParent'
401
+ end
402
+ end
403
+
404
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolation
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint::Representation
408
+
409
+ property :error, as: 'error', class: Google::Apis::PolicysimulatorV1alpha::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleRpcStatus::Representation
410
+
411
+ property :name, as: 'name'
412
+ property :resource, as: 'resource', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaResourceContext, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaResourceContext::Representation
413
+
414
+ end
415
+ end
416
+
417
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :name, as: 'name'
421
+ property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::Representation
422
+
423
+ property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts::Representation
424
+
425
+ property :state, as: 'state'
426
+ property :violations_count, as: 'violationsCount'
427
+ end
428
+ end
429
+
430
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ property :compliant, as: 'compliant'
434
+ property :errors, as: 'errors'
435
+ property :noncompliant, as: 'noncompliant'
436
+ property :scanned, as: 'scanned'
437
+ property :unenforced, as: 'unenforced'
438
+ end
439
+ end
440
+
441
+ class GoogleCloudPolicysimulatorV1alphaResourceContext
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ collection :ancestors, as: 'ancestors'
445
+ property :asset_type, as: 'assetType'
446
+ property :resource, as: 'resource'
447
+ end
448
+ end
449
+
450
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
451
+ # @private
452
+ class Representation < Google::Apis::Core::JsonRepresentation
453
+ property :request_time, as: 'requestTime'
454
+ property :resources_found, as: 'resourcesFound'
455
+ property :resources_pending, as: 'resourcesPending'
456
+ property :resources_scanned, as: 'resourcesScanned'
457
+ property :start_time, as: 'startTime'
458
+ property :state, as: 'state'
459
+ end
460
+ end
461
+
462
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay::Representation
466
+
467
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay::Representation
468
+
469
+ end
470
+ end
471
+
472
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint::Representation
476
+
477
+ property :custom_constraint_parent, as: 'customConstraintParent'
478
+ end
479
+ end
480
+
481
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
482
+ # @private
483
+ class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy::Representation
485
+
486
+ property :policy_parent, as: 'policyParent'
487
+ end
488
+ end
489
+
490
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
491
+ # @private
492
+ class Representation < Google::Apis::Core::JsonRepresentation
493
+ property :name, as: 'name'
494
+ property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::Representation
495
+
496
+ property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts::Representation
497
+
498
+ property :state, as: 'state'
499
+ property :violations_count, as: 'violationsCount'
500
+ end
501
+ end
502
+
503
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
504
+ # @private
505
+ class Representation < Google::Apis::Core::JsonRepresentation
506
+ property :compliant, as: 'compliant'
507
+ property :errors, as: 'errors'
508
+ property :noncompliant, as: 'noncompliant'
509
+ property :scanned, as: 'scanned'
510
+ property :unenforced, as: 'unenforced'
511
+ end
512
+ end
513
+
145
514
  class GoogleIamV1AuditConfig
146
515
  # @private
147
516
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -228,6 +228,117 @@ module Google
228
228
  execute_or_queue_command(command, &block)
229
229
  end
230
230
 
231
+ # GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
232
+ # the proposed changes in the provided OrgPolicyViolationsPreview.
233
+ # OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
234
+ # OrgPolicyOverlay`. The resources to scan are inferred from these specified
235
+ # changes.
236
+ # @param [String] parent
237
+ # Required. The organization under which this OrgPolicyViolationsPreview will be
238
+ # created. Example: `organizations/my-example-org/locations/global`
239
+ # @param [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
240
+ # @param [String] fields
241
+ # Selector specifying which fields to include in a partial response.
242
+ # @param [String] quota_user
243
+ # Available to use for quota purposes for server-side applications. Can be any
244
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
245
+ # @param [Google::Apis::RequestOptions] options
246
+ # Request-specific options
247
+ #
248
+ # @yield [result, err] Result & error if block supplied
249
+ # @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation] parsed result object
250
+ # @yieldparam err [StandardError] error object if request failed
251
+ #
252
+ # @return [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation]
253
+ #
254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
257
+ def org_organization_location_policy_violations_previews(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
258
+ command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', options)
259
+ command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
260
+ command.request_object = google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
261
+ command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
262
+ command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
263
+ command.params['parent'] = parent unless parent.nil?
264
+ command.query['fields'] = fields unless fields.nil?
265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
266
+ execute_or_queue_command(command, &block)
267
+ end
268
+
269
+ # GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
270
+ # Each OrgPolicyViolationsPreview is available for at least 7 days.
271
+ # @param [String] name
272
+ # Required. The name of the OrgPolicyViolationsPreview to get.
273
+ # @param [String] fields
274
+ # Selector specifying which fields to include in a partial response.
275
+ # @param [String] quota_user
276
+ # Available to use for quota purposes for server-side applications. Can be any
277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
278
+ # @param [Google::Apis::RequestOptions] options
279
+ # Request-specific options
280
+ #
281
+ # @yield [result, err] Result & error if block supplied
282
+ # @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview] parsed result object
283
+ # @yieldparam err [StandardError] error object if request failed
284
+ #
285
+ # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview]
286
+ #
287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
290
+ def get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil, &block)
291
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
292
+ command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
293
+ command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
294
+ command.params['name'] = name unless name.nil?
295
+ command.query['fields'] = fields unless fields.nil?
296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
297
+ execute_or_queue_command(command, &block)
298
+ end
299
+
300
+ # ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
301
+ # organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
302
+ # @param [String] parent
303
+ # Required. The parent the violations are scoped to. Format: organizations/`
304
+ # organization`
305
+ # @param [Fixnum] page_size
306
+ # The maximum number of items to return. The service may return fewer than this
307
+ # value. If unspecified, at most 5 items will be returned. The maximum value is
308
+ # 10; values above 10 will be coerced to 10.
309
+ # @param [String] page_token
310
+ # A page token, received from a previous call. Provide this to retrieve the
311
+ # subsequent page. When paginating, all other parameters must match the call
312
+ # that provided the page token.
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
315
+ # @param [String] quota_user
316
+ # Available to use for quota purposes for server-side applications. Can be any
317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
318
+ # @param [Google::Apis::RequestOptions] options
319
+ # Request-specific options
320
+ #
321
+ # @yield [result, err] Result & error if block supplied
322
+ # @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse] parsed result object
323
+ # @yieldparam err [StandardError] error object if request failed
324
+ #
325
+ # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse]
326
+ #
327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
330
+ def list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
331
+ command = make_simple_command(:get, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', options)
332
+ command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse::Representation
333
+ command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsPreviewsResponse
334
+ command.params['parent'] = parent unless parent.nil?
335
+ command.query['pageSize'] = page_size unless page_size.nil?
336
+ command.query['pageToken'] = page_token unless page_token.nil?
337
+ command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
339
+ execute_or_queue_command(command, &block)
340
+ end
341
+
231
342
  # Gets the latest state of a long-running operation. Clients can use this method
232
343
  # to poll the operation result at intervals as recommended by the API service.
233
344
  # @param [String] name
@@ -259,6 +370,49 @@ module Google
259
370
  execute_or_queue_command(command, &block)
260
371
  end
261
372
 
373
+ # ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an
374
+ # OrgPolicyViolationsPreview.
375
+ # @param [String] parent
376
+ # Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from.
377
+ # Format: organizations/`organization`/locations/`location`/
378
+ # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
379
+ # @param [Fixnum] page_size
380
+ # The maximum number of items to return. The service may return fewer than this
381
+ # value. If unspecified, at most 50 items will be returned. The maximum value is
382
+ # 1000; values above 1000 will be coerced to 1000.
383
+ # @param [String] page_token
384
+ # A page token, received from a previous call. Provide this to retrieve the
385
+ # subsequent page. When paginating, all other parameters must match the call
386
+ # that provided the page token.
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # @param [Google::Apis::RequestOptions] options
393
+ # Request-specific options
394
+ #
395
+ # @yield [result, err] Result & error if block supplied
396
+ # @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse]
400
+ #
401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
404
+ def list_organization_location_org_policy_violations_preview_org_policy_violations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
405
+ command = make_simple_command(:get, 'v1alpha/{+parent}/orgPolicyViolations', options)
406
+ command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse::Representation
407
+ command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaListOrgPolicyViolationsResponse
408
+ command.params['parent'] = parent unless parent.nil?
409
+ command.query['pageSize'] = page_size unless page_size.nil?
410
+ command.query['pageToken'] = page_token unless page_token.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ execute_or_queue_command(command, &block)
414
+ end
415
+
262
416
  # Gets the latest state of a long-running operation. Clients can use this method
263
417
  # to poll the operation result at intervals as recommended by the API service.
264
418
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policysimulator_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-26 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.9.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []