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 SecurityPolicies 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
 
@@ -265,12 +268,13 @@ module Google
265
268
  # Customize the options with defaults
266
269
  call_metadata = @config.rpcs.add_rule.metadata.to_h
267
270
 
268
- # Set x-goog-api-client and x-goog-user-project headers
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
269
272
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
270
273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
271
274
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
272
275
  transports_version_send: [:rest]
273
276
 
277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
274
278
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
279
 
276
280
  options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
@@ -365,12 +369,13 @@ module Google
365
369
  # Customize the options with defaults
366
370
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
367
371
 
368
- # Set x-goog-api-client and x-goog-user-project headers
372
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
369
373
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
370
374
  lib_name: @config.lib_name, lib_version: @config.lib_version,
371
375
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
372
376
  transports_version_send: [:rest]
373
377
 
378
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
374
379
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
380
 
376
381
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -448,12 +453,13 @@ module Google
448
453
  # Customize the options with defaults
449
454
  call_metadata = @config.rpcs.delete.metadata.to_h
450
455
 
451
- # Set x-goog-api-client and x-goog-user-project headers
456
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
452
457
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
453
458
  lib_name: @config.lib_name, lib_version: @config.lib_version,
454
459
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
455
460
  transports_version_send: [:rest]
456
461
 
462
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
457
463
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
458
464
 
459
465
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -536,12 +542,13 @@ module Google
536
542
  # Customize the options with defaults
537
543
  call_metadata = @config.rpcs.get.metadata.to_h
538
544
 
539
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
540
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
541
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
542
548
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
543
549
  transports_version_send: [:rest]
544
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
545
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
546
553
 
547
554
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -618,12 +625,13 @@ module Google
618
625
  # Customize the options with defaults
619
626
  call_metadata = @config.rpcs.get_rule.metadata.to_h
620
627
 
621
- # Set x-goog-api-client and x-goog-user-project headers
628
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
622
629
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
630
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
631
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
625
632
  transports_version_send: [:rest]
626
633
 
634
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
635
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
636
 
629
637
  options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
@@ -702,12 +710,13 @@ module Google
702
710
  # Customize the options with defaults
703
711
  call_metadata = @config.rpcs.insert.metadata.to_h
704
712
 
705
- # Set x-goog-api-client and x-goog-user-project headers
713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
706
714
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
708
716
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
709
717
  transports_version_send: [:rest]
710
718
 
719
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
711
720
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
712
721
 
713
722
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -798,12 +807,13 @@ module Google
798
807
  # Customize the options with defaults
799
808
  call_metadata = @config.rpcs.list.metadata.to_h
800
809
 
801
- # Set x-goog-api-client and x-goog-user-project headers
810
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
802
811
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
803
812
  lib_name: @config.lib_name, lib_version: @config.lib_version,
804
813
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
805
814
  transports_version_send: [:rest]
806
815
 
816
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
807
817
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
808
818
 
809
819
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -887,12 +897,13 @@ module Google
887
897
  # Customize the options with defaults
888
898
  call_metadata = @config.rpcs.list_preconfigured_expression_sets.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.list_preconfigured_expression_sets.timeout,
@@ -973,12 +984,13 @@ module Google
973
984
  # Customize the options with defaults
974
985
  call_metadata = @config.rpcs.patch.metadata.to_h
975
986
 
976
- # Set x-goog-api-client and x-goog-user-project headers
987
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
977
988
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
978
989
  lib_name: @config.lib_name, lib_version: @config.lib_version,
979
990
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
980
991
  transports_version_send: [:rest]
981
992
 
993
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
982
994
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
983
995
 
984
996
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1069,12 +1081,13 @@ module Google
1069
1081
  # Customize the options with defaults
1070
1082
  call_metadata = @config.rpcs.patch_rule.metadata.to_h
1071
1083
 
1072
- # Set x-goog-api-client and x-goog-user-project headers
1084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1073
1085
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1074
1086
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1075
1087
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1076
1088
  transports_version_send: [:rest]
1077
1089
 
1090
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1078
1091
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1079
1092
 
1080
1093
  options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
@@ -1159,12 +1172,13 @@ module Google
1159
1172
  # Customize the options with defaults
1160
1173
  call_metadata = @config.rpcs.remove_rule.metadata.to_h
1161
1174
 
1162
- # Set x-goog-api-client and x-goog-user-project headers
1175
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1163
1176
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1164
1177
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1165
1178
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1166
1179
  transports_version_send: [:rest]
1167
1180
 
1181
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1168
1182
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1169
1183
 
1170
1184
  options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
@@ -1249,12 +1263,13 @@ module Google
1249
1263
  # Customize the options with defaults
1250
1264
  call_metadata = @config.rpcs.set_labels.metadata.to_h
1251
1265
 
1252
- # Set x-goog-api-client and x-goog-user-project headers
1266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1253
1267
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1254
1268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1255
1269
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1256
1270
  transports_version_send: [:rest]
1257
1271
 
1272
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1258
1273
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1259
1274
 
1260
1275
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The ServiceAttachments 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
 
@@ -264,12 +267,13 @@ module Google
264
267
  # Customize the options with defaults
265
268
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
271
274
  transports_version_send: [:rest]
272
275
 
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -349,12 +353,13 @@ module Google
349
353
  # Customize the options with defaults
350
354
  call_metadata = @config.rpcs.delete.metadata.to_h
351
355
 
352
- # Set x-goog-api-client and x-goog-user-project headers
356
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
353
357
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
354
358
  lib_name: @config.lib_name, lib_version: @config.lib_version,
355
359
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
356
360
  transports_version_send: [:rest]
357
361
 
362
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
358
363
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
364
 
360
365
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -440,12 +445,13 @@ module Google
440
445
  # Customize the options with defaults
441
446
  call_metadata = @config.rpcs.get.metadata.to_h
442
447
 
443
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
449
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
451
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
447
452
  transports_version_send: [:rest]
448
453
 
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
455
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
456
 
451
457
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -524,12 +530,13 @@ module Google
524
530
  # Customize the options with defaults
525
531
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
526
532
 
527
- # Set x-goog-api-client and x-goog-user-project headers
533
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
534
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
535
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
536
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
531
537
  transports_version_send: [:rest]
532
538
 
539
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
540
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
541
 
535
542
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -608,12 +615,13 @@ module Google
608
615
  # Customize the options with defaults
609
616
  call_metadata = @config.rpcs.insert.metadata.to_h
610
617
 
611
- # Set x-goog-api-client and x-goog-user-project headers
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
619
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
620
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
621
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
615
622
  transports_version_send: [:rest]
616
623
 
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.list.metadata.to_h
709
717
 
710
- # Set x-goog-api-client and x-goog-user-project headers
718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
721
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
714
722
  transports_version_send: [:rest]
715
723
 
724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  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.patch.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.patch.timeout,
@@ -887,12 +897,13 @@ module Google
887
897
  # Customize the options with defaults
888
898
  call_metadata = @config.rpcs.set_iam_policy.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.set_iam_policy.timeout,
@@ -971,12 +982,13 @@ module Google
971
982
  # Customize the options with defaults
972
983
  call_metadata = @config.rpcs.test_iam_permissions.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.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The SnapshotSettings 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
 
@@ -227,12 +230,13 @@ module Google
227
230
  # Customize the options with defaults
228
231
  call_metadata = @config.rpcs.get.metadata.to_h
229
232
 
230
- # Set x-goog-api-client and x-goog-user-project headers
233
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
231
234
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
232
235
  lib_name: @config.lib_name, lib_version: @config.lib_version,
233
236
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
234
237
  transports_version_send: [:rest]
235
238
 
239
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
236
240
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
237
241
 
238
242
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -311,12 +315,13 @@ module Google
311
315
  # Customize the options with defaults
312
316
  call_metadata = @config.rpcs.patch.metadata.to_h
313
317
 
314
- # Set x-goog-api-client and x-goog-user-project headers
318
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
315
319
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
316
320
  lib_name: @config.lib_name, lib_version: @config.lib_version,
317
321
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
318
322
  transports_version_send: [:rest]
319
323
 
324
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
320
325
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
321
326
 
322
327
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Snapshots 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
 
@@ -249,12 +252,13 @@ module Google
249
252
  # Customize the options with defaults
250
253
  call_metadata = @config.rpcs.delete.metadata.to_h
251
254
 
252
- # Set x-goog-api-client and x-goog-user-project headers
255
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
253
256
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
254
257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
255
258
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
256
259
  transports_version_send: [:rest]
257
260
 
261
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
258
262
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
259
263
 
260
264
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -337,12 +341,13 @@ module Google
337
341
  # Customize the options with defaults
338
342
  call_metadata = @config.rpcs.get.metadata.to_h
339
343
 
340
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
341
345
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
347
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
344
348
  transports_version_send: [:rest]
345
349
 
350
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  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.get_iam_policy.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.get_iam_policy.timeout,
@@ -501,12 +507,13 @@ module Google
501
507
  # Customize the options with defaults
502
508
  call_metadata = @config.rpcs.insert.metadata.to_h
503
509
 
504
- # Set x-goog-api-client and x-goog-user-project headers
510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
505
511
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
506
512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
507
513
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
508
514
  transports_version_send: [:rest]
509
515
 
516
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
510
517
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
511
518
 
512
519
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -597,12 +604,13 @@ module Google
597
604
  # Customize the options with defaults
598
605
  call_metadata = @config.rpcs.list.metadata.to_h
599
606
 
600
- # Set x-goog-api-client and x-goog-user-project headers
607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
601
608
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
602
609
  lib_name: @config.lib_name, lib_version: @config.lib_version,
603
610
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
604
611
  transports_version_send: [:rest]
605
612
 
613
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
614
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
615
 
608
616
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -680,12 +688,13 @@ module Google
680
688
  # Customize the options with defaults
681
689
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
682
690
 
683
- # Set x-goog-api-client and x-goog-user-project headers
691
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
684
692
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
685
693
  lib_name: @config.lib_name, lib_version: @config.lib_version,
686
694
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
687
695
  transports_version_send: [:rest]
688
696
 
697
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
689
698
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
690
699
 
691
700
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -762,12 +771,13 @@ module Google
762
771
  # Customize the options with defaults
763
772
  call_metadata = @config.rpcs.set_labels.metadata.to_h
764
773
 
765
- # Set x-goog-api-client and x-goog-user-project headers
774
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
766
775
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
776
  lib_name: @config.lib_name, lib_version: @config.lib_version,
768
777
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
769
778
  transports_version_send: [:rest]
770
779
 
780
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
771
781
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
772
782
 
773
783
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -852,12 +862,13 @@ module Google
852
862
  # Customize the options with defaults
853
863
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
854
864
 
855
- # Set x-goog-api-client and x-goog-user-project headers
865
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
856
866
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
857
867
  lib_name: @config.lib_name, lib_version: @config.lib_version,
858
868
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
859
869
  transports_version_send: [:rest]
860
870
 
871
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
861
872
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
862
873
 
863
874
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The SslCertificates 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
 
@@ -253,12 +256,13 @@ module Google
253
256
  # Customize the options with defaults
254
257
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
255
258
 
256
- # Set x-goog-api-client and x-goog-user-project headers
259
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
257
260
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
258
261
  lib_name: @config.lib_name, lib_version: @config.lib_version,
259
262
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
260
263
  transports_version_send: [:rest]
261
264
 
265
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
262
266
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
263
267
 
264
268
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -336,12 +340,13 @@ module Google
336
340
  # Customize the options with defaults
337
341
  call_metadata = @config.rpcs.delete.metadata.to_h
338
342
 
339
- # Set x-goog-api-client and x-goog-user-project headers
343
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
340
344
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
341
345
  lib_name: @config.lib_name, lib_version: @config.lib_version,
342
346
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
343
347
  transports_version_send: [:rest]
344
348
 
349
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
350
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
351
 
347
352
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -424,12 +429,13 @@ module Google
424
429
  # Customize the options with defaults
425
430
  call_metadata = @config.rpcs.get.metadata.to_h
426
431
 
427
- # Set x-goog-api-client and x-goog-user-project headers
432
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
428
433
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
429
434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
430
435
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
431
436
  transports_version_send: [:rest]
432
437
 
438
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
433
439
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
440
 
435
441
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -506,12 +512,13 @@ module Google
506
512
  # Customize the options with defaults
507
513
  call_metadata = @config.rpcs.insert.metadata.to_h
508
514
 
509
- # Set x-goog-api-client and x-goog-user-project headers
515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
516
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
518
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
513
519
  transports_version_send: [:rest]
514
520
 
521
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
522
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
523
 
517
524
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -602,12 +609,13 @@ module Google
602
609
  # Customize the options with defaults
603
610
  call_metadata = @config.rpcs.list.metadata.to_h
604
611
 
605
- # Set x-goog-api-client and x-goog-user-project headers
612
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
606
613
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
607
614
  lib_name: @config.lib_name, lib_version: @config.lib_version,
608
615
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
609
616
  transports_version_send: [:rest]
610
617
 
618
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
611
619
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
612
620
 
613
621
  options.apply_defaults timeout: @config.rpcs.list.timeout,