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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e756d5c80c519c24abdf64c0d56a0e5cc2c627b5e391d0581877e872f96c63b
4
- data.tar.gz: 60b0adf133f0f56f5178a7c58ab350d60bdffcff81fe6b94a3ba4e111c53c907
3
+ metadata.gz: 21bb91edc734ecd023b690b420f213412cad190c38291779720ebdbb482f6ae2
4
+ data.tar.gz: 1db99245553e88cb7e92d52d3cf8f735355c8aefc8989dae18993335685e537a
5
5
  SHA512:
6
- metadata.gz: 3fd99d8ee551404a04f0d51283a29be236d3354ceaa13164edbc668a3cecdcfb04a50b3b34981781f82ecfb3aa467760c736b5070988bf7b191dad153c6541bc
7
- data.tar.gz: d2c8c0c3720aadb4f170f5b2ebcf6f2f99fc14c00194393055d04963bbdd08c336e873b964fb2ec29614bca17502f27d1fad0d9e34de7229cff05c2dfec17510
6
+ metadata.gz: 272772e88d2c03147bd389cc23d336f44f2e93f60eab0fcdce1ba0be17532d2df564b90f28c423ae1c4cbed8681cca02e0515d0c4a655607e6b4279c739bedd2
7
+ data.tar.gz: f48d7afef73ca7e2bff3c9fd95b683c741bdc42ed78d0e3a0ff2fab3318ba8aaf7ddde49fc8a13a354ce62c6b875066910bea208e4acf9da2266ac07a0bb3ad9
@@ -34,6 +34,9 @@ module Google
34
34
  # The AcceleratorTypes API.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
39
42
 
@@ -236,12 +239,13 @@ module Google
236
239
  # Customize the options with defaults
237
240
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
238
241
 
239
- # Set x-goog-api-client and x-goog-user-project headers
242
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
240
243
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
241
244
  lib_name: @config.lib_name, lib_version: @config.lib_version,
242
245
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
243
246
  transports_version_send: [:rest]
244
247
 
248
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
245
249
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
246
250
 
247
251
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -319,12 +323,13 @@ module Google
319
323
  # Customize the options with defaults
320
324
  call_metadata = @config.rpcs.get.metadata.to_h
321
325
 
322
- # Set x-goog-api-client and x-goog-user-project headers
326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
323
327
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
324
328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
325
329
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
326
330
  transports_version_send: [:rest]
327
331
 
332
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
328
333
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
329
334
 
330
335
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -409,12 +414,13 @@ module Google
409
414
  # Customize the options with defaults
410
415
  call_metadata = @config.rpcs.list.metadata.to_h
411
416
 
412
- # Set x-goog-api-client and x-goog-user-project headers
417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
413
418
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
419
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
420
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
416
421
  transports_version_send: [:rest]
417
422
 
423
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
418
424
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
419
425
 
420
426
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Addresses 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.move.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.move.timeout,
@@ -798,12 +807,13 @@ module Google
798
807
  # Customize the options with defaults
799
808
  call_metadata = @config.rpcs.set_labels.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.set_labels.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Autoscalers 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,
@@ -798,12 +807,13 @@ module Google
798
807
  # Customize the options with defaults
799
808
  call_metadata = @config.rpcs.update.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.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The BackendBuckets 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.add_signed_url_key.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.add_signed_url_key.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,
@@ -441,12 +446,13 @@ module Google
441
446
  # Customize the options with defaults
442
447
  call_metadata = @config.rpcs.delete_signed_url_key.metadata.to_h
443
448
 
444
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
445
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
446
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
447
452
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
448
453
  transports_version_send: [:rest]
449
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  options.apply_defaults timeout: @config.rpcs.delete_signed_url_key.timeout,
@@ -529,12 +535,13 @@ module Google
529
535
  # Customize the options with defaults
530
536
  call_metadata = @config.rpcs.get.metadata.to_h
531
537
 
532
- # Set x-goog-api-client and x-goog-user-project headers
538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
533
539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
541
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
536
542
  transports_version_send: [:rest]
537
543
 
544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -611,12 +618,13 @@ module Google
611
618
  # Customize the options with defaults
612
619
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
613
620
 
614
- # Set x-goog-api-client and x-goog-user-project headers
621
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
615
622
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
616
623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
617
624
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
618
625
  transports_version_send: [:rest]
619
626
 
627
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
620
628
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
621
629
 
622
630
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -693,12 +701,13 @@ module Google
693
701
  # Customize the options with defaults
694
702
  call_metadata = @config.rpcs.insert.metadata.to_h
695
703
 
696
- # Set x-goog-api-client and x-goog-user-project headers
704
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
697
705
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
698
706
  lib_name: @config.lib_name, lib_version: @config.lib_version,
699
707
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
700
708
  transports_version_send: [:rest]
701
709
 
710
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
702
711
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
703
712
 
704
713
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -789,12 +798,13 @@ module Google
789
798
  # Customize the options with defaults
790
799
  call_metadata = @config.rpcs.list.metadata.to_h
791
800
 
792
- # Set x-goog-api-client and x-goog-user-project headers
801
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
793
802
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
794
803
  lib_name: @config.lib_name, lib_version: @config.lib_version,
795
804
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
796
805
  transports_version_send: [:rest]
797
806
 
807
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
798
808
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
799
809
 
800
810
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -874,12 +884,13 @@ module Google
874
884
  # Customize the options with defaults
875
885
  call_metadata = @config.rpcs.patch.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.patch.timeout,
@@ -966,12 +977,13 @@ module Google
966
977
  # Customize the options with defaults
967
978
  call_metadata = @config.rpcs.set_edge_security_policy.metadata.to_h
968
979
 
969
- # Set x-goog-api-client and x-goog-user-project headers
980
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
970
981
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
971
982
  lib_name: @config.lib_name, lib_version: @config.lib_version,
972
983
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
973
984
  transports_version_send: [:rest]
974
985
 
986
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
975
987
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
976
988
 
977
989
  options.apply_defaults timeout: @config.rpcs.set_edge_security_policy.timeout,
@@ -1056,12 +1068,13 @@ module Google
1056
1068
  # Customize the options with defaults
1057
1069
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1058
1070
 
1059
- # Set x-goog-api-client and x-goog-user-project headers
1071
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1060
1072
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1061
1073
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1062
1074
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1063
1075
  transports_version_send: [:rest]
1064
1076
 
1077
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1065
1078
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1066
1079
 
1067
1080
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1138,12 +1151,13 @@ module Google
1138
1151
  # Customize the options with defaults
1139
1152
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1140
1153
 
1141
- # Set x-goog-api-client and x-goog-user-project headers
1154
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1142
1155
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1143
1156
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1144
1157
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1145
1158
  transports_version_send: [:rest]
1146
1159
 
1160
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1147
1161
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1148
1162
 
1149
1163
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1222,12 +1236,13 @@ module Google
1222
1236
  # Customize the options with defaults
1223
1237
  call_metadata = @config.rpcs.update.metadata.to_h
1224
1238
 
1225
- # Set x-goog-api-client and x-goog-user-project headers
1239
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1226
1240
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1227
1241
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1228
1242
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1229
1243
  transports_version_send: [:rest]
1230
1244
 
1245
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1231
1246
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1232
1247
 
1233
1248
  options.apply_defaults timeout: @config.rpcs.update.timeout,