google-apis-policysimulator_v1beta 0.1.0 → 0.3.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 PolicysimulatorV1beta
18
18
  # Version of the google-apis-policysimulator_v1beta gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.3.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 = "20230312"
25
+ REVISION = "20230806"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,42 @@ module Google
22
22
  module Apis
23
23
  module PolicysimulatorV1beta
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 GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolation
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GoogleCloudPolicysimulatorV1betaResourceContext
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::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1beta::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::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2AlternatePolicySpec, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2AlternatePolicySpec::Representation
262
+
263
+ property :dry_run_spec, as: 'dryRunSpec', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2PolicySpec::Representation
264
+
265
+ property :name, as: 'name'
266
+ property :spec, as: 'spec', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1beta::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::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2PolicySpecPolicyRule, decorator: Google::Apis::PolicysimulatorV1beta::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::PolicysimulatorV1beta::GoogleTypeExpr, decorator: Google::Apis::PolicysimulatorV1beta::GoogleTypeExpr::Representation
288
+
289
+ property :deny_all, as: 'denyAll'
290
+ property :enforce, as: 'enforce'
291
+ property :values, as: 'values', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues, decorator: Google::Apis::PolicysimulatorV1beta::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 GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay::Representation
362
+
363
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay::Representation
364
+
365
+ end
366
+ end
367
+
368
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint::Representation
372
+
373
+ property :custom_constraint_parent, as: 'customConstraintParent'
374
+ end
375
+ end
376
+
377
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy::Representation
381
+
382
+ property :policy_parent, as: 'policyParent'
383
+ end
384
+ end
385
+
386
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :name, as: 'name'
390
+ property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::Representation
391
+
392
+ property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts::Representation
393
+
394
+ property :state, as: 'state'
395
+ property :violations_count, as: 'violationsCount'
396
+ end
397
+ end
398
+
399
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ property :compliant, as: 'compliant'
403
+ property :errors, as: 'errors'
404
+ property :noncompliant, as: 'noncompliant'
405
+ property :scanned, as: 'scanned'
406
+ property :unenforced, as: 'unenforced'
407
+ end
408
+ end
409
+
410
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
411
+ # @private
412
+ class Representation < Google::Apis::Core::JsonRepresentation
413
+ property :request_time, as: 'requestTime'
414
+ property :resources_found, as: 'resourcesFound'
415
+ property :resources_pending, as: 'resourcesPending'
416
+ property :resources_scanned, as: 'resourcesScanned'
417
+ property :start_time, as: 'startTime'
418
+ property :state, as: 'state'
419
+ end
420
+ end
421
+
422
+ class GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :next_page_token, as: 'nextPageToken'
426
+ collection :org_policy_violations_previews, as: 'orgPolicyViolationsPreviews', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
427
+
428
+ end
429
+ end
430
+
431
+ class GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse
432
+ # @private
433
+ class Representation < Google::Apis::Core::JsonRepresentation
434
+ property :next_page_token, as: 'nextPageToken'
435
+ collection :org_policy_violations, as: 'orgPolicyViolations', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolation, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolation::Representation
436
+
437
+ end
438
+ end
439
+
440
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
441
+ # @private
442
+ class Representation < Google::Apis::Core::JsonRepresentation
443
+ collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay::Representation
444
+
445
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay::Representation
446
+
447
+ end
448
+ end
449
+
450
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
451
+ # @private
452
+ class Representation < Google::Apis::Core::JsonRepresentation
453
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint::Representation
454
+
455
+ property :custom_constraint_parent, as: 'customConstraintParent'
456
+ end
457
+ end
458
+
459
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
460
+ # @private
461
+ class Representation < Google::Apis::Core::JsonRepresentation
462
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2Policy::Representation
463
+
464
+ property :policy_parent, as: 'policyParent'
465
+ end
466
+ end
467
+
468
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolation
469
+ # @private
470
+ class Representation < Google::Apis::Core::JsonRepresentation
471
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudOrgpolicyV2CustomConstraint::Representation
472
+
473
+ property :error, as: 'error', class: Google::Apis::PolicysimulatorV1beta::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1beta::GoogleRpcStatus::Representation
474
+
475
+ property :name, as: 'name'
476
+ property :resource, as: 'resource', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaResourceContext, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaResourceContext::Representation
477
+
478
+ end
479
+ end
480
+
481
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
482
+ # @private
483
+ class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :name, as: 'name'
485
+ property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::Representation
486
+
487
+ property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts::Representation
488
+
489
+ property :state, as: 'state'
490
+ property :violations_count, as: 'violationsCount'
491
+ end
492
+ end
493
+
494
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :compliant, as: 'compliant'
498
+ property :errors, as: 'errors'
499
+ property :noncompliant, as: 'noncompliant'
500
+ property :scanned, as: 'scanned'
501
+ property :unenforced, as: 'unenforced'
502
+ end
503
+ end
504
+
505
+ class GoogleCloudPolicysimulatorV1betaResourceContext
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ collection :ancestors, as: 'ancestors'
509
+ property :asset_type, as: 'assetType'
510
+ property :resource, as: 'resource'
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::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_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::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
250
+ # @yieldparam err [StandardError] error object if request failed
251
+ #
252
+ # @return [Google::Apis::PolicysimulatorV1beta::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_v1beta_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
258
+ command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
259
+ command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
260
+ command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
261
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
262
+ command.response_class = Google::Apis::PolicysimulatorV1beta::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::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] parsed result object
283
+ # @yieldparam err [StandardError] error object if request failed
284
+ #
285
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview]
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, 'v1beta/{+name}', options)
292
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
293
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
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::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse] parsed result object
323
+ # @yieldparam err [StandardError] error object if request failed
324
+ #
325
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse]
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, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
332
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse::Representation
333
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse
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::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse]
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, 'v1beta/{+parent}/orgPolicyViolations', options)
406
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse::Representation
407
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse
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_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.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-20 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_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.3.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []