google-cloud-compute-v1 2.10.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +9 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +17 -7
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +17 -7
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +27 -12
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +35 -16
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +51 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +9 -3
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +39 -18
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +15 -6
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +39 -18
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +15 -6
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +19 -8
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +15 -6
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +17 -7
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +17 -7
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +13 -5
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +9 -3
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +13 -5
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +17 -7
  21. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -1
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +25 -11
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
  24. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +837 -0
  25. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  26. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  27. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  31. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +517 -0
  32. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  33. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  34. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  35. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  36. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  37. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  38. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  39. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  40. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  41. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  42. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  43. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  44. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  45. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  47. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  48. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  49. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  50. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  51. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +136 -14
  52. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  53. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  54. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  55. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  56. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  57. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  58. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  59. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  60. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  61. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  62. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  63. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  65. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  66. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  67. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  69. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  70. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  71. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  72. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  73. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  74. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  75. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  76. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  77. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  78. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  79. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  80. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  81. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  82. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  83. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  84. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  85. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  86. data/lib/google/cloud/compute/v1/rest.rb +4 -0
  87. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  88. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  89. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  90. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  91. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  92. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  93. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  94. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  96. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +609 -0
  97. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  98. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  99. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  100. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  101. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1326 -0
  102. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  103. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  104. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  105. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  106. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  107. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  108. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  109. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  110. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  111. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  112. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  113. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  114. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  115. data/lib/google/cloud/compute/v1/version.rb +1 -1
  116. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  117. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  118. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  119. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  120. data/lib/google/cloud/compute/v1.rb +4 -0
  121. data/proto_docs/google/api/client.rb +4 -0
  122. data/proto_docs/google/cloud/compute/v1/compute.rb +1333 -37
  123. metadata +22 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The InstanceGroupManagers API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -280,12 +283,13 @@ module Google
280
283
  # Customize the options with defaults
281
284
  call_metadata = @config.rpcs.abandon_instances.metadata.to_h
282
285
 
283
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
284
287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
285
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
286
289
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
287
290
  transports_version_send: [:rest]
288
291
 
292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
289
293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
290
294
 
291
295
  options.apply_defaults timeout: @config.rpcs.abandon_instances.timeout,
@@ -381,12 +385,13 @@ module Google
381
385
  # Customize the options with defaults
382
386
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
383
387
 
384
- # Set x-goog-api-client and x-goog-user-project headers
388
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
385
389
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
386
390
  lib_name: @config.lib_name, lib_version: @config.lib_version,
387
391
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
388
392
  transports_version_send: [:rest]
389
393
 
394
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
390
395
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
396
 
392
397
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -466,12 +471,13 @@ module Google
466
471
  # Customize the options with defaults
467
472
  call_metadata = @config.rpcs.apply_updates_to_instances.metadata.to_h
468
473
 
469
- # Set x-goog-api-client and x-goog-user-project headers
474
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
470
475
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
476
  lib_name: @config.lib_name, lib_version: @config.lib_version,
472
477
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
473
478
  transports_version_send: [:rest]
474
479
 
480
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
475
481
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
482
 
477
483
  options.apply_defaults timeout: @config.rpcs.apply_updates_to_instances.timeout,
@@ -561,12 +567,13 @@ module Google
561
567
  # Customize the options with defaults
562
568
  call_metadata = @config.rpcs.create_instances.metadata.to_h
563
569
 
564
- # Set x-goog-api-client and x-goog-user-project headers
570
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
565
571
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
566
572
  lib_name: @config.lib_name, lib_version: @config.lib_version,
567
573
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
568
574
  transports_version_send: [:rest]
569
575
 
576
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
570
577
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
571
578
 
572
579
  options.apply_defaults timeout: @config.rpcs.create_instances.timeout,
@@ -654,12 +661,13 @@ module Google
654
661
  # Customize the options with defaults
655
662
  call_metadata = @config.rpcs.delete.metadata.to_h
656
663
 
657
- # Set x-goog-api-client and x-goog-user-project headers
664
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
658
665
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
666
  lib_name: @config.lib_name, lib_version: @config.lib_version,
