google-cloud-compute-v1 2.9.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +3 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +3 -3
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +3 -3
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -4
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +82 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +3 -3
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +3 -3
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +3 -3
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +3 -3
  21. data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
  22. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +829 -0
  24. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  25. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  26. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  27. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +6 -6
  28. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
  29. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  30. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +512 -0
  31. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  32. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  33. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +3 -3
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +4 -4
  36. data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +52 -0
  37. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1208 -0
  38. data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +618 -0
  39. data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +51 -0
  40. data/lib/google/cloud/compute/v1/instant_snapshots.rb +47 -0
  41. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +3 -3
  42. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  43. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
  44. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
  45. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
  46. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
  47. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +3 -3
  48. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +3 -3
  49. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +2 -2
  50. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -4
  51. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
  52. data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
  53. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +108 -4
  54. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  55. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +3 -3
  56. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +3 -3
  57. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +3 -3
  58. data/lib/google/cloud/compute/v1/projects/rest/client.rb +101 -2
  59. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +60 -0
  60. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
  61. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +3 -3
  62. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
  63. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +2 -2
  64. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +3 -3
  65. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  66. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
  67. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
  68. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
  69. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -4
  70. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
  71. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
  72. data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +52 -0
  73. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1103 -0
  74. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +559 -0
  75. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +51 -0
  76. data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +47 -0
  77. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +2 -2
  78. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
  79. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
  80. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  81. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
  82. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
  83. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +2 -2
  84. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
  85. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
  86. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
  87. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
  88. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
  89. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  90. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +3 -3
  91. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +3 -3
  92. data/lib/google/cloud/compute/v1/rest.rb +6 -0
  93. data/lib/google/cloud/compute/v1/routers/rest/client.rb +4 -4
  94. data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
  95. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -4
  96. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +3 -3
  97. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
  98. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +3 -3
  99. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -4
  100. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  101. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +603 -0
  102. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  103. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  104. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  105. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  106. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1313 -0
  107. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  108. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  109. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  110. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -4
  111. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
  112. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +3 -3
  113. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +3 -3
  114. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +3 -3
  115. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +3 -3
  116. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
  117. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +3 -3
  118. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +3 -3
  119. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +3 -3
  120. data/lib/google/cloud/compute/v1/version.rb +1 -1
  121. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +3 -3
  122. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +3 -3
  123. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  124. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  125. data/lib/google/cloud/compute/v1.rb +6 -0
  126. data/proto_docs/google/api/client.rb +4 -0
  127. data/proto_docs/google/cloud/compute/v1/compute.rb +2128 -182
  128. metadata +32 -2
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+ require "gapic/config/method"
21
+
22
+ require "google/cloud/compute/v1/version"
23
+
24
+ require "google/cloud/compute/v1/instant_snapshots/credentials"
25
+ require "google/cloud/compute/v1/instant_snapshots/rest"
26
+
27
+ module Google
28
+ module Cloud
29
+ module Compute
30
+ module V1
31
+ ##
32
+ # The InstantSnapshots API.
33
+ #
34
+ # @example Load this service and instantiate a REST client
35
+ #
36
+ # require "google/cloud/compute/v1/instant_snapshots/rest"
37
+ # client = ::Google::Cloud::Compute::V1::InstantSnapshots::Rest::Client.new
38
+ #
39
+ module InstantSnapshots
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ helper_path = ::File.join __dir__, "instant_snapshots", "helpers.rb"
47
+ require "google/cloud/compute/v1/instant_snapshots/helpers" if ::File.file? helper_path
@@ -190,7 +190,7 @@ module Google
190
190
  # Service calls
191
191
 
192
192
  ##
193
- # Retrieves an aggregated list of interconnect attachments.
193
+ # Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
194
194
  #
195
195
  # @overload aggregated_list(request, options = nil)
196
196
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -220,7 +220,7 @@ module Google
220
220
  # @param project [::String]
221
221
  # Project ID for this request.
222
222
  # @param return_partial_success [::Boolean]
223
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
223
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
224
224
  # @param service_project_number [::Integer]
225
225
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
226
226
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -583,7 +583,7 @@ module Google
583
583
  # @param region [::String]
584
584
  # Name of the region for this request.
585
585
  # @param return_partial_success [::Boolean]
586
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
586
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
587
587
  # @yield [result, operation] Access the result along with the TransportOperation object
