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 Reservations 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
 
@@ -266,12 +269,13 @@ module Google
266
269
  # Customize the options with defaults
267
270
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
268
271
 
269
- # Set x-goog-api-client and x-goog-user-project headers
272
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
270
273
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
271
274
  lib_name: @config.lib_name, lib_version: @config.lib_version,
272
275
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
273
276
  transports_version_send: [:rest]
274
277
 
278
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
275
279
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
276
280
 
277
281
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -351,12 +355,13 @@ module Google
351
355
  # Customize the options with defaults
352
356
  call_metadata = @config.rpcs.delete.metadata.to_h
353
357
 
354
- # Set x-goog-api-client and x-goog-user-project headers
358
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
359
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
360
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
361
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
358
362
  transports_version_send: [:rest]
359
363
 
364
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
365
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
366
 
362
367
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -442,12 +447,13 @@ module Google
442
447
  # Customize the options with defaults
443
448
  call_metadata = @config.rpcs.get.metadata.to_h
444
449
 
445
- # Set x-goog-api-client and x-goog-user-project headers
450
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
446
451
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
447
452
  lib_name: @config.lib_name, lib_version: @config.lib_version,
448
453
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
449
454
  transports_version_send: [:rest]
450
455
 
456
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
451
457
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
452
458
 
453
459
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -526,12 +532,13 @@ module Google
526
532
  # Customize the options with defaults
527
533
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
528
534
 
529
- # Set x-goog-api-client and x-goog-user-project headers
535
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
530
536
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
531
537
  lib_name: @config.lib_name, lib_version: @config.lib_version,
532
538
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
533
539
  transports_version_send: [:rest]
534
540
 
541
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
535
542
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
536
543
 
537
544
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -610,12 +617,13 @@ module Google
610
617
  # Customize the options with defaults
611
618
  call_metadata = @config.rpcs.insert.metadata.to_h
612
619
 
613
- # Set x-goog-api-client and x-goog-user-project headers
620
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
614
621
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
615
622
  lib_name: @config.lib_name, lib_version: @config.lib_version,
616
623
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
617
624
  transports_version_send: [:rest]
618
625
 
626
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
619
627
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
628
 
621
629
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -709,12 +717,13 @@ module Google
709
717
  # Customize the options with defaults
710
718
  call_metadata = @config.rpcs.list.metadata.to_h
711
719
 
712
- # Set x-goog-api-client and x-goog-user-project headers
720
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
713
721
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
714
722
  lib_name: @config.lib_name, lib_version: @config.lib_version,
715
723
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
716
724
  transports_version_send: [:rest]
717
725
 
726
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
718
727
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
719
728
 
720
729
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -796,12 +805,13 @@ module Google
796
805
  # Customize the options with defaults
797
806
  call_metadata = @config.rpcs.resize.metadata.to_h
798
807
 
799
- # Set x-goog-api-client and x-goog-user-project headers
808
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
800
809
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
801
810
  lib_name: @config.lib_name, lib_version: @config.lib_version,
802
811
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
803
812
  transports_version_send: [:rest]
804
813
 
814
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
805
815
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
806
816
 
807
817
  options.apply_defaults timeout: @config.rpcs.resize.timeout,
@@ -889,12 +899,13 @@ module Google
889
899
  # Customize the options with defaults
890
900
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
891
901
 
892
- # Set x-goog-api-client and x-goog-user-project headers
902
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
893
903
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
894
904
  lib_name: @config.lib_name, lib_version: @config.lib_version,
895
905
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
896
906
  transports_version_send: [:rest]
897
907
 
908
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
898
909
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
899
910
 
900
911
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -973,12 +984,13 @@ module Google
973
984
  # Customize the options with defaults
974
985
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
975
986
 
976
- # Set x-goog-api-client and x-goog-user-project headers
987
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
977
988
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
978
989
  lib_name: @config.lib_name, lib_version: @config.lib_version,
979
990
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
980
991
  transports_version_send: [:rest]
981
992
 
993
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
982
994
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
983
995
 
984
996
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1062,12 +1074,13 @@ module Google
1062
1074
  # Customize the options with defaults
1063
1075
  call_metadata = @config.rpcs.update.metadata.to_h
1064
1076
 
1065
- # Set x-goog-api-client and x-goog-user-project headers
1077
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1066
1078
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1067
1079
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1068
1080
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1069
1081
  transports_version_send: [:rest]
1070
1082
 
1083
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1071
1084
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1072
1085
 
1073
1086
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The ResourcePolicies 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
 
@@ -264,12 +267,13 @@ module Google
264
267
  # Customize the options with defaults
265
268
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
271
274
  transports_version_send: [:rest]
272
275
 
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -349,12 +353,13 @@ module Google
349
353
  # Customize the options with defaults
350
354
  call_metadata = @config.rpcs.delete.metadata.to_h
351
355
 
352
- # Set x-goog-api-client and x-goog-user-project headers
356
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
353
357
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
354
358
  lib_name: @config.lib_name, lib_version: @config.lib_version,
355
359
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
356
360
  transports_version_send: [:rest]
357
361
 
362
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
358
363
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
364
 
360
365
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -440,12 +445,13 @@ module Google
440
445
  # Customize the options with defaults
441
446
  call_metadata = @config.rpcs.get.metadata.to_h
442
447
 
443
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
449
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
451
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
447
452
  transports_version_send: [:rest]
448
453
 
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
455
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
456
 
451
457
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -524,12 +530,13 @@ module Google
524
530
  # Customize the options with defaults
525
531
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
526
532
 
527
- # Set x-goog-api-client and x-goog-user-project headers
533
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
534
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
535
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
536
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
531
537
  transports_version_send: [:rest]
532
538
 
539
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
540
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
541
 
535
542
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -608,12 +615,13 @@ module Google
608
615
  # Customize the options with defaults
609
616
  call_metadata = @config.rpcs.insert.metadata.to_h
610
617
 
611
- # Set x-goog-api-client and x-goog-user-project headers
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
619
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
620
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
621
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
615
622
  transports_version_send: [:rest]
616
623
 
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.list.metadata.to_h
709
717
 
710
- # Set x-goog-api-client and x-goog-user-project headers
718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
721
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
714
722
  transports_version_send: [:rest]
715
723
 
724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -796,12 +805,13 @@ module Google
796
805
  # Customize the options with defaults
797
806
  call_metadata = @config.rpcs.patch.metadata.to_h
798
807
 
799
- # Set x-goog-api-client and x-goog-user-project headers
808
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
800
809
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
801
810
  lib_name: @config.lib_name, lib_version: @config.lib_version,
802
811
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
803
812
  transports_version_send: [:rest]
804
813
 
814
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
805
815
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
806
816
 
807
817
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -889,12 +899,13 @@ module Google
889
899
  # Customize the options with defaults
890
900
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
891
901
 
892
- # Set x-goog-api-client and x-goog-user-project headers
902
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
893
903
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
894
904
  lib_name: @config.lib_name, lib_version: @config.lib_version,
895
905
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
896
906
  transports_version_send: [:rest]
897
907
 
908
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
898
909
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
899
910
 
900
911
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -973,12 +984,13 @@ module Google
973
984
  # Customize the options with defaults
974
985
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
975
986
 
976
- # Set x-goog-api-client and x-goog-user-project headers
987
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
977
988
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
978
989
  lib_name: @config.lib_name, lib_version: @config.lib_version,
979
990
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
980
991
  transports_version_send: [:rest]
981
992
 
993
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
982
994
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
983
995
 
984
996
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -36,8 +36,10 @@ require "google/cloud/compute/v1/global_public_delegated_prefixes/rest"
36
36
  require "google/cloud/compute/v1/health_checks/rest"
37
37
  require "google/cloud/compute/v1/image_family_views/rest"
38
38
  require "google/cloud/compute/v1/images/rest"
39
+ require "google/cloud/compute/v1/instance_group_manager_resize_requests/rest"
39
40
  require "google/cloud/compute/v1/instance_group_managers/rest"
40
41
  require "google/cloud/compute/v1/instance_groups/rest"
