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 TargetHttpProxies 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,
@@ -340,12 +344,13 @@ module Google
340
344
  # Customize the options with defaults
341
345
  call_metadata = @config.rpcs.delete.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
347
351
  transports_version_send: [:rest]
348
352
 
353
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.get.metadata.to_h
430
435
 
431
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
432
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
439
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
435
440
  transports_version_send: [:rest]
436
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -510,12 +516,13 @@ module Google
510
516
  # Customize the options with defaults
511
517
  call_metadata = @config.rpcs.insert.metadata.to_h
512
518
 
513
- # Set x-goog-api-client and x-goog-user-project headers
519
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
514
520
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
515
521
  lib_name: @config.lib_name, lib_version: @config.lib_version,
516
522
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
517
523
  transports_version_send: [:rest]
518
524
 
525
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
519
526
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
527
 
521
528
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -606,12 +613,13 @@ module Google
606
613
  # Customize the options with defaults
607
614
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.patch.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.patch.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.set_url_map.metadata.to_h
785
794
 
786
- # Set x-goog-api-client and x-goog-user-project headers
795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
787
796
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
798
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
790
799
  transports_version_send: [:rest]
791
800
 
801
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
792
802
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
793
803
 
794
804
  options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetHttpsProxies 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.aggregated_list.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.aggregated_list.timeout,
@@ -348,12 +352,13 @@ module Google
348
352
  # Customize the options with defaults
349
353
  call_metadata = @config.rpcs.delete.metadata.to_h
350
354
 
351
- # Set x-goog-api-client and x-goog-user-project headers
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
352
356
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
357
  lib_name: @config.lib_name, lib_version: @config.lib_version,
354
358
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
359
  transports_version_send: [:rest]
356
360
 
361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
357
362
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
363
 
359
364
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -436,12 +441,13 @@ module Google
436
441
  # Customize the options with defaults
437
442
  call_metadata = @config.rpcs.get.metadata.to_h
438
443
 
439
- # Set x-goog-api-client and x-goog-user-project headers
444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
440
445
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
441
446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
442
447
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
443
448
  transports_version_send: [:rest]
444
449
 
450
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
445
451
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
446
452
 
447
453
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.insert.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -614,12 +621,13 @@ module Google
614
621
  # Customize the options with defaults
615
622
  call_metadata = @config.rpcs.list.metadata.to_h
616
623
 
617
- # Set x-goog-api-client and x-goog-user-project headers
624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
625
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
626
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
627
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
621
628
  transports_version_send: [:rest]
622
629
 
630
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
631
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
632
 
625
633
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -699,12 +707,13 @@ module Google
699
707
  # Customize the options with defaults
700
708
  call_metadata = @config.rpcs.patch.metadata.to_h
701
709
 
702
- # Set x-goog-api-client and x-goog-user-project headers
710
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
703
711
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
704
712
  lib_name: @config.lib_name, lib_version: @config.lib_version,
705
713
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
706
714
  transports_version_send: [:rest]
707
715
 
716
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
708
717
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
709
718
 
710
719
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -791,12 +800,13 @@ module Google
791
800
  # Customize the options with defaults
792
801
  call_metadata = @config.rpcs.set_certificate_map.metadata.to_h
793
802
 
794
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
795
804
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
796
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
797
806
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
798
807
  transports_version_send: [:rest]
799
808
 
809
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
800
810
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
801
811
 
802
812
  options.apply_defaults timeout: @config.rpcs.set_certificate_map.timeout,
@@ -883,12 +893,13 @@ module Google
883
893
  # Customize the options with defaults
884
894
  call_metadata = @config.rpcs.set_quic_override.metadata.to_h
885
895
 
886
- # Set x-goog-api-client and x-goog-user-project headers
896
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
887
897
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
888
898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
889
899
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
890
900
  transports_version_send: [:rest]
891
901
 
902
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
892
903
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
904
 
894
905
  options.apply_defaults timeout: @config.rpcs.set_quic_override.timeout,
@@ -975,12 +986,13 @@ module Google
975
986
  # Customize the options with defaults
976
987
  call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
977
988
 
978
- # Set x-goog-api-client and x-goog-user-project headers
989
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
979
990
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
980
991
  lib_name: @config.lib_name, lib_version: @config.lib_version,
