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 TargetSslProxies 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
 
@@ -248,12 +251,13 @@ module Google
248
251
  # Customize the options with defaults
249
252
  call_metadata = @config.rpcs.delete.metadata.to_h
250
253
 
251
- # Set x-goog-api-client and x-goog-user-project headers
254
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
252
255
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
253
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
254
257
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
255
258
  transports_version_send: [:rest]
256
259
 
260
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
257
261
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
258
262
 
259
263
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -336,12 +340,13 @@ module Google
336
340
  # Customize the options with defaults
337
341
  call_metadata = @config.rpcs.get.metadata.to_h
338
342
 
339
- # Set x-goog-api-client and x-goog-user-project headers
343
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
340
344
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
341
345
  lib_name: @config.lib_name, lib_version: @config.lib_version,
342
346
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
343
347
  transports_version_send: [:rest]
344
348
 
349
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
350
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
351
 
347
352
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -418,12 +423,13 @@ module Google
418
423
  # Customize the options with defaults
419
424
  call_metadata = @config.rpcs.insert.metadata.to_h
420
425
 
421
- # Set x-goog-api-client and x-goog-user-project headers
426
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
422
427
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
428
  lib_name: @config.lib_name, lib_version: @config.lib_version,
424
429
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
425
430
  transports_version_send: [:rest]
426
431
 
432
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
427
433
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
428
434
 
429
435
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -514,12 +520,13 @@ module Google
514
520
  # Customize the options with defaults
515
521
  call_metadata = @config.rpcs.list.metadata.to_h
516
522
 
517
- # Set x-goog-api-client and x-goog-user-project headers
523
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
524
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
525
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
526
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
521
527
  transports_version_send: [:rest]
522
528
 
529
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
523
530
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
531
 
525
532
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -599,12 +606,13 @@ module Google
599
606
  # Customize the options with defaults
600
607
  call_metadata = @config.rpcs.set_backend_service.metadata.to_h
601
608
 
602
- # Set x-goog-api-client and x-goog-user-project headers
609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
603
610
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
612
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
606
613
  transports_version_send: [:rest]
607
614
 
615
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
608
616
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
609
617
 
610
618
  options.apply_defaults timeout: @config.rpcs.set_backend_service.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.set_certificate_map.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.set_certificate_map.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.set_proxy_header.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_proxy_header.timeout,
@@ -875,12 +885,13 @@ module Google
875
885
  # Customize the options with defaults
876
886
  call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
877
887
 
878
- # Set x-goog-api-client and x-goog-user-project headers
888
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
879
889
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
880
890
  lib_name: @config.lib_name, lib_version: @config.lib_version,
881
891
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
882
892
  transports_version_send: [:rest]
883
893
 
894
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
884
895
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
885
896
 
886
897
  options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
@@ -967,12 +978,13 @@ module Google
967
978
  # Customize the options with defaults
968
979
  call_metadata = @config.rpcs.set_ssl_policy.metadata.to_h
969
980
 
970
- # Set x-goog-api-client and x-goog-user-project headers
981
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
971
982
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
972
983
  lib_name: @config.lib_name, lib_version: @config.lib_version,
973
984
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
974
985
  transports_version_send: [:rest]
975
986
 
987
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
976
988
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
977
989
 
978
990
  options.apply_defaults timeout: @config.rpcs.set_ssl_policy.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetTcpProxies 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.set_backend_service.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.set_backend_service.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.set_proxy_header.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_proxy_header.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetVpnGateways 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_labels.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_labels.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The UrlMaps 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.aggregated_list.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.aggregated_list.timeout,
@@ -344,12 +348,13 @@ module Google
344
348
  # Customize the options with defaults
345
349
  call_metadata = @config.rpcs.delete.metadata.to_h
346
350
 
347
- # Set x-goog-api-client and x-goog-user-project headers
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
348
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
349
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
350
354
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
351
355
  transports_version_send: [:rest]
352
356
 
357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
358
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
359
 
355
360
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -432,12 +437,13 @@ module Google
432
437
  # Customize the options with defaults
433
438
  call_metadata = @config.rpcs.get.metadata.to_h
434
439
 