42
+ require "google/cloud/compute/v1/instance_settings_service/rest"
41
43
  require "google/cloud/compute/v1/instance_templates/rest"
42
44
  require "google/cloud/compute/v1/instances/rest"
43
45
  require "google/cloud/compute/v1/instant_snapshots/rest"
@@ -96,6 +98,8 @@ require "google/cloud/compute/v1/snapshot_settings_service/rest"
96
98
  require "google/cloud/compute/v1/snapshots/rest"
97
99
  require "google/cloud/compute/v1/ssl_certificates/rest"
98
100
  require "google/cloud/compute/v1/ssl_policies/rest"
101
+ require "google/cloud/compute/v1/storage_pool_types/rest"
102
+ require "google/cloud/compute/v1/storage_pools/rest"
99
103
  require "google/cloud/compute/v1/subnetworks/rest"
100
104
  require "google/cloud/compute/v1/target_grpc_proxies/rest"
101
105
  require "google/cloud/compute/v1/target_http_proxies/rest"
@@ -33,6 +33,9 @@ module Google
33
33
  # The Routers 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
 
@@ -274,12 +277,13 @@ module Google
274
277
  # Customize the options with defaults
275
278
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
276
279
 
277
- # Set x-goog-api-client and x-goog-user-project headers
280
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
278
281
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
279
282
  lib_name: @config.lib_name, lib_version: @config.lib_version,
280
283
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
281
284
  transports_version_send: [:rest]
282
285
 
286
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
283
287
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
284
288
 
285
289
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -359,12 +363,13 @@ module Google
359
363
  # Customize the options with defaults
360
364
  call_metadata = @config.rpcs.delete.metadata.to_h
361
365
 
362
- # Set x-goog-api-client and x-goog-user-project headers
366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
363
367
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
365
369
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
366
370
  transports_version_send: [:rest]
367
371
 
372
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
368
373
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
369
374
 
370
375
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -450,12 +455,13 @@ module Google
450
455
  # Customize the options with defaults
451
456
  call_metadata = @config.rpcs.get.metadata.to_h
452
457
 
453
- # Set x-goog-api-client and x-goog-user-project headers
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
454
459
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
455
460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
456
461
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
457
462
  transports_version_send: [:rest]
458
463
 
464
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
459
465
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
460
466
 
461
467
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -534,12 +540,13 @@ module Google
534
540
  # Customize the options with defaults
535
541
  call_metadata = @config.rpcs.get_nat_ip_info.metadata.to_h
536
542
 
537
- # Set x-goog-api-client and x-goog-user-project headers
543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
538
544
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
539
545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
540
546
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
541
547
  transports_version_send: [:rest]
542
548
 
549
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
550
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
551
 
545
552
  options.apply_defaults timeout: @config.rpcs.get_nat_ip_info.timeout,
@@ -628,12 +635,13 @@ module Google
628
635
  # Customize the options with defaults
629
636
  call_metadata = @config.rpcs.get_nat_mapping_info.metadata.to_h
630
637
 
631
- # Set x-goog-api-client and x-goog-user-project headers
638
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
632
639
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
633
640
  lib_name: @config.lib_name, lib_version: @config.lib_version,
634
641
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
635
642
  transports_version_send: [:rest]
636
643
 
644
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
637
645
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
646
 
639
647
  options.apply_defaults timeout: @config.rpcs.get_nat_mapping_info.timeout,
@@ -711,12 +719,13 @@ module Google
711
719
  # Customize the options with defaults
712
720
  call_metadata = @config.rpcs.get_router_status.metadata.to_h
713
721
 
714
- # Set x-goog-api-client and x-goog-user-project headers
722
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
715
723
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
716
724
  lib_name: @config.lib_name, lib_version: @config.lib_version,
717
725
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
718
726
  transports_version_send: [:rest]
719
727
 
728
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
720
729
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
721
730
 
722
731
  options.apply_defaults timeout: @config.rpcs.get_router_status.timeout,
@@ -795,12 +804,13 @@ module Google
795
804
  # Customize the options with defaults
796
805
  call_metadata = @config.rpcs.insert.metadata.to_h
797
806
 