588
588
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectAttachment>]
589
589
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -270,7 +270,7 @@ module Google
270
270
  # @param project [::String]
271
271
  # Project ID for this request.
272
272
  # @param return_partial_success [::Boolean]
273
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
273
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
274
274
  # @yield [result, operation] Access the result along with the TransportOperation object
275
275
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectLocation>]
276
276
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -270,7 +270,7 @@ module Google
270
270
  # @param project [::String]
271
271
  # Project ID for this request.
272
272
  # @param return_partial_success [::Boolean]
273
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
273
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
274
274
  # @yield [result, operation] Access the result along with the TransportOperation object
275
275
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectRemoteLocation>]
276
276
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -643,7 +643,7 @@ module Google
643
643
  # @param project [::String]
644
644
  # Project ID for this request.
645
645
  # @param return_partial_success [::Boolean]
646
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
646
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
647
647
  # @yield [result, operation] Access the result along with the TransportOperation object
648
648
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Interconnect>]
649
649
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -560,7 +560,7 @@ module Google
560
560
  # @param project [::String]
561
561
  # Project ID for this request.
562
562
  # @param return_partial_success [::Boolean]
563
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
563
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
564
564
  # @yield [result, operation] Access the result along with the TransportOperation object
565
565
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::License>]
566
566
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -562,7 +562,7 @@ module Google
562
562
  # @param project [::String]
563
563
  # Project ID for this request.
564
564
  # @param return_partial_success [::Boolean]
565
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
565
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
566
566
  # @yield [result, operation] Access the result along with the TransportOperation object
567
567
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::MachineImage>]
568
568
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -167,7 +167,7 @@ module Google
167
167
  # Service calls
168
168
 
169
169
  ##
170
- # Retrieves an aggregated list of machine types.
170
+ # Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
171
171
  #
172
172
  # @overload aggregated_list(request, options = nil)
173
173
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -197,7 +197,7 @@ module Google
197
197
  # @param project [::String]
198
198
  # Project ID for this request.
199
199
  # @param return_partial_success [::Boolean]
200
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
200
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
201
201
  # @param service_project_number [::Integer]
202
202
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
203
203
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -370,7 +370,7 @@ module Google
370
370
  # @param project [::String]
371
371
  # Project ID for this request.
372
372
  # @param return_partial_success [::Boolean]
373
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
373
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
374
374
  # @param zone [::String]
375
375
  # The name of the zone for this request.
376
376
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -197,7 +197,7 @@ module Google
197
197
  # Service calls
198
198
 
199
199
  ##
200
- # Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project.
200
+ # Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
201
201
  #
202
202
  # @overload aggregated_list(request, options = nil)
203
203
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -227,7 +227,7 @@ module Google
227
227
  # @param project [::String]
228
228
  # Project ID for this request.
229
229
  # @param return_partial_success [::Boolean]
230
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
230
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
231
231
  # @param service_project_number [::Integer]
232
232
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
233
233
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -672,7 +672,7 @@ module Google
672
672
  # @param region [::String]
673
673
  # Name of the region of this request.
674
674
  # @param return_partial_success [::Boolean]
675
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
675
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
676
676
  # @yield [result, operation] Access the result along with the TransportOperation object
677
677
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkAttachment>]
678
678
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -183,7 +183,7 @@ module Google
183
183
  # Service calls
184
184
 
185
185
  ##
186
- # Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project.
186
+ # Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
187
187
  #
188
188
  # @overload aggregated_list(request, options = nil)
189
189
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -213,7 +213,7 @@ module Google
213
213
  # @param project [::String]
214
214
  # Name of the project scoping this request.
215
215
  # @param return_partial_success [::Boolean]
216
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
216
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
217
217
  # @param service_project_number [::Integer]
218
218
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
219
219
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -194,7 +194,7 @@ module Google
194
194
  # Service calls
195
195
 
196
196
  ##
197
- # Retrieves the list of network endpoint groups and sorts them by zone.
197
+ # Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
198
198
  #
199
199
  # @overload aggregated_list(request, options = nil)
200
200
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -224,7 +224,7 @@ module Google
224
224
  # @param project [::String]
225
225
  # Project ID for this request.
226
226
  # @param return_partial_success [::Boolean]
227
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
227
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
228
228
  # @param service_project_number [::Integer]
229
229
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
230
230
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -773,7 +773,7 @@ module Google
773
773
  # @param project [::String]
