google-cloud-compute-v1 2.11.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) 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 +1 -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/rest/client.rb +13 -5
  24. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  25. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  26. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +7 -2
  27. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  28. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  29. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  31. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  32. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  33. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  34. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  35. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  36. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  37. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  38. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  39. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  40. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  41. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  42. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  43. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +33 -15
  44. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  45. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  47. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  48. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  49. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  50. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  51. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  52. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  53. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  54. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  55. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  56. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  57. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  58. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  59. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  60. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  61. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  62. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  63. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  65. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  66. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  67. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  69. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  70. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  71. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  72. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  73. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  74. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  75. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  76. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  77. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  78. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  79. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  80. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  81. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  82. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  83. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  84. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  85. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +9 -3
  86. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +23 -10
  87. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  88. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  89. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  90. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  91. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  92. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  93. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  94. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  96. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  97. data/lib/google/cloud/compute/v1/version.rb +1 -1
  98. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  99. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  100. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  101. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  102. data/proto_docs/google/cloud/compute/v1/compute.rb +11 -7
  103. metadata +2 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The Instances 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
 
@@ -356,12 +359,13 @@ module Google
356
359
  # Customize the options with defaults
357
360
  call_metadata = @config.rpcs.add_access_config.metadata.to_h
358
361
 
359
- # Set x-goog-api-client and x-goog-user-project headers
362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
360
363
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
361
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
362
365
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
363
366
  transports_version_send: [:rest]
364
367
 
368
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
365
369
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
366
370
 
367
371
  options.apply_defaults timeout: @config.rpcs.add_access_config.timeout,
@@ -451,12 +455,13 @@ module Google
451
455
  # Customize the options with defaults
452
456
  call_metadata = @config.rpcs.add_resource_policies.metadata.to_h
453
457
 
454
- # Set x-goog-api-client and x-goog-user-project headers
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
455
459
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
456
460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
457
461
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
458
462
  transports_version_send: [:rest]
459
463
 
464
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
465
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
466
 
462
467
  options.apply_defaults timeout: @config.rpcs.add_resource_policies.timeout,
@@ -552,12 +557,13 @@ module Google
552
557
  # Customize the options with defaults
553
558
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
554
559
 
555
- # Set x-goog-api-client and x-goog-user-project headers
560
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
556
561
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
557
562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
558
563
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
559
564
  transports_version_send: [:rest]
560
565
 
566
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
561
567
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
562
568
 
563
569
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -641,12 +647,13 @@ module Google
641
647
  # Customize the options with defaults
642
648
  call_metadata = @config.rpcs.attach_disk.metadata.to_h
643
649
 
644
- # Set x-goog-api-client and x-goog-user-project headers
650
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
645
651
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
652
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
653
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
648
654
  transports_version_send: [:rest]
649
655
 
656
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
657
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
658
 
652
659
  options.apply_defaults timeout: @config.rpcs.attach_disk.timeout,
@@ -734,12 +741,13 @@ module Google
734
741
  # Customize the options with defaults
735
742
  call_metadata = @config.rpcs.bulk_insert.metadata.to_h
736
743
 
737
- # Set x-goog-api-client and x-goog-user-project headers
744
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
738
745
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
739
746
  lib_name: @config.lib_name, lib_version: @config.lib_version,
740
747
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
741
748
  transports_version_send: [:rest]
742
749
 
750
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
743
751
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
744
752
 
745
753
  options.apply_defaults timeout: @config.rpcs.bulk_insert.timeout,
@@ -827,12 +835,13 @@ module Google
827
835
  # Customize the options with defaults
828
836
  call_metadata = @config.rpcs.delete.metadata.to_h
829
837
 
830
- # Set x-goog-api-client and x-goog-user-project headers
838
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
831
839
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
832
840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
833
841
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
834
842
  transports_version_send: [:rest]
835
843
 
844
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
836
845
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
837
846
 
838
847
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -924,12 +933,13 @@ module Google
924
933
  # Customize the options with defaults
925
934
  call_metadata = @config.rpcs.delete_access_config.metadata.to_h
926
935
 
927
- # Set x-goog-api-client and x-goog-user-project headers
936
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
928
937
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
929
938
  lib_name: @config.lib_name, lib_version: @config.lib_version,
930
939
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
931
940
  transports_version_send: [:rest]
932
941
 
942
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
933
943
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
934
944
 
935
945
  options.apply_defaults timeout: @config.rpcs.delete_access_config.timeout,
@@ -1019,12 +1029,13 @@ module Google
1019
1029
  # Customize the options with defaults
1020
1030
  call_metadata = @config.rpcs.detach_disk.metadata.to_h
1021
1031
 
1022
- # Set x-goog-api-client and x-goog-user-project headers
1032
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1023
1033
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1024
1034
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1025
1035
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1026
1036
  transports_version_send: [:rest]
1027
1037
 
1038
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1028
1039
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1029
1040
 
1030
1041
  options.apply_defaults timeout: @config.rpcs.detach_disk.timeout,
@@ -1110,12 +1121,13 @@ module Google
1110
1121
  # Customize the options with defaults
1111
1122
  call_metadata = @config.rpcs.get.metadata.to_h
1112
1123
 
1113
- # Set x-goog-api-client and x-goog-user-project headers
1124
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1114
1125
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1115
1126
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1116
1127
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1117
1128
  transports_version_send: [:rest]
1118
1129
 
1130
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1119
1131
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1120
1132
 
1121
1133
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -1194,12 +1206,13 @@ module Google
1194
1206
  # Customize the options with defaults
1195
1207
  call_metadata = @config.rpcs.get_effective_firewalls.metadata.to_h
1196
1208
 
1197
- # Set x-goog-api-client and x-goog-user-project headers
1209
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1198
1210
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1199
1211
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1200
1212
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1201
1213
  transports_version_send: [:rest]
1202
1214
 
1215
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1203
1216
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1204
1217
 
1205
1218
  options.apply_defaults timeout: @config.rpcs.get_effective_firewalls.timeout,
@@ -1280,12 +1293,13 @@ module Google
1280
1293
  # Customize the options with defaults
1281
1294
  call_metadata = @config.rpcs.get_guest_attributes.metadata.to_h
1282
1295
 
1283
- # Set x-goog-api-client and x-goog-user-project headers
1296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1284
1297
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1285
1298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1286
1299
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1287
1300
  transports_version_send: [:rest]
1288
1301
 
1302
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1289
1303
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1290
1304
 
1291
1305
  options.apply_defaults timeout: @config.rpcs.get_guest_attributes.timeout,
@@ -1364,12 +1378,13 @@ module Google
1364
1378
  # Customize the options with defaults
1365
1379
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1366
1380
 
1367
- # Set x-goog-api-client and x-goog-user-project headers
1381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1368
1382
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1369
1383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1370
1384
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1371
1385
  transports_version_send: [:rest]
1372
1386
 
1387
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1373
1388
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1374
1389
 
1375
1390
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1446,12 +1461,13 @@ module Google
1446
1461
  # Customize the options with defaults
1447
1462
  call_metadata = @config.rpcs.get_screenshot.metadata.to_h
1448
1463
 
1449
- # Set x-goog-api-client and x-goog-user-project headers
1464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1450
1465
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1451
1466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1452
1467
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1453
1468
  transports_version_send: [:rest]
1454
1469
 
1470
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1455
1471
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1456
1472
 
1457
1473
  options.apply_defaults timeout: @config.rpcs.get_screenshot.timeout,
@@ -1532,12 +1548,13 @@ module Google
1532
1548
  # Customize the options with defaults
1533
1549
  call_metadata = @config.rpcs.get_serial_port_output.metadata.to_h
1534
1550
 
1535
- # Set x-goog-api-client and x-goog-user-project headers
1551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1536
1552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1537
1553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1538
1554
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1539
1555
  transports_version_send: [:rest]
1540
1556
 
1557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1541
1558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1542
1559
 
1543
1560
  options.apply_defaults timeout: @config.rpcs.get_serial_port_output.timeout,
@@ -1614,12 +1631,13 @@ module Google
1614
1631
  # Customize the options with defaults
1615
1632
  call_metadata = @config.rpcs.get_shielded_instance_identity.metadata.to_h
1616
1633
 
1617
- # Set x-goog-api-client and x-goog-user-project headers
1634
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1618
1635
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1619
1636
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1620
1637
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1621
1638
  transports_version_send: [:rest]
1622
1639
 
1640
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1623
1641
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1624
1642
 
1625
1643
  options.apply_defaults timeout: @config.rpcs.get_shielded_instance_identity.timeout,
@@ -1702,12 +1720,13 @@ module Google
1702
1720
  # Customize the options with defaults
1703
1721
  call_metadata = @config.rpcs.insert.metadata.to_h
1704
1722
 
1705
- # Set x-goog-api-client and x-goog-user-project headers
1723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1706
1724
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1707
1725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1708
1726
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1709
1727
  transports_version_send: [:rest]
1710
1728
 
1729
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1711
1730
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1712
1731
 
1713
1732
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1801,12 +1820,13 @@ module Google
1801
1820
  # Customize the options with defaults
1802
1821
  call_metadata = @config.rpcs.list.metadata.to_h
1803
1822
 
1804
- # Set x-goog-api-client and x-goog-user-project headers
1823
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1805
1824
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1806
1825
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1807
1826
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1808
1827
  transports_version_send: [:rest]
1809
1828
 
1829
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1810
1830
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1811
1831
 
1812
1832
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1894,12 +1914,13 @@ module Google
1894
1914
  # Customize the options with defaults
1895
1915
  call_metadata = @config.rpcs.list_referrers.metadata.to_h
1896
1916
 
1897
- # Set x-goog-api-client and x-goog-user-project headers
1917
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1898
1918
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1899
1919
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1900
1920
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1901
1921
  transports_version_send: [:rest]
1902
1922
 
1923
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1903
1924
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1904
1925
 
1905
1926
  options.apply_defaults timeout: @config.rpcs.list_referrers.timeout,
@@ -1979,12 +2000,13 @@ module Google
1979
2000
  # Customize the options with defaults
1980
2001
  call_metadata = @config.rpcs.perform_maintenance.metadata.to_h
1981
2002
 
1982
- # Set x-goog-api-client and x-goog-user-project headers
2003
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1983
2004
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1984
2005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1985
2006
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1986
2007
  transports_version_send: [:rest]
1987
2008
 
2009
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1988
2010
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1989
2011
 
1990
2012
  options.apply_defaults timeout: @config.rpcs.perform_maintenance.timeout,
@@ -2074,12 +2096,13 @@ module Google
2074
2096
  # Customize the options with defaults
2075
2097
  call_metadata = @config.rpcs.remove_resource_policies.metadata.to_h
2076
2098
 
2077
- # Set x-goog-api-client and x-goog-user-project headers
2099
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2078
2100
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2079
2101
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2080
2102
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2081
2103
  transports_version_send: [:rest]
2082
2104
 
2105
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2083
2106
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2084
2107
 
2085
2108
  options.apply_defaults timeout: @config.rpcs.remove_resource_policies.timeout,
@@ -2167,12 +2190,13 @@ module Google
2167
2190
  # Customize the options with defaults
2168
2191
  call_metadata = @config.rpcs.reset.metadata.to_h
2169
2192
 
2170
- # Set x-goog-api-client and x-goog-user-project headers
2193
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2171
2194
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2172
2195
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2173
2196
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2174
2197
  transports_version_send: [:rest]
2175
2198
 
2199
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2176
2200
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2177
2201
 
2178
2202
  options.apply_defaults timeout: @config.rpcs.reset.timeout,
@@ -2260,12 +2284,13 @@ module Google
2260
2284
  # Customize the options with defaults
2261
2285
  call_metadata = @config.rpcs.resume.metadata.to_h
2262
2286
 
2263
- # Set x-goog-api-client and x-goog-user-project headers
2287
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2264
2288
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2265
2289
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2266
2290
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2267
2291
  transports_version_send: [:rest]
2268
2292
 
2293
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2269
2294
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2270
2295
 
2271
2296
  options.apply_defaults timeout: @config.rpcs.resume.timeout,
@@ -2351,12 +2376,13 @@ module Google
2351
2376
  # Customize the options with defaults
2352
2377
  call_metadata = @config.rpcs.send_diagnostic_interrupt.metadata.to_h
2353
2378
 
2354
- # Set x-goog-api-client and x-goog-user-project headers
2379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2355
2380
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2356
2381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2357
2382
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2358
2383
  transports_version_send: [:rest]
2359
2384
 
2385
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2360
2386
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2361
2387
 
2362
2388
  options.apply_defaults timeout: @config.rpcs.send_diagnostic_interrupt.timeout,
@@ -2437,12 +2463,13 @@ module Google
2437
2463
  # Customize the options with defaults
2438
2464
  call_metadata = @config.rpcs.set_deletion_protection.metadata.to_h
