google-apis-accesscontextmanager_v1 0.6.0 → 0.10.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/accesscontextmanager_v1/classes.rb +425 -4
- data/lib/google/apis/accesscontextmanager_v1/gem_version.rb +3 -3
- data/lib/google/apis/accesscontextmanager_v1/representations.rb +156 -0
- data/lib/google/apis/accesscontextmanager_v1/service.rb +245 -67
- data/lib/google/apis/accesscontextmanager_v1.rb +1 -1
- metadata +7 -7
@@ -49,10 +49,10 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
52
|
+
# Creates an access policy. This method fails if the organization already has an
|
53
|
+
# access policy. The long-running operation has a successful status after the
|
54
|
+
# access policy propagates to long-lasting storage. Syntactic and basic semantic
|
55
|
+
# errors are returned in `metadata` as a BadRequest proto.
|
56
56
|
# @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object
|
57
57
|
# @param [String] fields
|
58
58
|
# Selector specifying which fields to include in a partial response.
|
@@ -82,9 +82,9 @@ module Google
|
|
82
82
|
execute_or_queue_command(command, &block)
|
83
83
|
end
|
84
84
|
|
85
|
-
#
|
86
|
-
# successful status
|
87
|
-
# storage.
|
85
|
+
# Deletes an access policy based on the resource name. The long-running
|
86
|
+
# operation has a successful status after the access policy is removed from long-
|
87
|
+
# lasting storage.
|
88
88
|
# @param [String] name
|
89
89
|
# Required. Resource name for the access policy to delete. Format `
|
90
90
|
# accessPolicies/`policy_id``
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
execute_or_queue_command(command, &block)
|
116
116
|
end
|
117
117
|
|
118
|
-
#
|
118
|
+
# Returns an access policy based on the name.
|
119
119
|
# @param [String] name
|
120
120
|
# Required. Resource name for the access policy to get. Format `accessPolicies/`
|
121
121
|
# policy_id``
|
@@ -146,7 +146,41 @@ module Google
|
|
146
146
|
execute_or_queue_command(command, &block)
|
147
147
|
end
|
148
148
|
|
149
|
-
#
|
149
|
+
# Gets the IAM policy for the specified Access Context Manager access policy.
|
150
|
+
# @param [String] resource
|
151
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
152
|
+
# operation documentation for the appropriate value for this field.
|
153
|
+
# @param [Google::Apis::AccesscontextmanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
154
|
+
# @param [String] fields
|
155
|
+
# Selector specifying which fields to include in a partial response.
|
156
|
+
# @param [String] quota_user
|
157
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
158
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
159
|
+
# @param [Google::Apis::RequestOptions] options
|
160
|
+
# Request-specific options
|
161
|
+
#
|
162
|
+
# @yield [result, err] Result & error if block supplied
|
163
|
+
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::Policy] parsed result object
|
164
|
+
# @yieldparam err [StandardError] error object if request failed
|
165
|
+
#
|
166
|
+
# @return [Google::Apis::AccesscontextmanagerV1::Policy]
|
167
|
+
#
|
168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
171
|
+
def get_access_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
172
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
173
|
+
command.request_representation = Google::Apis::AccesscontextmanagerV1::GetIamPolicyRequest::Representation
|
174
|
+
command.request_object = get_iam_policy_request_object
|
175
|
+
command.response_representation = Google::Apis::AccesscontextmanagerV1::Policy::Representation
|
176
|
+
command.response_class = Google::Apis::AccesscontextmanagerV1::Policy
|
177
|
+
command.params['resource'] = resource unless resource.nil?
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
+
execute_or_queue_command(command, &block)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Lists all access policies in an organization.
|
150
184
|
# @param [Fixnum] page_size
|
151
185
|
# Number of AccessPolicy instances to include in the list. Default 100.
|
152
186
|
# @param [String] page_token
|
@@ -184,13 +218,12 @@ module Google
|
|
184
218
|
execute_or_queue_command(command, &block)
|
185
219
|
end
|
186
220
|
|
187
|
-
#
|
188
|
-
# successful status
|
189
|
-
# lasting storage.
|
190
|
-
# metadata` as a BadRequest proto.
|
221
|
+
# Updates an access policy. The long-running operation from this RPC has a
|
222
|
+
# successful status after the changes to the access policy propagate to long-
|
223
|
+
# lasting storage.
|
191
224
|
# @param [String] name
|
192
225
|
# Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
|
193
|
-
#
|
226
|
+
# access_policy``
|
194
227
|
# @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object
|
195
228
|
# @param [String] update_mask
|
196
229
|
# Required. Mask to control which fields get updated. Must be non-empty.
|
@@ -224,10 +257,83 @@ module Google
|
|
224
257
|
execute_or_queue_command(command, &block)
|
225
258
|
end
|
226
259
|
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
260
|
+
# Sets the IAM policy for the specified Access Context Manager access policy.
|
261
|
+
# This method replaces the existing IAM policy on the access policy. The IAM
|
262
|
+
# policy controls the set of users who can perform specific operations on the
|
263
|
+
# Access Context Manager access policy.
|
264
|
+
# @param [String] resource
|
265
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
266
|
+
# operation documentation for the appropriate value for this field.
|
267
|
+
# @param [Google::Apis::AccesscontextmanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
268
|
+
# @param [String] fields
|
269
|
+
# Selector specifying which fields to include in a partial response.
|
270
|
+
# @param [String] quota_user
|
271
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
272
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
273
|
+
# @param [Google::Apis::RequestOptions] options
|
274
|
+
# Request-specific options
|
275
|
+
#
|
276
|
+
# @yield [result, err] Result & error if block supplied
|
277
|
+
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::Policy] parsed result object
|
278
|
+
# @yieldparam err [StandardError] error object if request failed
|
279
|
+
#
|
280
|
+
# @return [Google::Apis::AccesscontextmanagerV1::Policy]
|
281
|
+
#
|
282
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
283
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
284
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
285
|
+
def set_access_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
286
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
287
|
+
command.request_representation = Google::Apis::AccesscontextmanagerV1::SetIamPolicyRequest::Representation
|
288
|
+
command.request_object = set_iam_policy_request_object
|
289
|
+
command.response_representation = Google::Apis::AccesscontextmanagerV1::Policy::Representation
|
290
|
+
command.response_class = Google::Apis::AccesscontextmanagerV1::Policy
|
291
|
+
command.params['resource'] = resource unless resource.nil?
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
294
|
+
execute_or_queue_command(command, &block)
|
295
|
+
end
|
296
|
+
|
297
|
+
# Returns the IAM permissions that the caller has on the specified Access
|
298
|
+
# Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or
|
299
|
+
# ServicePerimeter. This method does not support other resources.
|
300
|
+
# @param [String] resource
|
301
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
302
|
+
# operation documentation for the appropriate value for this field.
|
303
|
+
# @param [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
304
|
+
# @param [String] fields
|
305
|
+
# Selector specifying which fields to include in a partial response.
|
306
|
+
# @param [String] quota_user
|
307
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
308
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
309
|
+
# @param [Google::Apis::RequestOptions] options
|
310
|
+
# Request-specific options
|
311
|
+
#
|
312
|
+
# @yield [result, err] Result & error if block supplied
|
313
|
+
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse] parsed result object
|
314
|
+
# @yieldparam err [StandardError] error object if request failed
|
315
|
+
#
|
316
|
+
# @return [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse]
|
317
|
+
#
|
318
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
319
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
|
+
def test_access_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
322
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
323
|
+
command.request_representation = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsRequest::Representation
|
324
|
+
command.request_object = test_iam_permissions_request_object
|
325
|
+
command.response_representation = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse::Representation
|
326
|
+
command.response_class = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse
|
327
|
+
command.params['resource'] = resource unless resource.nil?
|
328
|
+
command.query['fields'] = fields unless fields.nil?
|
329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
330
|
+
execute_or_queue_command(command, &block)
|
331
|
+
end
|
332
|
+
|
333
|
+
# Creates an access level. The long-running operation from this RPC has a
|
334
|
+
# successful status after the access level propagates to long-lasting storage.
|
335
|
+
# If access levels contain errors, an error response is returned for the first
|
336
|
+
# error encountered.
|
231
337
|
# @param [String] parent
|
232
338
|
# Required. Resource name for the access policy which owns this Access Level.
|
233
339
|
# Format: `accessPolicies/`policy_id``
|
@@ -261,9 +367,9 @@ module Google
|
|
261
367
|
execute_or_queue_command(command, &block)
|
262
368
|
end
|
263
369
|
|
264
|
-
#
|
265
|
-
# RPC
|
266
|
-
# long-lasting storage.
|
370
|
+
# Deletes an access level based on the resource name. The long-running operation
|
371
|
+
# from this RPC has a successful status after the access level has been removed
|
372
|
+
# from long-lasting storage.
|
267
373
|
# @param [String] name
|
268
374
|
# Required. Resource name for the Access Level. Format: `accessPolicies/`
|
269
375
|
# policy_id`/accessLevels/`access_level_id``
|
@@ -294,7 +400,7 @@ module Google
|
|
294
400
|
execute_or_queue_command(command, &block)
|
295
401
|
end
|
296
402
|
|
297
|
-
#
|
403
|
+
# Gets an access level based on the resource name.
|
298
404
|
# @param [String] name
|
299
405
|
# Required. Resource name for the Access Level. Format: `accessPolicies/`
|
300
406
|
# policy_id`/accessLevels/`access_level_id``
|
@@ -332,7 +438,7 @@ module Google
|
|
332
438
|
execute_or_queue_command(command, &block)
|
333
439
|
end
|
334
440
|
|
335
|
-
#
|
441
|
+
# Lists all access levels for an access policy.
|
336
442
|
# @param [String] parent
|
337
443
|
# Required. Resource name for the access policy to list Access Levels from.
|
338
444
|
# Format: `accessPolicies/`policy_id``
|
@@ -375,15 +481,15 @@ module Google
|
|
375
481
|
execute_or_queue_command(command, &block)
|
376
482
|
end
|
377
483
|
|
378
|
-
#
|
379
|
-
# successful status
|
380
|
-
# lasting storage.
|
381
|
-
#
|
484
|
+
# Updates an access level. The long-running operation from this RPC has a
|
485
|
+
# successful status after the changes to the access level propagate to long-
|
486
|
+
# lasting storage. If access levels contain errors, an error response is
|
487
|
+
# returned for the first error encountered.
|
382
488
|
# @param [String] name
|
383
489
|
# Required. Resource name for the Access Level. The `short_name` component must
|
384
490
|
# begin with a letter and only include alphanumeric and '_'. Format: `
|
385
|
-
# accessPolicies/`
|
386
|
-
# the `
|
491
|
+
# accessPolicies/`access_policy`/accessLevels/`access_level``. The maximum
|
492
|
+
# length of the `access_level` component is 50 characters.
|
387
493
|
# @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_object
|
388
494
|
# @param [String] update_mask
|
389
495
|
# Required. Mask to control which fields get updated. Must be non-empty.
|
@@ -417,14 +523,14 @@ module Google
|
|
417
523
|
execute_or_queue_command(command, &block)
|
418
524
|
end
|
419
525
|
|
420
|
-
#
|
421
|
-
# provided. This is done atomically. The
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
526
|
+
# Replaces all existing access levels in an access policy with the access levels
|
527
|
+
# provided. This is done atomically. The long-running operation from this RPC
|
528
|
+
# has a successful status after all replacements propagate to long-lasting
|
529
|
+
# storage. If the replacement contains errors, an error response is returned for
|
530
|
+
# the first error encountered. Upon error, the replacement is cancelled, and
|
531
|
+
# existing access levels are not affected. The Operation.response field contains
|
532
|
+
# ReplaceAccessLevelsResponse. Removing access levels contained in existing
|
533
|
+
# service perimeters result in an error.
|
428
534
|
# @param [String] parent
|
429
535
|
# Required. Resource name for the access policy which owns these Access Levels.
|
430
536
|
# Format: `accessPolicies/`policy_id``
|
@@ -458,16 +564,52 @@ module Google
|
|
458
564
|
execute_or_queue_command(command, &block)
|
459
565
|
end
|
460
566
|
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
567
|
+
# Returns the IAM permissions that the caller has on the specified Access
|
568
|
+
# Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or
|
569
|
+
# ServicePerimeter. This method does not support other resources.
|
570
|
+
# @param [String] resource
|
571
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
572
|
+
# operation documentation for the appropriate value for this field.
|
573
|
+
# @param [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
574
|
+
# @param [String] fields
|
575
|
+
# Selector specifying which fields to include in a partial response.
|
576
|
+
# @param [String] quota_user
|
577
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
578
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
579
|
+
# @param [Google::Apis::RequestOptions] options
|
580
|
+
# Request-specific options
|
581
|
+
#
|
582
|
+
# @yield [result, err] Result & error if block supplied
|
583
|
+
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse] parsed result object
|
584
|
+
# @yieldparam err [StandardError] error object if request failed
|
585
|
+
#
|
586
|
+
# @return [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse]
|
587
|
+
#
|
588
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
589
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
590
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
591
|
+
def test_access_level_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
592
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
593
|
+
command.request_representation = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsRequest::Representation
|
594
|
+
command.request_object = test_iam_permissions_request_object
|
595
|
+
command.response_representation = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse::Representation
|
596
|
+
command.response_class = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse
|
597
|
+
command.params['resource'] = resource unless resource.nil?
|
598
|
+
command.query['fields'] = fields unless fields.nil?
|
599
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
600
|
+
execute_or_queue_command(command, &block)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Commits the dry-run specification for all the service perimeters in an access
|
604
|
+
# policy. A commit operation on a service perimeter involves copying its `spec`
|
605
|
+
# field to the `status` field of the service perimeter. Only service perimeters
|
606
|
+
# with `use_explicit_dry_run_spec` field set to true are affected by a commit
|
607
|
+
# operation. The long-running operation from this RPC has a successful status
|
608
|
+
# after the dry-run specifications for all the service perimeters have been
|
609
|
+
# committed. If a commit fails, it causes the long-running operation to return
|
610
|
+
# an error response and the entire commit operation is cancelled. When
|
611
|
+
# successful, the Operation.response field contains
|
612
|
+
# CommitServicePerimetersResponse. The `dry_run` and the `spec` fields are
|
471
613
|
# cleared after a successful commit operation.
|
472
614
|
# @param [String] parent
|
473
615
|
# Required. Resource name for the parent Access Policy which owns all Service
|
@@ -503,9 +645,9 @@ module Google
|
|
503
645
|
execute_or_queue_command(command, &block)
|
504
646
|
end
|
505
647
|
|
506
|
-
#
|
507
|
-
#
|
508
|
-
# storage.
|
648
|
+
# Creates a service perimeter. The long-running operation from this RPC has a
|
649
|
+
# successful status after the service perimeter propagates to long-lasting
|
650
|
+
# storage. If a service perimeter contains errors, an error response is returned
|
509
651
|
# for the first error encountered.
|
510
652
|
# @param [String] parent
|
511
653
|
# Required. Resource name for the access policy which owns this Service
|
@@ -540,8 +682,8 @@ module Google
|
|
540
682
|
execute_or_queue_command(command, &block)
|
541
683
|
end
|
542
684
|
|
543
|
-
#
|
544
|
-
# this RPC
|
685
|
+
# Deletes a service perimeter based on the resource name. The long-running
|
686
|
+
# operation from this RPC has a successful status after the service perimeter is
|
545
687
|
# removed from long-lasting storage.
|
546
688
|
# @param [String] name
|
547
689
|
# Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
|
@@ -573,7 +715,7 @@ module Google
|
|
573
715
|
execute_or_queue_command(command, &block)
|
574
716
|
end
|
575
717
|
|
576
|
-
#
|
718
|
+
# Gets a service perimeter based on the resource name.
|
577
719
|
# @param [String] name
|
578
720
|
# Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
|
579
721
|
# policy_id`/servicePerimeters/`service_perimeters_id``
|
@@ -604,7 +746,7 @@ module Google
|
|
604
746
|
execute_or_queue_command(command, &block)
|
605
747
|
end
|
606
748
|
|
607
|
-
#
|
749
|
+
# Lists all service perimeters for an access policy.
|
608
750
|
# @param [String] parent
|
609
751
|
# Required. Resource name for the access policy to list Service Perimeters from.
|
610
752
|
# Format: `accessPolicies/`policy_id``
|
@@ -642,14 +784,14 @@ module Google
|
|
642
784
|
execute_or_queue_command(command, &block)
|
643
785
|
end
|
644
786
|
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
648
|
-
#
|
787
|
+
# Updates a service perimeter. The long-running operation from this RPC has a
|
788
|
+
# successful status after the service perimeter propagates to long-lasting
|
789
|
+
# storage. If a service perimeter contains errors, an error response is returned
|
790
|
+
# for the first error encountered.
|
649
791
|
# @param [String] name
|
650
792
|
# Required. Resource name for the ServicePerimeter. The `short_name` component
|
651
793
|
# must begin with a letter and only include alphanumeric and '_'. Format: `
|
652
|
-
# accessPolicies/`
|
794
|
+
# accessPolicies/`access_policy`/servicePerimeters/`service_perimeter``
|
653
795
|
# @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_object
|
654
796
|
# @param [String] update_mask
|
655
797
|
# Required. Mask to control which fields get updated. Must be non-empty.
|
@@ -683,13 +825,13 @@ module Google
|
|
683
825
|
execute_or_queue_command(command, &block)
|
684
826
|
end
|
685
827
|
|
686
|
-
# Replace all existing
|
687
|
-
#
|
688
|
-
# this RPC
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
828
|
+
# Replace all existing service perimeters in an access policy with the service
|
829
|
+
# perimeters provided. This is done atomically. The long-running operation from
|
830
|
+
# this RPC has a successful status after all replacements propagate to long-
|
831
|
+
# lasting storage. Replacements containing errors result in an error response
|
832
|
+
# for the first error encountered. Upon an error, replacement are cancelled and
|
833
|
+
# existing service perimeters are not affected. The Operation.response field
|
834
|
+
# contains ReplaceServicePerimetersResponse.
|
693
835
|
# @param [String] parent
|
694
836
|
# Required. Resource name for the access policy which owns these Service
|
695
837
|
# Perimeters. Format: `accessPolicies/`policy_id``
|
@@ -723,6 +865,42 @@ module Google
|
|
723
865
|
execute_or_queue_command(command, &block)
|
724
866
|
end
|
725
867
|
|
868
|
+
# Returns the IAM permissions that the caller has on the specified Access
|
869
|
+
# Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or
|
870
|
+
# ServicePerimeter. This method does not support other resources.
|
871
|
+
# @param [String] resource
|
872
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
873
|
+
# operation documentation for the appropriate value for this field.
|
874
|
+
# @param [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
875
|
+
# @param [String] fields
|
876
|
+
# Selector specifying which fields to include in a partial response.
|
877
|
+
# @param [String] quota_user
|
878
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
879
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
880
|
+
# @param [Google::Apis::RequestOptions] options
|
881
|
+
# Request-specific options
|
882
|
+
#
|
883
|
+
# @yield [result, err] Result & error if block supplied
|
884
|
+
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse] parsed result object
|
885
|
+
# @yieldparam err [StandardError] error object if request failed
|
886
|
+
#
|
887
|
+
# @return [Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse]
|
888
|
+
#
|
889
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
890
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
891
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
892
|
+
def test_service_perimeter_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
893
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
894
|
+
command.request_representation = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsRequest::Representation
|
895
|
+
command.request_object = test_iam_permissions_request_object
|
896
|
+
command.response_representation = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse::Representation
|
897
|
+
command.response_class = Google::Apis::AccesscontextmanagerV1::TestIamPermissionsResponse
|
898
|
+
command.params['resource'] = resource unless resource.nil?
|
899
|
+
command.query['fields'] = fields unless fields.nil?
|
900
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
901
|
+
execute_or_queue_command(command, &block)
|
902
|
+
end
|
903
|
+
|
726
904
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
727
905
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
728
906
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -874,7 +1052,7 @@ module Google
|
|
874
1052
|
end
|
875
1053
|
|
876
1054
|
# Creates a GcpUserAccessBinding. If the client specifies a name, the server
|
877
|
-
#
|
1055
|
+
# ignores it. Fails if a resource already exists with the same group_key.
|
878
1056
|
# Completion of this long-running operation does not necessarily signify that
|
879
1057
|
# the new binding is deployed onto all affected users, which may take more time.
|
880
1058
|
# @param [String] parent
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-accesscontextmanager_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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: 2021-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accesscontextmanager_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accesscontextmanager_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|