660
667
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
661
668
  transports_version_send: [:rest]
662
669
 
670
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
671
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
672
 
665
673
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -749,12 +757,13 @@ module Google
749
757
  # Customize the options with defaults
750
758
  call_metadata = @config.rpcs.delete_instances.metadata.to_h
751
759
 
752
- # Set x-goog-api-client and x-goog-user-project headers
760
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
761
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
755
763
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
756
764
  transports_version_send: [:rest]
757
765
 
766
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
758
767
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
759
768
 
760
769
  options.apply_defaults timeout: @config.rpcs.delete_instances.timeout,
@@ -842,12 +851,13 @@ module Google
842
851
  # Customize the options with defaults
843
852
  call_metadata = @config.rpcs.delete_per_instance_configs.metadata.to_h
844
853
 
845
- # Set x-goog-api-client and x-goog-user-project headers
854
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
846
855
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
856
  lib_name: @config.lib_name, lib_version: @config.lib_version,
848
857
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
849
858
  transports_version_send: [:rest]
850
859
 
860
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
861
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
862
 
853
863
  options.apply_defaults timeout: @config.rpcs.delete_per_instance_configs.timeout,
@@ -933,12 +943,13 @@ module Google
933
943
  # Customize the options with defaults
934
944
  call_metadata = @config.rpcs.get.metadata.to_h
935
945
 
936
- # Set x-goog-api-client and x-goog-user-project headers
946
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
937
947
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
938
948
  lib_name: @config.lib_name, lib_version: @config.lib_version,
939
949
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
940
950
  transports_version_send: [:rest]
941
951
 
952
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
942
953
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
943
954
 
944
955
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -1017,12 +1028,13 @@ module Google
1017
1028
  # Customize the options with defaults
1018
1029
  call_metadata = @config.rpcs.insert.metadata.to_h
1019
1030
 
1020
- # Set x-goog-api-client and x-goog-user-project headers
1031
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1021
1032
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1022
1033
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1023
1034
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1024
1035
  transports_version_send: [:rest]
1025
1036
 
1037
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1026
1038
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1027
1039
 
1028
1040
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1116,12 +1128,13 @@ module Google
1116
1128
  # Customize the options with defaults
1117
1129
  call_metadata = @config.rpcs.list.metadata.to_h
1118
1130
 
1119
- # Set x-goog-api-client and x-goog-user-project headers
1131
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1120
1132
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1121
1133
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1122
1134
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1123
1135
  transports_version_send: [:rest]
1124
1136
 
1137
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1125
1138
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1139
 
1127
1140
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1209,12 +1222,13 @@ module Google
1209
1222
  # Customize the options with defaults
1210
1223
  call_metadata = @config.rpcs.list_errors.metadata.to_h
1211
1224
 
1212
- # 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
1213
1226
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1214
1227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1215
1228
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1216
1229
  transports_version_send: [:rest]
1217
1230
 
1231
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1218
1232
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1219
1233
 
1220
1234
  options.apply_defaults timeout: @config.rpcs.list_errors.timeout,
@@ -1302,12 +1316,13 @@ module Google
1302
1316
  # Customize the options with defaults
1303
1317
  call_metadata = @config.rpcs.list_managed_instances.metadata.to_h
1304
1318
 
1305
- # Set x-goog-api-client and x-goog-user-project headers
1319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1306
1320
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1307
1321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1308
1322
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1309
1323
  transports_version_send: [:rest]
1310
1324
 
1325
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1311
1326
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1312
1327
 
1313
1328
  options.apply_defaults timeout: @config.rpcs.list_managed_instances.timeout,
@@ -1395,12 +1410,13 @@ module Google
1395
1410
  # Customize the options with defaults
1396
1411
  call_metadata = @config.rpcs.list_per_instance_configs.metadata.to_h
1397
1412
 
1398
- # Set x-goog-api-client and x-goog-user-project headers
1413
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1399
1414
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1400
1415
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1401
1416
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1402
1417
  transports_version_send: [:rest]
1403
1418
 
1419
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1404
1420
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1405
1421
 