2439
2465
 
2440
- # Set x-goog-api-client and x-goog-user-project headers
2466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2441
2467
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2442
2468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2443
2469
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2444
2470
  transports_version_send: [:rest]
2445
2471
 
2472
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2446
2473
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2447
2474
 
2448
2475
  options.apply_defaults timeout: @config.rpcs.set_deletion_protection.timeout,
@@ -2534,12 +2561,13 @@ module Google
2534
2561
  # Customize the options with defaults
2535
2562
  call_metadata = @config.rpcs.set_disk_auto_delete.metadata.to_h
2536
2563
 
2537
- # Set x-goog-api-client and x-goog-user-project headers
2564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2538
2565
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2539
2566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2540
2567
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2541
2568
  transports_version_send: [:rest]
2542
2569
 
2570
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2543
2571
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2544
2572
 
2545
2573
  options.apply_defaults timeout: @config.rpcs.set_disk_auto_delete.timeout,
@@ -2627,12 +2655,13 @@ module Google
2627
2655
  # Customize the options with defaults
2628
2656
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
2629
2657
 
2630
- # Set x-goog-api-client and x-goog-user-project headers
2658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2631
2659
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2632
2660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2633
2661
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2634
2662
  transports_version_send: [:rest]
2635
2663
 
2664
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2636
2665
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2637
2666
 
2638
2667
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -2713,12 +2742,13 @@ module Google
2713
2742
  # Customize the options with defaults
2714
2743
  call_metadata = @config.rpcs.set_labels.metadata.to_h
2715
2744
 
2716
- # Set x-goog-api-client and x-goog-user-project headers
2745
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2717
2746
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2718
2747
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2719
2748
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2720
2749
  transports_version_send: [:rest]
2721
2750
 
2751
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2722
2752
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2723
2753
 
2724
2754
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -2808,12 +2838,13 @@ module Google
2808
2838
  # Customize the options with defaults
2809
2839
  call_metadata = @config.rpcs.set_machine_resources.metadata.to_h
2810
2840
 
2811
- # Set x-goog-api-client and x-goog-user-project headers
2841
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2812
2842
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2813
2843
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2814
2844
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2815
2845
  transports_version_send: [:rest]
2816
2846
 
2847
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2817
2848
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2818
2849
 
2819
2850
  options.apply_defaults timeout: @config.rpcs.set_machine_resources.timeout,
@@ -2903,12 +2934,13 @@ module Google
2903
2934
  # Customize the options with defaults
2904
2935
  call_metadata = @config.rpcs.set_machine_type.metadata.to_h
2905
2936
 
2906
- # Set x-goog-api-client and x-goog-user-project headers
2937
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2907
2938
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2908
2939
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2909
2940
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2910
2941
  transports_version_send: [:rest]
2911
2942
 
2943
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2912
2944
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2913
2945
 
2914
2946
  options.apply_defaults timeout: @config.rpcs.set_machine_type.timeout,
@@ -2998,12 +3030,13 @@ module Google
2998
3030
  # Customize the options with defaults
2999
3031
  call_metadata = @config.rpcs.set_metadata.metadata.to_h
3000
3032
 
3001
- # Set x-goog-api-client and x-goog-user-project headers
3033
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3002
3034
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3003
3035
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3004
3036
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3005
3037
  transports_version_send: [:rest]
3006
3038
 
3039
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3007
3040
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3008
3041
 
3009
3042
  options.apply_defaults timeout: @config.rpcs.set_metadata.timeout,
@@ -3093,12 +3126,13 @@ module Google
3093
3126
  # Customize the options with defaults
3094
3127
  call_metadata = @config.rpcs.set_min_cpu_platform.metadata.to_h
3095
3128
 
3096
- # Set x-goog-api-client and x-goog-user-project headers
3129
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3097
3130
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3098
3131
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3099
3132
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3100
3133
  transports_version_send: [:rest]
3101
3134
 
3135
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3102
3136
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3103
3137
 
3104
3138
  options.apply_defaults timeout: @config.rpcs.set_min_cpu_platform.timeout,
@@ -3188,12 +3222,13 @@ module Google
3188
3222
  # Customize the options with defaults
3189
3223
  call_metadata = @config.rpcs.set_name.metadata.to_h
3190
3224
 
3191
- # Set x-goog-api-client and x-goog-user-project headers
3225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3192
3226
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3193
3227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3194
3228
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3195
3229
  transports_version_send: [:rest]
