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 NetworkFirewallPolicies 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
 
@@ -275,12 +278,13 @@ module Google
275
278
  # Customize the options with defaults
276
279
  call_metadata = @config.rpcs.add_association.metadata.to_h
277
280
 
278
- # Set x-goog-api-client and x-goog-user-project headers
281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
279
282
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
280
283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
281
284
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
282
285
  transports_version_send: [:rest]
283
286
 
287
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
284
288
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
285
289
 
286
290
  options.apply_defaults timeout: @config.rpcs.add_association.timeout,
@@ -371,12 +375,13 @@ module Google
371
375
  # Customize the options with defaults
372
376
  call_metadata = @config.rpcs.add_rule.metadata.to_h
373
377
 
374
- # Set x-goog-api-client and x-goog-user-project headers
378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
375
379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
376
380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
377
381
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
378
382
  transports_version_send: [:rest]
379
383
 
384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
380
385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
381
386
 
382
387
  options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
@@ -463,12 +468,13 @@ module Google
463
468
  # Customize the options with defaults
464
469
  call_metadata = @config.rpcs.clone_rules.metadata.to_h
465
470
 
466
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
467
472
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
468
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
469
474
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
470
475
  transports_version_send: [:rest]
471
476
 
477
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
472
478
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
473
479
 
474
480
  options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
@@ -553,12 +559,13 @@ module Google
553
559
  # Customize the options with defaults
554
560
  call_metadata = @config.rpcs.delete.metadata.to_h
555
561
 
556
- # Set x-goog-api-client and x-goog-user-project headers
562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
557
563
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
558
564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
559
565
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
560
566
  transports_version_send: [:rest]
561
567
 
568
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
562
569
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
563
570
 
564
571
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -641,12 +648,13 @@ module Google
641
648
  # Customize the options with defaults
642
649
  call_metadata = @config.rpcs.get.metadata.to_h
643
650
 
644
- # Set x-goog-api-client and x-goog-user-project headers
651
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
645
652
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
653
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
654
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
648
655
  transports_version_send: [:rest]
649
656
 
657
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
658
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
659
 
652
660
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -723,12 +731,13 @@ module Google
723
731
  # Customize the options with defaults
724
732
  call_metadata = @config.rpcs.get_association.metadata.to_h
725
733
 
726
- # Set x-goog-api-client and x-goog-user-project headers
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
735
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
737
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
730
738
  transports_version_send: [:rest]
731
739
 
740
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
732
741
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
742
 
734
743
  options.apply_defaults timeout: @config.rpcs.get_association.timeout,
@@ -805,12 +814,13 @@ module Google
805
814
  # Customize the options with defaults
806
815
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
807
816
 
808
- # Set x-goog-api-client and x-goog-user-project headers
817
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
809
818
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
810
819
  lib_name: @config.lib_name, lib_version: @config.lib_version,
811
820
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
812
821
  transports_version_send: [:rest]
813
822
 
823
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
814
824
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
815
825
 
816
826
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -887,12 +897,13 @@ module Google
887
897
  # Customize the options with defaults
888
898
  call_metadata = @config.rpcs.get_rule.metadata.to_h
889
899
 
890
- # Set x-goog-api-client and x-goog-user-project headers
900
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
891
901
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
902
  lib_name: @config.lib_name, lib_version: @config.lib_version,
893
903
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
894
904
  transports_version_send: [:rest]
895
905
 
906
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
896
907
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
897
908
 
898
909
  options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
@@ -969,12 +980,13 @@ module Google
969
980
  # Customize the options with defaults
970
981
  call_metadata = @config.rpcs.insert.metadata.to_h
971
982
 
972
- # Set x-goog-api-client and x-goog-user-project headers
983
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
973
984
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
974
985
  lib_name: @config.lib_name, lib_version: @config.lib_version,
975
986
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
976
987
  transports_version_send: [:rest]
977
988
 
989
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
978
990
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
979
991
 
980
992
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1065,12 +1077,13 @@ module Google
1065
1077
  # Customize the options with defaults
1066
1078
  call_metadata = @config.rpcs.list.metadata.to_h
1067
1079
 
1068
- # Set x-goog-api-client and x-goog-user-project headers
1080
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1069
1081
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1070
1082
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1071
1083
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1072
1084
  transports_version_send: [:rest]
1073
1085
 
1086
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1074
1087
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1075
1088
 
1076
1089
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1150,12 +1163,13 @@ module Google
1150
1163
  # Customize the options with defaults
1151
1164
  call_metadata = @config.rpcs.patch.metadata.to_h
1152
1165
 