1406
1422
  options.apply_defaults timeout: @config.rpcs.list_per_instance_configs.timeout,
@@ -1482,12 +1498,13 @@ module Google
1482
1498
  # Customize the options with defaults
1483
1499
  call_metadata = @config.rpcs.patch.metadata.to_h
1484
1500
 
1485
- # Set x-goog-api-client and x-goog-user-project headers
1501
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1486
1502
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1487
1503
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1488
1504
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1489
1505
  transports_version_send: [:rest]
1490
1506
 
1507
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1491
1508
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1492
1509
 
1493
1510
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1577,12 +1594,13 @@ module Google
1577
1594
  # Customize the options with defaults
1578
1595
  call_metadata = @config.rpcs.patch_per_instance_configs.metadata.to_h
1579
1596
 
1580
- # Set x-goog-api-client and x-goog-user-project headers
1597
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1581
1598
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1582
1599
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1583
1600
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1584
1601
  transports_version_send: [:rest]
1585
1602
 
1603
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1586
1604
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1587
1605
 
1588
1606
  options.apply_defaults timeout: @config.rpcs.patch_per_instance_configs.timeout,
@@ -1672,12 +1690,13 @@ module Google
1672
1690
  # Customize the options with defaults
1673
1691
  call_metadata = @config.rpcs.recreate_instances.metadata.to_h
1674
1692
 
1675
- # Set x-goog-api-client and x-goog-user-project headers
1693
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1676
1694
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1677
1695
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1678
1696
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1679
1697
  transports_version_send: [:rest]
1680
1698
 
1699
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1681
1700
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1682
1701
 
1683
1702
  options.apply_defaults timeout: @config.rpcs.recreate_instances.timeout,
@@ -1767,12 +1786,13 @@ module Google
1767
1786
  # Customize the options with defaults
1768
1787
  call_metadata = @config.rpcs.resize.metadata.to_h
1769
1788
 
1770
- # Set x-goog-api-client and x-goog-user-project headers
1789
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1771
1790
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1772
1791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1773
1792
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1774
1793
  transports_version_send: [:rest]
1775
1794
 
1795
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1776
1796
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1777
1797
 
1778
1798
  options.apply_defaults timeout: @config.rpcs.resize.timeout,
@@ -1862,12 +1882,13 @@ module Google
1862
1882
  # Customize the options with defaults
1863
1883
  call_metadata = @config.rpcs.set_instance_template.metadata.to_h
1864
1884
 
1865
- # Set x-goog-api-client and x-goog-user-project headers
1885
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1866
1886
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1867
1887
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1868
1888
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1869
1889
  transports_version_send: [:rest]
1870
1890
 
1891
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1871
1892
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1872
1893
 
1873
1894
  options.apply_defaults timeout: @config.rpcs.set_instance_template.timeout,
@@ -1957,12 +1978,13 @@ module Google
1957
1978
  # Customize the options with defaults
1958
1979
  call_metadata = @config.rpcs.set_target_pools.metadata.to_h
1959
1980
 
1960
- # Set x-goog-api-client and x-goog-user-project headers
1981
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1961
1982
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1962
1983
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1963
1984
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1964
1985
  transports_version_send: [:rest]
1965
1986
 
1987
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1966
1988
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1967
1989
 
1968
1990
  options.apply_defaults timeout: @config.rpcs.set_target_pools.timeout,
@@ -2052,12 +2074,13 @@ module Google
2052
2074
  # Customize the options with defaults
2053
2075
  call_metadata = @config.rpcs.update_per_instance_configs.metadata.to_h
2054
2076
 
2055
- # Set x-goog-api-client and x-goog-user-project headers
2077
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2056
2078
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2057
2079
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2058
2080
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2059
2081
  transports_version_send: [:rest]
2060
2082
 
2083
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2061
2084
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2062
2085
 
2063
2086
  options.apply_defaults timeout: @config.rpcs.update_per_instance_configs.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The InstanceGroups API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -255,12 +258,13 @@ module Google
255
258
  # Customize the options with defaults
256
259
  call_metadata = @config.rpcs.add_instances.metadata.to_h