3196
3230
 
3231
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3197
3232
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3198
3233
 
3199
3234
  options.apply_defaults timeout: @config.rpcs.set_name.timeout,
@@ -3283,12 +3318,13 @@ module Google
3283
3318
  # Customize the options with defaults
3284
3319
  call_metadata = @config.rpcs.set_scheduling.metadata.to_h
3285
3320
 
3286
- # Set x-goog-api-client and x-goog-user-project headers
3321
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3287
3322
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3288
3323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3289
3324
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3290
3325
  transports_version_send: [:rest]
3291
3326
 
3327
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3292
3328
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3293
3329
 
3294
3330
  options.apply_defaults timeout: @config.rpcs.set_scheduling.timeout,
@@ -3378,12 +3414,13 @@ module Google
3378
3414
  # Customize the options with defaults
3379
3415
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
3380
3416
 
3381
- # Set x-goog-api-client and x-goog-user-project headers
3417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3382
3418
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3383
3419
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3384
3420
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3385
3421
  transports_version_send: [:rest]
3386
3422
 
3423
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3387
3424
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3388
3425
 
3389
3426
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,
@@ -3473,12 +3510,13 @@ module Google
3473
3510
  # Customize the options with defaults
3474
3511
  call_metadata = @config.rpcs.set_service_account.metadata.to_h
3475
3512
 
3476
- # Set x-goog-api-client and x-goog-user-project headers
3513
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3477
3514
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3478
3515
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3479
3516
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3480
3517
  transports_version_send: [:rest]
3481
3518
 
3519
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3482
3520
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3483
3521
 
3484
3522
  options.apply_defaults timeout: @config.rpcs.set_service_account.timeout,
@@ -3568,12 +3606,13 @@ module Google
3568
3606
  # Customize the options with defaults
3569
3607
  call_metadata = @config.rpcs.set_shielded_instance_integrity_policy.metadata.to_h
3570
3608
 
3571
- # Set x-goog-api-client and x-goog-user-project headers
3609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3572
3610
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3573
3611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3574
3612
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3575
3613
  transports_version_send: [:rest]
3576
3614
 
3615
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3577
3616
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3578
3617
 
3579
3618
  options.apply_defaults timeout: @config.rpcs.set_shielded_instance_integrity_policy.timeout,
@@ -3663,12 +3702,13 @@ module Google
3663
3702
  # Customize the options with defaults
3664
3703
  call_metadata = @config.rpcs.set_tags.metadata.to_h
3665
3704
 
3666
- # Set x-goog-api-client and x-goog-user-project headers
3705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3667
3706
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3668
3707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3669
3708
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3670
3709
  transports_version_send: [:rest]
3671
3710
 
3711
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3672
3712
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3673
3713
 
3674
3714
  options.apply_defaults timeout: @config.rpcs.set_tags.timeout,
@@ -3758,12 +3798,13 @@ module Google
3758
3798
  # Customize the options with defaults
3759
3799
  call_metadata = @config.rpcs.simulate_maintenance_event.metadata.to_h
3760
3800
 
3761
- # Set x-goog-api-client and x-goog-user-project headers
3801
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3762
3802
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3763
3803
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3764
3804
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3765
3805
  transports_version_send: [:rest]
3766
3806
 
3807
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3767
3808
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3768
3809
 
3769
3810
  options.apply_defaults timeout: @config.rpcs.simulate_maintenance_event.timeout,
@@ -3851,12 +3892,13 @@ module Google
3851
3892
  # Customize the options with defaults
3852
3893
  call_metadata = @config.rpcs.start.metadata.to_h
3853
3894
 
3854
- # Set x-goog-api-client and x-goog-user-project headers
3895
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3855
3896
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3856
3897
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3857
3898
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3858
3899
  transports_version_send: [:rest]
3859
3900
 
3901
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3860
3902
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3861
3903
 
3862
3904
  options.apply_defaults timeout: @config.rpcs.start.timeout,
@@ -3946,12 +3988,13 @@ module Google
3946
3988
  # Customize the options with defaults
3947
3989
  call_metadata = @config.rpcs.start_with_encryption_key.metadata.to_h
3948
3990
 
3949
- # Set x-goog-api-client and x-goog-user-project headers
3991
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3950
3992
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3951
3993
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3952
3994
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
3953
3995
  transports_version_send: [:rest]