981
992
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
982
993
  transports_version_send: [:rest]
983
994
 
995
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
984
996
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
985
997
 
986
998
  options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
@@ -1067,12 +1079,13 @@ module Google
1067
1079
  # Customize the options with defaults
1068
1080
  call_metadata = @config.rpcs.set_ssl_policy.metadata.to_h
1069
1081
 
1070
- # Set x-goog-api-client and x-goog-user-project headers
1082
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1071
1083
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1072
1084
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1073
1085
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1074
1086
  transports_version_send: [:rest]
1075
1087
 
1088
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1076
1089
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1077
1090
 
1078
1091
  options.apply_defaults timeout: @config.rpcs.set_ssl_policy.timeout,
@@ -1159,12 +1172,13 @@ module Google
1159
1172
  # Customize the options with defaults
1160
1173
  call_metadata = @config.rpcs.set_url_map.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.set_url_map.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetInstances 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
 
@@ -255,12 +258,13 @@ module Google
255
258
  # Customize the options with defaults
256
259
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
257
260
 
258
- # Set x-goog-api-client and x-goog-user-project headers
261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
259
262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
261
264
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
262
265
  transports_version_send: [:rest]
263
266
 
267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
264
268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
265
269
 
266
270
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -340,12 +344,13 @@ module Google
340
344
  # Customize the options with defaults
341
345
  call_metadata = @config.rpcs.delete.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
347
351
  transports_version_send: [:rest]
348
352
 
353
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -431,12 +436,13 @@ module Google
431
436
  # Customize the options with defaults
432
437
  call_metadata = @config.rpcs.get.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
438
443
  transports_version_send: [:rest]
439
444
 
445
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
446
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
447
 
442
448
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -515,12 +521,13 @@ module Google
515
521
  # Customize the options with defaults
516
522
  call_metadata = @config.rpcs.insert.metadata.to_h
517
523
 
518
- # Set x-goog-api-client and x-goog-user-project headers
524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
519
525
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
520
526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
521
527
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
522
528
  transports_version_send: [:rest]
523
529
 
530
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
524
531
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
532
 
526
533
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -614,12 +621,13 @@ module Google
614
621
  # Customize the options with defaults
615
622
  call_metadata = @config.rpcs.list.metadata.to_h
616
623
 
617
- # Set x-goog-api-client and x-goog-user-project headers
624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
625
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
626
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
627
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
621
628
  transports_version_send: [:rest]
622
629
 
630
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
631
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
632
 
625
633
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -701,12 +709,13 @@ module Google
701
709
  # Customize the options with defaults
702
710
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
703
711
 
704
- # Set x-goog-api-client and x-goog-user-project headers
712
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
713
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
715
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
708
716
  transports_version_send: [:rest]
709
717
 
718
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
719
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
720
 
712
721
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetPools 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
 
@@ -261,12 +264,13 @@ module Google
261
264
  # Customize the options with defaults
262
265
  call_metadata = @config.rpcs.add_health_check.metadata.to_h
263
266
 
264
- # Set x-goog-api-client and x-goog-user-project headers
267
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
265
268
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
267
270
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
268
271
  transports_version_send: [:rest]
269
272
 
273
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
270
274
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
271
275
 
272
276
  options.apply_defaults timeout: @config.rpcs.add_health_check.timeout,
@@ -356,12 +360,13 @@ module Google
356
360
  # Customize the options with defaults
357
361
  call_metadata = @config.rpcs.add_instance.metadata.to_h
358
362
 
359
- # Set x-goog-api-client and x-goog-user-project headers
363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
360
364
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
361
365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
362
366
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
363
367
  transports_version_send: [:rest]
364
368
 
369
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
365
370
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
366
371
 
367
372
  options.apply_defaults timeout: @config.rpcs.add_instance.timeout,
@@ -457,12 +462,13 @@ module Google
457
462
  # Customize the options with defaults
458
463
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
459
464
 
460
- # Set x-goog-api-client and x-goog-user-project headers
465
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
461
466
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
462
467
  lib_name: @config.lib_name, lib_version: @config.lib_version,
463
468
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
464
469
  transports_version_send: [:rest]
465
470
 
471
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
466
472
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
467
473
 
468
474
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -542,12 +548,13 @@ module Google
542
548
  # Customize the options with defaults
