google-cloud-compute-v1 2.10.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) 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 +51 -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/credentials.rb +52 -0
  24. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +837 -0
  25. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  26. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  27. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  31. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +517 -0
  32. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  33. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  34. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  35. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  36. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  37. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  38. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  39. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  40. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  41. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  42. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  43. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  44. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  45. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  47. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  48. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  49. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  50. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  51. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +136 -14
  52. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  53. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  54. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  55. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  56. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  57. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  58. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  59. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  60. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  61. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  62. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  63. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  65. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  66. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  67. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  69. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  70. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  71. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  72. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  73. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  74. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  75. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  76. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  77. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  78. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  79. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  80. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  81. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  82. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  83. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  84. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  85. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  86. data/lib/google/cloud/compute/v1/rest.rb +4 -0
  87. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  88. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  89. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  90. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  91. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  92. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  93. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  94. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  96. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +609 -0
  97. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  98. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  99. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  100. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  101. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1326 -0
  102. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  103. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  104. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  105. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  106. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  107. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  108. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  109. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  110. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  111. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  112. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  113. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  114. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  115. data/lib/google/cloud/compute/v1/version.rb +1 -1
  116. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  117. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  118. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  119. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  120. data/lib/google/cloud/compute/v1.rb +4 -0
  121. data/proto_docs/google/api/client.rb +4 -0
  122. data/proto_docs/google/cloud/compute/v1/compute.rb +1333 -37
  123. metadata +22 -2
@@ -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.10.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,
@@ -33,6 +33,9 @@ module Google
33
33
  # The VpnTunnels 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,
@@ -32,6 +32,9 @@ module Google
32
32
  # The ZoneOperations API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
37
40
 
@@ -223,12 +226,13 @@ module Google
223
226
  # Customize the options with defaults
224
227
  call_metadata = @config.rpcs.delete.metadata.to_h
225
228
 
226
- # Set x-goog-api-client and x-goog-user-project headers
229
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
227
230
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
228
231
  lib_name: @config.lib_name, lib_version: @config.lib_version,
229
232
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
230
233
  transports_version_send: [:rest]
231
234
 
235
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
232
236
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
233
237
 
234
238
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -305,12 +309,13 @@ module Google
305
309
  # Customize the options with defaults
306
310
  call_metadata = @config.rpcs.get.metadata.to_h
307
311
 
308
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
313
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
314
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
315
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
312
316
  transports_version_send: [:rest]
313
317
 
318
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
314
319
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
320
 
316
321
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -395,12 +400,13 @@ module Google
395
400
  # Customize the options with defaults
396
401
  call_metadata = @config.rpcs.list.metadata.to_h
397
402
 
398
- # Set x-goog-api-client and x-goog-user-project headers
403
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
399
404
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
400
405
  lib_name: @config.lib_name, lib_version: @config.lib_version,
401
406
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
402
407
  transports_version_send: [:rest]
403
408
 
409
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
404
410
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
411
 
406
412
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -478,12 +484,13 @@ module Google
478
484
  # Customize the options with defaults
479
485
  call_metadata = @config.rpcs.wait.metadata.to_h
480
486
 
481
- # Set x-goog-api-client and x-goog-user-project headers
487
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
482
488
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
489
  lib_name: @config.lib_name, lib_version: @config.lib_version,
484
490
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
485
491
  transports_version_send: [:rest]
486
492
 
493
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
487
494
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
488
495
 
489
496
  options.apply_defaults timeout: @config.rpcs.wait.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The Zones API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
37
40
 
@@ -217,12 +220,13 @@ module Google
217
220
  # Customize the options with defaults
218
221
  call_metadata = @config.rpcs.get.metadata.to_h
219
222
 
220
- # Set x-goog-api-client and x-goog-user-project headers
223
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
221
224
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
223
226
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
224
227
  transports_version_send: [:rest]
225
228
 
229
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
226
230
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
231
 
228
232
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -305,12 +309,13 @@ module Google
305
309
  # Customize the options with defaults
306
310
  call_metadata = @config.rpcs.list.metadata.to_h
307
311
 
308
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
313
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
314
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
315
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
312
316
  transports_version_send: [:rest]
313
317
 
318
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
314
319
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
320
 
316
321
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -36,8 +36,10 @@ require "google/cloud/compute/v1/global_public_delegated_prefixes"
36
36
  require "google/cloud/compute/v1/health_checks"
37
37
  require "google/cloud/compute/v1/image_family_views"
38
38
  require "google/cloud/compute/v1/images"
39
+ require "google/cloud/compute/v1/instance_group_manager_resize_requests"
39
40
  require "google/cloud/compute/v1/instance_group_managers"
40
41
  require "google/cloud/compute/v1/instance_groups"
42
+ require "google/cloud/compute/v1/instance_settings_service"
41
43
  require "google/cloud/compute/v1/instance_templates"
42
44
  require "google/cloud/compute/v1/instances"
43
45
  require "google/cloud/compute/v1/instant_snapshots"
@@ -96,6 +98,8 @@ require "google/cloud/compute/v1/snapshot_settings_service"
96
98
  require "google/cloud/compute/v1/snapshots"
97
99
  require "google/cloud/compute/v1/ssl_certificates"
98
100
  require "google/cloud/compute/v1/ssl_policies"
101
+ require "google/cloud/compute/v1/storage_pool_types"
102
+ require "google/cloud/compute/v1/storage_pools"
99
103
  require "google/cloud/compute/v1/subnetworks"
100
104
  require "google/cloud/compute/v1/target_grpc_proxies"
101
105
  require "google/cloud/compute/v1/target_http_proxies"
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods