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 FirewallPolicies 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.add_association.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.add_association.timeout,
@@ -368,12 +372,13 @@ module Google
368
372
  # Customize the options with defaults
369
373
  call_metadata = @config.rpcs.add_rule.metadata.to_h
370
374
 
371
- # Set x-goog-api-client and x-goog-user-project headers
375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
376
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
378
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
375
379
  transports_version_send: [:rest]
376
380
 
381
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
377
382
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
378
383
 
379
384
  options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
@@ -456,12 +461,13 @@ module Google
456
461
  # Customize the options with defaults
457
462
  call_metadata = @config.rpcs.clone_rules.metadata.to_h
458
463
 
459
- # Set x-goog-api-client and x-goog-user-project headers
464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
460
465
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
461
466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
462
467
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
463
468
  transports_version_send: [:rest]
464
469
 
470
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
465
471
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
466
472
 
467
473
  options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
@@ -542,12 +548,13 @@ module Google
542
548
  # Customize the options with defaults
543
549
  call_metadata = @config.rpcs.delete.metadata.to_h
544
550
 
545
- # Set x-goog-api-client and x-goog-user-project headers
551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
546
552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
554
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
549
555
  transports_version_send: [:rest]
550
556
 
557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
551
558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
559
 
553
560
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -626,12 +633,13 @@ module Google
626
633
  # Customize the options with defaults
627
634
  call_metadata = @config.rpcs.get.metadata.to_h
628
635
 
629
- # Set x-goog-api-client and x-goog-user-project headers
636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
630
637
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
631
638
  lib_name: @config.lib_name, lib_version: @config.lib_version,
632
639
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
633
640
  transports_version_send: [:rest]
634
641
 
642
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
635
643
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
636
644
 
637
645
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -706,12 +714,13 @@ module Google
706
714
  # Customize the options with defaults
707
715
  call_metadata = @config.rpcs.get_association.metadata.to_h
708
716
 
709
- # Set x-goog-api-client and x-goog-user-project headers
717
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
710
718
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
711
719
  lib_name: @config.lib_name, lib_version: @config.lib_version,
712
720
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
713
721
  transports_version_send: [:rest]
714
722
 
723
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
715
724
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
716
725
 
717
726
  options.apply_defaults timeout: @config.rpcs.get_association.timeout,
@@ -786,12 +795,13 @@ module Google
786
795
  # Customize the options with defaults
787
796
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
788
797
 
789
- # Set x-goog-api-client and x-goog-user-project headers
798
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
790
799
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
791
800
  lib_name: @config.lib_name, lib_version: @config.lib_version,
792
801
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
793
802
  transports_version_send: [:rest]
794
803
 
804
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
795
805
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
796
806
 
797
807
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -866,12 +876,13 @@ module Google
866
876
  # Customize the options with defaults
867
877
  call_metadata = @config.rpcs.get_rule.metadata.to_h
868
878
 
869
- # Set x-goog-api-client and x-goog-user-project headers
879
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
870
880
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
871
881
  lib_name: @config.lib_name, lib_version: @config.lib_version,
872
882
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
873
883
  transports_version_send: [:rest]
874
884
 
885
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
875
886
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
876
887
 
877
888
  options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
@@ -948,12 +959,13 @@ module Google
948
959
  # Customize the options with defaults
949
960
  call_metadata = @config.rpcs.insert.metadata.to_h
950
961
 
951
- # Set x-goog-api-client and x-goog-user-project headers
962
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
952
963
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
953
964
  lib_name: @config.lib_name, lib_version: @config.lib_version,
954
965
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
955
966
  transports_version_send: [:rest]
956
967
 
968
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
957
969
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
958
970
 
959
971
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1044,12 +1056,13 @@ module Google
1044
1056
  # Customize the options with defaults
1045
1057
  call_metadata = @config.rpcs.list.metadata.to_h
1046
1058
 
1047
- # Set x-goog-api-client and x-goog-user-project headers
1059
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1048
1060
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1049
1061
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1050
1062
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1051
1063
  transports_version_send: [:rest]
1052
1064
 
1065
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1053
1066
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1054
1067
 
1055
1068
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1123,12 +1136,13 @@ module Google
1123
1136
  # Customize the options with defaults
1124
1137
  call_metadata = @config.rpcs.list_associations.metadata.to_h
1125
1138
 
1126
- # Set x-goog-api-client and x-goog-user-project headers
1139
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1127
1140
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1128
1141
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1129
1142
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1130
1143
  transports_version_send: [:rest]
1131
1144
 
1145
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1132
1146
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1133
1147
 
1134
1148
  options.apply_defaults timeout: @config.rpcs.list_associations.timeout,
@@ -1205,12 +1219,13 @@ module Google
1205
1219
  # Customize the options with defaults
1206
1220
  call_metadata = @config.rpcs.move.metadata.to_h
1207
1221
 
1208
- # Set x-goog-api-client and x-goog-user-project headers
1222
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1209
1223
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1210
1224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1211
1225
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1212
1226
  transports_version_send: [:rest]
1213
1227
 
1228
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1214
1229
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1215
1230
 
1216
1231
  options.apply_defaults timeout: @config.rpcs.move.timeout,
@@ -1295,12 +1310,13 @@ module Google
1295
1310
  # Customize the options with defaults
1296
1311
  call_metadata = @config.rpcs.patch.metadata.to_h
1297
1312
 
1298
- # Set x-goog-api-client and x-goog-user-project headers
1313
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1299
1314
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1300
1315
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1301
1316
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1302
1317
  transports_version_send: [:rest]
1303
1318
 
1319
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1304
1320
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1305
1321
 
1306
1322
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1385,12 +1401,13 @@ module Google
1385
1401
  # Customize the options with defaults
1386
1402
  call_metadata = @config.rpcs.patch_rule.metadata.to_h
1387
1403
 
1388
- # Set x-goog-api-client and x-goog-user-project headers
1404
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1389
1405
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1390
1406
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1391
1407
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1392
1408
  transports_version_send: [:rest]
1393
1409
 
1410
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1394
1411
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1395
1412
 
1396
1413
  options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
@@ -1473,12 +1490,13 @@ module Google
1473
1490
  # Customize the options with defaults
1474
1491
  call_metadata = @config.rpcs.remove_association.metadata.to_h
1475
1492
 
1476
- # Set x-goog-api-client and x-goog-user-project headers
1493
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1477
1494
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1478
1495
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1479
1496
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1480
1497
  transports_version_send: [:rest]
1481
1498
 
1499
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1482
1500
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1483
1501
 
1484
1502
  options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
@@ -1561,12 +1579,13 @@ module Google
1561
1579
  # Customize the options with defaults
1562
1580
  call_metadata = @config.rpcs.remove_rule.metadata.to_h
1563
1581
 
1564
- # Set x-goog-api-client and x-goog-user-project headers
1582
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1565
1583
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1566
1584
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1567
1585
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1568
1586
  transports_version_send: [:rest]
1569
1587
 
1588
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1570
1589
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1571
1590
 
1572
1591
  options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
@@ -1647,12 +1666,13 @@ module Google
1647
1666
  # Customize the options with defaults
1648
1667
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1649
1668
 
1650
- # Set x-goog-api-client and x-goog-user-project headers
1669
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1651
1670
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1652
1671
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1653
1672
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1654
1673
  transports_version_send: [:rest]
1655
1674
 
1675
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1656
1676
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1657
1677
 
1658
1678
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1727,12 +1747,13 @@ module Google
1727
1747
  # Customize the options with defaults
1728
1748
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1729
1749
 
1730
- # Set x-goog-api-client and x-goog-user-project headers
1750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1731
1751
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1732
1752
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1733
1753
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1734
1754
  transports_version_send: [:rest]
1735
1755
 
1756
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1736
1757
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1737
1758
 
1738
1759
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Firewalls 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
 
@@ -242,12 +245,13 @@ module Google
242
245
  # Customize the options with defaults
243
246
  call_metadata = @config.rpcs.delete.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
249
252
  transports_version_send: [:rest]
250
253
 
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
251
255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
252
256
 
253
257
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -330,12 +334,13 @@ module Google
330
334
  # Customize the options with defaults
331
335
  call_metadata = @config.rpcs.get.metadata.to_h
332
336
 
333
- # Set x-goog-api-client and x-goog-user-project headers
337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
338
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
339
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
340
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
337
341
  transports_version_send: [:rest]
338
342
 
343
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
339
344
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
345
 
341
346
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -412,12 +417,13 @@ module Google
412
417
  # Customize the options with defaults
413
418
  call_metadata = @config.rpcs.insert.metadata.to_h
414
419
 
415
- # Set x-goog-api-client and x-goog-user-project headers
420
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
416
421
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
417
422
  lib_name: @config.lib_name, lib_version: @config.lib_version,
418
423
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
419
424
  transports_version_send: [:rest]
420
425
 
426
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
421
427
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
422
428
 
423
429
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -508,12 +514,13 @@ module Google
508
514
  # Customize the options with defaults
509
515
  call_metadata = @config.rpcs.list.metadata.to_h
510
516
 
511
- # Set x-goog-api-client and x-goog-user-project headers
517
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
512
518
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
513
519
  lib_name: @config.lib_name, lib_version: @config.lib_version,
514
520
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
515
521
  transports_version_send: [:rest]
516
522
 
523
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
517
524
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
518
525
 
519
526
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -593,12 +600,13 @@ module Google
593
600
  # Customize the options with defaults
594
601
  call_metadata = @config.rpcs.patch.metadata.to_h
595
602
 
596
- # Set x-goog-api-client and x-goog-user-project headers
603
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
597
604
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
598
605
  lib_name: @config.lib_name, lib_version: @config.lib_version,
599
606
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
600
607
  transports_version_send: [:rest]
601
608
 
609
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
602
610
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
603
611
 
604
612
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -685,12 +693,13 @@ module Google
685
693
  # Customize the options with defaults
686
694
  call_metadata = @config.rpcs.update.metadata.to_h
687
695
 
688
- # Set x-goog-api-client and x-goog-user-project headers
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
690
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
691
699
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
692
700
  transports_version_send: [:rest]
693
701
 
702
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
694
703
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
695
704
 
696
705
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The ForwardingRules 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
 
@@ -259,12 +262,13 @@ module Google
259
262
  # Customize the options with defaults
260
263
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
261
264
 
262
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
263
266
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
264
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
265
268
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
266
269
  transports_version_send: [:rest]
267
270
 
271
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -344,12 +348,13 @@ module Google
344
348
  # Customize the options with defaults
345
349
  call_metadata = @config.rpcs.delete.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
  call_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::Compute::V1::VERSION,
351
355
  transports_version_send: [:rest]
352
356
 
357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
358
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
359
 
355
360
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -435,12 +440,13 @@ module Google
435
440
  # Customize the options with defaults
436
441
  call_metadata = @config.rpcs.get.metadata.to_h
437
442
 
438
- # Set x-goog-api-client and x-goog-user-project headers
443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
439
444
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
440
445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
441
446
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
442
447
  transports_version_send: [:rest]
443
448
 
449
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
444
450
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
445
451
 
446
452
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -519,12 +525,13 @@ module Google
519
525
  # Customize the options with defaults
520
526
  call_metadata = @config.rpcs.insert.metadata.to_h
521
527
 
522
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
523
529
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
524
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
525
531
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
526
532
  transports_version_send: [:rest]
527
533
 
534
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
528
535
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
536
 
530
537
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -618,12 +625,13 @@ module Google
618
625
  # Customize the options with defaults
619
626
  call_metadata = @config.rpcs.list.metadata.to_h
620
627
 
621
- # Set x-goog-api-client and x-goog-user-project headers
628
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
622
629
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
630
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
631
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
625
632
  transports_version_send: [:rest]
626
633
 
634
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
635
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
636
 
629
637
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -705,12 +713,13 @@ module Google
705
713
  # Customize the options with defaults
