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 NodeTemplates 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
 
@@ -262,12 +265,13 @@ module Google
262
265
  # Customize the options with defaults
263
266
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
264
267
 
265
- # Set x-goog-api-client and x-goog-user-project headers
268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
266
269
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
267
270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
268
271
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
269
272
  transports_version_send: [:rest]
270
273
 
274
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
271
275
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
276
 
273
277
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -347,12 +351,13 @@ module Google
347
351
  # Customize the options with defaults
348
352
  call_metadata = @config.rpcs.delete.metadata.to_h
349
353
 
350
- # Set x-goog-api-client and x-goog-user-project headers
354
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
351
355
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
352
356
  lib_name: @config.lib_name, lib_version: @config.lib_version,
353
357
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
354
358
  transports_version_send: [:rest]
355
359
 
360
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
356
361
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
357
362
 
358
363
  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,
@@ -522,12 +528,13 @@ module Google
522
528
  # Customize the options with defaults
523
529
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
524
530
 
525
- # Set x-goog-api-client and x-goog-user-project headers
531
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
526
532
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
527
533
  lib_name: @config.lib_name, lib_version: @config.lib_version,
528
534
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
529
535
  transports_version_send: [:rest]
530
536
 
537
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
531
538
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
532
539
 
533
540
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -606,12 +613,13 @@ module Google
606
613
  # Customize the options with defaults
607
614
  call_metadata = @config.rpcs.insert.metadata.to_h
608
615
 
609
- # Set x-goog-api-client and x-goog-user-project headers
616
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
610
617
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
611
618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
612
619
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
613
620
  transports_version_send: [:rest]
614
621
 
622
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
615
623
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
616
624
 
617
625
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -705,12 +713,13 @@ module Google
705
713
  # Customize the options with defaults
706
714
  call_metadata = @config.rpcs.list.metadata.to_h
707
715
 
708
- # Set x-goog-api-client and x-goog-user-project headers
716
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
709
717
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
710
718
  lib_name: @config.lib_name, lib_version: @config.lib_version,
711
719
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
712
720
  transports_version_send: [:rest]
713
721
 
722
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
714
723
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
715
724
 
716
725
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -790,12 +799,13 @@ module Google
790
799
  # Customize the options with defaults
791
800
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
792
801
 
793
- # Set x-goog-api-client and x-goog-user-project headers
802
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
794
803
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
795
804
  lib_name: @config.lib_name, lib_version: @config.lib_version,
796
805
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
797
806
  transports_version_send: [:rest]
798
807
 
808
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
799
809
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
800
810
 
801
811
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -874,12 +884,13 @@ module Google
874
884
  # Customize the options with defaults
875
885
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
876
886
 
877
- # Set x-goog-api-client and x-goog-user-project headers
887
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
878
888
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
879
889
  lib_name: @config.lib_name, lib_version: @config.lib_version,
880
890
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
881
891
  transports_version_send: [:rest]
882
892
 
893
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
883
894
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
884
895
 
885
896
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The NodeTypes API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
37
40
 
@@ -234,12 +237,13 @@ module Google
234
237
  # Customize the options with defaults
235
238
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
236
239
 
237
- # Set x-goog-api-client and x-goog-user-project headers
240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
238
241
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
239
242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
240
243
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
241
244
  transports_version_send: [:rest]
242
245
 
246
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
243
247
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
244
248
 
245
249
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -317,12 +321,13 @@ module Google
317
321
  # Customize the options with defaults
318
322
  call_metadata = @config.rpcs.get.metadata.to_h
319
323
 
320
- # Set x-goog-api-client and x-goog-user-project headers
324
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
321
325
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
322
326
  lib_name: @config.lib_name, lib_version: @config.lib_version,
323
327
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
324
328
  transports_version_send: [:rest]
325
329
 
330
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
326
331
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
327
332
 
328
333
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -407,12 +412,13 @@ module Google
407
412
  # Customize the options with defaults
408
413
  call_metadata = @config.rpcs.list.metadata.to_h
409
414
 
410
- # Set x-goog-api-client and x-goog-user-project headers
415
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
411
416
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
412
417
  lib_name: @config.lib_name, lib_version: @config.lib_version,
413
418
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
414
419
  transports_version_send: [:rest]
415
420
 
421
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
416
422
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
423
 
418
424
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The PacketMirrorings 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
 
@@ -257,12 +260,13 @@ module Google
257
260
  # Customize the options with defaults
258
261
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
259
262
 
260
- # Set x-goog-api-client and x-goog-user-project headers
263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
261
264
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
262
265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
263
266
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
264
267
  transports_version_send: [:rest]
265
268
 
269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
266
270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
271
 
268
272
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -342,12 +346,13 @@ module Google
342
346
  # Customize the options with defaults
343
347
  call_metadata = @config.rpcs.delete.metadata.to_h
344
348
 
345
- # Set x-goog-api-client and x-goog-user-project headers
349
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
346
350
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
347
351
  lib_name: @config.lib_name, lib_version: @config.lib_version,
348
352
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
349
353
  transports_version_send: [:rest]
350
354
 
355
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
351
356
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
352
357
 
353
358
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -433,12 +438,13 @@ module Google
433
438
  # Customize the options with defaults
434
439
  call_metadata = @config.rpcs.get.metadata.to_h
435
440
 
436
- # Set x-goog-api-client and x-goog-user-project headers
441
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
437
442
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
438
443
  lib_name: @config.lib_name, lib_version: @config.lib_version,
439
444
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
440
445
  transports_version_send: [:rest]
441
446
 
447
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
442
448
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
449
 
444
450
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -517,12 +523,13 @@ module Google
517
523
  # Customize the options with defaults
518
524
  call_metadata = @config.rpcs.insert.metadata.to_h
519
525
 
520
- # Set x-goog-api-client and x-goog-user-project headers
526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
521
527
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
528
  lib_name: @config.lib_name, lib_version: @config.lib_version,
523
529
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
524
530
  transports_version_send: [:rest]
525
531
 
532
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
526
533
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
534
 
528
535
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -616,12 +623,13 @@ module Google
616
623
  # Customize the options with defaults
617
624
  call_metadata = @config.rpcs.list.metadata.to_h
618
625
 
619
- # Set x-goog-api-client and x-goog-user-project headers
626
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
620
627
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
621
628
  lib_name: @config.lib_name, lib_version: @config.lib_version,
622
629
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
623
630
  transports_version_send: [:rest]
624
631
 
632
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
625
633
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
634
 
627
635
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -703,12 +711,13 @@ module Google
703
711
  # Customize the options with defaults
704
712
  call_metadata = @config.rpcs.patch.metadata.to_h
705
713
 
706
- # Set x-goog-api-client and x-goog-user-project headers
714
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
707
715
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
708
716
  lib_name: @config.lib_name, lib_version: @config.lib_version,
709
717
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
710
718
  transports_version_send: [:rest]
711
719
 
720
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
712
721
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
713
722
 
714
723
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -796,12 +805,13 @@ module Google
796
805
  # Customize the options with defaults
797
806
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
798
807
 
799
- # Set x-goog-api-client and x-goog-user-project headers
808
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
800
809
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
801
810
  lib_name: @config.lib_name, lib_version: @config.lib_version,
802
811
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
803
812
  transports_version_send: [:rest]
804
813
 
814
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
805
815
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
806
816
 
807
817
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Projects 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
 
@@ -259,12 +262,13 @@ module Google
259
262
  # Customize the options with defaults
260
263
  call_metadata = @config.rpcs.disable_xpn_host.metadata.to_h
261
264
 
262
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
263
266
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
264
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
265
268
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
266
269
  transports_version_send: [:rest]
267
270
 
271
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  options.apply_defaults timeout: @config.rpcs.disable_xpn_host.timeout,
@@ -349,12 +353,13 @@ module Google
349
353
  # Customize the options with defaults
350
354
  call_metadata = @config.rpcs.disable_xpn_resource.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.disable_xpn_resource.timeout,
@@ -437,12 +442,13 @@ module Google
437
442
  # Customize the options with defaults
438
443
  call_metadata = @config.rpcs.enable_xpn_host.metadata.to_h
439
444
 
440
- # Set x-goog-api-client and x-goog-user-project headers
445
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
441
446
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
442
447
  lib_name: @config.lib_name, lib_version: @config.lib_version,
443
448
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
444
449
  transports_version_send: [:rest]
445
450
 
451
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
446
452
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
453
 
448
454
  options.apply_defaults timeout: @config.rpcs.enable_xpn_host.timeout,
@@ -527,12 +533,13 @@ module Google
527
533
  # Customize the options with defaults