3954
3996
 
3997
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3955
3998
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3956
3999
 
3957
4000
  options.apply_defaults timeout: @config.rpcs.start_with_encryption_key.timeout,
@@ -4041,12 +4084,13 @@ module Google
4041
4084
  # Customize the options with defaults
4042
4085
  call_metadata = @config.rpcs.stop.metadata.to_h
4043
4086
 
4044
- # Set x-goog-api-client and x-goog-user-project headers
4087
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4045
4088
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4046
4089
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4047
4090
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4048
4091
  transports_version_send: [:rest]
4049
4092
 
4093
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4050
4094
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4051
4095
 
4052
4096
  options.apply_defaults timeout: @config.rpcs.stop.timeout,
@@ -4136,12 +4180,13 @@ module Google
4136
4180
  # Customize the options with defaults
4137
4181
  call_metadata = @config.rpcs.suspend.metadata.to_h
4138
4182
 
4139
- # Set x-goog-api-client and x-goog-user-project headers
4183
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4140
4184
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4141
4185
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4142
4186
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4143
4187
  transports_version_send: [:rest]
4144
4188
 
4189
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4145
4190
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4146
4191
 
4147
4192
  options.apply_defaults timeout: @config.rpcs.suspend.timeout,
@@ -4229,12 +4274,13 @@ module Google
4229
4274
  # Customize the options with defaults
4230
4275
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
4231
4276
 
4232
- # Set x-goog-api-client and x-goog-user-project headers
4277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4233
4278
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4234
4279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4235
4280
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4236
4281
  transports_version_send: [:rest]
4237
4282
 
4283
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4238
4284
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4239
4285
 
4240
4286
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -4321,12 +4367,13 @@ module Google
4321
4367
  # Customize the options with defaults
4322
4368
  call_metadata = @config.rpcs.update.metadata.to_h
4323
4369
 
4324
- # Set x-goog-api-client and x-goog-user-project headers
4370
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4325
4371
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4326
4372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4327
4373
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4328
4374
  transports_version_send: [:rest]
4329
4375
 
4376
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4330
4377
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4331
4378
 
4332
4379
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -4418,12 +4465,13 @@ module Google
4418
4465
  # Customize the options with defaults
4419
4466
  call_metadata = @config.rpcs.update_access_config.metadata.to_h
4420
4467
 
4421
- # Set x-goog-api-client and x-goog-user-project headers
4468
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4422
4469
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4423
4470
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4424
4471
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4425
4472
  transports_version_send: [:rest]
4426
4473
 
4474
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4427
4475
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4428
4476
 
4429
4477
  options.apply_defaults timeout: @config.rpcs.update_access_config.timeout,
@@ -4513,12 +4561,13 @@ module Google
4513
4561
  # Customize the options with defaults
4514
4562
  call_metadata = @config.rpcs.update_display_device.metadata.to_h
4515
4563
 
4516
- # Set x-goog-api-client and x-goog-user-project headers
4564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4517
4565
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4518
4566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4519
4567
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4520
4568
  transports_version_send: [:rest]
4521
4569
 
4570
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4522
4571
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4523
4572
 
4524
4573
  options.apply_defaults timeout: @config.rpcs.update_display_device.timeout,
@@ -4610,12 +4659,13 @@ module Google
4610
4659
  # Customize the options with defaults
4611
4660
  call_metadata = @config.rpcs.update_network_interface.metadata.to_h
4612
4661
 
4613
- # Set x-goog-api-client and x-goog-user-project headers
4662
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4614
4663
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4615
4664
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4616
4665
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4617
4666
  transports_version_send: [:rest]
4618
4667
 
4668
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4619
4669
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4620
4670
 
4621
4671
  options.apply_defaults timeout: @config.rpcs.update_network_interface.timeout,
@@ -4705,12 +4755,13 @@ module Google
4705
4755
  # Customize the options with defaults
4706
4756
  call_metadata = @config.rpcs.update_shielded_instance_config.metadata.to_h
4707
4757
 
4708
- # Set x-goog-api-client and x-goog-user-project headers
4758
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4709
4759
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4710
4760
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4711
4761
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
4712
4762
  transports_version_send: [:rest]
4713
4763
 
4764
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4714
4765
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4715
4766
 
4716
4767
  options.apply_defaults timeout: @config.rpcs.update_shielded_instance_config.timeout,