google-cloud-compute-v1 2.8.0 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +3 -3
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +3 -3
  5. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +3 -3
  6. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
  7. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -4
  8. data/lib/google/cloud/compute/v1/compute_pb.rb +32 -1
  9. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +3 -3
  10. data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
  11. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
  12. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
  13. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
  14. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +3 -3
  15. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
  16. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
  17. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
  18. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +3 -3
  19. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  20. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
  21. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +3 -3
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
  23. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +6 -6
  24. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
  25. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +3 -3
  26. data/lib/google/cloud/compute/v1/instances/rest/client.rb +4 -4
  27. data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +52 -0
  28. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1208 -0
  29. data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +618 -0
  30. data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +51 -0
  31. data/lib/google/cloud/compute/v1/instant_snapshots.rb +47 -0
  32. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +3 -3
  33. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  34. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
  35. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
  36. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
  37. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
  38. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +3 -3
  39. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +3 -3
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +2 -2
  41. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -4
  42. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
  43. data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
  44. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +4 -4
  45. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +3 -3
  46. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +3 -3
  47. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +3 -3
  48. data/lib/google/cloud/compute/v1/projects/rest/client.rb +101 -2
  49. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +60 -0
  50. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
  51. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +3 -3
  52. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
  53. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +2 -2
  54. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +3 -3
  55. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  56. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
  57. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
  58. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
  59. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -4
  60. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
  61. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
  62. data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +52 -0
  63. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1103 -0
  64. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +559 -0
  65. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +51 -0
  66. data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +47 -0
  67. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +2 -2
  68. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
  69. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
  70. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  71. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
  72. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
  73. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +2 -2
  74. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
  75. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
  76. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
  77. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
  78. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
  79. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  80. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +3 -3
  81. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +3 -3
  82. data/lib/google/cloud/compute/v1/rest.rb +2 -0
  83. data/lib/google/cloud/compute/v1/routers/rest/client.rb +4 -4
  84. data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
  85. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -4
  86. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +3 -3
  87. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
  88. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +3 -3
  89. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -4
  90. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -4
  91. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
  92. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +3 -3
  93. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +3 -3
  94. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +3 -3
  95. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +3 -3
  96. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
  97. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +3 -3
  98. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +3 -3
  99. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +3 -3
  100. data/lib/google/cloud/compute/v1/version.rb +1 -1
  101. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +3 -3
  102. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +3 -3
  103. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  104. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  105. data/lib/google/cloud/compute/v1.rb +2 -0
  106. data/proto_docs/google/cloud/compute/v1/compute.rb +806 -152
  107. metadata +14 -116
@@ -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]
@@ -302,7 +302,7 @@ module Google
302
302
  end
303
303
 
304
304
  ##
305
- # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.
305
+ # 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
306
  #
307
307
  # @overload aggregated_list(request, options = nil)
308
308
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -332,7 +332,7 @@ module Google
332
332
  # @param project [::String]
333
333
  # Project ID for this request.
334
334
  # @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.
335
+ # 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
336
  # @param service_project_number [::Integer]
337
337
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
338
338
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -872,7 +872,7 @@ module Google
872
872
  # @param project [::String]
873
873
  # Project ID for this request.
874
874
  # @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.
875
+ # 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
876
  # @param zone [::String]
877
877
  # The name of the zone for this request.
878
878
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -965,7 +965,7 @@ module Google
965
965
  # @param project [::String]
966
966
  # Project ID for this request.
967
967
  # @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.
968
+ # 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
969
  # @param zone [::String]
970
970
  # The name of the zone for this request.
971
971
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -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]
@@ -97,6 +97,8 @@ module Google
97
97
 
98
98
  default_config.rpcs.move_instance.timeout = 600.0
99
99
 
100
+ default_config.rpcs.set_cloud_armor_tier.timeout = 600.0
101
+
100
102
  default_config.rpcs.set_common_instance_metadata.timeout = 600.0
101
103
 
102
104
  default_config.rpcs.set_default_network_tier.timeout = 600.0