528
534
  call_metadata = @config.rpcs.enable_xpn_resource.metadata.to_h
529
535
 
530
- # Set x-goog-api-client and x-goog-user-project headers
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
531
537
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
532
538
  lib_name: @config.lib_name, lib_version: @config.lib_version,
533
539
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
534
540
  transports_version_send: [:rest]
535
541
 
542
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
536
543
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
537
544
 
538
545
  options.apply_defaults timeout: @config.rpcs.enable_xpn_resource.timeout,
@@ -613,12 +620,13 @@ module Google
613
620
  # Customize the options with defaults
614
621
  call_metadata = @config.rpcs.get.metadata.to_h
615
622
 
616
- # Set x-goog-api-client and x-goog-user-project headers
623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
617
624
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
618
625
  lib_name: @config.lib_name, lib_version: @config.lib_version,
619
626
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
620
627
  transports_version_send: [:rest]
621
628
 
629
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
622
630
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
623
631
 
624
632
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.get_xpn_host.metadata.to_h
693
701
 
694
- # Set x-goog-api-client and x-goog-user-project headers
702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
695
703
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
705
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
698
706
  transports_version_send: [:rest]
699
707
 
708
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
700
709
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
701
710
 
702
711
  options.apply_defaults timeout: @config.rpcs.get_xpn_host.timeout,
@@ -779,12 +788,13 @@ module Google
779
788
  # Customize the options with defaults
780
789
  call_metadata = @config.rpcs.get_xpn_resources.metadata.to_h
781
790
 
782
- # Set x-goog-api-client and x-goog-user-project headers
791
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
783
792
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
784
793
  lib_name: @config.lib_name, lib_version: @config.lib_version,
785
794
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
786
795
  transports_version_send: [:rest]
787
796
 
797
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
788
798
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
789
799
 
790
800
  options.apply_defaults timeout: @config.rpcs.get_xpn_resources.timeout,
@@ -870,12 +880,13 @@ module Google
870
880
  # Customize the options with defaults
871
881
  call_metadata = @config.rpcs.list_xpn_hosts.metadata.to_h
872
882
 
873
- # Set x-goog-api-client and x-goog-user-project headers
883
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
874
884
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
875
885
  lib_name: @config.lib_name, lib_version: @config.lib_version,
876
886
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
877
887
  transports_version_send: [:rest]
878
888
 
889
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
879
890
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
880
891
 
881
892
  options.apply_defaults timeout: @config.rpcs.list_xpn_hosts.timeout,
@@ -953,12 +964,13 @@ module Google
953
964
  # Customize the options with defaults
954
965
  call_metadata = @config.rpcs.move_disk.metadata.to_h
955
966
 
956
- # Set x-goog-api-client and x-goog-user-project headers
967
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
957
968
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
969
  lib_name: @config.lib_name, lib_version: @config.lib_version,
959
970
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
960
971
  transports_version_send: [:rest]
961
972
 
973
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
962
974
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
963
975
 
964
976
  options.apply_defaults timeout: @config.rpcs.move_disk.timeout,
@@ -1043,12 +1055,13 @@ module Google
1043
1055
  # Customize the options with defaults
1044
1056
  call_metadata = @config.rpcs.move_instance.metadata.to_h
1045
1057
 
1046
- # Set x-goog-api-client and x-goog-user-project headers
1058
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1047
1059
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1048
1060
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1049
1061
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1050
1062
  transports_version_send: [:rest]
1051
1063
 
1064
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1052
1065
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1053
1066
 
1054
1067
  options.apply_defaults timeout: @config.rpcs.move_instance.timeout,
@@ -1133,12 +1146,13 @@ module Google
1133
1146
  # Customize the options with defaults
1134
1147
  call_metadata = @config.rpcs.set_cloud_armor_tier.metadata.to_h
1135
1148
 
1136
- # Set x-goog-api-client and x-goog-user-project headers
1149
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1137
1150
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1138
1151
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1139
1152
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1140
1153
  transports_version_send: [:rest]
1141
1154
 
1155
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1142
1156
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
1157
 
1144
1158
  options.apply_defaults timeout: @config.rpcs.set_cloud_armor_tier.timeout,
@@ -1223,12 +1237,13 @@ module Google
1223
1237
  # Customize the options with defaults
1224
1238
  call_metadata = @config.rpcs.set_common_instance_metadata.metadata.to_h
