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
@@ -0,0 +1,51 @@
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 "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/compute/v1/version"
24
+
25
+ require "google/cloud/compute/v1/storage_pools/credentials"
26
+ require "google/cloud/compute/v1/storage_pools/rest/client"
27
+
28
+ module Google
29
+ module Cloud
30
+ module Compute
31
+ module V1
32
+ ##
33
+ # The StoragePools API.
34
+ #
35
+ # To load this service and instantiate a REST client:
36
+ #
37
+ # require "google/cloud/compute/v1/storage_pools/rest"
38
+ # client = ::Google::Cloud::Compute::V1::StoragePools::Rest::Client.new
39
+ #
40
+ module StoragePools
41
+ # Client for the REST transport
42
+ module Rest
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
51
+ require "google/cloud/compute/v1/storage_pools/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,47 @@
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 "gapic/config"
20
+ require "gapic/config/method"
21
+
22
+ require "google/cloud/compute/v1/version"
23
+
24
+ require "google/cloud/compute/v1/storage_pools/credentials"
25
+ require "google/cloud/compute/v1/storage_pools/rest"
26
+
27
+ module Google
28
+ module Cloud
29
+ module Compute
30
+ module V1
31
+ ##
32
+ # The StoragePools API.
33
+ #
34
+ # @example Load this service and instantiate a REST client
35
+ #
36
+ # require "google/cloud/compute/v1/storage_pools/rest"
37
+ # client = ::Google::Cloud::Compute::V1::StoragePools::Rest::Client.new
38
+ #
39
+ module StoragePools
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ helper_path = ::File.join __dir__, "storage_pools", "helpers.rb"
47
+ require "google/cloud/compute/v1/storage_pools/helpers" if ::File.file? helper_path
@@ -33,6 +33,9 @@ module Google
33
33
  # The Subnetworks 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
 
@@ -273,12 +276,13 @@ module Google
273
276
  # Customize the options with defaults
274
277
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
275
278
 
276
- # Set x-goog-api-client and x-goog-user-project headers
279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
277
280
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
278
281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
279
282
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
280
283
  transports_version_send: [:rest]
281
284
 
285
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
282
286
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
287
 
284
288
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -358,12 +362,13 @@ module Google
358
362
  # Customize the options with defaults
359
363
  call_metadata = @config.rpcs.delete.metadata.to_h
360
364
 
361
- # Set x-goog-api-client and x-goog-user-project headers
365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
362
366
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
363
367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
364
368
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
365
369
  transports_version_send: [:rest]
366
370
 
371
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
367
372
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
368
373
 
369
374
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -453,12 +458,13 @@ module Google
453
458
  # Customize the options with defaults
454
459
  call_metadata = @config.rpcs.expand_ip_cidr_range.metadata.to_h
455
460
 
456
- # Set x-goog-api-client and x-goog-user-project headers
461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
457
462
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
458
463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
459
464
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
460
465
  transports_version_send: [:rest]
461
466
 
467
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
462
468
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
469
 
464
470
  options.apply_defaults timeout: @config.rpcs.expand_ip_cidr_range.timeout,
@@ -544,12 +550,13 @@ module Google
544
550
  # Customize the options with defaults
545
551
  call_metadata = @config.rpcs.get.metadata.to_h
546
552
 
547
- # Set x-goog-api-client and x-goog-user-project headers
553
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
548
554
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
549
555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
550
556
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
551
557
  transports_version_send: [:rest]
552
558
 
559
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
553
560
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
554
561
 
555
562
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -628,12 +635,13 @@ module Google
628
635
  # Customize the options with defaults
629
636
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
630
637
 
631
- # Set x-goog-api-client and x-goog-user-project headers
638
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
632
639
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
633
640
  lib_name: @config.lib_name, lib_version: @config.lib_version,
634
641
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
635
642
  transports_version_send: [:rest]
636
643
 
644
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
637
645
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
646
 
639
647
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -712,12 +720,13 @@ module Google
712
720
  # Customize the options with defaults
713
721
  call_metadata = @config.rpcs.insert.metadata.to_h
714
722
 
715
- # Set x-goog-api-client and x-goog-user-project headers
723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
716
724
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
718
726
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
719
727
  transports_version_send: [:rest]
720
728
 
729
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
730
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
731
 
723
732
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -811,12 +820,13 @@ module Google
811
820
  # Customize the options with defaults
812
821
  call_metadata = @config.rpcs.list.metadata.to_h
813
822
 
814
- # Set x-goog-api-client and x-goog-user-project headers
823
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
815
824
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
816
825
  lib_name: @config.lib_name, lib_version: @config.lib_version,
817
826
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
818
827
  transports_version_send: [:rest]
819
828
 
829
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
820
830
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
831
 
822
832
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -900,12 +910,13 @@ module Google
900
910
  # Customize the options with defaults
901
911
  call_metadata = @config.rpcs.list_usable.metadata.to_h
902
912
 
903
- # Set x-goog-api-client and x-goog-user-project headers
913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
904
914
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
905
915
  lib_name: @config.lib_name, lib_version: @config.lib_version,
906
916
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
907
917
  transports_version_send: [:rest]
908
918
 
919
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
909
920
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
910
921
 
911
922
  options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
@@ -989,12 +1000,13 @@ module Google
989
1000
  # Customize the options with defaults
990
1001
  call_metadata = @config.rpcs.patch.metadata.to_h
991
1002
 
992
- # Set x-goog-api-client and x-goog-user-project headers
1003
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
993
1004
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
994
1005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
995
1006
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
996
1007
  transports_version_send: [:rest]
997
1008
 
1009
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1010
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1011
 
1000
1012
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1082,12 +1094,13 @@ module Google
1082
1094
  # Customize the options with defaults
1083
1095
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1084
1096
 
1085
- # Set x-goog-api-client and x-goog-user-project headers
1097
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1086
1098
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1087
1099
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1088
1100
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1089
1101
  transports_version_send: [:rest]
1090
1102
 
1103
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1091
1104
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1092
1105
 
1093
1106
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1168,12 +1181,13 @@ module Google
1168
1181
  # Customize the options with defaults
1169
1182
  call_metadata = @config.rpcs.set_private_ip_google_access.metadata.to_h
1170
1183
 
1171
- # Set x-goog-api-client and x-goog-user-project headers
1184
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1172
1185
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1173
1186
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1174
1187
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1175
1188
  transports_version_send: [:rest]
1176
1189
 
1190
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1177
1191
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1178
1192
 
1179
1193
  options.apply_defaults timeout: @config.rpcs.set_private_ip_google_access.timeout,
@@ -1261,12 +1275,13 @@ module Google
1261
1275
  # Customize the options with defaults
1262
1276
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1263
1277
 
1264
- # Set x-goog-api-client and x-goog-user-project headers
1278
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1265
1279
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1266
1280
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1267
1281
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1268
1282
  transports_version_send: [:rest]
1269
1283
 
1284
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1270
1285
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1271
1286
 
1272
1287
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetGrpcProxies 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
 
@@ -240,12 +243,13 @@ module Google
240
243
  # Customize the options with defaults
241
244
  call_metadata = @config.rpcs.delete.metadata.to_h
242
245
 
243
- # Set x-goog-api-client and x-goog-user-project headers
246
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
244
247
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
245
248
  lib_name: @config.lib_name, lib_version: @config.lib_version,
246
249
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
247
250
  transports_version_send: [:rest]
248
251
 
252
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
249
253
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
254
 
251
255
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -328,12 +332,13 @@ module Google
328
332
  # Customize the options with defaults
329
333
  call_metadata = @config.rpcs.get.metadata.to_h
330
334
 
331
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
336
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
338
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
335
339
  transports_version_send: [:rest]
336
340
 
341
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
337
342
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
338
343
 
339
344
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -410,12 +415,13 @@ module Google
410
415
  # Customize the options with defaults
411
416
  call_metadata = @config.rpcs.insert.metadata.to_h
412
417
 
413
- # Set x-goog-api-client and x-goog-user-project headers
418
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
414
419
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
415
420
  lib_name: @config.lib_name, lib_version: @config.lib_version,
416
421
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
417
422
  transports_version_send: [:rest]
418
423
 
424
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
419
425
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
420
426
 
421
427
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -506,12 +512,13 @@ module Google
506
512
  # Customize the options with defaults
507
513
  call_metadata = @config.rpcs.list.metadata.to_h
508
514
 
509
- # Set x-goog-api-client and x-goog-user-project headers
515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
516
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
518
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
513
519
  transports_version_send: [:rest]
514
520
 
521
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
522
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
523
 
517
524
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -591,12 +598,13 @@ module Google
591
598
  # Customize the options with defaults
592
599
  call_metadata = @config.rpcs.patch.metadata.to_h
593
600
 
594
- # Set x-goog-api-client and x-goog-user-project headers
601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
595
602
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
603
  lib_name: @config.lib_name, lib_version: @config.lib_version,
597
604
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
598
605
  transports_version_send: [:rest]
599
606
 
607
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
600
608
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
601
609
 
602
610
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetHttpProxies 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
 
@@ -257,12 +260,13 @@ module Google
257
260
  # Customize the options with defaults
258
261
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
259
262
 
260
- # Set x-goog-api-client and x-goog-user-project headers
263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
261
264
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
262
265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
263
266
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
264
267
  transports_version_send: [:rest]
265
268
 
269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
266
270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
271
 
268
272
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -340,12 +344,13 @@ module Google
340
344
  # Customize the options with defaults
341
345
  call_metadata = @config.rpcs.delete.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
347
351
  transports_version_send: [:rest]
348
352
 
353
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.get.metadata.to_h
430
435
 
431
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
432
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
439
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
435
440
  transports_version_send: [:rest]
436
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -510,12 +516,13 @@ module Google
510
516
  # Customize the options with defaults
511
517
  call_metadata = @config.rpcs.insert.metadata.to_h
512
518
 
513
- # Set x-goog-api-client and x-goog-user-project headers
519
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
514
520
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
515
521
  lib_name: @config.lib_name, lib_version: @config.lib_version,
516
522
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
517
523
  transports_version_send: [:rest]
518
524
 
525
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
519
526
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
527
 
521
528
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -606,12 +613,13 @@ module Google
606
613
  # Customize the options with defaults
607
614
  call_metadata = @config.rpcs.list.metadata.to_h
608
615
 
609
- # Set x-goog-api-client and x-goog-user-project headers
616
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
610
617
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
611
618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
612
619
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
613
620
  transports_version_send: [:rest]
614
621
 
622
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
615
623
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
616
624
 
617
625
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.patch.metadata.to_h
693
701
 
694
- # 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
695
703
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
705
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
698
706
  transports_version_send: [:rest]
699
707
 
708
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
700
709
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
701
710
 
702
711
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.set_url_map.metadata.to_h
785
794
 
786
- # Set x-goog-api-client and x-goog-user-project headers
795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
787
796
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
798
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
790
799
  transports_version_send: [:rest]
791
800
 
801
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
792
802
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
793
803
 
794
804
  options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetHttpsProxies 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
 
@@ -265,12 +268,13 @@ module Google
265
268
  # Customize the options with defaults
266
269
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
267
270
 
268
- # Set x-goog-api-client and x-goog-user-project headers
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
269
272
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
270
273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
271
274
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
272
275
  transports_version_send: [:rest]
273
276
 
277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
274
278
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
279
 
276
280
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -348,12 +352,13 @@ module Google
348
352
  # Customize the options with defaults
349
353
  call_metadata = @config.rpcs.delete.metadata.to_h
350
354
 
