google-cloud-compute-v1 0.5.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +59 -14
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +158 -19
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +169 -23
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +534 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +93 -24
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +98 -31
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +2 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +54 -13
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +70 -17
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +64 -16
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +55 -14
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +47 -13
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +55 -14
- data/lib/google/cloud/compute/v1/images/rest/client.rb +64 -16
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +172 -47
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +71 -18
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +521 -96
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +91 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/machine_images/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +804 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +363 -0
- data/lib/google/cloud/compute/v1/machine_images/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/machine_images.rb +44 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +60 -15
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +85 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +82 -21
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +107 -31
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +47 -13
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +51 -14
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +116 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +48 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +92 -23
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +47 -10
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +171 -46
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +26 -5
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +24 -3
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +36 -7
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +38 -9
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +38 -9
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +47 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +62 -17
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +3 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +138 -11
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +48 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +60 -15
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +75 -20
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +51 -14
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +116 -7
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +37 -10
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +45 -11
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +71 -18
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +47 -13
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +56 -15
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +86 -24
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +92 -23
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +74 -19
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +54 -13
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +65 -17
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +37 -8
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/nonstandard_lro.rb +68 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +1 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +3 -0
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/compute/v1/compute.rb +1647 -330
- metadata +14 -7
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
21
|
require "google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -136,9 +137,21 @@ module Google
|
|
136
137
|
credentials = Credentials.new credentials, scope: @config.scope
|
137
138
|
end
|
138
139
|
|
140
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
141
|
+
config.credentials = credentials
|
142
|
+
config.endpoint = @config.endpoint
|
143
|
+
end
|
144
|
+
|
139
145
|
@public_advertised_prefixes_stub = ::Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
140
146
|
end
|
141
147
|
|
148
|
+
##
|
149
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
150
|
+
#
|
151
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
152
|
+
#
|
153
|
+
attr_reader :global_operations
|
154
|
+
|
142
155
|
# Service calls
|
143
156
|
|
144
157
|
##
|
@@ -166,12 +179,12 @@ module Google
|
|
166
179
|
# @param public_advertised_prefix [::String]
|
167
180
|
# Name of the PublicAdvertisedPrefix resource to delete.
|
168
181
|
# @param request_id [::String]
|
169
|
-
# 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).
|
182
|
+
# 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).
|
170
183
|
# @yield [result, response] Access the result along with the Faraday response object
|
171
|
-
# @yieldparam result [::Gapic::
|
184
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
172
185
|
# @yieldparam response [::Faraday::Response]
|
173
186
|
#
|
174
|
-
# @return [::Gapic::
|
187
|
+
# @return [::Gapic::GenericLRO::Operation]
|
175
188
|
#
|
176
189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
177
190
|
def delete request, options = nil
|
@@ -198,7 +211,14 @@ module Google
|
|
198
211
|
metadata: @config.metadata
|
199
212
|
|
200
213
|
@public_advertised_prefixes_stub.delete request, options do |result, response|
|
201
|
-
result = ::
|
214
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
215
|
+
operation: result,
|
216
|
+
client: global_operations,
|
217
|
+
request_values: {
|
218
|
+
"project" => request.project
|
219
|
+
},
|
220
|
+
options: options
|
221
|
+
)
|
202
222
|
yield result, response if block_given?
|
203
223
|
return result
|
204
224
|
end
|
@@ -295,12 +315,12 @@ module Google
|
|
295
315
|
# @param public_advertised_prefix_resource [::Google::Cloud::Compute::V1::PublicAdvertisedPrefix, ::Hash]
|
296
316
|
# The body resource for this request
|
297
317
|
# @param request_id [::String]
|
298
|
-
# 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).
|
318
|
+
# 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).
|
299
319
|
# @yield [result, response] Access the result along with the Faraday response object
|
300
|
-
# @yieldparam result [::Gapic::
|
320
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
301
321
|
# @yieldparam response [::Faraday::Response]
|
302
322
|
#
|
303
|
-
# @return [::Gapic::
|
323
|
+
# @return [::Gapic::GenericLRO::Operation]
|
304
324
|
#
|
305
325
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
306
326
|
def insert request, options = nil
|
@@ -327,7 +347,14 @@ module Google
|
|
327
347
|
metadata: @config.metadata
|
328
348
|
|
329
349
|
@public_advertised_prefixes_stub.insert request, options do |result, response|
|
330
|
-
result = ::
|
350
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
351
|
+
operation: result,
|
352
|
+
client: global_operations,
|
353
|
+
request_values: {
|
354
|
+
"project" => request.project
|
355
|
+
},
|
356
|
+
options: options
|
357
|
+
)
|
331
358
|
yield result, response if block_given?
|
332
359
|
return result
|
333
360
|
end
|
@@ -357,7 +384,7 @@ module Google
|
|
357
384
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
358
385
|
#
|
359
386
|
# @param filter [::String]
|
360
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
387
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
361
388
|
# @param max_results [::Integer]
|
362
389
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
363
390
|
# @param order_by [::String]
|
@@ -435,12 +462,12 @@ module Google
|
|
435
462
|
# @param public_advertised_prefix_resource [::Google::Cloud::Compute::V1::PublicAdvertisedPrefix, ::Hash]
|
436
463
|
# The body resource for this request
|
437
464
|
# @param request_id [::String]
|
438
|
-
# 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).
|
465
|
+
# 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).
|
439
466
|
# @yield [result, response] Access the result along with the Faraday response object
|
440
|
-
# @yieldparam result [::Gapic::
|
467
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
441
468
|
# @yieldparam response [::Faraday::Response]
|
442
469
|
#
|
443
|
-
# @return [::Gapic::
|
470
|
+
# @return [::Gapic::GenericLRO::Operation]
|
444
471
|
#
|
445
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
446
473
|
def patch request, options = nil
|
@@ -467,7 +494,14 @@ module Google
|
|
467
494
|
metadata: @config.metadata
|
468
495
|
|
469
496
|
@public_advertised_prefixes_stub.patch request, options do |result, response|
|
470
|
-
result = ::
|
497
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
498
|
+
operation: result,
|
499
|
+
client: global_operations,
|
500
|
+
request_values: {
|
501
|
+
"project" => request.project
|
502
|
+
},
|
503
|
+
options: options
|
504
|
+
)
|
471
505
|
yield result, response if block_given?
|
472
506
|
return result
|
473
507
|
end
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
21
|
require "google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/region_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -141,9 +142,21 @@ module Google
|
|
141
142
|
credentials = Credentials.new credentials, scope: @config.scope
|
142
143
|
end
|
143
144
|
|
145
|
+
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
146
|
+
config.credentials = credentials
|
147
|
+
config.endpoint = @config.endpoint
|
148
|
+
end
|
149
|
+
|
144
150
|
@public_delegated_prefixes_stub = ::Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
145
151
|
end
|
146
152
|
|
153
|
+
##
|
154
|
+
# Get the associated client for long-running operations via RegionOperations.
|
155
|
+
#
|
156
|
+
# @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
|
157
|
+
#
|
158
|
+
attr_reader :region_operations
|
159
|
+
|
147
160
|
# Service calls
|
148
161
|
|
149
162
|
##
|
@@ -167,7 +180,7 @@ module Google
|
|
167
180
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
168
181
|
#
|
169
182
|
# @param filter [::String]
|
170
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
183
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
171
184
|
# @param include_all_scopes [::Boolean]
|
172
185
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
173
186
|
# @param max_results [::Integer]
|
@@ -247,12 +260,12 @@ module Google
|
|
247
260
|
# @param region [::String]
|
248
261
|
# Name of the region of this request.
|
249
262
|
# @param request_id [::String]
|
250
|
-
# 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).
|
263
|
+
# 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).
|
251
264
|
# @yield [result, response] Access the result along with the Faraday response object
|
252
|
-
# @yieldparam result [::Gapic::
|
265
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
253
266
|
# @yieldparam response [::Faraday::Response]
|
254
267
|
#
|
255
|
-
# @return [::Gapic::
|
268
|
+
# @return [::Gapic::GenericLRO::Operation]
|
256
269
|
#
|
257
270
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
258
271
|
def delete request, options = nil
|
@@ -279,7 +292,15 @@ module Google
|
|
279
292
|
metadata: @config.metadata
|
280
293
|
|
281
294
|
@public_delegated_prefixes_stub.delete request, options do |result, response|
|
282
|
-
result = ::
|
295
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
296
|
+
operation: result,
|
297
|
+
client: region_operations,
|
298
|
+
request_values: {
|
299
|
+
"project" => request.project,
|
300
|
+
"region" => request.region
|
301
|
+
},
|
302
|
+
options: options
|
303
|
+
)
|
283
304
|
yield result, response if block_given?
|
284
305
|
return result
|
285
306
|
end
|
@@ -380,12 +401,12 @@ module Google
|
|
380
401
|
# @param region [::String]
|
381
402
|
# Name of the region of this request.
|
382
403
|
# @param request_id [::String]
|
383
|
-
# 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).
|
404
|
+
# 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).
|
384
405
|
# @yield [result, response] Access the result along with the Faraday response object
|
385
|
-
# @yieldparam result [::Gapic::
|
406
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
386
407
|
# @yieldparam response [::Faraday::Response]
|
387
408
|
#
|
388
|
-
# @return [::Gapic::
|
409
|
+
# @return [::Gapic::GenericLRO::Operation]
|
389
410
|
#
|
390
411
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
391
412
|
def insert request, options = nil
|
@@ -412,7 +433,15 @@ module Google
|
|
412
433
|
metadata: @config.metadata
|
413
434
|
|
414
435
|
@public_delegated_prefixes_stub.insert request, options do |result, response|
|
415
|
-
result = ::
|
436
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
437
|
+
operation: result,
|
438
|
+
client: region_operations,
|
439
|
+
request_values: {
|
440
|
+
"project" => request.project,
|
441
|
+
"region" => request.region
|
442
|
+
},
|
443
|
+
options: options
|
444
|
+
)
|
416
445
|
yield result, response if block_given?
|
417
446
|
return result
|
418
447
|
end
|
@@ -442,7 +471,7 @@ module Google
|
|
442
471
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
443
472
|
#
|
444
473
|
# @param filter [::String]
|
445
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
474
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
446
475
|
# @param max_results [::Integer]
|
447
476
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
448
477
|
# @param order_by [::String]
|
@@ -524,12 +553,12 @@ module Google
|
|
524
553
|
# @param region [::String]
|
525
554
|
# Name of the region for this request.
|
526
555
|
# @param request_id [::String]
|
527
|
-
# 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).
|
556
|
+
# 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).
|
528
557
|
# @yield [result, response] Access the result along with the Faraday response object
|
529
|
-
# @yieldparam result [::Gapic::
|
558
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
530
559
|
# @yieldparam response [::Faraday::Response]
|
531
560
|
#
|
532
|
-
# @return [::Gapic::
|
561
|
+
# @return [::Gapic::GenericLRO::Operation]
|
533
562
|
#
|
534
563
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
535
564
|
def patch request, options = nil
|
@@ -556,7 +585,15 @@ module Google
|
|
556
585
|
metadata: @config.metadata
|
557
586
|
|
558
587
|
@public_delegated_prefixes_stub.patch request, options do |result, response|
|
559
|
-
result = ::
|
588
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
589
|
+
operation: result,
|
590
|
+
client: region_operations,
|
591
|
+
request_values: {
|
592
|
+
"project" => request.project,
|
593
|
+
"region" => request.region
|
594
|
+
},
|
595
|
+
options: options
|
596
|
+
)
|
560
597
|
yield result, response if block_given?
|
561
598
|
return result
|
562
599
|
end
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
21
|
require "google/cloud/compute/v1/region_autoscalers/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/region_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -138,9 +139,21 @@ module Google
|
|
138
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
139
140
|
end
|
140
141
|
|
142
|
+
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
143
|
+
config.credentials = credentials
|
144
|
+
config.endpoint = @config.endpoint
|
145
|
+
end
|
146
|
+
|
141
147
|
@region_autoscalers_stub = ::Google::Cloud::Compute::V1::RegionAutoscalers::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
142
148
|
end
|
143
149
|
|
150
|
+
##
|
151
|
+
# Get the associated client for long-running operations via RegionOperations.
|
152
|
+
#
|
153
|
+
# @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
|
154
|
+
#
|
155
|
+
attr_reader :region_operations
|
156
|
+
|
144
157
|
# Service calls
|
145
158
|
|
146
159
|
##
|
@@ -172,10 +185,10 @@ module Google
|
|
172
185
|
# @param request_id [::String]
|
173
186
|
# 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).
|
174
187
|
# @yield [result, response] Access the result along with the Faraday response object
|
175
|
-
# @yieldparam result [::Gapic::
|
188
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
176
189
|
# @yieldparam response [::Faraday::Response]
|
177
190
|
#
|
178
|
-
# @return [::Gapic::
|
191
|
+
# @return [::Gapic::GenericLRO::Operation]
|
179
192
|
#
|
180
193
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
181
194
|
def delete request, options = nil
|
@@ -202,7 +215,15 @@ module Google
|
|
202
215
|
metadata: @config.metadata
|
203
216
|
|
204
217
|
@region_autoscalers_stub.delete request, options do |result, response|
|
205
|
-
result = ::
|
218
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
219
|
+
operation: result,
|
220
|
+
client: region_operations,
|
221
|
+
request_values: {
|
222
|
+
"project" => request.project,
|
223
|
+
"region" => request.region
|
224
|
+
},
|
225
|
+
options: options
|
226
|
+
)
|
206
227
|
yield result, response if block_given?
|
207
228
|
return result
|
208
229
|
end
|
@@ -305,10 +326,10 @@ module Google
|
|
305
326
|
# @param request_id [::String]
|
306
327
|
# 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).
|
307
328
|
# @yield [result, response] Access the result along with the Faraday response object
|
308
|
-
# @yieldparam result [::Gapic::
|
329
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
309
330
|
# @yieldparam response [::Faraday::Response]
|
310
331
|
#
|
311
|
-
# @return [::Gapic::
|
332
|
+
# @return [::Gapic::GenericLRO::Operation]
|
312
333
|
#
|
313
334
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
335
|
def insert request, options = nil
|
@@ -335,7 +356,15 @@ module Google
|
|
335
356
|
metadata: @config.metadata
|
336
357
|
|
337
358
|
@region_autoscalers_stub.insert request, options do |result, response|
|
338
|
-
result = ::
|
359
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
360
|
+
operation: result,
|
361
|
+
client: region_operations,
|
362
|
+
request_values: {
|
363
|
+
"project" => request.project,
|
364
|
+
"region" => request.region
|
365
|
+
},
|
366
|
+
options: options
|
367
|
+
)
|
339
368
|
yield result, response if block_given?
|
340
369
|
return result
|
341
370
|
end
|
@@ -365,7 +394,7 @@ module Google
|
|
365
394
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
366
395
|
#
|
367
396
|
# @param filter [::String]
|
368
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
397
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
369
398
|
# @param max_results [::Integer]
|
370
399
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
371
400
|
# @param order_by [::String]
|
@@ -449,10 +478,10 @@ module Google
|
|
449
478
|
# @param request_id [::String]
|
450
479
|
# 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).
|
451
480
|
# @yield [result, response] Access the result along with the Faraday response object
|
452
|
-
# @yieldparam result [::Gapic::
|
481
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
453
482
|
# @yieldparam response [::Faraday::Response]
|
454
483
|
#
|
455
|
-
# @return [::Gapic::
|
484
|
+
# @return [::Gapic::GenericLRO::Operation]
|
456
485
|
#
|
457
486
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
458
487
|
def patch request, options = nil
|
@@ -479,7 +508,15 @@ module Google
|
|
479
508
|
metadata: @config.metadata
|
480
509
|
|
481
510
|
@region_autoscalers_stub.patch request, options do |result, response|
|
482
|
-
result = ::
|
511
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
512
|
+
operation: result,
|
513
|
+
client: region_operations,
|
514
|
+
request_values: {
|
515
|
+
"project" => request.project,
|
516
|
+
"region" => request.region
|
517
|
+
},
|
518
|
+
options: options
|
519
|
+
)
|
483
520
|
yield result, response if block_given?
|
484
521
|
return result
|
485
522
|
end
|
@@ -519,10 +556,10 @@ module Google
|
|
519
556
|
# @param request_id [::String]
|
520
557
|
# 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).
|
521
558
|
# @yield [result, response] Access the result along with the Faraday response object
|
522
|
-
# @yieldparam result [::Gapic::
|
559
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
523
560
|
# @yieldparam response [::Faraday::Response]
|
524
561
|
#
|
525
|
-
# @return [::Gapic::
|
562
|
+
# @return [::Gapic::GenericLRO::Operation]
|
526
563
|
#
|
527
564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
528
565
|
def update request, options = nil
|
@@ -549,7 +586,15 @@ module Google
|
|
549
586
|
metadata: @config.metadata
|
550
587
|
|
551
588
|
@region_autoscalers_stub.update request, options do |result, response|
|
552
|
-
result = ::
|
589
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
590
|
+
operation: result,
|
591
|
+
client: region_operations,
|
592
|
+
request_values: {
|
593
|
+
"project" => request.project,
|
594
|
+
"region" => request.region
|
595
|
+
},
|
596
|
+
options: options
|
597
|
+
)
|
553
598
|
yield result, response if block_given?
|
554
599
|
return result
|
555
600
|
end
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/compute/v1/compute_pb"
|
21
21
|
require "google/cloud/compute/v1/region_backend_services/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/region_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -140,9 +141,21 @@ module Google
|
|
140
141
|
credentials = Credentials.new credentials, scope: @config.scope
|
141
142
|
end
|
142
143
|
|
144
|
+
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
145
|
+
config.credentials = credentials
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
143
149
|
@region_backend_services_stub = ::Google::Cloud::Compute::V1::RegionBackendServices::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
144
150
|
end
|
145
151
|
|
152
|
+
##
|
153
|
+
# Get the associated client for long-running operations via RegionOperations.
|
154
|
+
#
|
155
|
+
# @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
|
156
|
+
#
|
157
|
+
attr_reader :region_operations
|
158
|
+
|
146
159
|
# Service calls
|
147
160
|
|
148
161
|
##
|
@@ -174,10 +187,10 @@ module Google
|
|
174
187
|
# @param request_id [::String]
|
175
188
|
# 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).
|
176
189
|
# @yield [result, response] Access the result along with the Faraday response object
|
177
|
-
# @yieldparam result [::Gapic::
|
190
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
178
191
|
# @yieldparam response [::Faraday::Response]
|
179
192
|
#
|
180
|
-
# @return [::Gapic::
|
193
|
+
# @return [::Gapic::GenericLRO::Operation]
|
181
194
|
#
|
182
195
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
183
196
|
def delete request, options = nil
|
@@ -204,7 +217,15 @@ module Google
|
|
204
217
|
metadata: @config.metadata
|
205
218
|
|
206
219
|
@region_backend_services_stub.delete request, options do |result, response|
|
207
|
-
result = ::
|
220
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
221
|
+
operation: result,
|
222
|
+
client: region_operations,
|
223
|
+
request_values: {
|
224
|
+
"project" => request.project,
|
225
|
+
"region" => request.region
|
226
|
+
},
|
227
|
+
options: options
|
228
|
+
)
|
208
229
|
yield result, response if block_given?
|
209
230
|
return result
|
210
231
|
end
|
@@ -373,10 +394,10 @@ module Google
|
|
373
394
|
# @param request_id [::String]
|
374
395
|
# 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).
|
375
396
|
# @yield [result, response] Access the result along with the Faraday response object
|
376
|
-
# @yieldparam result [::Gapic::
|
397
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
377
398
|
# @yieldparam response [::Faraday::Response]
|
378
399
|
#
|
379
|
-
# @return [::Gapic::
|
400
|
+
# @return [::Gapic::GenericLRO::Operation]
|
380
401
|
#
|
381
402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
382
403
|
def insert request, options = nil
|
@@ -403,7 +424,15 @@ module Google
|
|
403
424
|
metadata: @config.metadata
|
404
425
|
|
405
426
|
@region_backend_services_stub.insert request, options do |result, response|
|
406
|
-
result = ::
|
427
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
428
|
+
operation: result,
|
429
|
+
client: region_operations,
|
430
|
+
request_values: {
|
431
|
+
"project" => request.project,
|
432
|
+
"region" => request.region
|
433
|
+
},
|
434
|
+
options: options
|
435
|
+
)
|
407
436
|
yield result, response if block_given?
|
408
437
|
return result
|
409
438
|
end
|
@@ -433,7 +462,7 @@ module Google
|
|
433
462
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
434
463
|
#
|
435
464
|
# @param filter [::String]
|
436
|
-
# A filter expression that filters resources listed in the response. The expression must specify the field name,
|
465
|
+
# A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
437
466
|
# @param max_results [::Integer]
|
438
467
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
439
468
|
# @param order_by [::String]
|
@@ -517,10 +546,10 @@ module Google
|
|
517
546
|
# @param request_id [::String]
|
518
547
|
# 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).
|
519
548
|
# @yield [result, response] Access the result along with the Faraday response object
|
520
|
-
# @yieldparam result [::Gapic::
|
549
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
521
550
|
# @yieldparam response [::Faraday::Response]
|
522
551
|
#
|
523
|
-
# @return [::Gapic::
|
552
|
+
# @return [::Gapic::GenericLRO::Operation]
|
524
553
|
#
|
525
554
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
526
555
|
def patch request, options = nil
|
@@ -547,7 +576,15 @@ module Google
|
|
547
576
|
metadata: @config.metadata
|
548
577
|
|
549
578
|
@region_backend_services_stub.patch request, options do |result, response|
|
550
|
-
result = ::
|
579
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
580
|
+
operation: result,
|
581
|
+
client: region_operations,
|
582
|
+
request_values: {
|
583
|
+
"project" => request.project,
|
584
|
+
"region" => request.region
|
585
|
+
},
|
586
|
+
options: options
|
587
|
+
)
|
551
588
|
yield result, response if block_given?
|
552
589
|
return result
|
553
590
|
end
|
@@ -587,10 +624,10 @@ module Google
|
|
587
624
|
# @param request_id [::String]
|
588
625
|
# 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).
|
589
626
|
# @yield [result, response] Access the result along with the Faraday response object
|
590
|
-
# @yieldparam result [::Gapic::
|
627
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
591
628
|
# @yieldparam response [::Faraday::Response]
|
592
629
|
#
|
593
|
-
# @return [::Gapic::
|
630
|
+
# @return [::Gapic::GenericLRO::Operation]
|
594
631
|
#
|
595
632
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
596
633
|
def update request, options = nil
|
@@ -617,7 +654,15 @@ module Google
|
|
617
654
|
metadata: @config.metadata
|
618
655
|
|
619
656
|
@region_backend_services_stub.update request, options do |result, response|
|
620
|
-
result = ::
|
657
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
658
|
+
operation: result,
|
659
|
+
client: region_operations,
|
660
|
+
request_values: {
|
661
|
+
"project" => request.project,
|
662
|
+
"region" => request.region
|
663
|
+
},
|
664
|
+
options: options
|
665
|
+
)
|
621
666
|
yield result, response if block_given?
|
622
667
|
return result
|
623
668
|
end
|