774
774
  # Project ID for this request.
775
775
  # @param return_partial_success [::Boolean]
776
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
776
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
777
777
  # @param zone [::String]
778
778
  # The name of the zone where the network endpoint group is located. It should comply with RFC1035.
779
779
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -868,7 +868,7 @@ module Google
868
868
  # @param project [::String]
869
869
  # Project ID for this request.
870
870
  # @param return_partial_success [::Boolean]
871
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
871
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
872
872
  # @param zone [::String]
873
873
  # The name of the zone where the network endpoint group is located. It should comply with RFC1035.
874
874
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1030,7 +1030,7 @@ module Google
1030
1030
  # @param project [::String]
1031
1031
  # Project ID for this request.
1032
1032
  # @param return_partial_success [::Boolean]
1033
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1033
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
1034
1034
  # @yield [result, operation] Access the result along with the TransportOperation object
1035
1035
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
1036
1036
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -661,7 +661,7 @@ module Google
661
661
  # @param project [::String]
662
662
  # Project ID for this request.
663
663
  # @param return_partial_success [::Boolean]
664
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
664
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
665
665
  # @yield [result, operation] Access the result along with the TransportOperation object
666
666
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Network>]
667
667
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -759,7 +759,7 @@ module Google
759
759
  # @param region [::String]
760
760
  # The region of the request. The response will include all subnet routes, static routes and dynamic routes in the region.
761
761
  # @param return_partial_success [::Boolean]
762
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
762
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
763
763
  # @yield [result, operation] Access the result along with the TransportOperation object
764
764
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ExchangedPeeringRoute>]
765
765
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -100,6 +100,8 @@ module Google
100
100
 
101
101
  default_config.rpcs.patch.timeout = 600.0
102
102
 
103
+ default_config.rpcs.perform_maintenance.timeout = 600.0
104
+
103
105
  default_config.rpcs.set_iam_policy.timeout = 600.0
104
106
 
105
107
  default_config.rpcs.set_node_template.timeout = 600.0
@@ -302,7 +304,7 @@ module Google
302
304
  end
303
305
 
304
306
  ##
305
- # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.
307
+ # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
306
308
  #
307
309
  # @overload aggregated_list(request, options = nil)
308
310
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -332,7 +334,7 @@ module Google
332
334
  # @param project [::String]
333
335
  # Project ID for this request.
334
336
  # @param return_partial_success [::Boolean]
335
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
337
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
336
338
  # @param service_project_number [::Integer]
337
339
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
338
340
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -872,7 +874,7 @@ module Google
872
874
  # @param project [::String]
873
875
  # Project ID for this request.
874
876
  # @param return_partial_success [::Boolean]
875
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
877
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
876
878
  # @param zone [::String]
877
879
  # The name of the zone for this request.
878
880
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -965,7 +967,7 @@ module Google
965
967
  # @param project [::String]
966
968
  # Project ID for this request.
967
969
  # @param return_partial_success [::Boolean]
968
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
970
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
969
971
  # @param zone [::String]
970
972
  # The name of the zone for this request.
971
973
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1122,6 +1124,101 @@ module Google
1122
1124
  raise ::Google::Cloud::Error.from_error(e)
1123
1125
  end
1124
1126
 
1127
+ ##
1128
+ # Perform maintenance on a subset of nodes in the node group.
1129
+ #
1130
+ # @overload perform_maintenance(request, options = nil)
1131
+ # Pass arguments to `perform_maintenance` via a request object, either of type
1132
+ # {::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest} or an equivalent Hash.
1133
+ #
1134
+ # @param request [::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest, ::Hash]
1135
+ # A request object representing the call parameters. Required. To specify no
1136
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1137
+ # @param options [::Gapic::CallOptions, ::Hash]
1138
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1139
+ #
1140
+ # @overload perform_maintenance(node_group: nil, node_groups_perform_maintenance_request_resource: nil, project: nil, request_id: nil, zone: nil)
1141
+ # Pass arguments to `perform_maintenance` via keyword arguments. Note that at
1142
+ # least one keyword argument is required. To specify no parameters, or to keep all
1143
+ # the default parameter values, pass an empty Hash as a request object (see above).
1144
+ #
1145
+ # @param node_group [::String]
1146
+ # Name of the node group scoping this request.
1147
+ # @param node_groups_perform_maintenance_request_resource [::Google::Cloud::Compute::V1::NodeGroupsPerformMaintenanceRequest, ::Hash]
1148
+ # The body resource for this request
1149
+ # @param project [::String]
1150
+ # Project ID for this request.
1151
+ # @param request_id [::String]
1152
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1153
+ # @param zone [::String]
1154
+ # The name of the zone for this request.
1155
+ # @yield [result, operation] Access the result along with the TransportOperation object
1156
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1157
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1158
+ #
1159
+ # @return [::Gapic::GenericLRO::Operation]
1160
+ #
1161
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1162
+ #
1163
+ # @example Basic example
1164
+ # require "google/cloud/compute/v1"
1165
+ #
1166
+ # # Create a client object. The client can be reused for multiple calls.
1167
+ # client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
1168
+ #
1169
+ # # Create a request. To set request fields, pass in keyword arguments.
1170
+ # request = Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest.new
1171
+ #
1172
+ # # Call the perform_maintenance method.
1173
+ # result = client.perform_maintenance request
1174
+ #
1175
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1176
+ # p result
1177
+ #
1178
+ def perform_maintenance request, options = nil
1179
+ raise ::ArgumentError, "request must be provided" if request.nil?
1180
+
1181
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest
1182
+
1183
+ # Converts hash and nil to an options object
1184
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1185
+
1186
+ # Customize the options with defaults
1187
+ call_metadata = @config.rpcs.perform_maintenance.metadata.to_h
1188
+
1189
+ # Set x-goog-api-client and x-goog-user-project headers
1190
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1191
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1192
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1193
+ transports_version_send: [:rest]
1194
+
1195
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
+
1197
+ options.apply_defaults timeout: @config.rpcs.perform_maintenance.timeout,
1198
+ metadata: call_metadata,
1199
+ retry_policy: @config.rpcs.perform_maintenance.retry_policy
1200
+
1201
+ options.apply_defaults timeout: @config.timeout,
1202
+ metadata: @config.metadata,
1203
+ retry_policy: @config.retry_policy
1204
+
1205
+ @node_groups_stub.perform_maintenance request, options do |result, response|
1206
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1207
+ operation: result,
1208
+ client: zone_operations,
1209
+ request_values: {
1210
+ "project" => request.project,
1211
+ "zone" => request.zone
1212
+ },
1213
+ options: options
1214
+ )
1215
+ yield result, response if block_given?
1216
+ return result
1217
+ end
1218
+ rescue ::Gapic::Rest::Error => e
1219
+ raise ::Google::Cloud::Error.from_error(e)
1220
+ end
1221
+
1125
1222
  ##
1126
1223
  # Sets the access control policy on the specified resource. Replaces any existing policy.
1127
1224
  #
@@ -1664,6 +1761,11 @@ module Google
1664
1761
  #
1665
1762
  attr_reader :patch
1666
1763
  ##
1764
+ # RPC-specific configuration for `perform_maintenance`
1765
+ # @return [::Gapic::Config::Method]
1766
+ #
1767
+ attr_reader :perform_maintenance
1768
+ ##
1667
1769
  # RPC-specific configuration for `set_iam_policy`
1668
1770
  # @return [::Gapic::Config::Method]
1669
1771
  #
@@ -1706,6 +1808,8 @@ module Google
1706
1808
  @list_nodes = ::Gapic::Config::Method.new list_nodes_config
1707
1809
  patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1708
1810
  @patch = ::Gapic::Config::Method.new patch_config
1811
+ perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
1812
+ @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
1709
1813
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1710
1814
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1711
1815
  set_node_template_config = parent_rpcs.set_node_template if parent_rpcs.respond_to? :set_node_template
@@ -441,6 +441,44 @@ module Google
441
441
  result
442
442
  end
443
443
 
444
+ ##
445
+ # Baseline implementation for the perform_maintenance REST call
446
+ #
447
+ # @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest]
448
+ # A request object representing the call parameters. Required.
449
+ # @param options [::Gapic::CallOptions]
450
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
451
+ #
452
+ # @yield [result, operation] Access the result along with the TransportOperation object
453
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
454
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
455
+ #
456
+ # @return [::Google::Cloud::Compute::V1::Operation]
457
+ # A result object deserialized from the server's reply
458
+ def perform_maintenance request_pb, options = nil
459
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
460
+
461
+ verb, uri, query_string_params, body = ServiceStub.transcode_perform_maintenance_request request_pb
462
+ query_string_params = if query_string_params.any?
463
+ query_string_params.to_h { |p| p.split "=", 2 }
464
+ else
465
+ {}
466
+ end
467
+
468
+ response = @client_stub.make_http_request(
469
+ verb,
470
+ uri: uri,
471
+ body: body || "",
472
+ params: query_string_params,
473
+ options: options
474
+ )
475
+ operation = ::Gapic::Rest::TransportOperation.new response
476
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
477
+
478
+ yield result, operation if block_given?
479
+ result
480
+ end
481
+
444
482
  ##