1153
- # Set x-goog-api-client and x-goog-user-project headers
1166
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1154
1167
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1155
1168
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1156
1169
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1157
1170
  transports_version_send: [:rest]
1158
1171
 
1172
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1159
1173
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1160
1174
 
1161
1175
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1244,12 +1258,13 @@ module Google
1244
1258
  # Customize the options with defaults
1245
1259
  call_metadata = @config.rpcs.patch_rule.metadata.to_h
1246
1260
 
1247
- # Set x-goog-api-client and x-goog-user-project headers
1261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1248
1262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1249
1263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1250
1264
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1251
1265
  transports_version_send: [:rest]
1252
1266
 
1267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1253
1268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1254
1269
 
1255
1270
  options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
@@ -1336,12 +1351,13 @@ module Google
1336
1351
  # Customize the options with defaults
1337
1352
  call_metadata = @config.rpcs.remove_association.metadata.to_h
1338
1353
 
1339
- # Set x-goog-api-client and x-goog-user-project headers
1354
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1340
1355
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1341
1356
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1342
1357
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1343
1358
  transports_version_send: [:rest]
1344
1359
 
1360
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1345
1361
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1346
1362
 
1347
1363
  options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
@@ -1428,12 +1444,13 @@ module Google
1428
1444
  # Customize the options with defaults
1429
1445
  call_metadata = @config.rpcs.remove_rule.metadata.to_h
1430
1446
 
1431
- # Set x-goog-api-client and x-goog-user-project headers
1447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1432
1448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1433
1449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1434
1450
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1435
1451
  transports_version_send: [:rest]
1436
1452
 
1453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1437
1454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1438
1455
 
1439
1456
  options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
@@ -1518,12 +1535,13 @@ module Google
1518
1535
  # Customize the options with defaults
1519
1536
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1520
1537
 
1521
- # Set x-goog-api-client and x-goog-user-project headers
1538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1522
1539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1523
1540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1524
1541
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1525
1542
  transports_version_send: [:rest]
1526
1543
 
1544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1527
1545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1528
1546
 
1529
1547
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1600,12 +1618,13 @@ module Google
1600
1618
  # Customize the options with defaults
1601
1619
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1602
1620
 
1603
- # Set x-goog-api-client and x-goog-user-project headers
1621
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1604
1622
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1605
1623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1606
1624
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1607
1625
  transports_version_send: [:rest]
1608
1626
 
1627
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1609
1628
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1610
1629
 
1611
1630
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Networks 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
 
@@ -260,12 +263,13 @@ module Google
260
263
  # Customize the options with defaults
261
264
  call_metadata = @config.rpcs.add_peering.metadata.to_h
262
265
 
263
- # Set x-goog-api-client and x-goog-user-project headers
266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
267
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
269
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
267
270
  transports_version_send: [:rest]
268
271
 
272
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
269
273
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
274
 
271
275
  options.apply_defaults timeout: @config.rpcs.add_peering.timeout,
@@ -350,12 +354,13 @@ module Google
350
354
  # Customize the options with defaults
351
355
  call_metadata = @config.rpcs.delete.metadata.to_h
352
356
 
353
- # Set x-goog-api-client and x-goog-user-project headers
357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
358
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
360
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
357
361
  transports_version_send: [:rest]
358
362
 
363
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
364
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
365
 
361
366
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -438,12 +443,13 @@ module Google
438
443
  # Customize the options with defaults
439
444
  call_metadata = @config.rpcs.get.metadata.to_h
440
445
 
441
- # Set x-goog-api-client and x-goog-user-project headers
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
447
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
449
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
445
450
  transports_version_send: [:rest]
446
451
 
452
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
453
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
454
 
449
455
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.get_effective_firewalls.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.get_effective_firewalls.timeout,
@@ -600,12 +607,13 @@ module Google
600
607
  # Customize the options with defaults
601
608
  call_metadata = @config.rpcs.insert.metadata.to_h
602
609
 
603
- # Set x-goog-api-client and x-goog-user-project headers
610
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
604
611
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
605
612
  lib_name: @config.lib_name, lib_version: @config.lib_version,
606
613
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
607
614
  transports_version_send: [:rest]
608
615
 
616
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
609
617
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
610
618
 
611
619
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -696,12 +704,13 @@ module Google
696
704
  # Customize the options with defaults
697
705
  call_metadata = @config.rpcs.list.metadata.to_h
698
706
 
699
- # Set x-goog-api-client and x-goog-user-project headers
707
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
700
708
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
701
709
  lib_name: @config.lib_name, lib_version: @config.lib_version,
702
710
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
703
711
  transports_version_send: [:rest]