435
- # Set x-goog-api-client and x-goog-user-project headers
440
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
436
441
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
437
442
  lib_name: @config.lib_name, lib_version: @config.lib_version,
438
443
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
439
444
  transports_version_send: [:rest]
440
445
 
446
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
441
447
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
442
448
 
443
449
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -514,12 +520,13 @@ module Google
514
520
  # Customize the options with defaults
515
521
  call_metadata = @config.rpcs.insert.metadata.to_h
516
522
 
517
- # Set x-goog-api-client and x-goog-user-project headers
523
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
524
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
525
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
526
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
521
527
  transports_version_send: [:rest]
522
528
 
529
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
523
530
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
531
 
525
532
  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.invalidate_cache.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.invalidate_cache.timeout,
@@ -702,12 +710,13 @@ module Google
702
710
  # Customize the options with defaults
703
711
  call_metadata = @config.rpcs.list.metadata.to_h
704
712
 
705
- # Set x-goog-api-client and x-goog-user-project headers
713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
706
714
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
708
716
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
709
717
  transports_version_send: [:rest]
710
718
 
719
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
711
720
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
712
721
 
713
722
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -787,12 +796,13 @@ module Google
787
796
  # Customize the options with defaults
788
797
  call_metadata = @config.rpcs.patch.metadata.to_h
789
798
 
790
- # Set x-goog-api-client and x-goog-user-project headers
799
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
791
800
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
792
801
  lib_name: @config.lib_name, lib_version: @config.lib_version,
793
802
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
794
803
  transports_version_send: [:rest]
795
804
 
805
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
796
806
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
797
807
 
798
808
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -879,12 +889,13 @@ module Google
879
889
  # Customize the options with defaults
880
890
  call_metadata = @config.rpcs.update.metadata.to_h
881
891
 
882
- # Set x-goog-api-client and x-goog-user-project headers
892
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
883
893
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
884
894
  lib_name: @config.lib_name, lib_version: @config.lib_version,
885
895
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
886
896
  transports_version_send: [:rest]
887
897
 
898
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
888
899
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
889
900
 
890
901
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -969,12 +980,13 @@ module Google
969
980
  # Customize the options with defaults
970
981
  call_metadata = @config.rpcs.validate.metadata.to_h
971
982
 
972
- # Set x-goog-api-client and x-goog-user-project headers
983
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
973
984
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
974
985
  lib_name: @config.lib_name, lib_version: @config.lib_version,
975
986
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
976
987
  transports_version_send: [:rest]
977
988
 
989
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
978
990
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
979
991
 
980
992
  options.apply_defaults timeout: @config.rpcs.validate.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "2.11.0"
24
+ VERSION = "2.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -33,6 +33,9 @@ module Google
33
33
  # The VpnGateways 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,
@@ -520,12 +526,13 @@ module Google
520
526
  # Customize the options with defaults
521
527
  call_metadata = @config.rpcs.get_status.metadata.to_h
522
528
 
523
- # Set x-goog-api-client and x-goog-user-project headers
529
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
524
530
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
525
531
  lib_name: @config.lib_name, lib_version: @config.lib_version,
526
532
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
527
533
  transports_version_send: [:rest]
528
534
 
535
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
529
536
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
530
537
 
531
538
  options.apply_defaults timeout: @config.rpcs.get_status.timeout,
@@ -604,12 +611,13 @@ module Google
604
611
  # Customize the options with defaults
605
612
  call_metadata = @config.rpcs.insert.metadata.to_h
606
613
 
607
- # Set x-goog-api-client and x-goog-user-project headers
614
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
608
615
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
609
616
  lib_name: @config.lib_name, lib_version: @config.lib_version,
610
617
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
611
618
  transports_version_send: [:rest]
612
619
 
620
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
613
621
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
614
622
 
615
623
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -703,12 +711,13 @@ module Google
703
711
  # Customize the options with defaults
704
712
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -790,12 +799,13 @@ module Google
790
799
  # Customize the options with defaults
791
800
  call_metadata = @config.rpcs.set_labels.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_labels.timeout,
@@ -883,12 +893,13 @@ module Google
883
893
  # Customize the options with defaults
884
894
  call_metadata = @config.rpcs.test_iam_permissions.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.test_iam_permissions.timeout,