798
- # Set x-goog-api-client and x-goog-user-project headers
807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
799
808
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
800
809
  lib_name: @config.lib_name, lib_version: @config.lib_version,
801
810
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
802
811
  transports_version_send: [:rest]
803
812
 
813
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
804
814
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
805
815
 
806
816
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -894,12 +904,13 @@ module Google
894
904
  # Customize the options with defaults
895
905
  call_metadata = @config.rpcs.list.metadata.to_h
896
906
 
897
- # Set x-goog-api-client and x-goog-user-project headers
907
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
898
908
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
899
909
  lib_name: @config.lib_name, lib_version: @config.lib_version,
900
910
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
901
911
  transports_version_send: [:rest]
902
912
 
913
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
903
914
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
904
915
 
905
916
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -981,12 +992,13 @@ module Google
981
992
  # Customize the options with defaults
982
993
  call_metadata = @config.rpcs.patch.metadata.to_h
983
994
 
984
- # Set x-goog-api-client and x-goog-user-project headers
995
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
985
996
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
997
  lib_name: @config.lib_name, lib_version: @config.lib_version,
987
998
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
988
999
  transports_version_send: [:rest]
989
1000
 
1001
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
990
1002
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
991
1003
 
992
1004
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1074,12 +1086,13 @@ module Google
1074
1086
  # Customize the options with defaults
1075
1087
  call_metadata = @config.rpcs.preview.metadata.to_h
1076
1088
 
1077
- # Set x-goog-api-client and x-goog-user-project headers
1089
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1078
1090
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1079
1091
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1080
1092
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1081
1093
  transports_version_send: [:rest]
1082
1094
 
1095
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1083
1096
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1084
1097
 
1085
1098
  options.apply_defaults timeout: @config.rpcs.preview.timeout,
@@ -1160,12 +1173,13 @@ module Google
1160
1173
  # Customize the options with defaults
1161
1174
  call_metadata = @config.rpcs.update.metadata.to_h
1162
1175
 
1163
- # Set x-goog-api-client and x-goog-user-project headers
1176
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1164
1177
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1165
1178
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1166
1179
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1167
1180
  transports_version_send: [:rest]
1168
1181
 
1182
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1169
1183
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1170
1184
 
1171
1185
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Routes 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
 
@@ -238,12 +241,13 @@ module Google
238
241
  # Customize the options with defaults
239
242
  call_metadata = @config.rpcs.delete.metadata.to_h
240
243
 
241
- # Set x-goog-api-client and x-goog-user-project headers
244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
242
245
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
243
246
  lib_name: @config.lib_name, lib_version: @config.lib_version,
244
247
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
245
248
  transports_version_send: [:rest]
246
249
 
250
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
247
251
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
248
252
 
249
253
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -326,12 +330,13 @@ module Google
326
330
  # Customize the options with defaults
327
331
  call_metadata = @config.rpcs.get.metadata.to_h
328
332
 
329
- # Set x-goog-api-client and x-goog-user-project headers
333
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
330
334
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
331
335
  lib_name: @config.lib_name, lib_version: @config.lib_version,
332
336
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
333
337
  transports_version_send: [:rest]
334
338
 
339
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
340
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
341
 
337
342
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -408,12 +413,13 @@ module Google
408
413
  # Customize the options with defaults
409
414
  call_metadata = @config.rpcs.insert.metadata.to_h
410
415
 
411
- # Set x-goog-api-client and x-goog-user-project headers
416
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
412
417
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
413
418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
414
419
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
415
420
  transports_version_send: [:rest]
416
421
 
422
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
417
423
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
424
 
419
425
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -504,12 +510,13 @@ module Google
504
510
  # Customize the options with defaults
505
511
  call_metadata = @config.rpcs.list.metadata.to_h
506
512
 
507
- # Set x-goog-api-client and x-goog-user-project headers
513
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
508
514
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
509
515
  lib_name: @config.lib_name, lib_version: @config.lib_version,
510
516
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
511
517
  transports_version_send: [:rest]
512
518
 
519
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
513
520
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
521
 
515
522
  options.apply_defaults timeout: @config.rpcs.list.timeout,