google-cloud-resource_manager-v3 0.8.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/resource_manager/v3/folders/client.rb +25 -11
  4. data/lib/google/cloud/resource_manager/v3/folders/operations.rb +13 -5
  5. data/lib/google/cloud/resource_manager/v3/folders/rest/client.rb +25 -11
  6. data/lib/google/cloud/resource_manager/v3/folders/rest/operations.rb +11 -4
  7. data/lib/google/cloud/resource_manager/v3/organizations/client.rb +13 -5
  8. data/lib/google/cloud/resource_manager/v3/organizations/rest/client.rb +13 -5
  9. data/lib/google/cloud/resource_manager/v3/projects/client.rb +25 -11
  10. data/lib/google/cloud/resource_manager/v3/projects/operations.rb +13 -5
  11. data/lib/google/cloud/resource_manager/v3/projects/rest/client.rb +25 -11
  12. data/lib/google/cloud/resource_manager/v3/projects/rest/operations.rb +11 -4
  13. data/lib/google/cloud/resource_manager/v3/tag_bindings/client.rb +11 -4
  14. data/lib/google/cloud/resource_manager/v3/tag_bindings/operations.rb +13 -5
  15. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/client.rb +11 -4
  16. data/lib/google/cloud/resource_manager/v3/tag_bindings/rest/operations.rb +11 -4
  17. data/lib/google/cloud/resource_manager/v3/tag_holds/client.rb +9 -3
  18. data/lib/google/cloud/resource_manager/v3/tag_holds/operations.rb +13 -5
  19. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/client.rb +9 -3
  20. data/lib/google/cloud/resource_manager/v3/tag_holds/rest/operations.rb +11 -4
  21. data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +21 -9
  22. data/lib/google/cloud/resource_manager/v3/tag_keys/operations.rb +13 -5
  23. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/client.rb +21 -9
  24. data/lib/google/cloud/resource_manager/v3/tag_keys/rest/operations.rb +11 -4
  25. data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +21 -9
  26. data/lib/google/cloud/resource_manager/v3/tag_values/operations.rb +13 -5
  27. data/lib/google/cloud/resource_manager/v3/tag_values/rest/client.rb +21 -9
  28. data/lib/google/cloud/resource_manager/v3/tag_values/rest/operations.rb +11 -4
  29. data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
  30. data/lib/google/cloud/resourcemanager/v3/folders_pb.rb +1 -1
  31. data/lib/google/cloud/resourcemanager/v3/organizations_pb.rb +1 -1
  32. data/lib/google/cloud/resourcemanager/v3/projects_pb.rb +1 -1
  33. data/lib/google/cloud/resourcemanager/v3/tag_bindings_pb.rb +1 -1
  34. data/lib/google/cloud/resourcemanager/v3/tag_holds_pb.rb +1 -1
  35. data/lib/google/cloud/resourcemanager/v3/tag_keys_pb.rb +1 -1
  36. data/lib/google/cloud/resourcemanager/v3/tag_values_pb.rb +1 -1
  37. data/proto_docs/google/api/client.rb +4 -0
  38. metadata +4 -116
@@ -30,6 +30,9 @@ module Google
30
30
  # Manages Google Cloud Projects.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
35
38
 
@@ -262,10 +265,11 @@ module Google
262
265
  # Customize the options with defaults
263
266
  metadata = @config.rpcs.get_project.metadata.to_h
264
267
 
265
- # Set x-goog-api-client and x-goog-user-project headers
268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
266
269
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
267
270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
268
271
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
272
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
269
273
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
274
 
271
275
  header_params = {}
@@ -372,10 +376,11 @@ module Google
372
376
  # Customize the options with defaults
373
377
  metadata = @config.rpcs.list_projects.metadata.to_h
374
378
 
375
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
376
380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
377
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
378
382
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  options.apply_defaults timeout: @config.rpcs.list_projects.timeout,
@@ -503,10 +508,11 @@ module Google
503
508
  # Customize the options with defaults
504
509
  metadata = @config.rpcs.search_projects.metadata.to_h
505
510
 
506
- # Set x-goog-api-client and x-goog-user-project headers
511
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
507
512
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
508
513
  lib_name: @config.lib_name, lib_version: @config.lib_version,
509
514
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
515
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
510
516
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
511
517
 
512
518
  options.apply_defaults timeout: @config.rpcs.search_projects.timeout,
@@ -600,10 +606,11 @@ module Google
600
606
  # Customize the options with defaults
601
607
  metadata = @config.rpcs.create_project.metadata.to_h
602
608
 
603
- # Set x-goog-api-client and x-goog-user-project headers
609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
604
610
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
605
611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
606
612
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
613
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
607
614
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
608
615
 
609
616
  options.apply_defaults timeout: @config.rpcs.create_project.timeout,
