google-apis-policysimulator_v1beta1 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/policysimulator_v1beta1/classes.rb +10 -442
- data/lib/google/apis/policysimulator_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1beta1/representations.rb +0 -154
- data/lib/google/apis/policysimulator_v1beta1/service.rb +18 -261
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16385f62089fe1a1691d69ac393bf50dac84457112322e597e08e828c0c5c861
|
4
|
+
data.tar.gz: cc5d69378e922e40bcc95572ca5ee7c9d669f5f5d140aee68b46c67a86e1ef3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5810bd408ff218fe23f53cdc04a40db466db76f8656fd671e9c193b01dc01fb9f2464e22f0f810b4f7b4c9d98c4348884e4a6e9f407067ade4a92e410c96611e
|
7
|
+
data.tar.gz: caf93918e61d1e2f544063daf503995b86bc3d17138cb09c9408db366ec685d53ec56ae37921e3672a79e675df811e1dfb0c53016b18bdb8aab8fe9bb3b8e011
|
data/CHANGELOG.md
CHANGED
@@ -180,346 +180,6 @@ module Google
|
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
183
|
-
# A summary and comparison of the member's access under the current (baseline)
|
184
|
-
# policies and the proposed (simulated) policies for a single access tuple.
|
185
|
-
class GoogleCloudPolicysimulatorV1beta1AccessStateDiff
|
186
|
-
include Google::Apis::Core::Hashable
|
187
|
-
|
188
|
-
# How the member's access, specified in the AccessState field, changed between
|
189
|
-
# the current (baseline) policies and proposed (simulated) policies.
|
190
|
-
# Corresponds to the JSON property `accessChange`
|
191
|
-
# @return [String]
|
192
|
-
attr_accessor :access_change
|
193
|
-
|
194
|
-
# Details about how a set of policies, listed in ExplainedPolicy, resulted in a
|
195
|
-
# certain AccessState when replaying an access tuple.
|
196
|
-
# Corresponds to the JSON property `baseline`
|
197
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess]
|
198
|
-
attr_accessor :baseline
|
199
|
-
|
200
|
-
# Details about how a set of policies, listed in ExplainedPolicy, resulted in a
|
201
|
-
# certain AccessState when replaying an access tuple.
|
202
|
-
# Corresponds to the JSON property `simulated`
|
203
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess]
|
204
|
-
attr_accessor :simulated
|
205
|
-
|
206
|
-
def initialize(**args)
|
207
|
-
update!(**args)
|
208
|
-
end
|
209
|
-
|
210
|
-
# Update properties of this object
|
211
|
-
def update!(**args)
|
212
|
-
@access_change = args[:access_change] if args.key?(:access_change)
|
213
|
-
@baseline = args[:baseline] if args.key?(:baseline)
|
214
|
-
@simulated = args[:simulated] if args.key?(:simulated)
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
218
|
-
# Information about the principal, resource, and permission to check.
|
219
|
-
class GoogleCloudPolicysimulatorV1beta1AccessTuple
|
220
|
-
include Google::Apis::Core::Hashable
|
221
|
-
|
222
|
-
# Required. The full resource name that identifies the resource. For example, `//
|
223
|
-
# compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-
|
224
|
-
# instance`. For examples of full resource names for Google Cloud services, see
|
225
|
-
# https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
|
226
|
-
# Corresponds to the JSON property `fullResourceName`
|
227
|
-
# @return [String]
|
228
|
-
attr_accessor :full_resource_name
|
229
|
-
|
230
|
-
# Required. The IAM permission to check for the specified principal and resource.
|
231
|
-
# For a complete list of IAM permissions, see https://cloud.google.com/iam/help/
|
232
|
-
# permissions/reference. For a complete list of predefined IAM roles and the
|
233
|
-
# permissions in each role, see https://cloud.google.com/iam/help/roles/
|
234
|
-
# reference.
|
235
|
-
# Corresponds to the JSON property `permission`
|
236
|
-
# @return [String]
|
237
|
-
attr_accessor :permission
|
238
|
-
|
239
|
-
# Required. The principal whose access you want to check, in the form of the
|
240
|
-
# email address that represents that principal. For example, `alice@example.com`
|
241
|
-
# or `my-service-account@my-project.iam.gserviceaccount.com`. The principal must
|
242
|
-
# be a Google Account or a service account. Other types of principals are not
|
243
|
-
# supported.
|
244
|
-
# Corresponds to the JSON property `principal`
|
245
|
-
# @return [String]
|
246
|
-
attr_accessor :principal
|
247
|
-
|
248
|
-
def initialize(**args)
|
249
|
-
update!(**args)
|
250
|
-
end
|
251
|
-
|
252
|
-
# Update properties of this object
|
253
|
-
def update!(**args)
|
254
|
-
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
|
255
|
-
@permission = args[:permission] if args.key?(:permission)
|
256
|
-
@principal = args[:principal] if args.key?(:principal)
|
257
|
-
end
|
258
|
-
end
|
259
|
-
|
260
|
-
# Details about how a binding in a policy affects a principal's ability to use a
|
261
|
-
# permission.
|
262
|
-
class GoogleCloudPolicysimulatorV1beta1BindingExplanation
|
263
|
-
include Google::Apis::Core::Hashable
|
264
|
-
|
265
|
-
# Required. Indicates whether _this binding_ provides the specified permission
|
266
|
-
# to the specified principal for the specified resource. This field does _not_
|
267
|
-
# indicate whether the principal actually has the permission for the resource.
|
268
|
-
# There might be another binding that overrides this binding. To determine
|
269
|
-
# whether the principal actually has the permission, use the `access` field in
|
270
|
-
# the TroubleshootIamPolicyResponse.
|
271
|
-
# Corresponds to the JSON property `access`
|
272
|
-
# @return [String]
|
273
|
-
attr_accessor :access
|
274
|
-
|
275
|
-
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
276
|
-
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
277
|
-
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
278
|
-
# "Summary size limit" description: "Determines if a summary is less than 100
|
279
|
-
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
280
|
-
# Requestor is owner" description: "Determines if requestor is the document
|
281
|
-
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
282
|
-
# Logic): title: "Public documents" description: "Determine whether the document
|
283
|
-
# should be publicly visible" expression: "document.type != 'private' &&
|
284
|
-
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
285
|
-
# string" description: "Create a notification string with a timestamp."
|
286
|
-
# expression: "'New message received at ' + string(document.create_time)" The
|
287
|
-
# exact variables and functions that may be referenced within an expression are
|
288
|
-
# determined by the service that evaluates it. See the service documentation for
|
289
|
-
# additional information.
|
290
|
-
# Corresponds to the JSON property `condition`
|
291
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleTypeExpr]
|
292
|
-
attr_accessor :condition
|
293
|
-
|
294
|
-
# Indicates whether each principal in the binding includes the principal
|
295
|
-
# specified in the request, either directly or indirectly. Each key identifies a
|
296
|
-
# principal in the binding, and each value indicates whether the principal in
|
297
|
-
# the binding includes the principal in the request. For example, suppose that a
|
298
|
-
# binding includes the following principals: * `user:alice@example.com` * `group:
|
299
|
-
# product-eng@example.com` The principal in the replayed access tuple is `user:
|
300
|
-
# bob@example.com`. This user is a principal of the group `group:product-eng@
|
301
|
-
# example.com`. For the first principal in the binding, the key is `user:alice@
|
302
|
-
# example.com`, and the `membership` field in the value is set to `
|
303
|
-
# MEMBERSHIP_NOT_INCLUDED`. For the second principal in the binding, the key is `
|
304
|
-
# group:product-eng@example.com`, and the `membership` field in the value is set
|
305
|
-
# to `MEMBERSHIP_INCLUDED`.
|
306
|
-
# Corresponds to the JSON property `memberships`
|
307
|
-
# @return [Hash<String,Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership>]
|
308
|
-
attr_accessor :memberships
|
309
|
-
|
310
|
-
# The relevance of this binding to the overall determination for the entire
|
311
|
-
# policy.
|
312
|
-
# Corresponds to the JSON property `relevance`
|
313
|
-
# @return [String]
|
314
|
-
attr_accessor :relevance
|
315
|
-
|
316
|
-
# The role that this binding grants. For example, `roles/compute.serviceAgent`.
|
317
|
-
# For a complete list of predefined IAM roles, as well as the permissions in
|
318
|
-
# each role, see https://cloud.google.com/iam/help/roles/reference.
|
319
|
-
# Corresponds to the JSON property `role`
|
320
|
-
# @return [String]
|
321
|
-
attr_accessor :role
|
322
|
-
|
323
|
-
# Indicates whether the role granted by this binding contains the specified
|
324
|
-
# permission.
|
325
|
-
# Corresponds to the JSON property `rolePermission`
|
326
|
-
# @return [String]
|
327
|
-
attr_accessor :role_permission
|
328
|
-
|
329
|
-
# The relevance of the permission's existence, or nonexistence, in the role to
|
330
|
-
# the overall determination for the entire policy.
|
331
|
-
# Corresponds to the JSON property `rolePermissionRelevance`
|
332
|
-
# @return [String]
|
333
|
-
attr_accessor :role_permission_relevance
|
334
|
-
|
335
|
-
def initialize(**args)
|
336
|
-
update!(**args)
|
337
|
-
end
|
338
|
-
|
339
|
-
# Update properties of this object
|
340
|
-
def update!(**args)
|
341
|
-
@access = args[:access] if args.key?(:access)
|
342
|
-
@condition = args[:condition] if args.key?(:condition)
|
343
|
-
@memberships = args[:memberships] if args.key?(:memberships)
|
344
|
-
@relevance = args[:relevance] if args.key?(:relevance)
|
345
|
-
@role = args[:role] if args.key?(:role)
|
346
|
-
@role_permission = args[:role_permission] if args.key?(:role_permission)
|
347
|
-
@role_permission_relevance = args[:role_permission_relevance] if args.key?(:role_permission_relevance)
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
|
-
# Details about whether the binding includes the principal.
|
352
|
-
class GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership
|
353
|
-
include Google::Apis::Core::Hashable
|
354
|
-
|
355
|
-
# Indicates whether the binding includes the principal.
|
356
|
-
# Corresponds to the JSON property `membership`
|
357
|
-
# @return [String]
|
358
|
-
attr_accessor :membership
|
359
|
-
|
360
|
-
# The relevance of the principal's status to the overall determination for the
|
361
|
-
# binding.
|
362
|
-
# Corresponds to the JSON property `relevance`
|
363
|
-
# @return [String]
|
364
|
-
attr_accessor :relevance
|
365
|
-
|
366
|
-
def initialize(**args)
|
367
|
-
update!(**args)
|
368
|
-
end
|
369
|
-
|
370
|
-
# Update properties of this object
|
371
|
-
def update!(**args)
|
372
|
-
@membership = args[:membership] if args.key?(:membership)
|
373
|
-
@relevance = args[:relevance] if args.key?(:relevance)
|
374
|
-
end
|
375
|
-
end
|
376
|
-
|
377
|
-
# Details about how a set of policies, listed in ExplainedPolicy, resulted in a
|
378
|
-
# certain AccessState when replaying an access tuple.
|
379
|
-
class GoogleCloudPolicysimulatorV1beta1ExplainedAccess
|
380
|
-
include Google::Apis::Core::Hashable
|
381
|
-
|
382
|
-
# Whether the member in the access tuple has permission to access the resource
|
383
|
-
# in the access tuple under the given policies.
|
384
|
-
# Corresponds to the JSON property `accessState`
|
385
|
-
# @return [String]
|
386
|
-
attr_accessor :access_state
|
387
|
-
|
388
|
-
# If the AccessState is `UNKNOWN`, this field contains a list of errors
|
389
|
-
# explaining why the result is `UNKNOWN`. If the `AccessState` is `GRANTED` or `
|
390
|
-
# NOT_GRANTED`, this field is omitted.
|
391
|
-
# Corresponds to the JSON property `errors`
|
392
|
-
# @return [Array<Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus>]
|
393
|
-
attr_accessor :errors
|
394
|
-
|
395
|
-
# If the AccessState is `UNKNOWN`, this field contains the policies that led to
|
396
|
-
# that result. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is
|
397
|
-
# omitted.
|
398
|
-
# Corresponds to the JSON property `policies`
|
399
|
-
# @return [Array<Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedPolicy>]
|
400
|
-
attr_accessor :policies
|
401
|
-
|
402
|
-
def initialize(**args)
|
403
|
-
update!(**args)
|
404
|
-
end
|
405
|
-
|
406
|
-
# Update properties of this object
|
407
|
-
def update!(**args)
|
408
|
-
@access_state = args[:access_state] if args.key?(:access_state)
|
409
|
-
@errors = args[:errors] if args.key?(:errors)
|
410
|
-
@policies = args[:policies] if args.key?(:policies)
|
411
|
-
end
|
412
|
-
end
|
413
|
-
|
414
|
-
# Details about how a specific IAM Policy contributed to the access check.
|
415
|
-
class GoogleCloudPolicysimulatorV1beta1ExplainedPolicy
|
416
|
-
include Google::Apis::Core::Hashable
|
417
|
-
|
418
|
-
# Indicates whether _this policy_ provides the specified permission to the
|
419
|
-
# specified principal for the specified resource. This field does _not_ indicate
|
420
|
-
# whether the principal actually has the permission for the resource. There
|
421
|
-
# might be another policy that overrides this policy. To determine whether the
|
422
|
-
# principal actually has the permission, use the `access` field in the
|
423
|
-
# TroubleshootIamPolicyResponse.
|
424
|
-
# Corresponds to the JSON property `access`
|
425
|
-
# @return [String]
|
426
|
-
attr_accessor :access
|
427
|
-
|
428
|
-
# Details about how each binding in the policy affects the principal's ability,
|
429
|
-
# or inability, to use the permission for the resource. If the user who created
|
430
|
-
# the Replay does not have access to the policy, this field is omitted.
|
431
|
-
# Corresponds to the JSON property `bindingExplanations`
|
432
|
-
# @return [Array<Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1BindingExplanation>]
|
433
|
-
attr_accessor :binding_explanations
|
434
|
-
|
435
|
-
# The full resource name that identifies the resource. For example, `//compute.
|
436
|
-
# googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
|
437
|
-
# If the user who created the Replay does not have access to the policy, this
|
438
|
-
# field is omitted. For examples of full resource names for Google Cloud
|
439
|
-
# services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-
|
440
|
-
# names.
|
441
|
-
# Corresponds to the JSON property `fullResourceName`
|
442
|
-
# @return [String]
|
443
|
-
attr_accessor :full_resource_name
|
444
|
-
|
445
|
-
# An Identity and Access Management (IAM) policy, which specifies access
|
446
|
-
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
447
|
-
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
448
|
-
# Principals can be user accounts, service accounts, Google groups, and domains (
|
449
|
-
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
450
|
-
# an IAM predefined role or a user-created custom role. For some types of Google
|
451
|
-
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
452
|
-
# logical expression that allows access to a resource only if the expression
|
453
|
-
# evaluates to `true`. A condition can add constraints based on attributes of
|
454
|
-
# the request, the resource, or both. To learn which resources support
|
455
|
-
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
456
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
457
|
-
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
458
|
-
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
459
|
-
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
460
|
-
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
461
|
-
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
462
|
-
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
463
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
464
|
-
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
465
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
466
|
-
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
467
|
-
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
468
|
-
# access description: Does not grant access after Sep 2020 expression: request.
|
469
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
470
|
-
# a description of IAM and its features, see the [IAM documentation](https://
|
471
|
-
# cloud.google.com/iam/docs/).
|
472
|
-
# Corresponds to the JSON property `policy`
|
473
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleIamV1Policy]
|
474
|
-
attr_accessor :policy
|
475
|
-
|
476
|
-
# The relevance of this policy to the overall determination in the
|
477
|
-
# TroubleshootIamPolicyResponse. If the user who created the Replay does not
|
478
|
-
# have access to the policy, this field is omitted.
|
479
|
-
# Corresponds to the JSON property `relevance`
|
480
|
-
# @return [String]
|
481
|
-
attr_accessor :relevance
|
482
|
-
|
483
|
-
def initialize(**args)
|
484
|
-
update!(**args)
|
485
|
-
end
|
486
|
-
|
487
|
-
# Update properties of this object
|
488
|
-
def update!(**args)
|
489
|
-
@access = args[:access] if args.key?(:access)
|
490
|
-
@binding_explanations = args[:binding_explanations] if args.key?(:binding_explanations)
|
491
|
-
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
|
492
|
-
@policy = args[:policy] if args.key?(:policy)
|
493
|
-
@relevance = args[:relevance] if args.key?(:relevance)
|
494
|
-
end
|
495
|
-
end
|
496
|
-
|
497
|
-
# Response message for Simulator.ListReplayResults.
|
498
|
-
class GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse
|
499
|
-
include Google::Apis::Core::Hashable
|
500
|
-
|
501
|
-
# A token that you can use to retrieve the next page of ReplayResult objects. If
|
502
|
-
# this field is omitted, there are no subsequent pages.
|
503
|
-
# Corresponds to the JSON property `nextPageToken`
|
504
|
-
# @return [String]
|
505
|
-
attr_accessor :next_page_token
|
506
|
-
|
507
|
-
# The results of running a Replay.
|
508
|
-
# Corresponds to the JSON property `replayResults`
|
509
|
-
# @return [Array<Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayResult>]
|
510
|
-
attr_accessor :replay_results
|
511
|
-
|
512
|
-
def initialize(**args)
|
513
|
-
update!(**args)
|
514
|
-
end
|
515
|
-
|
516
|
-
# Update properties of this object
|
517
|
-
def update!(**args)
|
518
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
519
|
-
@replay_results = args[:replay_results] if args.key?(:replay_results)
|
520
|
-
end
|
521
|
-
end
|
522
|
-
|
523
183
|
# A resource describing a `Replay`, or simulation.
|
524
184
|
class GoogleCloudPolicysimulatorV1beta1Replay
|
525
185
|
include Google::Apis::Core::Hashable
|
@@ -594,29 +254,6 @@ module Google
|
|
594
254
|
end
|
595
255
|
end
|
596
256
|
|
597
|
-
# The difference between the results of evaluating an access tuple under the
|
598
|
-
# current (baseline) policies and under the proposed (simulated) policies. This
|
599
|
-
# difference explains how a member's access could change if the proposed
|
600
|
-
# policies were applied.
|
601
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayDiff
|
602
|
-
include Google::Apis::Core::Hashable
|
603
|
-
|
604
|
-
# A summary and comparison of the member's access under the current (baseline)
|
605
|
-
# policies and the proposed (simulated) policies for a single access tuple.
|
606
|
-
# Corresponds to the JSON property `accessDiff`
|
607
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessStateDiff]
|
608
|
-
attr_accessor :access_diff
|
609
|
-
|
610
|
-
def initialize(**args)
|
611
|
-
update!(**args)
|
612
|
-
end
|
613
|
-
|
614
|
-
# Update properties of this object
|
615
|
-
def update!(**args)
|
616
|
-
@access_diff = args[:access_diff] if args.key?(:access_diff)
|
617
|
-
end
|
618
|
-
end
|
619
|
-
|
620
257
|
# Metadata about a Replay operation.
|
621
258
|
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
622
259
|
include Google::Apis::Core::Hashable
|
@@ -636,75 +273,6 @@ module Google
|
|
636
273
|
end
|
637
274
|
end
|
638
275
|
|
639
|
-
# The result of replaying a single access tuple against a simulated state.
|
640
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResult
|
641
|
-
include Google::Apis::Core::Hashable
|
642
|
-
|
643
|
-
# Information about the principal, resource, and permission to check.
|
644
|
-
# Corresponds to the JSON property `accessTuple`
|
645
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessTuple]
|
646
|
-
attr_accessor :access_tuple
|
647
|
-
|
648
|
-
# The difference between the results of evaluating an access tuple under the
|
649
|
-
# current (baseline) policies and under the proposed (simulated) policies. This
|
650
|
-
# difference explains how a member's access could change if the proposed
|
651
|
-
# policies were applied.
|
652
|
-
# Corresponds to the JSON property `diff`
|
653
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayDiff]
|
654
|
-
attr_accessor :diff
|
655
|
-
|
656
|
-
# The `Status` type defines a logical error model that is suitable for different
|
657
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
658
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
659
|
-
# data: error code, error message, and error details. You can find out more
|
660
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
661
|
-
# //cloud.google.com/apis/design/errors).
|
662
|
-
# Corresponds to the JSON property `error`
|
663
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus]
|
664
|
-
attr_accessor :error
|
665
|
-
|
666
|
-
# Represents a whole or partial calendar date, such as a birthday. The time of
|
667
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
668
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
669
|
-
# following: * A full date, with non-zero year, month, and day values. * A month
|
670
|
-
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
671
|
-
# with a zero month and a zero day. * A year and month, with a zero day (for
|
672
|
-
# example, a credit card expiration date). Related types: * google.type.
|
673
|
-
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
674
|
-
# Corresponds to the JSON property `lastSeenDate`
|
675
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate]
|
676
|
-
attr_accessor :last_seen_date
|
677
|
-
|
678
|
-
# The resource name of the `ReplayResult`, in the following format: ``projects|
|
679
|
-
# folders|organizations`/`resource-id`/locations/global/replays/`replay-id`/
|
680
|
-
# results/`replay-result-id``, where ``resource-id`` is the ID of the project,
|
681
|
-
# folder, or organization that owns the Replay. Example: `projects/my-example-
|
682
|
-
# project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/
|
683
|
-
# 1234`
|
684
|
-
# Corresponds to the JSON property `name`
|
685
|
-
# @return [String]
|
686
|
-
attr_accessor :name
|
687
|
-
|
688
|
-
# The Replay that the access tuple was included in.
|
689
|
-
# Corresponds to the JSON property `parent`
|
690
|
-
# @return [String]
|
691
|
-
attr_accessor :parent
|
692
|
-
|
693
|
-
def initialize(**args)
|
694
|
-
update!(**args)
|
695
|
-
end
|
696
|
-
|
697
|
-
# Update properties of this object
|
698
|
-
def update!(**args)
|
699
|
-
@access_tuple = args[:access_tuple] if args.key?(:access_tuple)
|
700
|
-
@diff = args[:diff] if args.key?(:diff)
|
701
|
-
@error = args[:error] if args.key?(:error)
|
702
|
-
@last_seen_date = args[:last_seen_date] if args.key?(:last_seen_date)
|
703
|
-
@name = args[:name] if args.key?(:name)
|
704
|
-
@parent = args[:parent] if args.key?(:parent)
|
705
|
-
end
|
706
|
-
end
|
707
|
-
|
708
276
|
# Summary statistics about the replayed log entries.
|
709
277
|
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
710
278
|
include Google::Apis::Core::Hashable
|
@@ -879,22 +447,22 @@ module Google
|
|
879
447
|
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
|
880
448
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
881
449
|
# email address that represents a Google group. For example, `admins@example.com`
|
882
|
-
# . * `
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
# the
|
887
|
-
#
|
888
|
-
#
|
450
|
+
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
451
|
+
# users of that domain. For example, `google.com` or `example.com`. * `deleted:
|
452
|
+
# user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
|
453
|
+
# representing a user that has been recently deleted. For example, `alice@
|
454
|
+
# example.com?uid=123456789012345678901`. If the user is recovered, this value
|
455
|
+
# reverts to `user:`emailid`` and the recovered user retains the role in the
|
456
|
+
# binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
|
457
|
+
# (plus unique identifier) representing a service account that has been recently
|
458
|
+
# deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
889
459
|
# 123456789012345678901`. If the service account is undeleted, this value
|
890
460
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
891
461
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
892
462
|
# An email address (plus unique identifier) representing a Google group that has
|
893
463
|
# been recently deleted. For example, `admins@example.com?uid=
|
894
464
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
895
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
896
|
-
# domain:`domain``: The G Suite domain (primary) that represents all the users
|
897
|
-
# of that domain. For example, `google.com` or `example.com`.
|
465
|
+
# group:`emailid`` and the recovered group retains the role in the binding.
|
898
466
|
# Corresponds to the JSON property `members`
|
899
467
|
# @return [Array<String>]
|
900
468
|
attr_accessor :members
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PolicysimulatorV1beta1
|
18
18
|
# Version of the google-apis-policysimulator_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.28.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 = "
|
25
|
+
REVISION = "20230219"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,48 +46,6 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class GoogleCloudPolicysimulatorV1beta1AccessStateDiff
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class GoogleCloudPolicysimulatorV1beta1AccessTuple
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class GoogleCloudPolicysimulatorV1beta1BindingExplanation
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class GoogleCloudPolicysimulatorV1beta1ExplainedAccess
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class GoogleCloudPolicysimulatorV1beta1ExplainedPolicy
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
49
|
class GoogleCloudPolicysimulatorV1beta1Replay
|
92
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
51
|
|
@@ -100,24 +58,12 @@ module Google
|
|
100
58
|
include Google::Apis::Core::JsonObjectSupport
|
101
59
|
end
|
102
60
|
|
103
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayDiff
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
61
|
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
110
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
63
|
|
112
64
|
include Google::Apis::Core::JsonObjectSupport
|
113
65
|
end
|
114
66
|
|
115
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResult
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
67
|
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
122
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
69
|
|
@@ -220,82 +166,6 @@ module Google
|
|
220
166
|
end
|
221
167
|
end
|
222
168
|
|
223
|
-
class GoogleCloudPolicysimulatorV1beta1AccessStateDiff
|
224
|
-
# @private
|
225
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
-
property :access_change, as: 'accessChange'
|
227
|
-
property :baseline, as: 'baseline', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess::Representation
|
228
|
-
|
229
|
-
property :simulated, as: 'simulated', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess::Representation
|
230
|
-
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
|
-
class GoogleCloudPolicysimulatorV1beta1AccessTuple
|
235
|
-
# @private
|
236
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
-
property :full_resource_name, as: 'fullResourceName'
|
238
|
-
property :permission, as: 'permission'
|
239
|
-
property :principal, as: 'principal'
|
240
|
-
end
|
241
|
-
end
|
242
|
-
|
243
|
-
class GoogleCloudPolicysimulatorV1beta1BindingExplanation
|
244
|
-
# @private
|
245
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
-
property :access, as: 'access'
|
247
|
-
property :condition, as: 'condition', class: Google::Apis::PolicysimulatorV1beta1::GoogleTypeExpr, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleTypeExpr::Representation
|
248
|
-
|
249
|
-
hash :memberships, as: 'memberships', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership::Representation
|
250
|
-
|
251
|
-
property :relevance, as: 'relevance'
|
252
|
-
property :role, as: 'role'
|
253
|
-
property :role_permission, as: 'rolePermission'
|
254
|
-
property :role_permission_relevance, as: 'rolePermissionRelevance'
|
255
|
-
end
|
256
|
-
end
|
257
|
-
|
258
|
-
class GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership
|
259
|
-
# @private
|
260
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
-
property :membership, as: 'membership'
|
262
|
-
property :relevance, as: 'relevance'
|
263
|
-
end
|
264
|
-
end
|
265
|
-
|
266
|
-
class GoogleCloudPolicysimulatorV1beta1ExplainedAccess
|
267
|
-
# @private
|
268
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
-
property :access_state, as: 'accessState'
|
270
|
-
collection :errors, as: 'errors', class: Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus::Representation
|
271
|
-
|
272
|
-
collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedPolicy, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedPolicy::Representation
|
273
|
-
|
274
|
-
end
|
275
|
-
end
|
276
|
-
|
277
|
-
class GoogleCloudPolicysimulatorV1beta1ExplainedPolicy
|
278
|
-
# @private
|
279
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
-
property :access, as: 'access'
|
281
|
-
collection :binding_explanations, as: 'bindingExplanations', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1BindingExplanation, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1BindingExplanation::Representation
|
282
|
-
|
283
|
-
property :full_resource_name, as: 'fullResourceName'
|
284
|
-
property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1beta1::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleIamV1Policy::Representation
|
285
|
-
|
286
|
-
property :relevance, as: 'relevance'
|
287
|
-
end
|
288
|
-
end
|
289
|
-
|
290
|
-
class GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse
|
291
|
-
# @private
|
292
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
-
property :next_page_token, as: 'nextPageToken'
|
294
|
-
collection :replay_results, as: 'replayResults', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayResult, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayResult::Representation
|
295
|
-
|
296
|
-
end
|
297
|
-
end
|
298
|
-
|
299
169
|
class GoogleCloudPolicysimulatorV1beta1Replay
|
300
170
|
# @private
|
301
171
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -317,14 +187,6 @@ module Google
|
|
317
187
|
end
|
318
188
|
end
|
319
189
|
|
320
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayDiff
|
321
|
-
# @private
|
322
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
323
|
-
property :access_diff, as: 'accessDiff', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessStateDiff, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessStateDiff::Representation
|
324
|
-
|
325
|
-
end
|
326
|
-
end
|
327
|
-
|
328
190
|
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
329
191
|
# @private
|
330
192
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -332,22 +194,6 @@ module Google
|
|
332
194
|
end
|
333
195
|
end
|
334
196
|
|
335
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResult
|
336
|
-
# @private
|
337
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
338
|
-
property :access_tuple, as: 'accessTuple', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessTuple, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessTuple::Representation
|
339
|
-
|
340
|
-
property :diff, as: 'diff', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayDiff, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayDiff::Representation
|
341
|
-
|
342
|
-
property :error, as: 'error', class: Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus::Representation
|
343
|
-
|
344
|
-
property :last_seen_date, as: 'lastSeenDate', class: Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate::Representation
|
345
|
-
|
346
|
-
property :name, as: 'name'
|
347
|
-
property :parent, as: 'parent'
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
197
|
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
352
198
|
# @private
|
353
199
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -55,12 +55,10 @@ module Google
|
|
55
55
|
@batch_path = 'batch'
|
56
56
|
end
|
57
57
|
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
# my-example-project/locations/global`
|
63
|
-
# @param [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay] google_cloud_policysimulator_v1beta1_replay_object
|
58
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
59
|
+
# to poll the operation result at intervals as recommended by the API service.
|
60
|
+
# @param [String] name
|
61
|
+
# The name of the operation resource.
|
64
62
|
# @param [String] fields
|
65
63
|
# Selector specifying which fields to include in a partial response.
|
66
64
|
# @param [String] quota_user
|
@@ -78,46 +76,10 @@ module Google
|
|
78
76
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
-
def
|
82
|
-
command = make_simple_command(:
|
83
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay::Representation
|
84
|
-
command.request_object = google_cloud_policysimulator_v1beta1_replay_object
|
79
|
+
def get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
85
81
|
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleLongrunningOperation::Representation
|
86
82
|
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleLongrunningOperation
|
87
|
-
command.params['parent'] = parent unless parent.nil?
|
88
|
-
command.query['fields'] = fields unless fields.nil?
|
89
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
-
execute_or_queue_command(command, &block)
|
91
|
-
end
|
92
|
-
|
93
|
-
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
94
|
-
# @param [String] name
|
95
|
-
# Required. The name of the Replay to retrieve, in the following format: ``
|
96
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
97
|
-
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
98
|
-
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
99
|
-
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
100
|
-
# @param [String] fields
|
101
|
-
# Selector specifying which fields to include in a partial response.
|
102
|
-
# @param [String] quota_user
|
103
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
-
# @param [Google::Apis::RequestOptions] options
|
106
|
-
# Request-specific options
|
107
|
-
#
|
108
|
-
# @yield [result, err] Result & error if block supplied
|
109
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay] parsed result object
|
110
|
-
# @yieldparam err [StandardError] error object if request failed
|
111
|
-
#
|
112
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay]
|
113
|
-
#
|
114
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
-
def get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
119
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay::Representation
|
120
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay
|
121
83
|
command.params['name'] = name unless name.nil?
|
122
84
|
command.query['fields'] = fields unless fields.nil?
|
123
85
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -201,49 +163,6 @@ module Google
|
|
201
163
|
execute_or_queue_command(command, &block)
|
202
164
|
end
|
203
165
|
|
204
|
-
# Lists the results of running a Replay.
|
205
|
-
# @param [String] parent
|
206
|
-
# Required. The Replay whose results are listed, in the following format: ``
|
207
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
208
|
-
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
209
|
-
# 8e03-479ce1833c36`
|
210
|
-
# @param [Fixnum] page_size
|
211
|
-
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
212
|
-
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
213
|
-
# @param [String] page_token
|
214
|
-
# A page token, received from a previous Simulator.ListReplayResults call.
|
215
|
-
# Provide this token to retrieve the next page of results. When paginating, all
|
216
|
-
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
217
|
-
# call that provided the page token.
|
218
|
-
# @param [String] fields
|
219
|
-
# Selector specifying which fields to include in a partial response.
|
220
|
-
# @param [String] quota_user
|
221
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
222
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
223
|
-
# @param [Google::Apis::RequestOptions] options
|
224
|
-
# Request-specific options
|
225
|
-
#
|
226
|
-
# @yield [result, err] Result & error if block supplied
|
227
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse] parsed result object
|
228
|
-
# @yieldparam err [StandardError] error object if request failed
|
229
|
-
#
|
230
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse]
|
231
|
-
#
|
232
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
233
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
234
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
235
|
-
def list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
236
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/results', options)
|
237
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse::Representation
|
238
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse
|
239
|
-
command.params['parent'] = parent unless parent.nil?
|
240
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
241
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
242
|
-
command.query['fields'] = fields unless fields.nil?
|
243
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
244
|
-
execute_or_queue_command(command, &block)
|
245
|
-
end
|
246
|
-
|
247
166
|
# Gets the latest state of a long-running operation. Clients can use this method
|
248
167
|
# to poll the operation result at intervals as recommended by the API service.
|
249
168
|
# @param [String] name
|
@@ -321,12 +240,10 @@ module Google
|
|
321
240
|
execute_or_queue_command(command, &block)
|
322
241
|
end
|
323
242
|
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
# my-example-project/locations/global`
|
329
|
-
# @param [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay] google_cloud_policysimulator_v1beta1_replay_object
|
243
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
244
|
+
# to poll the operation result at intervals as recommended by the API service.
|
245
|
+
# @param [String] name
|
246
|
+
# The name of the operation resource.
|
330
247
|
# @param [String] fields
|
331
248
|
# Selector specifying which fields to include in a partial response.
|
332
249
|
# @param [String] quota_user
|
@@ -344,46 +261,10 @@ module Google
|
|
344
261
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
345
262
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
346
263
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
347
|
-
def
|
348
|
-
command = make_simple_command(:
|
349
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay::Representation
|
350
|
-
command.request_object = google_cloud_policysimulator_v1beta1_replay_object
|
264
|
+
def get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
351
266
|
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleLongrunningOperation::Representation
|
352
267
|
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleLongrunningOperation
|
353
|
-
command.params['parent'] = parent unless parent.nil?
|
354
|
-
command.query['fields'] = fields unless fields.nil?
|
355
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
356
|
-
execute_or_queue_command(command, &block)
|
357
|
-
end
|
358
|
-
|
359
|
-
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
360
|
-
# @param [String] name
|
361
|
-
# Required. The name of the Replay to retrieve, in the following format: ``
|
362
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
363
|
-
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
364
|
-
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
365
|
-
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
366
|
-
# @param [String] fields
|
367
|
-
# Selector specifying which fields to include in a partial response.
|
368
|
-
# @param [String] quota_user
|
369
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
370
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
371
|
-
# @param [Google::Apis::RequestOptions] options
|
372
|
-
# Request-specific options
|
373
|
-
#
|
374
|
-
# @yield [result, err] Result & error if block supplied
|
375
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay] parsed result object
|
376
|
-
# @yieldparam err [StandardError] error object if request failed
|
377
|
-
#
|
378
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay]
|
379
|
-
#
|
380
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
381
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
382
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
383
|
-
def get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
384
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
385
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay::Representation
|
386
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay
|
387
268
|
command.params['name'] = name unless name.nil?
|
388
269
|
command.query['fields'] = fields unless fields.nil?
|
389
270
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -467,55 +348,10 @@ module Google
|
|
467
348
|
execute_or_queue_command(command, &block)
|
468
349
|
end
|
469
350
|
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
475
|
-
# 8e03-479ce1833c36`
|
476
|
-
# @param [Fixnum] page_size
|
477
|
-
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
478
|
-
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
479
|
-
# @param [String] page_token
|
480
|
-
# A page token, received from a previous Simulator.ListReplayResults call.
|
481
|
-
# Provide this token to retrieve the next page of results. When paginating, all
|
482
|
-
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
483
|
-
# call that provided the page token.
|
484
|
-
# @param [String] fields
|
485
|
-
# Selector specifying which fields to include in a partial response.
|
486
|
-
# @param [String] quota_user
|
487
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
488
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
489
|
-
# @param [Google::Apis::RequestOptions] options
|
490
|
-
# Request-specific options
|
491
|
-
#
|
492
|
-
# @yield [result, err] Result & error if block supplied
|
493
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse] parsed result object
|
494
|
-
# @yieldparam err [StandardError] error object if request failed
|
495
|
-
#
|
496
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse]
|
497
|
-
#
|
498
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
499
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
500
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
501
|
-
def list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
502
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/results', options)
|
503
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse::Representation
|
504
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse
|
505
|
-
command.params['parent'] = parent unless parent.nil?
|
506
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
507
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
508
|
-
command.query['fields'] = fields unless fields.nil?
|
509
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
510
|
-
execute_or_queue_command(command, &block)
|
511
|
-
end
|
512
|
-
|
513
|
-
# Creates and starts a Replay using the given ReplayConfig.
|
514
|
-
# @param [String] parent
|
515
|
-
# Required. The parent resource where this Replay will be created. This resource
|
516
|
-
# must be a project, folder, or organization with a location. Example: `projects/
|
517
|
-
# my-example-project/locations/global`
|
518
|
-
# @param [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay] google_cloud_policysimulator_v1beta1_replay_object
|
351
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
352
|
+
# to poll the operation result at intervals as recommended by the API service.
|
353
|
+
# @param [String] name
|
354
|
+
# The name of the operation resource.
|
519
355
|
# @param [String] fields
|
520
356
|
# Selector specifying which fields to include in a partial response.
|
521
357
|
# @param [String] quota_user
|
@@ -533,46 +369,10 @@ module Google
|
|
533
369
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
534
370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
535
371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
536
|
-
def
|
537
|
-
command = make_simple_command(:
|
538
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay::Representation
|
539
|
-
command.request_object = google_cloud_policysimulator_v1beta1_replay_object
|
372
|
+
def get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
373
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
540
374
|
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleLongrunningOperation::Representation
|
541
375
|
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleLongrunningOperation
|
542
|
-
command.params['parent'] = parent unless parent.nil?
|
543
|
-
command.query['fields'] = fields unless fields.nil?
|
544
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
545
|
-
execute_or_queue_command(command, &block)
|
546
|
-
end
|
547
|
-
|
548
|
-
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
549
|
-
# @param [String] name
|
550
|
-
# Required. The name of the Replay to retrieve, in the following format: ``
|
551
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
552
|
-
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
553
|
-
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
554
|
-
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
555
|
-
# @param [String] fields
|
556
|
-
# Selector specifying which fields to include in a partial response.
|
557
|
-
# @param [String] quota_user
|
558
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
559
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
560
|
-
# @param [Google::Apis::RequestOptions] options
|
561
|
-
# Request-specific options
|
562
|
-
#
|
563
|
-
# @yield [result, err] Result & error if block supplied
|
564
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay] parsed result object
|
565
|
-
# @yieldparam err [StandardError] error object if request failed
|
566
|
-
#
|
567
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay]
|
568
|
-
#
|
569
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
570
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
571
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
572
|
-
def get_project_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
573
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
574
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay::Representation
|
575
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1Replay
|
576
376
|
command.params['name'] = name unless name.nil?
|
577
377
|
command.query['fields'] = fields unless fields.nil?
|
578
378
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -655,49 +455,6 @@ module Google
|
|
655
455
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
656
456
|
execute_or_queue_command(command, &block)
|
657
457
|
end
|
658
|
-
|
659
|
-
# Lists the results of running a Replay.
|
660
|
-
# @param [String] parent
|
661
|
-
# Required. The Replay whose results are listed, in the following format: ``
|
662
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
663
|
-
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
664
|
-
# 8e03-479ce1833c36`
|
665
|
-
# @param [Fixnum] page_size
|
666
|
-
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
667
|
-
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
668
|
-
# @param [String] page_token
|
669
|
-
# A page token, received from a previous Simulator.ListReplayResults call.
|
670
|
-
# Provide this token to retrieve the next page of results. When paginating, all
|
671
|
-
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
672
|
-
# call that provided the page token.
|
673
|
-
# @param [String] fields
|
674
|
-
# Selector specifying which fields to include in a partial response.
|
675
|
-
# @param [String] quota_user
|
676
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
677
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
678
|
-
# @param [Google::Apis::RequestOptions] options
|
679
|
-
# Request-specific options
|
680
|
-
#
|
681
|
-
# @yield [result, err] Result & error if block supplied
|
682
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse] parsed result object
|
683
|
-
# @yieldparam err [StandardError] error object if request failed
|
684
|
-
#
|
685
|
-
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse]
|
686
|
-
#
|
687
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
688
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
689
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
690
|
-
def list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
691
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/results', options)
|
692
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse::Representation
|
693
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ListReplayResultsResponse
|
694
|
-
command.params['parent'] = parent unless parent.nil?
|
695
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
696
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
697
|
-
command.query['fields'] = fields unless fields.nil?
|
698
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
699
|
-
execute_or_queue_command(command, &block)
|
700
|
-
end
|
701
458
|
|
702
459
|
protected
|
703
460
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-policysimulator_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.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-02-
|
11
|
+
date: 2023-02-26 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_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta1/v0.28.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|