704
712
 
713
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
705
714
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
706
715
 
707
716
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -794,12 +803,13 @@ module Google
794
803
  # Customize the options with defaults
795
804
  call_metadata = @config.rpcs.list_peering_routes.metadata.to_h
796
805
 
797
- # Set x-goog-api-client and x-goog-user-project headers
806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
807
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
800
809
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
801
810
  transports_version_send: [:rest]
802
811
 
812
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
803
813
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
814
 
805
815
  options.apply_defaults timeout: @config.rpcs.list_peering_routes.timeout,
@@ -879,12 +889,13 @@ module Google
879
889
  # Customize the options with defaults
880
890
  call_metadata = @config.rpcs.patch.metadata.to_h
881
891
 
882
- # Set x-goog-api-client and x-goog-user-project headers
892
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
883
893
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
884
894
  lib_name: @config.lib_name, lib_version: @config.lib_version,
885
895
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
886
896
  transports_version_send: [:rest]
887
897
 
898
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
888
899
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
889
900
 
890
901
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -971,12 +982,13 @@ module Google
971
982
  # Customize the options with defaults
972
983
  call_metadata = @config.rpcs.remove_peering.metadata.to_h
973
984
 
974
- # Set x-goog-api-client and x-goog-user-project headers
985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
975
986
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
976
987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
977
988
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
978
989
  transports_version_send: [:rest]
979
990
 
991
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
980
992
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
981
993
 
982
994
  options.apply_defaults timeout: @config.rpcs.remove_peering.timeout,
@@ -1061,12 +1073,13 @@ module Google
1061
1073
  # Customize the options with defaults
1062
1074
  call_metadata = @config.rpcs.switch_to_custom_mode.metadata.to_h
1063
1075
 
1064
- # Set x-goog-api-client and x-goog-user-project headers
1076
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1065
1077
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1066
1078
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1067
1079
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1068
1080
  transports_version_send: [:rest]
1069
1081
 
1082
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1070
1083
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1071
1084
 
1072
1085
  options.apply_defaults timeout: @config.rpcs.switch_to_custom_mode.timeout,
@@ -1153,12 +1166,13 @@ module Google
1153
1166
  # Customize the options with defaults
1154
1167
  call_metadata = @config.rpcs.update_peering.metadata.to_h
1155
1168
 
1156
- # Set x-goog-api-client and x-goog-user-project headers
1169
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1157
1170
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1158
1171
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1159
1172
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1160
1173
  transports_version_send: [:rest]
1161
1174
 
1175
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1162
1176
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1163
1177
 
1164
1178
  options.apply_defaults timeout: @config.rpcs.update_peering.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The NodeGroups 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
 
@@ -270,12 +273,13 @@ module Google
270
273
  # Customize the options with defaults
271
274
  call_metadata = @config.rpcs.add_nodes.metadata.to_h
272
275
 
273
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
279
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
277
280
  transports_version_send: [:rest]
278
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
279
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
284
 
281
285
  options.apply_defaults timeout: @config.rpcs.add_nodes.timeout,
@@ -371,12 +375,13 @@ module Google
371
375
  # Customize the options with defaults
372
376
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
373
377
 
374
- # Set x-goog-api-client and x-goog-user-project headers
378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
375
379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
376
380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
377
381
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
378
382
  transports_version_send: [:rest]
379
383
 
384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
380
385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
381
386
 
382
387
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -456,12 +461,13 @@ module Google
456
461
  # Customize the options with defaults
457
462
  call_metadata = @config.rpcs.delete.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.delete.timeout,
@@ -551,12 +557,13 @@ module Google
551
557
  # Customize the options with defaults
552
558
  call_metadata = @config.rpcs.delete_nodes.metadata.to_h
553
559
 
554
- # 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
555
561
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
556
562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
557
563
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
558
564
  transports_version_send: [:rest]
559
565
 
566
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
560
567
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
568
 
562
569
  options.apply_defaults timeout: @config.rpcs.delete_nodes.timeout,
@@ -642,12 +649,13 @@ module Google
642
649
  # Customize the options with defaults
643
650
  call_metadata = @config.rpcs.get.metadata.to_h
644
651
 
645
- # Set x-goog-api-client and x-goog-user-project headers
652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
646
653
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
647
654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
648
655
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
649
656
  transports_version_send: [:rest]
650
657
 
658
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
651
659
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
652
660
 
653
661
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -726,12 +734,13 @@ module Google
726
734
  # Customize the options with defaults
727
735
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
728
736
 