351
- # Set x-goog-api-client and x-goog-user-project headers
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
352
356
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
357
  lib_name: @config.lib_name, lib_version: @config.lib_version,
354
358
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
359
  transports_version_send: [:rest]
356
360
 
361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
357
362
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
363
 
359
364
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -436,12 +441,13 @@ module Google
436
441
  # Customize the options with defaults
437
442
  call_metadata = @config.rpcs.get.metadata.to_h
438
443
 
439
- # Set x-goog-api-client and x-goog-user-project headers
444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
440
445
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
441
446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
442
447
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
443
448
  transports_version_send: [:rest]
444
449
 
450
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
445
451
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
446
452
 
447
453
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.insert.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -614,12 +621,13 @@ module Google
614
621
  # Customize the options with defaults
615
622
  call_metadata = @config.rpcs.list.metadata.to_h
616
623
 
617
- # Set x-goog-api-client and x-goog-user-project headers
624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
625
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
626
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
627
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
621
628
  transports_version_send: [:rest]
622
629
 
630
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
631
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
632
 
625
633
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -699,12 +707,13 @@ module Google
699
707
  # Customize the options with defaults
700
708
  call_metadata = @config.rpcs.patch.metadata.to_h
701
709
 
702
- # Set x-goog-api-client and x-goog-user-project headers
710
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
703
711
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
704
712
  lib_name: @config.lib_name, lib_version: @config.lib_version,
705
713
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
706
714
  transports_version_send: [:rest]
707
715
 
716
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
708
717
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
709
718
 
710
719
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -791,12 +800,13 @@ module Google
791
800
  # Customize the options with defaults
792
801
  call_metadata = @config.rpcs.set_certificate_map.metadata.to_h
793
802
 
794
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
795
804
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
796
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
797
806
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
798
807
  transports_version_send: [:rest]
799
808
 
809
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
800
810
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
801
811
 
802
812
  options.apply_defaults timeout: @config.rpcs.set_certificate_map.timeout,
@@ -883,12 +893,13 @@ module Google
883
893
  # Customize the options with defaults
884
894
  call_metadata = @config.rpcs.set_quic_override.metadata.to_h
885
895
 
886
- # Set x-goog-api-client and x-goog-user-project headers
896
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
887
897
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
888
898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
889
899
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
890
900
  transports_version_send: [:rest]
891
901
 
902
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
892
903
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
904
 
894
905
  options.apply_defaults timeout: @config.rpcs.set_quic_override.timeout,
@@ -975,12 +986,13 @@ module Google
975
986
  # Customize the options with defaults
976
987
  call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
977
988
 
978
- # Set x-goog-api-client and x-goog-user-project headers
989
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
979
990
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
980
991
  lib_name: @config.lib_name, lib_version: @config.lib_version,
981
992
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
982
993
  transports_version_send: [:rest]
983
994
 
995
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
984
996
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
985
997
 
986
998
  options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
@@ -1067,12 +1079,13 @@ module Google
1067
1079
  # Customize the options with defaults
1068
1080
  call_metadata = @config.rpcs.set_ssl_policy.metadata.to_h
1069
1081
 
1070
- # Set x-goog-api-client and x-goog-user-project headers
1082
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1071
1083
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1072
1084
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1073
1085
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1074
1086
  transports_version_send: [:rest]
1075
1087
 
1088
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1076
1089
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1077
1090
 
1078
1091
  options.apply_defaults timeout: @config.rpcs.set_ssl_policy.timeout,
@@ -1159,12 +1172,13 @@ module Google
1159
1172
  # Customize the options with defaults
1160
1173
  call_metadata = @config.rpcs.set_url_map.metadata.to_h
1161
1174
 
1162
- # Set x-goog-api-client and x-goog-user-project headers
1175
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1163
1176
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1164
1177
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1165
1178
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1166
1179
  transports_version_send: [:rest]
1167
1180
 
1181
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1168
1182
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1169
1183
 
1170
1184
  options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,