google-cloud-compute-v1 2.10.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +9 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +17 -7
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +17 -7
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +27 -12
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +35 -16
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +51 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +9 -3
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +39 -18
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +15 -6
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +39 -18
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +15 -6
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +19 -8
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +15 -6
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +17 -7
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +17 -7
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +13 -5
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +9 -3
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +13 -5
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +17 -7
  21. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -1
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +25 -11
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
  24. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +837 -0
  25. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  26. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  27. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  31. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +517 -0
  32. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  33. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  34. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  35. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  36. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  37. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  38. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  39. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  40. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  41. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  42. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  43. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  44. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  45. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  47. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  48. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  49. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  50. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  51. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +136 -14
  52. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  53. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  54. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  55. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  56. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  57. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  58. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  59. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  60. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  61. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  62. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  63. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  65. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  66. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  67. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  69. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  70. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  71. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  72. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  73. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  74. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  75. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  76. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  77. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  78. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  79. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  80. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  81. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  82. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  83. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  84. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  85. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  86. data/lib/google/cloud/compute/v1/rest.rb +4 -0
  87. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  88. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  89. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  90. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  91. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  92. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  93. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  94. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  96. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +609 -0
  97. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  98. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  99. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  100. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  101. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1326 -0
  102. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  103. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  104. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  105. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  106. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  107. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  108. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  109. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  110. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  111. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  112. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  113. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  114. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  115. data/lib/google/cloud/compute/v1/version.rb +1 -1
  116. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  117. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  118. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  119. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  120. data/lib/google/cloud/compute/v1.rb +4 -0
  121. data/proto_docs/google/api/client.rb +4 -0
  122. data/proto_docs/google/cloud/compute/v1/compute.rb +1333 -37
  123. metadata +22 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The BackendServices API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -273,12 +276,13 @@ module Google
273
276
  # Customize the options with defaults
274
277
  call_metadata = @config.rpcs.add_signed_url_key.metadata.to_h
275
278
 
276
- # Set x-goog-api-client and x-goog-user-project headers
279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
277
280
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
278
281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
279
282
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
280
283
  transports_version_send: [:rest]
281
284
 
285
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
282
286
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
287
 
284
288
  options.apply_defaults timeout: @config.rpcs.add_signed_url_key.timeout,
@@ -373,12 +377,13 @@ module Google
373
377
  # Customize the options with defaults
374
378
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
375
379
 
376
- # Set x-goog-api-client and x-goog-user-project headers
380
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
377
381
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
378
382
  lib_name: @config.lib_name, lib_version: @config.lib_version,
379
383
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
380
384
  transports_version_send: [:rest]
381
385
 
386
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
387
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
388
 
384
389
  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,
@@ -548,12 +554,13 @@ module Google
548
554
  # Customize the options with defaults
549
555
  call_metadata = @config.rpcs.delete_signed_url_key.metadata.to_h
550
556
 
551
- # Set x-goog-api-client and x-goog-user-project headers
557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
552
558
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
553
559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
554
560
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
555
561
  transports_version_send: [:rest]
556
562
 
563
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
557
564
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
558
565
 
559
566
  options.apply_defaults timeout: @config.rpcs.delete_signed_url_key.timeout,
@@ -636,12 +643,13 @@ module Google
636
643
  # Customize the options with defaults
637
644
  call_metadata = @config.rpcs.get.metadata.to_h
638
645
 
639
- # Set x-goog-api-client and x-goog-user-project headers
646
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
640
647
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
648
  lib_name: @config.lib_name, lib_version: @config.lib_version,
642
649
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
643
650
  transports_version_send: [:rest]
644
651
 
652
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
645
653
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
654
 
647
655
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -717,12 +725,13 @@ module Google
717
725
  # Customize the options with defaults
718
726
  call_metadata = @config.rpcs.get_health.metadata.to_h
719
727
 
720
- # Set x-goog-api-client and x-goog-user-project headers
728
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
721
729
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
722
730
  lib_name: @config.lib_name, lib_version: @config.lib_version,
723
731
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
724
732
  transports_version_send: [:rest]
725
733
 
734
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
726
735
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
737
  options.apply_defaults timeout: @config.rpcs.get_health.timeout,
@@ -799,12 +808,13 @@ module Google
799
808
  # Customize the options with defaults
800
809
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
801
810
 
802
- # Set x-goog-api-client and x-goog-user-project headers
811
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
803
812
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
804
813
  lib_name: @config.lib_name, lib_version: @config.lib_version,
805
814
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
806
815
  transports_version_send: [:rest]
807
816
 
817
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
808
818
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
809
819
 
810
820
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -881,12 +891,13 @@ module Google
881
891
  # Customize the options with defaults
882
892
  call_metadata = @config.rpcs.insert.metadata.to_h
883
893
 
884
- # Set x-goog-api-client and x-goog-user-project headers
894
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
885
895
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
886
896
  lib_name: @config.lib_name, lib_version: @config.lib_version,
887
897
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
888
898
  transports_version_send: [:rest]
889
899
 
900
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
890
901
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
891
902
 
892
903
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -977,12 +988,13 @@ module Google
977
988
  # Customize the options with defaults
978
989
  call_metadata = @config.rpcs.list.metadata.to_h
979
990
 
980
- # Set x-goog-api-client and x-goog-user-project headers
991
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
981
992
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
982
993
  lib_name: @config.lib_name, lib_version: @config.lib_version,
983
994
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
984
995
  transports_version_send: [:rest]
985
996
 
997
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
986
998
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
987
999
 
988
1000
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1066,12 +1078,13 @@ module Google
1066
1078
  # Customize the options with defaults
1067
1079
  call_metadata = @config.rpcs.list_usable.metadata.to_h
1068
1080
 
1069
- # Set x-goog-api-client and x-goog-user-project headers
1081
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1070
1082
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1071
1083
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1072
1084
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1073
1085
  transports_version_send: [:rest]
1074
1086
 
1087
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1075
1088
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
1089
 
1077
1090
  options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
@@ -1151,12 +1164,13 @@ module Google
1151
1164
  # Customize the options with defaults
1152
1165
  call_metadata = @config.rpcs.patch.metadata.to_h
1153
1166
 
1154
- # Set x-goog-api-client and x-goog-user-project headers
1167
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1155
1168
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1156
1169
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1157
1170
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1158
1171
  transports_version_send: [:rest]
1159
1172
 
1173
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1160
1174
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1161
1175
 
1162
1176
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1243,12 +1257,13 @@ module Google
1243
1257
  # Customize the options with defaults
1244
1258
  call_metadata = @config.rpcs.set_edge_security_policy.metadata.to_h
1245
1259
 
1246
- # Set x-goog-api-client and x-goog-user-project headers
1260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1247
1261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1248
1262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1249
1263
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1250
1264
  transports_version_send: [:rest]
1251
1265
 
1266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1252
1267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1253
1268
 
1254
1269
  options.apply_defaults timeout: @config.rpcs.set_edge_security_policy.timeout,
@@ -1333,12 +1348,13 @@ module Google
1333
1348
  # Customize the options with defaults
1334
1349
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1335
1350
 
1336
- # Set x-goog-api-client and x-goog-user-project headers
1351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1337
1352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1338
1353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1339
1354
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1340
1355
  transports_version_send: [:rest]
1341
1356
 
1357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1342
1358
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1343
1359
 
1344
1360
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1417,12 +1433,13 @@ module Google
1417
1433
  # Customize the options with defaults
1418
1434
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
1419
1435
 
1420
- # Set x-goog-api-client and x-goog-user-project headers
1436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1421
1437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1422
1438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1423
1439
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1424
1440
  transports_version_send: [:rest]
1425
1441
 
1442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1426
1443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1427
1444
 
1428
1445
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,
@@ -1507,12 +1524,13 @@ module Google
1507
1524
  # Customize the options with defaults
1508
1525
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1509
1526
 
1510
- # Set x-goog-api-client and x-goog-user-project headers
1527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1511
1528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1512
1529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1513
1530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1514
1531
  transports_version_send: [:rest]
1515
1532
 
1533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1516
1534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1517
1535
 
1518
1536
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1591,12 +1609,13 @@ module Google
1591
1609
  # Customize the options with defaults
1592
1610
  call_metadata = @config.rpcs.update.metadata.to_h
1593
1611
 
1594
- # Set x-goog-api-client and x-goog-user-project headers
1612
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1595
1613
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1596
1614
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1597
1615
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1598
1616
  transports_version_send: [:rest]
1599
1617
 
1618
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1600
1619
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1601
1620
 
1602
1621
  options.apply_defaults timeout: @config.rpcs.update.timeout,