@@ -692,10 +699,11 @@ module Google
692
699
  # Customize the options with defaults
693
700
  metadata = @config.rpcs.update_project.metadata.to_h
694
701
 
695
- # Set x-goog-api-client and x-goog-user-project headers
702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
696
703
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
697
704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
698
705
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
706
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
699
707
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
700
708
 
701
709
  header_params = {}
@@ -800,10 +808,11 @@ module Google
800
808
  # Customize the options with defaults
801
809
  metadata = @config.rpcs.move_project.metadata.to_h
802
810
 
803
- # Set x-goog-api-client and x-goog-user-project headers
811
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
804
812
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
805
813
  lib_name: @config.lib_name, lib_version: @config.lib_version,
806
814
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
815
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
807
816
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
808
817
 
809
818
  header_params = {}
@@ -925,10 +934,11 @@ module Google
925
934
  # Customize the options with defaults
926
935
  metadata = @config.rpcs.delete_project.metadata.to_h
927
936
 
928
- # Set x-goog-api-client and x-goog-user-project headers
937
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
929
938
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
930
939
  lib_name: @config.lib_name, lib_version: @config.lib_version,
931
940
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
941
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
932
942
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
933
943
 
934
944
  header_params = {}
@@ -1028,10 +1038,11 @@ module Google
1028
1038
  # Customize the options with defaults
1029
1039
  metadata = @config.rpcs.undelete_project.metadata.to_h
1030
1040
 
1031
- # Set x-goog-api-client and x-goog-user-project headers
1041
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1032
1042
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1033
1043
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1034
1044
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
1045
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1035
1046
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1036
1047
 
1037
1048
  header_params = {}
@@ -1120,10 +1131,11 @@ module Google
1120
1131
  # Customize the options with defaults
1121
1132
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1122
1133
 
1123
- # Set x-goog-api-client and x-goog-user-project headers
1134
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1124
1135
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1125
1136
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1126
1137
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
1138
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1127
1139
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1128
1140
 
1129
1141
  header_params = {}
@@ -1257,10 +1269,11 @@ module Google
1257
1269
  # Customize the options with defaults
1258
1270
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1259
1271
 
1260
- # Set x-goog-api-client and x-goog-user-project headers
1272
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1261
1273
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1262
1274
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1263
1275
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
1276
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1264
1277
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1265
1278
 
1266
1279
  header_params = {}
@@ -1349,10 +1362,11 @@ module Google
1349
1362
  # Customize the options with defaults
1350
1363
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1351
1364
 
1352
- # Set x-goog-api-client and x-goog-user-project headers
1365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1353
1366
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1354
1367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1355
1368
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
1369
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1356
1370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1357
1371
 
1358
1372
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Projects
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Manages Google Cloud Projects.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
37
40
 
@@ -254,12 +257,13 @@ module Google
254
257
  # Customize the options with defaults
255
258
  call_metadata = @config.rpcs.get_project.metadata.to_h
256
259
 
257
- # Set x-goog-api-client and x-goog-user-project headers
260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
258
261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
259
262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
260
263
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
261
264
  transports_version_send: [:rest]
262
265
 
266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  options.apply_defaults timeout: @config.rpcs.get_project.timeout,
@@ -357,12 +361,13 @@ module Google
357
361
  # Customize the options with defaults
358
362
  call_metadata = @config.rpcs.list_projects.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
364
368
  transports_version_send: [:rest]
365
369
 
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  options.apply_defaults timeout: @config.rpcs.list_projects.timeout,
@@ -489,12 +494,13 @@ module Google
489
494
  # Customize the options with defaults
490
495
  call_metadata = @config.rpcs.search_projects.metadata.to_h
491
496
 
492
- # Set x-goog-api-client and x-goog-user-project headers
497
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
493
498
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
494
499
  lib_name: @config.lib_name, lib_version: @config.lib_version,
495
500
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
496
501
  transports_version_send: [:rest]
497
502
 
503
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
498
504
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
499
505
 
500
506
  options.apply_defaults timeout: @config.rpcs.search_projects.timeout,
@@ -587,12 +593,13 @@ module Google
587
593
  # Customize the options with defaults
588
594
  call_metadata = @config.rpcs.create_project.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
  call_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::Cloud::ResourceManager::V3::VERSION,
594
600
  transports_version_send: [:rest]
595
601
 
602
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
596
603
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
597
604
 
598
605
  options.apply_defaults timeout: @config.rpcs.create_project.timeout,
@@ -680,12 +687,13 @@ module Google
680
687
  # Customize the options with defaults
681
688
  call_metadata = @config.rpcs.update_project.metadata.to_h
682
689
 
683
- # Set x-goog-api-client and x-goog-user-project headers
690
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
684
691
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
685
692
  lib_name: @config.lib_name, lib_version: @config.lib_version,
686
693
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
687
694
  transports_version_send: [:rest]