257
260
 
258
- # Set x-goog-api-client and x-goog-user-project headers
261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
259
262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
261
264
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
262
265
  transports_version_send: [:rest]
263
266
 
267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
264
268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
265
269
 
266
270
  options.apply_defaults timeout: @config.rpcs.add_instances.timeout,
@@ -356,12 +360,13 @@ module Google
356
360
  # Customize the options with defaults
357
361
  call_metadata = @config.rpcs.aggregated_list.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::Cloud::Compute::V1::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.aggregated_list.timeout,
@@ -441,12 +446,13 @@ module Google
441
446
  # Customize the options with defaults
442
447
  call_metadata = @config.rpcs.delete.metadata.to_h
443
448
 
444
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
445
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
446
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
447
452
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
448
453
  transports_version_send: [:rest]
449
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -532,12 +538,13 @@ module Google
532
538
  # Customize the options with defaults
533
539
  call_metadata = @config.rpcs.get.metadata.to_h
534
540
 
535
- # Set x-goog-api-client and x-goog-user-project headers
541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
536
542
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
537
543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
538
544
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
539
545
  transports_version_send: [:rest]
540
546
 
547
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
541
548
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
542
549
 
543
550
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -616,12 +623,13 @@ module Google
616
623
  # Customize the options with defaults
617
624
  call_metadata = @config.rpcs.insert.metadata.to_h
618
625
 
619
- # Set x-goog-api-client and x-goog-user-project headers
626
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
620
627
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
621
628
  lib_name: @config.lib_name, lib_version: @config.lib_version,
622
629
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
623
630
  transports_version_send: [:rest]
624
631
 
632
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
625
633
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
634
 
627
635
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -715,12 +723,13 @@ module Google
715
723
  # Customize the options with defaults
716
724
  call_metadata = @config.rpcs.list.metadata.to_h
717
725
 
718
- # Set x-goog-api-client and x-goog-user-project headers
726
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
719
727
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
720
728
  lib_name: @config.lib_name, lib_version: @config.lib_version,
721
729
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
722
730
  transports_version_send: [:rest]
723
731
 
732
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
724
733
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
725
734
 
726
735
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -810,12 +819,13 @@ module Google
810
819
  # Customize the options with defaults
811
820
  call_metadata = @config.rpcs.list_instances.metadata.to_h
812
821
 
813
- # Set x-goog-api-client and x-goog-user-project headers
822
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
814
823
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
815
824
  lib_name: @config.lib_name, lib_version: @config.lib_version,
816
825
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
817
826
  transports_version_send: [:rest]
818
827
 
828
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
819
829
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
820
830
 
821
831
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
@@ -897,12 +907,13 @@ module Google
897
907
  # Customize the options with defaults
898
908
  call_metadata = @config.rpcs.remove_instances.metadata.to_h
899
909
 
900
- # Set x-goog-api-client and x-goog-user-project headers
910
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
901
911
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
902
912
  lib_name: @config.lib_name, lib_version: @config.lib_version,
903
913
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
904
914
  transports_version_send: [:rest]
905
915
 
916
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
906
917
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
907
918
 
908
919
  options.apply_defaults timeout: @config.rpcs.remove_instances.timeout,
@@ -992,12 +1003,13 @@ module Google
992
1003
  # Customize the options with defaults
993
1004
  call_metadata = @config.rpcs.set_named_ports.metadata.to_h
994
1005
 
995
- # Set x-goog-api-client and x-goog-user-project headers
1006
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
996
1007
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
997
1008
  lib_name: @config.lib_name, lib_version: @config.lib_version,
998
1009
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
999
1010
  transports_version_send: [:rest]
1000
1011
 
1012
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1001
1013
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1002
1014
 
1003
1015
  options.apply_defaults timeout: @config.rpcs.set_named_ports.timeout,
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module InstanceSettingsService
26
+ # Credentials for the InstanceSettingsService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute",
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "COMPUTE_CREDENTIALS",
34
+ "COMPUTE_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "COMPUTE_CREDENTIALS_JSON",
39
+ "COMPUTE_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end