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 RegionDisks 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
 
@@ -271,12 +274,13 @@ module Google
271
274
  # Customize the options with defaults
272
275
  call_metadata = @config.rpcs.add_resource_policies.metadata.to_h
273
276
 
274
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
278
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
278
281
  transports_version_send: [:rest]
279
282
 
283
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
284
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
285
 
282
286
  options.apply_defaults timeout: @config.rpcs.add_resource_policies.timeout,
@@ -364,12 +368,13 @@ module Google
364
368
  # Customize the options with defaults
365
369
  call_metadata = @config.rpcs.bulk_insert.metadata.to_h
366
370
 
367
- # Set x-goog-api-client and x-goog-user-project headers
371
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
368
372
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
373
  lib_name: @config.lib_name, lib_version: @config.lib_version,
370
374
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
371
375
  transports_version_send: [:rest]
372
376
 
377
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
373
378
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
374
379
 
375
380
  options.apply_defaults timeout: @config.rpcs.bulk_insert.timeout,
@@ -459,12 +464,13 @@ module Google
459
464
  # Customize the options with defaults
460
465
  call_metadata = @config.rpcs.create_snapshot.metadata.to_h
461
466
 
462
- # Set x-goog-api-client and x-goog-user-project headers
467
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
463
468
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
464
469
  lib_name: @config.lib_name, lib_version: @config.lib_version,
465
470
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
466
471
  transports_version_send: [:rest]
467
472
 
473
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
468
474
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
475
 
470
476
  options.apply_defaults timeout: @config.rpcs.create_snapshot.timeout,
@@ -552,12 +558,13 @@ module Google
552
558
  # Customize the options with defaults
553
559
  call_metadata = @config.rpcs.delete.metadata.to_h
554
560
 
555
- # Set x-goog-api-client and x-goog-user-project headers
561
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
556
562
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
557
563
  lib_name: @config.lib_name, lib_version: @config.lib_version,
558
564
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
559
565
  transports_version_send: [:rest]
560
566
 
567
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
561
568
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
562
569
 
563
570
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -643,12 +650,13 @@ module Google
643
650
  # Customize the options with defaults
644
651
  call_metadata = @config.rpcs.get.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
650
657
  transports_version_send: [:rest]
651
658
 
659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
652
660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
653
661
 
654
662
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -727,12 +735,13 @@ module Google
727
735
  # Customize the options with defaults
728
736
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
729
737
 
730
- # Set x-goog-api-client and x-goog-user-project headers
738
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
731
739
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
732
740
  lib_name: @config.lib_name, lib_version: @config.lib_version,
733
741
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
734
742
  transports_version_send: [:rest]
735
743
 
744
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
736
745
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
746
 
738
747
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -813,12 +822,13 @@ module Google
813
822
  # Customize the options with defaults
814
823
  call_metadata = @config.rpcs.insert.metadata.to_h
815
824
 
816
- # Set x-goog-api-client and x-goog-user-project headers
825
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
817
826
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
818
827
  lib_name: @config.lib_name, lib_version: @config.lib_version,
819
828
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
820
829
  transports_version_send: [:rest]
821
830
 
831
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
822
832
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
823
833
 
824
834
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -912,12 +922,13 @@ module Google
912
922
  # Customize the options with defaults
913
923
  call_metadata = @config.rpcs.list.metadata.to_h
914
924
 
915
- # Set x-goog-api-client and x-goog-user-project headers
925
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
916
926
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
917
927
  lib_name: @config.lib_name, lib_version: @config.lib_version,
918
928
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
919
929
  transports_version_send: [:rest]
920
930
 
931
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
921
932
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
922
933
 
923
934
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -999,12 +1010,13 @@ module Google
999
1010
  # Customize the options with defaults
1000
1011
  call_metadata = @config.rpcs.remove_resource_policies.metadata.to_h
1001
1012
 
1002
- # Set x-goog-api-client and x-goog-user-project headers
1013
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1003
1014
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1004
1015
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1005
1016
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1006
1017
  transports_version_send: [:rest]
1007
1018
 