688
695
 
696
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
689
697
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
690
698
 
691
699
  options.apply_defaults timeout: @config.rpcs.update_project.timeout,
@@ -781,12 +789,13 @@ module Google
781
789
  # Customize the options with defaults
782
790
  call_metadata = @config.rpcs.move_project.metadata.to_h
783
791
 
784
- # Set x-goog-api-client and x-goog-user-project headers
792
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
785
793
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
786
794
  lib_name: @config.lib_name, lib_version: @config.lib_version,
787
795
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
788
796
  transports_version_send: [:rest]
789
797
 
798
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
790
799
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
791
800
 
792
801
  options.apply_defaults timeout: @config.rpcs.move_project.timeout,
@@ -899,12 +908,13 @@ module Google
899
908
  # Customize the options with defaults
900
909
  call_metadata = @config.rpcs.delete_project.metadata.to_h
901
910
 
902
- # Set x-goog-api-client and x-goog-user-project headers
911
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
903
912
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
904
913
  lib_name: @config.lib_name, lib_version: @config.lib_version,
905
914
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
906
915
  transports_version_send: [:rest]
907
916
 
917
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
908
918
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
909
919
 
910
920
  options.apply_defaults timeout: @config.rpcs.delete_project.timeout,
@@ -995,12 +1005,13 @@ module Google
995
1005
  # Customize the options with defaults
996
1006
  call_metadata = @config.rpcs.undelete_project.metadata.to_h
997
1007
 
998
- # Set x-goog-api-client and x-goog-user-project headers
1008
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
999
1009
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1000
1010
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1001
1011
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
1002
1012
  transports_version_send: [:rest]
1003
1013
 
1014
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1004
1015
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1005
1016
 
1006
1017
  options.apply_defaults timeout: @config.rpcs.undelete_project.timeout,
@@ -1080,12 +1091,13 @@ module Google
1080
1091
  # Customize the options with defaults
1081
1092
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1082
1093
 
1083
- # Set x-goog-api-client and x-goog-user-project headers
1094
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1084
1095
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1085
1096
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1086
1097
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
1087
1098
  transports_version_send: [:rest]
1088
1099
 
1100
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1089
1101
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
1102
 
1091
1103
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1210,12 +1222,13 @@ module Google
1210
1222
  # Customize the options with defaults
1211
1223
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1212
1224
 
1213
- # Set x-goog-api-client and x-goog-user-project headers
1225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1214
1226
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1215
1227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1216
1228
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
1217
1229
  transports_version_send: [:rest]
1218
1230
 
1231
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1219
1232
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1220
1233
 
1221
1234
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1295,12 +1308,13 @@ module Google
1295
1308
  # Customize the options with defaults
1296
1309
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1297
1310
 
1298
- # Set x-goog-api-client and x-goog-user-project headers
1311
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1299
1312
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1300
1313
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1301
1314
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
1302
1315
  transports_version_send: [:rest]
1303
1316
 
1317
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1304
1318
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1305
1319
 
1306
1320
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -31,6 +31,9 @@ module Google
31
31
  # different Google Cloud resources throughout the GCP resource hierarchy.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
36
39
 
@@ -256,10 +259,11 @@ module Google
256
259
  # Customize the options with defaults
257
260
  metadata = @config.rpcs.list_tag_bindings.metadata.to_h
258
261
 
259
- # Set x-goog-api-client and x-goog-user-project headers
262
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
260
263
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
261
264
  lib_name: @config.lib_name, lib_version: @config.lib_version,
262
265
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
266
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  options.apply_defaults timeout: @config.rpcs.list_tag_bindings.timeout,
@@ -344,10 +348,11 @@ module Google
344
348
  # Customize the options with defaults
345
349
  metadata = @config.rpcs.create_tag_binding.metadata.to_h
346
350
 
347
- # Set x-goog-api-client and x-goog-user-project headers
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
348
352
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
349
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
350
354
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
355
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
351
356
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
352
357
 
353
358
  options.apply_defaults timeout: @config.rpcs.create_tag_binding.timeout,
@@ -431,10 +436,11 @@ module Google
431
436
  # Customize the options with defaults
432
437
  metadata = @config.rpcs.delete_tag_binding.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
443
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
438
444
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
439
445
 
440
446
  header_params = {}
@@ -531,10 +537,11 @@ module Google
531
537
  # Customize the options with defaults
532
538
  metadata = @config.rpcs.list_effective_tags.metadata.to_h
533
539
 
534
- # Set x-goog-api-client and x-goog-user-project headers
540
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
535
541
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
536
542
  lib_name: @config.lib_name, lib_version: @config.lib_version,
537
543
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
544
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  options.apply_defaults timeout: @config.rpcs.list_effective_tags.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module TagBindings
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudresourcemanager.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::ResourceManager::V3::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,