google-iam-v2 0.5.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2d73ab3eda7792c0abe1fdd80d591b0b07265e88f889a1fc17fbc671afc39c3
4
- data.tar.gz: 88d3174e89cc498d4155b10cd4973b28e6e769c0b269f8434eaa09b6fc87b823
3
+ metadata.gz: b743e5437f7987c2dfad011b985ffa7e3d6a1f530db05593f724279b446ab3b1
4
+ data.tar.gz: 8250b7387b993c634e3582e6bcd06fdb23a47f325ea831b041ac24c0aa2dd72c
5
5
  SHA512:
6
- metadata.gz: 723752569d4297d3a270d175bd822ccb62f06421ca3394438ff6496b765dd2674c027f8016bb08bbbfa9c374a3b15bc7b41a7c7d88026a549547401764ce88a8
7
- data.tar.gz: 611be380e1879577abf41760a86f33b15c0143a96e1881f5c92836a700e52a7110da78a685e2c781a509869fdd97d579a55addc44da832edd72f58d2a3a69213
6
+ metadata.gz: cf6340885b3cc1c4cbc4f8ab7764a8e053c1966f1340fd1539ec2f2d8c6b07b763bb50ba20133316596ba897d842a13e81390206f2a508b7317a27a667abf211
7
+ data.tar.gz: 366e42d5b219c94cb39dce3b16cf1446069b7e07b27e01cf1f9a253ff46caa321f93032aa157061217acf03b02153754c81a76a3ee733a15be90db63e117a913
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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
 
@@ -190,10 +193,11 @@ module Google
190
193
  # Customize the options with defaults
191
194
  metadata = @config.rpcs.list_operations.metadata.to_h
192
195
 
193
- # Set x-goog-api-client and x-goog-user-project headers
196
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
194
197
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
195
198
  lib_name: @config.lib_name, lib_version: @config.lib_version,
196
199
  gapic_version: ::Google::Iam::V2::VERSION
200
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
197
201
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
198
202
 
199
203
  header_params = {}
@@ -286,10 +290,11 @@ module Google
286
290
  # Customize the options with defaults
287
291
  metadata = @config.rpcs.get_operation.metadata.to_h
288
292
 
289
- # Set x-goog-api-client and x-goog-user-project headers
293
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
290
294
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
291
295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
292
296
  gapic_version: ::Google::Iam::V2::VERSION
297
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
293
298
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
299
 
295
300
  header_params = {}
@@ -375,10 +380,11 @@ module Google
375
380
  # Customize the options with defaults
376
381
  metadata = @config.rpcs.delete_operation.metadata.to_h
377
382
 
378
- # Set x-goog-api-client and x-goog-user-project headers
383
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
379
384
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
380
385
  lib_name: @config.lib_name, lib_version: @config.lib_version,
381
386
  gapic_version: ::Google::Iam::V2::VERSION
387
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
388
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
389
 
384
390
  header_params = {}
@@ -469,10 +475,11 @@ module Google
469
475
  # Customize the options with defaults
470
476
  metadata = @config.rpcs.cancel_operation.metadata.to_h
471
477
 
472
- # Set x-goog-api-client and x-goog-user-project headers
478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
473
479
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
474
480
  lib_name: @config.lib_name, lib_version: @config.lib_version,
475
481
  gapic_version: ::Google::Iam::V2::VERSION
482
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
476
483
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
484
 
478
485
  header_params = {}
@@ -573,10 +580,11 @@ module Google
573
580
  # Customize the options with defaults
574
581
  metadata = @config.rpcs.wait_operation.metadata.to_h
575
582
 
576
- # Set x-goog-api-client and x-goog-user-project headers
583
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
577
584
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
578
585
  lib_name: @config.lib_name, lib_version: @config.lib_version,
579
586
  gapic_version: ::Google::Iam::V2::VERSION
587
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
580
588
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
581
589
 
582
590
  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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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
 
@@ -180,12 +183,13 @@ module Google
180
183
  # Customize the options with defaults
181
184
  call_metadata = @config.rpcs.list_operations.metadata.to_h
182
185
 
183
- # Set x-goog-api-client and x-goog-user-project headers
186
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
184
187
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
185
188
  lib_name: @config.lib_name, lib_version: @config.lib_version,
186
189
  gapic_version: ::Google::Iam::V2::VERSION,
187
190
  transports_version_send: [:rest]
188
191
 
192
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
189
193
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
190
194
 
191
195
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -268,12 +272,13 @@ module Google
268
272
  # Customize the options with defaults
269
273
  call_metadata = @config.rpcs.get_operation.metadata.to_h
270
274
 
271
- # Set x-goog-api-client and x-goog-user-project headers
275
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
272
276
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
273
277
  lib_name: @config.lib_name, lib_version: @config.lib_version,