@@ -742,7 +744,7 @@ module Google
742
744
  # @param project [::String]
743
745
  # Project ID for this request.
744
746
  # @param return_partial_success [::Boolean]
745
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
747
+ # 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.
746
748
  # @yield [result, operation] Access the result along with the TransportOperation object
747
749
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::XpnResourceId>]
748
750
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -833,7 +835,7 @@ module Google
833
835
  # @param projects_list_xpn_hosts_request_resource [::Google::Cloud::Compute::V1::ProjectsListXpnHostsRequest, ::Hash]
834
836
  # The body resource for this request
835
837
  # @param return_partial_success [::Boolean]
836
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
838
+ # 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.
837
839
  # @yield [result, operation] Access the result along with the TransportOperation object
838
840
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Project>]
839
841
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1073,6 +1075,96 @@ module Google
1073
1075
  raise ::Google::Cloud::Error.from_error(e)
1074
1076
  end
1075
1077
 
1078
+ ##
1079
+ # Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.
1080
+ #
1081
+ # @overload set_cloud_armor_tier(request, options = nil)
1082
+ # Pass arguments to `set_cloud_armor_tier` via a request object, either of type
1083
+ # {::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest} or an equivalent Hash.
1084
+ #
1085
+ # @param request [::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest, ::Hash]
1086
+ # A request object representing the call parameters. Required. To specify no
1087
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1088
+ # @param options [::Gapic::CallOptions, ::Hash]
1089
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1090
+ #
1091
+ # @overload set_cloud_armor_tier(project: nil, projects_set_cloud_armor_tier_request_resource: nil, request_id: nil)
1092
+ # Pass arguments to `set_cloud_armor_tier` via keyword arguments. Note that at
1093
+ # least one keyword argument is required. To specify no parameters, or to keep all
1094
+ # the default parameter values, pass an empty Hash as a request object (see above).
1095
+ #
1096
+ # @param project [::String]
1097
+ # Project ID for this request.
1098
+ # @param projects_set_cloud_armor_tier_request_resource [::Google::Cloud::Compute::V1::ProjectsSetCloudArmorTierRequest, ::Hash]
1099
+ # The body resource for this request
1100
+ # @param request_id [::String]
1101
+ # 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).
1102
+ # @yield [result, operation] Access the result along with the TransportOperation object
1103
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1104
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1105
+ #
1106
+ # @return [::Gapic::GenericLRO::Operation]
1107
+ #
1108
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1109
+ #
1110
+ # @example Basic example
1111
+ # require "google/cloud/compute/v1"
1112
+ #
1113
+ # # Create a client object. The client can be reused for multiple calls.
1114
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
1115
+ #
1116
+ # # Create a request. To set request fields, pass in keyword arguments.
1117
+ # request = Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest.new
1118
+ #
1119
+ # # Call the set_cloud_armor_tier method.
1120
+ # result = client.set_cloud_armor_tier request
1121
+ #
1122
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1123
+ # p result
1124
+ #
1125
+ def set_cloud_armor_tier request, options = nil
1126
+ raise ::ArgumentError, "request must be provided" if request.nil?
1127
+
1128
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest
1129
+
1130
+ # Converts hash and nil to an options object
1131
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1132
+
1133
+ # Customize the options with defaults
1134
+ call_metadata = @config.rpcs.set_cloud_armor_tier.metadata.to_h
1135
+
1136
+ # Set x-goog-api-client and x-goog-user-project headers
1137
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1138
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1139
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1140
+ transports_version_send: [:rest]
1141
+
1142
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
+
1144
+ options.apply_defaults timeout: @config.rpcs.set_cloud_armor_tier.timeout,
1145
+ metadata: call_metadata,
1146
+ retry_policy: @config.rpcs.set_cloud_armor_tier.retry_policy
1147
+
1148
+ options.apply_defaults timeout: @config.timeout,
1149
+ metadata: @config.metadata,
1150
+ retry_policy: @config.retry_policy
1151
+
1152
+ @projects_stub.set_cloud_armor_tier request, options do |result, response|
1153
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
1154
+ operation: result,
1155
+ client: global_operations,
1156
+ request_values: {
1157
+ "project" => request.project
1158
+ },
1159
+ options: options
1160
+ )
1161
+ yield result, response if block_given?
1162
+ return result
1163
+ end
1164
+ rescue ::Gapic::Rest::Error => e
1165
+ raise ::Google::Cloud::Error.from_error(e)
1166
+ end
1167
+
1076
1168
  ##
1077
1169
  # Sets metadata common to all instances within the specified project using the data included in the request.
1078
1170
  #
@@ -1527,6 +1619,11 @@ module Google
1527
1619
  #
1528
1620
  attr_reader :move_instance
1529
1621
  ##
1622
+ # RPC-specific configuration for `set_cloud_armor_tier`
1623
+ # @return [::Gapic::Config::Method]
1624
+ #
1625
+ attr_reader :set_cloud_armor_tier
1626
+ ##
1530
1627
  # RPC-specific configuration for `set_common_instance_metadata`
1531
1628
  # @return [::Gapic::Config::Method]
1532
1629
  #
@@ -1564,6 +1661,8 @@ module Google
1564
1661
  @move_disk = ::Gapic::Config::Method.new move_disk_config
1565
1662
  move_instance_config = parent_rpcs.move_instance if parent_rpcs.respond_to? :move_instance
1566
1663
  @move_instance = ::Gapic::Config::Method.new move_instance_config
1664
+ set_cloud_armor_tier_config = parent_rpcs.set_cloud_armor_tier if parent_rpcs.respond_to? :set_cloud_armor_tier
1665
+ @set_cloud_armor_tier = ::Gapic::Config::Method.new set_cloud_armor_tier_config
1567
1666
  set_common_instance_metadata_config = parent_rpcs.set_common_instance_metadata if parent_rpcs.respond_to? :set_common_instance_metadata
1568
1667
  @set_common_instance_metadata = ::Gapic::Config::Method.new set_common_instance_metadata_config
1569
1668
  set_default_network_tier_config = parent_rpcs.set_default_network_tier if parent_rpcs.respond_to? :set_default_network_tier
@@ -441,6 +441,44 @@ module Google
441
441
  result
442
442
  end
443
443
 
444
+ ##
445
+ # Baseline implementation for the set_cloud_armor_tier REST call
446
+ #
447
+ # @param request_pb [::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest]
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 set_cloud_armor_tier 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_set_cloud_armor_tier_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_common_instance_metadata REST call
446
484
  #
@@ -770,6 +808,28 @@ module Google
770
808
  transcoder.transcode request_pb
771
809
  end
772
810
 
811
+ ##
812
+ # @private
813
+ #
814
+ # GRPC transcoding helper method for the set_cloud_armor_tier REST call
815
+ #
816
+ # @param request_pb [::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest]
817
+ # A request object representing the call parameters. Required.
818
+ # @return [Array(String, [String, nil], Hash{String => String})]
819
+ # Uri, Body, Query string parameters
820
+ def self.transcode_set_cloud_armor_tier_request request_pb
821
+ transcoder = Gapic::Rest::GrpcTranscoder.new
822
+ .with_bindings(
823
+ uri_method: :post,
824
+ uri_template: "/compute/v1/projects/{project}/setCloudArmorTier",
825
+ body: "projects_set_cloud_armor_tier_request_resource",
826
+ matches: [
827
+ ["project", %r{^[^/]+/?$}, false]
828
+ ]
829
+ )
830
+ transcoder.transcode request_pb
831
+ end
832
+
773
833
  ##
774
834
  # @private
775
835
  #
@@ -565,7 +565,7 @@ module Google
565
565
  # @param project [::String]
566
566
  # Project ID for this request.
567
567
  # @param return_partial_success [::Boolean]
568
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
568
+ # 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.
569
569
  # @yield [result, operation] Access the result along with the TransportOperation object
570
570
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PublicAdvertisedPrefix>]
571
571
  # @yieldparam operation [::Gapic::Rest::TransportOperation]