706
714
  call_metadata = @config.rpcs.patch.metadata.to_h
707
715
 
708
- # Set x-goog-api-client and x-goog-user-project headers
716
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
709
717
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
710
718
  lib_name: @config.lib_name, lib_version: @config.lib_version,
711
719
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
712
720
  transports_version_send: [:rest]
713
721
 
722
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
714
723
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
715
724
 
716
725
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -800,12 +809,13 @@ module Google
800
809
  # Customize the options with defaults
801
810
  call_metadata = @config.rpcs.set_labels.metadata.to_h
802
811
 
803
- # Set x-goog-api-client and x-goog-user-project headers
812
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
804
813
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
805
814
  lib_name: @config.lib_name, lib_version: @config.lib_version,
806
815
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
807
816
  transports_version_send: [:rest]
808
817
 
818
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
809
819
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
810
820
 
811
821
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -895,12 +905,13 @@ module Google
895
905
  # Customize the options with defaults
896
906
  call_metadata = @config.rpcs.set_target.metadata.to_h
897
907
 
898
- # Set x-goog-api-client and x-goog-user-project headers
908
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
899
909
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
900
910
  lib_name: @config.lib_name, lib_version: @config.lib_version,
901
911
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
902
912
  transports_version_send: [:rest]
903
913
 
914
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
904
915
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
905
916
 
906
917
  options.apply_defaults timeout: @config.rpcs.set_target.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The GlobalAddresses 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
 
@@ -242,12 +245,13 @@ module Google
242
245
  # Customize the options with defaults
243
246
  call_metadata = @config.rpcs.delete.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
249
252
  transports_version_send: [:rest]
250
253
 
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
251
255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
252
256
 
253
257
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -330,12 +334,13 @@ module Google
330
334
  # Customize the options with defaults
331
335
  call_metadata = @config.rpcs.get.metadata.to_h
332
336
 
333
- # Set x-goog-api-client and x-goog-user-project headers
337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
338
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
339
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
340
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
337
341
  transports_version_send: [:rest]
338
342
 
343
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
339
344
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
345
 
341
346
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -412,12 +417,13 @@ module Google
412
417
  # Customize the options with defaults
413
418
  call_metadata = @config.rpcs.insert.metadata.to_h
414
419
 
415
- # Set x-goog-api-client and x-goog-user-project headers
420
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
416
421
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
417
422
  lib_name: @config.lib_name, lib_version: @config.lib_version,
418
423
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
419
424
  transports_version_send: [:rest]
420
425
 
426
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
421
427
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
422
428
 
423
429
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -508,12 +514,13 @@ module Google
508
514
  # Customize the options with defaults
509
515
  call_metadata = @config.rpcs.list.metadata.to_h
510
516
 
511
- # Set x-goog-api-client and x-goog-user-project headers
517
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
512
518
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
513
519
  lib_name: @config.lib_name, lib_version: @config.lib_version,
514
520
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
515
521
  transports_version_send: [:rest]
516
522
 
523
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
517
524
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
518
525
 
519
526
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -593,12 +600,13 @@ module Google
593
600
  # Customize the options with defaults
594
601
  call_metadata = @config.rpcs.move.metadata.to_h
595
602
 
596
- # Set x-goog-api-client and x-goog-user-project headers
603
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
597
604
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
598
605
  lib_name: @config.lib_name, lib_version: @config.lib_version,
599
606
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
600
607
  transports_version_send: [:rest]
601
608
 
609
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
602
610
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
603
611
 
604
612
  options.apply_defaults timeout: @config.rpcs.move.timeout,
@@ -683,12 +691,13 @@ module Google
683
691
  # Customize the options with defaults
684
692
  call_metadata = @config.rpcs.set_labels.metadata.to_h
685
693
 
686
- # Set x-goog-api-client and x-goog-user-project headers
694
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
687
695
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
688
696
  lib_name: @config.lib_name, lib_version: @config.lib_version,
689
697
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
690
698
  transports_version_send: [:rest]
691
699
 
700
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
692
701
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
693
702
 
694
703
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,