543
549
  call_metadata = @config.rpcs.delete.metadata.to_h
544
550
 
545
- # Set x-goog-api-client and x-goog-user-project headers
551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
546
552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
554
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
549
555
  transports_version_send: [:rest]
550
556
 
557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
551
558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
559
 
553
560
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -633,12 +640,13 @@ module Google
633
640
  # Customize the options with defaults
634
641
  call_metadata = @config.rpcs.get.metadata.to_h
635
642
 
636
- # Set x-goog-api-client and x-goog-user-project headers
643
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
637
644
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
638
645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
639
646
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
640
647
  transports_version_send: [:rest]
641
648
 
649
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
642
650
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
643
651
 
644
652
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -717,12 +725,13 @@ module Google
717
725
  # Customize the options with defaults
718
726
  call_metadata = @config.rpcs.get_health.metadata.to_h
719
727
 
720
- # Set x-goog-api-client and x-goog-user-project headers
728
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
721
729
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
722
730
  lib_name: @config.lib_name, lib_version: @config.lib_version,
723
731
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
724
732
  transports_version_send: [:rest]
725
733
 
734
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
726
735
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
737
  options.apply_defaults timeout: @config.rpcs.get_health.timeout,
@@ -801,12 +810,13 @@ module Google
801
810
  # Customize the options with defaults
802
811
  call_metadata = @config.rpcs.insert.metadata.to_h
803
812
 
804
- # Set x-goog-api-client and x-goog-user-project headers
813
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
805
814
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
815
  lib_name: @config.lib_name, lib_version: @config.lib_version,
807
816
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
808
817
  transports_version_send: [:rest]
809
818
 
819
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
810
820
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
811
821
 
812
822
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -900,12 +910,13 @@ module Google
900
910
  # Customize the options with defaults
901
911
  call_metadata = @config.rpcs.list.metadata.to_h
902
912
 
903
- # Set x-goog-api-client and x-goog-user-project headers
913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
904
914
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
905
915
  lib_name: @config.lib_name, lib_version: @config.lib_version,
906
916
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
907
917
  transports_version_send: [:rest]
908
918
 
919
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
909
920
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
910
921
 
911
922
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -987,12 +998,13 @@ module Google
987
998
  # Customize the options with defaults
988
999
  call_metadata = @config.rpcs.remove_health_check.metadata.to_h
989
1000
 
990
- # Set x-goog-api-client and x-goog-user-project headers
1001
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
991
1002
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
992
1003
  lib_name: @config.lib_name, lib_version: @config.lib_version,
993
1004
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
994
1005
  transports_version_send: [:rest]
995
1006
 
1007
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
996
1008
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
997
1009
 
998
1010
  options.apply_defaults timeout: @config.rpcs.remove_health_check.timeout,
@@ -1082,12 +1094,13 @@ module Google
1082
1094
  # Customize the options with defaults
1083
1095
  call_metadata = @config.rpcs.remove_instance.metadata.to_h
1084
1096
 
1085
- # Set x-goog-api-client and x-goog-user-project headers
1097
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1086
1098
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1087
1099
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1088
1100
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1089
1101
  transports_version_send: [:rest]
1090
1102
 
1103
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1091
1104
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1092
1105
 
1093
1106
  options.apply_defaults timeout: @config.rpcs.remove_instance.timeout,
@@ -1179,12 +1192,13 @@ module Google
1179
1192
  # Customize the options with defaults
1180
1193
  call_metadata = @config.rpcs.set_backup.metadata.to_h
1181
1194
 
1182
- # Set x-goog-api-client and x-goog-user-project headers
1195
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1183
1196
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1184
1197
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1185
1198
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1186
1199
  transports_version_send: [:rest]
1187
1200
 
1201
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1188
1202
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1189
1203
 
1190
1204
  options.apply_defaults timeout: @config.rpcs.set_backup.timeout,
@@ -1274,12 +1288,13 @@ module Google
1274
1288
  # Customize the options with defaults
1275
1289
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
1276
1290
 
1277
- # Set x-goog-api-client and x-goog-user-project headers
1291
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1278
1292
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1279
1293
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1280
1294
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1281
1295
  transports_version_send: [:rest]
1282
1296
 
1297
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1283
1298
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1284
1299
 
1285
1300
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,