729
- # Set x-goog-api-client and x-goog-user-project headers
737
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
730
738
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
731
739
  lib_name: @config.lib_name, lib_version: @config.lib_version,
732
740
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
733
741
  transports_version_send: [:rest]
734
742
 
743
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
735
744
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
736
745
 
737
746
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -812,12 +821,13 @@ module Google
812
821
  # Customize the options with defaults
813
822
  call_metadata = @config.rpcs.insert.metadata.to_h
814
823
 
815
- # Set x-goog-api-client and x-goog-user-project headers
824
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
816
825
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
817
826
  lib_name: @config.lib_name, lib_version: @config.lib_version,
818
827
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
819
828
  transports_version_send: [:rest]
820
829
 
830
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
821
831
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
832
 
823
833
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -911,12 +921,13 @@ module Google
911
921
  # Customize the options with defaults
912
922
  call_metadata = @config.rpcs.list.metadata.to_h
913
923
 
914
- # Set x-goog-api-client and x-goog-user-project headers
924
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
915
925
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
916
926
  lib_name: @config.lib_name, lib_version: @config.lib_version,
917
927
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
918
928
  transports_version_send: [:rest]
919
929
 
930
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
920
931
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
921
932
 
922
933
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1004,12 +1015,13 @@ module Google
1004
1015
  # Customize the options with defaults
1005
1016
  call_metadata = @config.rpcs.list_nodes.metadata.to_h
1006
1017
 
1007
- # Set x-goog-api-client and x-goog-user-project headers
1018
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1008
1019
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1009
1020
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1010
1021
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1011
1022
  transports_version_send: [:rest]
1012
1023
 
1024
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1013
1025
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1014
1026
 
1015
1027
  options.apply_defaults timeout: @config.rpcs.list_nodes.timeout,
@@ -1091,12 +1103,13 @@ module Google
1091
1103
  # Customize the options with defaults
1092
1104
  call_metadata = @config.rpcs.patch.metadata.to_h
1093
1105
 
1094
- # Set x-goog-api-client and x-goog-user-project headers
1106
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1095
1107
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1096
1108
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1097
1109
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1098
1110
  transports_version_send: [:rest]
1099
1111
 
1112
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1100
1113
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1101
1114
 
1102
1115
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1186,12 +1199,13 @@ module Google
1186
1199
  # Customize the options with defaults
1187
1200
  call_metadata = @config.rpcs.perform_maintenance.metadata.to_h
1188
1201
 
1189
- # Set x-goog-api-client and x-goog-user-project headers
1202
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1190
1203
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1191
1204
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1192
1205
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1193
1206
  transports_version_send: [:rest]
1194
1207
 
1208
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1195
1209
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
1210
 
1197
1211
  options.apply_defaults timeout: @config.rpcs.perform_maintenance.timeout,
@@ -1279,12 +1293,13 @@ module Google
1279
1293
  # Customize the options with defaults
1280
1294
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1281
1295
 
1282
- # 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
1283
1297
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1284
1298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1285
1299
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1286
1300
  transports_version_send: [:rest]
1287
1301
 
1302
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1288
1303
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1289
1304
 
1290
1305
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1365,12 +1380,13 @@ module Google
1365
1380
  # Customize the options with defaults
1366
1381
  call_metadata = @config.rpcs.set_node_template.metadata.to_h
1367
1382
 
1368
- # Set x-goog-api-client and x-goog-user-project headers
1383
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1369
1384
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1370
1385
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1371
1386
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1372
1387
  transports_version_send: [:rest]
1373
1388
 
1389
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1374
1390
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1375
1391
 
1376
1392
  options.apply_defaults timeout: @config.rpcs.set_node_template.timeout,
@@ -1460,12 +1476,13 @@ module Google
1460
1476
  # Customize the options with defaults
1461
1477
  call_metadata = @config.rpcs.simulate_maintenance_event.metadata.to_h
1462
1478
 
1463
- # Set x-goog-api-client and x-goog-user-project headers
1479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1464
1480
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1465
1481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1466
1482
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1467
1483
  transports_version_send: [:rest]
1468
1484
 
1485
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1469
1486
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1470
1487
 
1471
1488
  options.apply_defaults timeout: @config.rpcs.simulate_maintenance_event.timeout,
@@ -1553,12 +1570,13 @@ module Google
1553
1570
  # Customize the options with defaults
1554
1571
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1555
1572
 
1556
- # Set x-goog-api-client and x-goog-user-project headers
1573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1557
1574
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1558
1575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1559
1576
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1560
1577
  transports_version_send: [:rest]
1561
1578
 
1579
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1562
1580
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1563
1581
 
1564
1582
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,