1019
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1008
1020
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1009
1021
 
1010
1022
  options.apply_defaults timeout: @config.rpcs.remove_resource_policies.timeout,
@@ -1094,12 +1106,13 @@ module Google
1094
1106
  # Customize the options with defaults
1095
1107
  call_metadata = @config.rpcs.resize.metadata.to_h
1096
1108
 
1097
- # Set x-goog-api-client and x-goog-user-project headers
1109
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1098
1110
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1099
1111
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1100
1112
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1101
1113
  transports_version_send: [:rest]
1102
1114
 
1115
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1103
1116
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1104
1117
 
1105
1118
  options.apply_defaults timeout: @config.rpcs.resize.timeout,
@@ -1187,12 +1200,13 @@ module Google
1187
1200
  # Customize the options with defaults
1188
1201
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1189
1202
 
1190
- # Set x-goog-api-client and x-goog-user-project headers
1203
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1191
1204
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1192
1205
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1193
1206
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1194
1207
  transports_version_send: [:rest]
1195
1208
 
1209
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1196
1210
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1197
1211
 
1198
1212
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1273,12 +1287,13 @@ module Google
1273
1287
  # Customize the options with defaults
1274
1288
  call_metadata = @config.rpcs.set_labels.metadata.to_h
1275
1289
 
1276
- # Set x-goog-api-client and x-goog-user-project headers
1290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1277
1291
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1278
1292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1279
1293
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1280
1294
  transports_version_send: [:rest]
1281
1295
 
1296
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1282
1297
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1283
1298
 
1284
1299
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -1368,12 +1383,13 @@ module Google
1368
1383
  # Customize the options with defaults
1369
1384
  call_metadata = @config.rpcs.start_async_replication.metadata.to_h
1370
1385
 
1371
- # Set x-goog-api-client and x-goog-user-project headers
1386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1372
1387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1373
1388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1374
1389
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1375
1390
  transports_version_send: [:rest]
1376
1391
 
1392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1377
1393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1378
1394
 
1379
1395
  options.apply_defaults timeout: @config.rpcs.start_async_replication.timeout,
@@ -1461,12 +1477,13 @@ module Google
1461
1477
  # Customize the options with defaults
1462
1478
  call_metadata = @config.rpcs.stop_async_replication.metadata.to_h
1463
1479
 
1464
- # Set x-goog-api-client and x-goog-user-project headers
1480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1465
1481
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1466
1482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1467
1483
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1468
1484
  transports_version_send: [:rest]
1469
1485
 
1486
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1470
1487
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1471
1488
 
1472
1489
  options.apply_defaults timeout: @config.rpcs.stop_async_replication.timeout,
@@ -1554,12 +1571,13 @@ module Google
1554
1571
  # Customize the options with defaults
1555
1572
  call_metadata = @config.rpcs.stop_group_async_replication.metadata.to_h
1556
1573
 
1557
- # Set x-goog-api-client and x-goog-user-project headers
1574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1558
1575
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1559
1576
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1560
1577
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1561
1578
  transports_version_send: [:rest]
1562
1579
 
1580
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1563
1581
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1564
1582
 
1565
1583
  options.apply_defaults timeout: @config.rpcs.stop_group_async_replication.timeout,
@@ -1647,12 +1665,13 @@ module Google
1647
1665
  # Customize the options with defaults
1648
1666
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1649
1667
 
1650
- # Set x-goog-api-client and x-goog-user-project headers
1668
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1651
1669
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1652
1670
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1653
1671
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1654
1672
  transports_version_send: [:rest]
1655
1673
 
1674
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1656
1675
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1657
1676
 
1658
1677
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1736,12 +1755,13 @@ module Google
1736
1755
  # Customize the options with defaults
1737
1756
  call_metadata = @config.rpcs.update.metadata.to_h
1738
1757
 
1739
- # Set x-goog-api-client and x-goog-user-project headers
1758
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1740
1759
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1741
1760
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1742
1761
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1743
1762
  transports_version_send: [:rest]
1744
1763
 