274
278
  gapic_version: ::Google::Iam::V2::VERSION,
275
279
  transports_version_send: [:rest]
276
280
 
281
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
277
282
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
278
283
 
279
284
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -350,12 +355,13 @@ module Google
350
355
  # Customize the options with defaults
351
356
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
352
357
 
353
- # Set x-goog-api-client and x-goog-user-project headers
358
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
359
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
360
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
361
  gapic_version: ::Google::Iam::V2::VERSION,
357
362
  transports_version_send: [:rest]
358
363
 
364
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
365
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
366
 
361
367
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -437,12 +443,13 @@ module Google
437
443
  # Customize the options with defaults
438
444
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
439
445
 
440
- # Set x-goog-api-client and x-goog-user-project headers
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
441
447
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
442
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
443
449
  gapic_version: ::Google::Iam::V2::VERSION,
444
450
  transports_version_send: [:rest]
445
451
 
452
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
446
453
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
454
 
448
455
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -12,7 +12,7 @@ require 'google/longrunning/operations_pb'
12
12
  require 'google/protobuf/timestamp_pb'
13
13
 
14
14
 
15
- descriptor_data = "\n\x1agoogle/iam/v2/policy.proto\x12\rgoogle.iam.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/iam/v2/deny.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x03\n\x06Policy\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05\x12\x11\n\x03uid\x18\x02 \x01(\tB\x04\xe2\x41\x01\x05\x12\x12\n\x04kind\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12;\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32&.google.iam.v2.Policy.AnnotationsEntry\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12\x35\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12(\n\x05rules\x18\n \x03(\x0b\x32\x19.google.iam.v2.PolicyRule\x12 \n\x12managing_authority\x18\x0b \x01(\tB\x04\xe2\x41\x01\x05\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\nPolicyRule\x12,\n\tdeny_rule\x18\x02 \x01(\x0b\x32\x17.google.iam.v2.DenyRuleH\x00\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x06\n\x04kind\"R\n\x13ListPoliciesRequest\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"X\n\x14ListPoliciesResponse\x12\'\n\x08policies\x18\x01 \x03(\x0b\x32\x15.google.iam.v2.Policy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"&\n\x10GetPolicyRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\"k\n\x13\x43reatePolicyRequest\x12\x14\n\x06parent\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12+\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v2.PolicyB\x04\xe2\x41\x01\x02\x12\x11\n\tpolicy_id\x18\x03 \x01(\t\"B\n\x13UpdatePolicyRequest\x12+\n\x06policy\x18\x01 \x01(\x0b\x32\x15.google.iam.v2.PolicyB\x04\xe2\x41\x01\x02\"=\n\x13\x44\x65letePolicyRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x12\n\x04\x65tag\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"J\n\x17PolicyOperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xd0\x06\n\x08Policies\x12\x83\x01\n\x0cListPolicies\x12\".google.iam.v2.ListPoliciesRequest\x1a#.google.iam.v2.ListPoliciesResponse\"*\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1b\x12\x19/v2/{parent=policies/*/*}\x12m\n\tGetPolicy\x12\x1f.google.iam.v2.GetPolicyRequest\x1a\x15.google.iam.v2.Policy\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v2/{name=policies/*/*/*}\x12\xba\x01\n\x0c\x43reatePolicy\x12\".google.iam.v2.CreatePolicyRequest\x1a\x1d.google.longrunning.Operation\"g\xca\x41!\n\x06Policy\x12\x17PolicyOperationMetadata\xda\x41\x17parent,policy,policy_id\x82\xd3\xe4\x93\x02#\"\x19/v2/{parent=policies/*/*}:\x06policy\x12\xa7\x01\n\x0cUpdatePolicy\x12\".google.iam.v2.UpdatePolicyRequest\x1a\x1d.google.longrunning.Operation\"T\xca\x41!\n\x06Policy\x12\x17PolicyOperationMetadata\x82\xd3\xe4\x93\x02*\x1a /v2/{policy.name=policies/*/*/*}:\x06policy\x12\x9f\x01\n\x0c\x44\x65letePolicy\x12\".google.iam.v2.DeletePolicyRequest\x1a\x1d.google.longrunning.Operation\"L\xca\x41!\n\x06Policy\x12\x17PolicyOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v2/{name=policies/*/*/*}\x1a\x46\xca\x41\x12iam.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBy\n\x11\x63om.google.iam.v2B\x0bPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv2/iampb;iampb\xaa\x02\x13Google.Cloud.Iam.V2\xca\x02\x13Google\\Cloud\\Iam\\V2b\x06proto3"
15
+ descriptor_data = "\n\x1agoogle/iam/v2/policy.proto\x12\rgoogle.iam.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/iam/v2/deny.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc2\x03\n\x06Policy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x11\n\x04kind\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12;\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32&.google.iam.v2.Policy.AnnotationsEntry\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12(\n\x05rules\x18\n \x03(\x0b\x32\x19.google.iam.v2.PolicyRule\x12\x1f\n\x12managing_authority\x18\x0b \x01(\tB\x03\xe0\x41\x05\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\nPolicyRule\x12,\n\tdeny_rule\x18\x02 \x01(\x0b\x32\x17.google.iam.v2.DenyRuleH\x00\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x06\n\x04kind\"Q\n\x13ListPoliciesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"X\n\x14ListPoliciesResponse\x12\'\n\x08policies\x18\x01 \x03(\x0b\x32\x15.google.iam.v2.Policy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"%\n\x10GetPolicyRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"i\n\x13\x43reatePolicyRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v2.PolicyB\x03\xe0\x41\x02\x12\x11\n\tpolicy_id\x18\x03 \x01(\t\"A\n\x13UpdatePolicyRequest\x12*\n\x06policy\x18\x01 \x01(\x0b\x32\x15.google.iam.v2.PolicyB\x03\xe0\x41\x02\";\n\x13\x44\x65letePolicyRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"J\n\x17PolicyOperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xd0\x06\n\x08Policies\x12\x83\x01\n\x0cListPolicies\x12\".google.iam.v2.ListPoliciesRequest\x1a#.google.iam.v2.ListPoliciesResponse\"*\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1b\x12\x19/v2/{parent=policies/*/*}\x12m\n\tGetPolicy\x12\x1f.google.iam.v2.GetPolicyRequest\x1a\x15.google.iam.v2.Policy\"(\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b\x12\x19/v2/{name=policies/*/*/*}\x12\xba\x01\n\x0c\x43reatePolicy\x12\".google.iam.v2.CreatePolicyRequest\x1a\x1d.google.longrunning.Operation\"g\xca\x41!\n\x06Policy\x12\x17PolicyOperationMetadata\xda\x41\x17parent,policy,policy_id\x82\xd3\xe4\x93\x02#\"\x19/v2/{parent=policies/*/*}:\x06policy\x12\xa7\x01\n\x0cUpdatePolicy\x12\".google.iam.v2.UpdatePolicyRequest\x1a\x1d.google.longrunning.Operation\"T\xca\x41!\n\x06Policy\x12\x17PolicyOperationMetadata\x82\xd3\xe4\x93\x02*\x1a /v2/{policy.name=policies/*/*/*}:\x06policy\x12\x9f\x01\n\x0c\x44\x65letePolicy\x12\".google.iam.v2.DeletePolicyRequest\x1a\x1d.google.longrunning.Operation\"L\xca\x41!\n\x06Policy\x12\x17PolicyOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1b*\x19/v2/{name=policies/*/*/*}\x1a\x46\xca\x41\x12iam.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBy\n\x11\x63om.google.iam.v2B\x0bPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv2/iampb;iampb\xaa\x02\x13Google.Cloud.Iam.V2\xca\x02\x13Google\\Cloud\\Iam\\V2b\x06proto3"
16
16
 