1225
1239
 
1226
- # Set x-goog-api-client and x-goog-user-project headers
1240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1227
1241
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1228
1242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1229
1243
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1230
1244
  transports_version_send: [:rest]
1231
1245
 
1246
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1232
1247
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1233
1248
 
1234
1249
  options.apply_defaults timeout: @config.rpcs.set_common_instance_metadata.timeout,
@@ -1313,12 +1328,13 @@ module Google
1313
1328
  # Customize the options with defaults
1314
1329
  call_metadata = @config.rpcs.set_default_network_tier.metadata.to_h
1315
1330
 
1316
- # Set x-goog-api-client and x-goog-user-project headers
1331
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1317
1332
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1318
1333
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1319
1334
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1320
1335
  transports_version_send: [:rest]
1321
1336
 
1337
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1322
1338
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1323
1339
 
1324
1340
  options.apply_defaults timeout: @config.rpcs.set_default_network_tier.timeout,
@@ -1403,12 +1419,13 @@ module Google
1403
1419
  # Customize the options with defaults
1404
1420
  call_metadata = @config.rpcs.set_usage_export_bucket.metadata.to_h
1405
1421
 
1406
- # Set x-goog-api-client and x-goog-user-project headers
1422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1407
1423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1408
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1409
1425
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1410
1426
  transports_version_send: [:rest]
1411
1427
 
1428
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1412
1429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1430
 
1414
1431
  options.apply_defaults timeout: @config.rpcs.set_usage_export_bucket.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The PublicAdvertisedPrefixes API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -244,12 +247,13 @@ module Google
244
247
  # Customize the options with defaults
245
248
  call_metadata = @config.rpcs.announce.metadata.to_h
246
249
 
247
- # Set x-goog-api-client and x-goog-user-project headers
250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
248
251
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
249
252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
250
253
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
251
254
  transports_version_send: [:rest]
252
255
 
256
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
253
257
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
254
258
 
255
259
  options.apply_defaults timeout: @config.rpcs.announce.timeout,
@@ -334,12 +338,13 @@ module Google
334
338
  # Customize the options with defaults
335
339
  call_metadata = @config.rpcs.delete.metadata.to_h
336
340
 
337
- # Set x-goog-api-client and x-goog-user-project headers
341
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
338
342
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
339
343
  lib_name: @config.lib_name, lib_version: @config.lib_version,
340
344
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
341
345
  transports_version_send: [:rest]
342
346
 
347
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
343
348
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
344
349
 
345
350
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -422,12 +427,13 @@ module Google
422
427
  # Customize the options with defaults
423
428
  call_metadata = @config.rpcs.get.metadata.to_h
424
429
 
425
- # Set x-goog-api-client and x-goog-user-project headers
430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
431
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
433
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
429
434
  transports_version_send: [:rest]
430
435
 
436
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
431
437
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
438
 
433
439
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -504,12 +510,13 @@ module Google
504
510
  # Customize the options with defaults
505
511
  call_metadata = @config.rpcs.insert.metadata.to_h
506
512
 
507
- # Set x-goog-api-client and x-goog-user-project headers
513
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
508
514
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
509
515
  lib_name: @config.lib_name, lib_version: @config.lib_version,
510
516
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
511
517
  transports_version_send: [:rest]
512
518
 
519
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
513
520
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
521
 
515
522
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -600,12 +607,13 @@ module Google
600
607
  # Customize the options with defaults
601
608
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -685,12 +693,13 @@ module Google
685
693
  # Customize the options with defaults
686
694
  call_metadata = @config.rpcs.patch.metadata.to_h
687
695
 
688
- # Set x-goog-api-client and x-goog-user-project headers
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
690
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
691
699
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
692
700
  transports_version_send: [:rest]
693
701
 
702
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
694
703
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
695
704
 
696
705
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -775,12 +784,13 @@ module Google
775
784
  # Customize the options with defaults
776
785
  call_metadata = @config.rpcs.withdraw.metadata.to_h
777
786
 
778
- # Set x-goog-api-client and x-goog-user-project headers
787
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
779
788
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
780
789
  lib_name: @config.lib_name, lib_version: @config.lib_version,
781
790
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
782
791
  transports_version_send: [:rest]
783
792
 
793
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
784
794
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
785
795
 
786
796
  options.apply_defaults timeout: @config.rpcs.withdraw.timeout,