1764
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1745
1765
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1746
1766
 
1747
1767
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionHealthCheckServices 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,
@@ -333,12 +337,13 @@ module Google
333
337
  # Customize the options with defaults
334
338
  call_metadata = @config.rpcs.get.metadata.to_h
335
339
 
336
- # Set x-goog-api-client and x-goog-user-project headers
340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
337
341
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
338
342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
339
343
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
340
344
  transports_version_send: [:rest]
341
345
 
346
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
342
347
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
343
348
 
344
349
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -417,12 +422,13 @@ module Google
417
422
  # Customize the options with defaults
418
423
  call_metadata = @config.rpcs.insert.metadata.to_h
419
424
 
420
- # Set x-goog-api-client and x-goog-user-project headers
425
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
421
426
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
422
427
  lib_name: @config.lib_name, lib_version: @config.lib_version,
423
428
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
424
429
  transports_version_send: [:rest]
425
430
 
431
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
426
432
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
427
433
 
428
434
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -516,12 +522,13 @@ module Google
516
522
  # Customize the options with defaults
517
523
  call_metadata = @config.rpcs.list.metadata.to_h
518
524
 
519
- # Set x-goog-api-client and x-goog-user-project headers
525
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
520
526
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
521
527
  lib_name: @config.lib_name, lib_version: @config.lib_version,
522
528
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
523
529
  transports_version_send: [:rest]
524
530
 
531
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
525
532
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
526
533
 
527
534
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -603,12 +610,13 @@ module Google
603
610
  # Customize the options with defaults
604
611
  call_metadata = @config.rpcs.patch.metadata.to_h
605
612
 
606
- # Set x-goog-api-client and x-goog-user-project headers
613
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
607
614
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
608
615
  lib_name: @config.lib_name, lib_version: @config.lib_version,
609
616
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
610
617
  transports_version_send: [:rest]
611
618
 
619
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
612
620
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
613
621
 
614
622
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionHealthChecks 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
 
@@ -244,12 +247,13 @@ module Google
244
247
  # Customize the options with defaults
245
248
  call_metadata = @config.rpcs.delete.metadata.to_h
246
249
 
247
- # Set x-goog-api-client and x-goog-user-project headers
250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
248
251
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
249
252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
250
253
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
251
254
  transports_version_send: [:rest]
252
255
 
256
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
253
257
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
254
258
 
255
259
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -335,12 +339,13 @@ module Google
335
339
  # Customize the options with defaults
336
340
  call_metadata = @config.rpcs.get.metadata.to_h
337
341
 
338
- # Set x-goog-api-client and x-goog-user-project headers
342
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
341
345
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
342
346
  transports_version_send: [:rest]
343
347
 
348
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
349
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
350
 
346
351
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -419,12 +424,13 @@ module Google
419
424
  # Customize the options with defaults
420
425
  call_metadata = @config.rpcs.insert.metadata.to_h
421
426
 
422
- # Set x-goog-api-client and x-goog-user-project headers
427
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
423
428
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
424
429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
425
430
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
426
431
  transports_version_send: [:rest]
427
432
 
433
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
428
434
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
435
 
430
436
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.list.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -605,12 +612,13 @@ module Google
605
612
  # Customize the options with defaults
606
613
  call_metadata = @config.rpcs.patch.metadata.to_h
607
614
 
608
- # Set x-goog-api-client and x-goog-user-project headers
615
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
609
616
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
610
617
  lib_name: @config.lib_name, lib_version: @config.lib_version,
611
618
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
612
619
  transports_version_send: [:rest]
613
620
 
621
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
614
622
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
623
 
616
624
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -700,12 +708,13 @@ module Google
700
708
  # Customize the options with defaults
701
709
  call_metadata = @config.rpcs.update.metadata.to_h
702
710
 
703
- # Set x-goog-api-client and x-goog-user-project headers
711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
704
712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
705
713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
706
714
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
707
715
  transports_version_send: [:rest]
708
716
 
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
709
718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
710
719
 
711
720
  options.apply_defaults timeout: @config.rpcs.update.timeout,