17
17
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
18
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V2
23
- VERSION = "0.5.2"
23
+ VERSION = "0.6.1"
24
24
  end
25
25
  end
26
26
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -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'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
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
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.5.2
4
+ version: 0.6.1
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-02-01 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,118 +44,6 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
- - !ruby/object:Gem::Dependency
48
- name: google-style
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 1.26.3
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 1.26.3
61
- - !ruby/object:Gem::Dependency
62
- name: minitest
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '5.16'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '5.16'
75
- - !ruby/object:Gem::Dependency
76
- name: minitest-focus
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.1'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.1'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-rg
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '5.2'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '5.2'
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '13.0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '13.0'
117
- - !ruby/object:Gem::Dependency
118
- name: redcarpet
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '3.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '3.0'
131
- - !ruby/object:Gem::Dependency
132
- name: simplecov
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '0.18'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '0.18'
145
- - !ruby/object:Gem::Dependency
146
- name: yard
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.9'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.9'
159
47
  description: Manages identity and access control policies for Google Cloud Platform
160
48
  resources. Note that google-iam-v2 is a version-specific client library. For most
161
49
  uses, we recommend installing the main client library google-iam-client instead.
@@ -210,14 +98,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
98
  requirements:
211
99
  - - ">="
212
100
  - !ruby/object:Gem::Version
213
- version: '2.6'
101
+ version: '2.7'
214
102
  required_rubygems_version: !ruby/object:Gem::Requirement
215
103
  requirements:
216
104
  - - ">="
217
105
  - !ruby/object:Gem::Version
218
106
  version: '0'
219
107
  requirements: []
220
- rubygems_version: 3.5.3
108
+ rubygems_version: 3.5.6
221
109
  signing_key:
222
110
  specification_version: 4
223
111
  summary: Manages identity and access control for Google Cloud Platform resources,