google-iam-v2 0.6.0 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/iam/v2/policies/client.rb +13 -5
- data/lib/google/iam/v2/policies/operations.rb +16 -15
- data/lib/google/iam/v2/policies/rest/client.rb +13 -5
- data/lib/google/iam/v2/policies/rest/operations.rb +14 -14
- data/lib/google/iam/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/longrunning/operations.rb +19 -14
- 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: 6c819f6c58cebafdc2ebb7b3b04a15d6ef6a0e3ddd4c001402eee453359c2e8e
|
4
|
+
data.tar.gz: f7a104dd3d7c6efe031f1e74f69a200ee0b2f2f2265e5bcdbcd584ab2fc638d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 774d63b8bb700d7441c95f138b27c5f8bc155a1d5909c769396f41881cc26cf28ad0a033f3bd99ae02177006c18eabd990e6020c4aaa45370fc8839f5ba1cbbd
|
7
|
+
data.tar.gz: 8b177bd609a48d7ea541f314c3726ad9cdd077dc7b28fb2f21a249618b25a696cf0b1ff73e4f41355a82e7ea0161189be29c8489b891dec0b81030fb2bf9810e
|
@@ -29,6 +29,9 @@ module Google
|
|
29
29
|
# An interface for managing Identity and Access Management (IAM) policies.
|
30
30
|
#
|
31
31
|
class Client
|
32
|
+
# @private
|
33
|
+
API_VERSION = ""
|
34
|
+
|
32
35
|
# @private
|
33
36
|
DEFAULT_ENDPOINT_TEMPLATE = "iam.$UNIVERSE_DOMAIN$"
|
34
37
|
|
@@ -276,10 +279,11 @@ module Google
|
|
276
279
|
# Customize the options with defaults
|
277
280
|
metadata = @config.rpcs.list_policies.metadata.to_h
|
278
281
|
|
279
|
-
# Set x-goog-api-client
|
282
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
280
283
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
281
284
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
282
285
|
gapic_version: ::Google::Iam::V2::VERSION
|
286
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
283
287
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
284
288
|
|
285
289
|
header_params = {}
|
@@ -371,10 +375,11 @@ module Google
|
|
371
375
|
# Customize the options with defaults
|
372
376
|
metadata = @config.rpcs.get_policy.metadata.to_h
|
373
377
|
|
374
|
-
# Set x-goog-api-client
|
378
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
375
379
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
376
380
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
377
381
|
gapic_version: ::Google::Iam::V2::VERSION
|
382
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
378
383
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
379
384
|
|
380
385
|
header_params = {}
|
@@ -480,10 +485,11 @@ module Google
|
|
480
485
|
# Customize the options with defaults
|
481
486
|
metadata = @config.rpcs.create_policy.metadata.to_h
|
482
487
|
|
483
|
-
# Set x-goog-api-client
|
488
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
484
489
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
485
490
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
486
491
|
gapic_version: ::Google::Iam::V2::VERSION
|
492
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
487
493
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
488
494
|
|
489
495
|
header_params = {}
|
@@ -587,10 +593,11 @@ module Google
|
|
587
593
|
# Customize the options with defaults
|
588
594
|
metadata = @config.rpcs.update_policy.metadata.to_h
|
589
595
|
|
590
|
-
# Set x-goog-api-client
|
596
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
591
597
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
592
598
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
593
599
|
gapic_version: ::Google::Iam::V2::VERSION
|
600
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
594
601
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
595
602
|
|
596
603
|
header_params = {}
|
@@ -696,10 +703,11 @@ module Google
|
|
696
703
|
# Customize the options with defaults
|
697
704
|
metadata = @config.rpcs.delete_policy.metadata.to_h
|
698
705
|
|
699
|
-
# Set x-goog-api-client
|
706
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
700
707
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
701
708
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
702
709
|
gapic_version: ::Google::Iam::V2::VERSION
|
710
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
703
711
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
704
712
|
|
705
713
|
header_params = {}
|
@@ -25,6 +25,9 @@ module Google
|
|
25
25
|
module Policies
|
26
26
|
# Service that implements Longrunning Operations API.
|
27
27
|
class Operations
|
28
|
+
# @private
|
29
|
+
API_VERSION = ""
|
30
|
+
|
28
31
|
# @private
|
29
32
|
DEFAULT_ENDPOINT_TEMPLATE = "iam.$UNIVERSE_DOMAIN$"
|
30
33
|
|
@@ -120,14 +123,6 @@ module Google
|
|
120
123
|
# Lists operations that match the specified filter in the request. If the
|
121
124
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
122
125
|
#
|
123
|
-
# NOTE: the `name` binding allows API services to override the binding
|
124
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
125
|
-
# override the binding, API services can add a binding such as
|
126
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
127
|
-
# For backwards compatibility, the default name includes the operations
|
128
|
-
# collection id, however overriding users must ensure the name binding
|
129
|
-
# is the parent resource, without the operations collection id.
|
130
|
-
#
|
131
126
|
# @overload list_operations(request, options = nil)
|
132
127
|
# Pass arguments to `list_operations` via a request object, either of type
|
133
128
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -190,10 +185,11 @@ module Google
|
|
190
185
|
# Customize the options with defaults
|
191
186
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
192
187
|
|
193
|
-
# Set x-goog-api-client
|
188
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
194
189
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
195
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
196
191
|
gapic_version: ::Google::Iam::V2::VERSION
|
192
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
197
193
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
198
194
|
|
199
195
|
header_params = {}
|
@@ -286,10 +282,11 @@ module Google
|
|
286
282
|
# Customize the options with defaults
|
287
283
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
288
284
|
|
289
|
-
# Set x-goog-api-client
|
285
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
290
286
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
291
287
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
292
288
|
gapic_version: ::Google::Iam::V2::VERSION
|
289
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
293
290
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
294
291
|
|
295
292
|
header_params = {}
|
@@ -375,10 +372,11 @@ module Google
|
|
375
372
|
# Customize the options with defaults
|
376
373
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
377
374
|
|
378
|
-
# Set x-goog-api-client
|
375
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
379
376
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
380
377
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
381
378
|
gapic_version: ::Google::Iam::V2::VERSION
|
379
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
382
380
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
381
|
|
384
382
|
header_params = {}
|
@@ -414,8 +412,9 @@ module Google
|
|
414
412
|
# other methods to check whether the cancellation succeeded or whether the
|
415
413
|
# operation completed despite cancellation. On successful cancellation,
|
416
414
|
# the operation is not deleted; instead, it becomes an operation with
|
417
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
418
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
419
418
|
#
|
420
419
|
# @overload cancel_operation(request, options = nil)
|
421
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -469,10 +468,11 @@ module Google
|
|
469
468
|
# Customize the options with defaults
|
470
469
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
471
470
|
|
472
|
-
# Set x-goog-api-client
|
471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
473
472
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
474
473
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
475
474
|
gapic_version: ::Google::Iam::V2::VERSION
|
475
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
476
476
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
477
477
|
|
478
478
|
header_params = {}
|
@@ -573,10 +573,11 @@ module Google
|
|
573
573
|
# Customize the options with defaults
|
574
574
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
575
575
|
|
576
|
-
# Set x-goog-api-client
|
576
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
577
577
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
578
578
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
579
579
|
gapic_version: ::Google::Iam::V2::VERSION
|
580
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
580
581
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
581
582
|
|
582
583
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# An interface for managing Identity and Access Management (IAM) policies.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "iam.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -268,12 +271,13 @@ module Google
|
|
268
271
|
# Customize the options with defaults
|
269
272
|
call_metadata = @config.rpcs.list_policies.metadata.to_h
|
270
273
|
|
271
|
-
# Set x-goog-api-client
|
274
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
272
275
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
273
276
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
274
277
|
gapic_version: ::Google::Iam::V2::VERSION,
|
275
278
|
transports_version_send: [:rest]
|
276
279
|
|
280
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
277
281
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
278
282
|
|
279
283
|
options.apply_defaults timeout: @config.rpcs.list_policies.timeout,
|
@@ -356,12 +360,13 @@ module Google
|
|
356
360
|
# Customize the options with defaults
|
357
361
|
call_metadata = @config.rpcs.get_policy.metadata.to_h
|
358
362
|
|
359
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
364
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
366
|
gapic_version: ::Google::Iam::V2::VERSION,
|
363
367
|
transports_version_send: [:rest]
|
364
368
|
|
369
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
365
370
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
371
|
|
367
372
|
options.apply_defaults timeout: @config.rpcs.get_policy.timeout,
|
@@ -458,12 +463,13 @@ module Google
|
|
458
463
|
# Customize the options with defaults
|
459
464
|
call_metadata = @config.rpcs.create_policy.metadata.to_h
|
460
465
|
|
461
|
-
# Set x-goog-api-client
|
466
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
462
467
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
463
468
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
464
469
|
gapic_version: ::Google::Iam::V2::VERSION,
|
465
470
|
transports_version_send: [:rest]
|
466
471
|
|
472
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
467
473
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
468
474
|
|
469
475
|
options.apply_defaults timeout: @config.rpcs.create_policy.timeout,
|
@@ -558,12 +564,13 @@ module Google
|
|
558
564
|
# Customize the options with defaults
|
559
565
|
call_metadata = @config.rpcs.update_policy.metadata.to_h
|
560
566
|
|
561
|
-
# Set x-goog-api-client
|
567
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
562
568
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
563
569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
564
570
|
gapic_version: ::Google::Iam::V2::VERSION,
|
565
571
|
transports_version_send: [:rest]
|
566
572
|
|
573
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
567
574
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
568
575
|
|
569
576
|
options.apply_defaults timeout: @config.rpcs.update_policy.timeout,
|
@@ -660,12 +667,13 @@ module Google
|
|
660
667
|
# Customize the options with defaults
|
661
668
|
call_metadata = @config.rpcs.delete_policy.metadata.to_h
|
662
669
|
|
663
|
-
# Set x-goog-api-client
|
670
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
664
671
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
665
672
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
666
673
|
gapic_version: ::Google::Iam::V2::VERSION,
|
667
674
|
transports_version_send: [:rest]
|
668
675
|
|
676
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
669
677
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
670
678
|
|
671
679
|
options.apply_defaults timeout: @config.rpcs.delete_policy.timeout,
|
@@ -25,6 +25,9 @@ module Google
|
|
25
25
|
module Rest
|
26
26
|
# Service that implements Longrunning Operations API.
|
27
27
|
class Operations
|
28
|
+
# @private
|
29
|
+
API_VERSION = ""
|
30
|
+
|
28
31
|
# @private
|
29
32
|
DEFAULT_ENDPOINT_TEMPLATE = "iam.$UNIVERSE_DOMAIN$"
|
30
33
|
|
@@ -111,14 +114,6 @@ module Google
|
|
111
114
|
# Lists operations that match the specified filter in the request. If the
|
112
115
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
113
116
|
#
|
114
|
-
# NOTE: the `name` binding allows API services to override the binding
|
115
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
116
|
-
# override the binding, API services can add a binding such as
|
117
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
118
|
-
# For backwards compatibility, the default name includes the operations
|
119
|
-
# collection id, however overriding users must ensure the name binding
|
120
|
-
# is the parent resource, without the operations collection id.
|
121
|
-
#
|
122
117
|
# @overload list_operations(request, options = nil)
|
123
118
|
# Pass arguments to `list_operations` via a request object, either of type
|
124
119
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -180,12 +175,13 @@ module Google
|
|
180
175
|
# Customize the options with defaults
|
181
176
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
182
177
|
|
183
|
-
# Set x-goog-api-client
|
178
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
184
179
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
185
180
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
186
181
|
gapic_version: ::Google::Iam::V2::VERSION,
|
187
182
|
transports_version_send: [:rest]
|
188
183
|
|
184
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
189
185
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
190
186
|
|
191
187
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -268,12 +264,13 @@ module Google
|
|
268
264
|
# Customize the options with defaults
|
269
265
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
270
266
|
|
271
|
-
# Set x-goog-api-client
|
267
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
272
268
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
273
269
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
274
270
|
gapic_version: ::Google::Iam::V2::VERSION,
|
275
271
|
transports_version_send: [:rest]
|
276
272
|
|
273
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
277
274
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
278
275
|
|
279
276
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -350,12 +347,13 @@ module Google
|
|
350
347
|
# Customize the options with defaults
|
351
348
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
352
349
|
|
353
|
-
# Set x-goog-api-client
|
350
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
354
351
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
355
352
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
356
353
|
gapic_version: ::Google::Iam::V2::VERSION,
|
357
354
|
transports_version_send: [:rest]
|
358
355
|
|
356
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
359
357
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
360
358
|
|
361
359
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -383,8 +381,9 @@ module Google
|
|
383
381
|
# other methods to check whether the cancellation succeeded or whether the
|
384
382
|
# operation completed despite cancellation. On successful cancellation,
|
385
383
|
# the operation is not deleted; instead, it becomes an operation with
|
386
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
387
|
-
# corresponding to
|
384
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
385
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
386
|
+
# `Code.CANCELLED`.
|
388
387
|
#
|
389
388
|
# @overload cancel_operation(request, options = nil)
|
390
389
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -437,12 +436,13 @@ module Google
|
|
437
436
|
# Customize the options with defaults
|
438
437
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
439
438
|
|
440
|
-
# Set x-goog-api-client
|
439
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
441
440
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
442
441
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
443
442
|
gapic_version: ::Google::Iam::V2::VERSION,
|
444
443
|
transports_version_send: [:rest]
|
445
444
|
|
445
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
446
446
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
447
447
|
|
448
448
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -118,6 +121,10 @@ module Google
|
|
118
121
|
# @return [::String]
|
119
122
|
# Optional link to proto reference documentation. Example:
|
120
123
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
124
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
125
|
+
# @return [::String]
|
126
|
+
# Optional link to REST reference documentation. Example:
|
127
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
128
|
class Publishing
|
122
129
|
include ::Google::Protobuf::MessageExts
|
123
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -192,9 +199,32 @@ module Google
|
|
192
199
|
# @!attribute [rw] common
|
193
200
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
201
|
# Some settings.
|
202
|
+
# @!attribute [rw] experimental_features
|
203
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
204
|
+
# Experimental features to be included during client library generation.
|
195
205
|
class PythonSettings
|
196
206
|
include ::Google::Protobuf::MessageExts
|
197
207
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
208
|
+
|
209
|
+
# Experimental features to be included during client library generation.
|
210
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
211
|
+
# by default.
|
212
|
+
# @!attribute [rw] rest_async_io_enabled
|
213
|
+
# @return [::Boolean]
|
214
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
215
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
216
|
+
# This feature will be enabled by default 1 month after launching the
|
217
|
+
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
224
|
+
class ExperimentalFeatures
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
198
228
|
end
|
199
229
|
|
200
230
|
# Settings for Node client libraries.
|
@@ -276,9 +306,28 @@ module Google
|
|
276
306
|
# @!attribute [rw] common
|
277
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
278
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
279
319
|
class GoSettings
|
280
320
|
include ::Google::Protobuf::MessageExts
|
281
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
282
331
|
end
|
283
332
|
|
284
333
|
# Describes the generator configuration for a method.
|
@@ -286,6 +335,13 @@ module Google
|
|
286
335
|
# @return [::String]
|
287
336
|
# The fully qualified name of the method, for which the options below apply.
|
288
337
|
# This is used to find the method to apply the options.
|
338
|
+
#
|
339
|
+
# Example:
|
340
|
+
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
343
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
344
|
+
# # method settings for CreateFolder...
|
289
345
|
# @!attribute [rw] long_running
|
290
346
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
347
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +350,14 @@ module Google
|
|
294
350
|
#
|
295
351
|
# Example of a YAML configuration::
|
296
352
|
#
|
297
|
-
#
|
298
|
-
#
|
353
|
+
# publishing:
|
354
|
+
# method_settings:
|
299
355
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
356
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
357
|
+
# initial_poll_delay: 60s # 1 minute
|
303
358
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
359
|
+
# max_poll_delay: 360s # 6 minutes
|
360
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
361
|
# @!attribute [rw] auto_populated_fields
|
309
362
|
# @return [::Array<::String>]
|
310
363
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +366,8 @@ module Google
|
|
313
366
|
#
|
314
367
|
# Example of a YAML configuration:
|
315
368
|
#
|
316
|
-
#
|
317
|
-
#
|
369
|
+
# publishing:
|
370
|
+
# method_settings:
|
318
371
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
372
|
# auto_populated_fields:
|
320
373
|
# - request_id
|
@@ -350,6 +403,17 @@ module Google
|
|
350
403
|
end
|
351
404
|
end
|
352
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
353
417
|
# The organization for which the client libraries are being published.
|
354
418
|
# Affects the url where generated docs are published, etc.
|
355
419
|
module ClientLibraryOrganization
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
43
|
# @!attribute [rw] response
|
44
44
|
# @return [::Google::Protobuf::Any]
|
45
|
-
# The normal response of the operation
|
45
|
+
# The normal, successful response of the operation. If the original
|
46
46
|
# method returns no data on success, such as `Delete`, the response is
|
47
47
|
# `google.protobuf.Empty`. If the original method is standard
|
48
48
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
@@ -55,7 +55,8 @@ module Google
|
|
55
55
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
56
|
end
|
57
57
|
|
58
|
-
# The request message for
|
58
|
+
# The request message for
|
59
|
+
# Operations.GetOperation.
|
59
60
|
# @!attribute [rw] name
|
60
61
|
# @return [::String]
|
61
62
|
# The name of the operation resource.
|
@@ -64,7 +65,8 @@ module Google
|
|
64
65
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
66
|
end
|
66
67
|
|
67
|
-
# The request message for
|
68
|
+
# The request message for
|
69
|
+
# Operations.ListOperations.
|
68
70
|
# @!attribute [rw] name
|
69
71
|
# @return [::String]
|
70
72
|
# The name of the operation's parent resource.
|
@@ -82,7 +84,8 @@ module Google
|
|
82
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
85
|
end
|
84
86
|
|
85
|
-
# The response message for
|
87
|
+
# The response message for
|
88
|
+
# Operations.ListOperations.
|
86
89
|
# @!attribute [rw] operations
|
87
90
|
# @return [::Array<::Google::Longrunning::Operation>]
|
88
91
|
# A list of operations that matches the specified filter in the request.
|
@@ -94,7 +97,8 @@ module Google
|
|
94
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
98
|
end
|
96
99
|
|
97
|
-
# The request message for
|
100
|
+
# The request message for
|
101
|
+
# Operations.CancelOperation.
|
98
102
|
# @!attribute [rw] name
|
99
103
|
# @return [::String]
|
100
104
|
# The name of the operation resource to be cancelled.
|
@@ -103,7 +107,8 @@ module Google
|
|
103
107
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
108
|
end
|
105
109
|
|
106
|
-
# The request message for
|
110
|
+
# The request message for
|
111
|
+
# Operations.DeleteOperation.
|
107
112
|
# @!attribute [rw] name
|
108
113
|
# @return [::String]
|
109
114
|
# The name of the operation resource to be deleted.
|
@@ -112,7 +117,8 @@ module Google
|
|
112
117
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
118
|
end
|
114
119
|
|
115
|
-
# The request message for
|
120
|
+
# The request message for
|
121
|
+
# Operations.WaitOperation.
|
116
122
|
# @!attribute [rw] name
|
117
123
|
# @return [::String]
|
118
124
|
# The name of the operation resource to wait on.
|
@@ -130,13 +136,12 @@ module Google
|
|
130
136
|
#
|
131
137
|
# Example:
|
132
138
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# }
|
139
|
-
# }
|
139
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
140
|
+
# option (google.longrunning.operation_info) = {
|
141
|
+
# response_type: "ExportResponse"
|
142
|
+
# metadata_type: "ExportMetadata"
|
143
|
+
# };
|
144
|
+
# }
|
140
145
|
# @!attribute [rw] response_type
|
141
146
|
# @return [::String]
|
142
147
|
# Required. The message name of the primary return type for this
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-iam-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.5.
|
108
|
+
rubygems_version: 3.5.23
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Manages identity and access control for Google Cloud Platform resources,
|