445
483
  # Baseline implementation for the set_iam_policy REST call
446
484
  #
@@ -823,6 +861,30 @@ module Google
823
861
  transcoder.transcode request_pb
824
862
  end
825
863
 
864
+ ##
865
+ # @private
866
+ #
867
+ # GRPC transcoding helper method for the perform_maintenance REST call
868
+ #
869
+ # @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest]
870
+ # A request object representing the call parameters. Required.
871
+ # @return [Array(String, [String, nil], Hash{String => String})]
872
+ # Uri, Body, Query string parameters
873
+ def self.transcode_perform_maintenance_request request_pb
874
+ transcoder = Gapic::Rest::GrpcTranscoder.new
875
+ .with_bindings(
876
+ uri_method: :post,
877
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/performMaintenance",
878
+ body: "node_groups_perform_maintenance_request_resource",
879
+ matches: [
880
+ ["project", %r{^[^/]+/?$}, false],
881
+ ["zone", %r{^[^/]+/?$}, false],
882
+ ["node_group", %r{^[^/]+/?$}, false]
883
+ ]
884
+ )
885
+ transcoder.transcode request_pb
886
+ end
887
+
826
888
  ##
827
889
  # @private
828
890
  #
@@ -195,7 +195,7 @@ module Google
195
195
  # Service calls
196
196
 
197
197
  ##
198
- # Retrieves an aggregated list of node templates.
198
+ # Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
199
199
  #
200
200
  # @overload aggregated_list(request, options = nil)
201
201
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -225,7 +225,7 @@ module Google
225
225
  # @param project [::String]
226
226
  # Project ID for this request.
227
227
  # @param return_partial_success [::Boolean]
228
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
228
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
229
229
  # @param service_project_number [::Integer]
230
230
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
231
231
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -670,7 +670,7 @@ module Google
670
670
  # @param region [::String]
671
671
  # The name of the region for this request.
672
672
  # @param return_partial_success [::Boolean]
673
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
673
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
674
674
  # @yield [result, operation] Access the result along with the TransportOperation object
675
675
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeTemplate>]
676
676
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -167,7 +167,7 @@ module Google
167
167
  # Service calls
168
168
 
169
169
  ##
170
- # Retrieves an aggregated list of node types.
170
+ # Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
171
171
  #
172
172
  # @overload aggregated_list(request, options = nil)
173
173
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -197,7 +197,7 @@ module Google
197
197
  # @param project [::String]
198
198
  # Project ID for this request.
199
199
  # @param return_partial_success [::Boolean]
200
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
200
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
201
201
  # @param service_project_number [::Integer]
202
202
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
203
203
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -370,7 +370,7 @@ module Google
370
370
  # @param project [::String]
371
371
  # Project ID for this request.
372
372
  # @param return_partial_success [::Boolean]
373
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
373
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
374
374
  # @param zone [::String]
375
375
  # The name of the zone for this request.
376
376
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -190,7 +190,7 @@ module Google
190
190
  # Service calls
191
191
 
192
192
  ##
193
- # Retrieves an aggregated list of packetMirrorings.
193
+ # Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
194
194
  #
195
195
  # @overload aggregated_list(request, options = nil)
196
196
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -220,7 +220,7 @@ module Google
220
220
  # @param project [::String]
221
221
  # Project ID for this request.
222
222
  # @param return_partial_success [::Boolean]
223
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
223
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
224
224
  # @param service_project_number [::Integer]
225
225
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
226
226
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -581,7 +581,7 @@ module Google
581
581
  # @param region [::String]
582
582
  # Name of the region for this request.
583
583
  # @param return_partial_success [::Boolean]
584
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
584
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
585
585
  # @yield [result, operation] Access the result along with the TransportOperation object
586
586
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PacketMirroring>]
587
587
  # @yieldparam operation [::Gapic::Rest::TransportOperation]