google-cloud-compute-v1 1.1.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -0
- 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 +84 -22
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +95 -26
- data/lib/google/cloud/compute/v1/compute_pb.rb +671 -3
- 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 +44 -10
- 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 +177 -52
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +72 -19
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +372 -101
- 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/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/network_edge_security_services/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +679 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +279 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services.rb +44 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +60 -15
- data/lib/google/cloud/compute/v1/network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1552 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +778 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies.rb +44 -0
- 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 +105 -29
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +48 -11
- 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 +37 -8
- 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 +91 -22
- 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 +176 -51
- 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_network_firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1670 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +823 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +36 -7
- 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_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +676 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +276 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_security_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +36 -7
- 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 +145 -13
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +46 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +58 -13
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +59 -14
- 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 +170 -23
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +55 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +48 -11
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +44 -10
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +35 -8
- 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 +44 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +55 -14
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +169 -23
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +46 -0
- 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 +158 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +46 -0
- 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 +6 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1946 -229
- metadata +27 -3
@@ -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/snapshots/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -145,9 +146,21 @@ module Google
|
|
145
146
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
147
|
end
|
147
148
|
|
149
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
150
|
+
config.credentials = credentials
|
151
|
+
config.endpoint = @config.endpoint
|
152
|
+
end
|
153
|
+
|
148
154
|
@snapshots_stub = ::Google::Cloud::Compute::V1::Snapshots::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
149
155
|
end
|
150
156
|
|
157
|
+
##
|
158
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
159
|
+
#
|
160
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
161
|
+
#
|
162
|
+
attr_reader :global_operations
|
163
|
+
|
151
164
|
# Service calls
|
152
165
|
|
153
166
|
##
|
@@ -177,10 +190,10 @@ module Google
|
|
177
190
|
# @param snapshot [::String]
|
178
191
|
# Name of the Snapshot resource to delete.
|
179
192
|
# @yield [result, response] Access the result along with the Faraday response object
|
180
|
-
# @yieldparam result [::Gapic::
|
193
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
181
194
|
# @yieldparam response [::Faraday::Response]
|
182
195
|
#
|
183
|
-
# @return [::Gapic::
|
196
|
+
# @return [::Gapic::GenericLRO::Operation]
|
184
197
|
#
|
185
198
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
186
199
|
def delete request, options = nil
|
@@ -207,7 +220,14 @@ module Google
|
|
207
220
|
metadata: @config.metadata
|
208
221
|
|
209
222
|
@snapshots_stub.delete request, options do |result, response|
|
210
|
-
result = ::
|
223
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
224
|
+
operation: result,
|
225
|
+
client: global_operations,
|
226
|
+
request_values: {
|
227
|
+
"project" => request.project
|
228
|
+
},
|
229
|
+
options: options
|
230
|
+
)
|
211
231
|
yield result, response if block_given?
|
212
232
|
return result
|
213
233
|
end
|
@@ -371,10 +391,10 @@ module Google
|
|
371
391
|
# @param snapshot_resource [::Google::Cloud::Compute::V1::Snapshot, ::Hash]
|
372
392
|
# The body resource for this request
|
373
393
|
# @yield [result, response] Access the result along with the Faraday response object
|
374
|
-
# @yieldparam result [::Gapic::
|
394
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
375
395
|
# @yieldparam response [::Faraday::Response]
|
376
396
|
#
|
377
|
-
# @return [::Gapic::
|
397
|
+
# @return [::Gapic::GenericLRO::Operation]
|
378
398
|
#
|
379
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
380
400
|
def insert request, options = nil
|
@@ -401,7 +421,14 @@ module Google
|
|
401
421
|
metadata: @config.metadata
|
402
422
|
|
403
423
|
@snapshots_stub.insert request, options do |result, response|
|
404
|
-
result = ::
|
424
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
425
|
+
operation: result,
|
426
|
+
client: global_operations,
|
427
|
+
request_values: {
|
428
|
+
"project" => request.project
|
429
|
+
},
|
430
|
+
options: options
|
431
|
+
)
|
405
432
|
yield result, response if block_given?
|
406
433
|
return result
|
407
434
|
end
|
@@ -431,7 +458,7 @@ module Google
|
|
431
458
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
432
459
|
#
|
433
460
|
# @param filter [::String]
|
434
|
-
# A filter expression that filters resources listed in the response.
|
461
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
435
462
|
# @param max_results [::Integer]
|
436
463
|
# 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`)
|
437
464
|
# @param order_by [::String]
|
@@ -574,10 +601,10 @@ module Google
|
|
574
601
|
# @param resource [::String]
|
575
602
|
# Name or id of the resource for this request.
|
576
603
|
# @yield [result, response] Access the result along with the Faraday response object
|
577
|
-
# @yieldparam result [::Gapic::
|
604
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
578
605
|
# @yieldparam response [::Faraday::Response]
|
579
606
|
#
|
580
|
-
# @return [::Gapic::
|
607
|
+
# @return [::Gapic::GenericLRO::Operation]
|
581
608
|
#
|
582
609
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
583
610
|
def set_labels request, options = nil
|
@@ -604,7 +631,14 @@ module Google
|
|
604
631
|
metadata: @config.metadata
|
605
632
|
|
606
633
|
@snapshots_stub.set_labels request, options do |result, response|
|
607
|
-
result = ::
|
634
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
635
|
+
operation: result,
|
636
|
+
client: global_operations,
|
637
|
+
request_values: {
|
638
|
+
"project" => request.project
|
639
|
+
},
|
640
|
+
options: options
|
641
|
+
)
|
608
642
|
yield result, response if block_given?
|
609
643
|
return result
|
610
644
|
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/ssl_certificates/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -139,9 +140,21 @@ module Google
|
|
139
140
|
credentials = Credentials.new credentials, scope: @config.scope
|
140
141
|
end
|
141
142
|
|
143
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.endpoint = @config.endpoint
|
146
|
+
end
|
147
|
+
|
142
148
|
@ssl_certificates_stub = ::Google::Cloud::Compute::V1::SslCertificates::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
143
149
|
end
|
144
150
|
|
151
|
+
##
|
152
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
153
|
+
#
|
154
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
155
|
+
#
|
156
|
+
attr_reader :global_operations
|
157
|
+
|
145
158
|
# Service calls
|
146
159
|
|
147
160
|
##
|
@@ -165,7 +178,7 @@ module Google
|
|
165
178
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
166
179
|
#
|
167
180
|
# @param filter [::String]
|
168
|
-
# A filter expression that filters resources listed in the response.
|
181
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
169
182
|
# @param include_all_scopes [::Boolean]
|
170
183
|
# 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.
|
171
184
|
# @param max_results [::Integer]
|
@@ -245,10 +258,10 @@ module Google
|
|
245
258
|
# @param ssl_certificate [::String]
|
246
259
|
# Name of the SslCertificate resource to delete.
|
247
260
|
# @yield [result, response] Access the result along with the Faraday response object
|
248
|
-
# @yieldparam result [::Gapic::
|
261
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
249
262
|
# @yieldparam response [::Faraday::Response]
|
250
263
|
#
|
251
|
-
# @return [::Gapic::
|
264
|
+
# @return [::Gapic::GenericLRO::Operation]
|
252
265
|
#
|
253
266
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
254
267
|
def delete request, options = nil
|
@@ -275,7 +288,14 @@ module Google
|
|
275
288
|
metadata: @config.metadata
|
276
289
|
|
277
290
|
@ssl_certificates_stub.delete request, options do |result, response|
|
278
|
-
result = ::
|
291
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
292
|
+
operation: result,
|
293
|
+
client: global_operations,
|
294
|
+
request_values: {
|
295
|
+
"project" => request.project
|
296
|
+
},
|
297
|
+
options: options
|
298
|
+
)
|
279
299
|
yield result, response if block_given?
|
280
300
|
return result
|
281
301
|
end
|
@@ -374,10 +394,10 @@ module Google
|
|
374
394
|
# @param ssl_certificate_resource [::Google::Cloud::Compute::V1::SslCertificate, ::Hash]
|
375
395
|
# The body resource for this request
|
376
396
|
# @yield [result, response] Access the result along with the Faraday response object
|
377
|
-
# @yieldparam result [::Gapic::
|
397
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
378
398
|
# @yieldparam response [::Faraday::Response]
|
379
399
|
#
|
380
|
-
# @return [::Gapic::
|
400
|
+
# @return [::Gapic::GenericLRO::Operation]
|
381
401
|
#
|
382
402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
383
403
|
def insert request, options = nil
|
@@ -404,7 +424,14 @@ module Google
|
|
404
424
|
metadata: @config.metadata
|
405
425
|
|
406
426
|
@ssl_certificates_stub.insert request, options do |result, response|
|
407
|
-
result = ::
|
427
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
428
|
+
operation: result,
|
429
|
+
client: global_operations,
|
430
|
+
request_values: {
|
431
|
+
"project" => request.project
|
432
|
+
},
|
433
|
+
options: options
|
434
|
+
)
|
408
435
|
yield result, response if block_given?
|
409
436
|
return result
|
410
437
|
end
|
@@ -434,7 +461,7 @@ module Google
|
|
434
461
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
435
462
|
#
|
436
463
|
# @param filter [::String]
|
437
|
-
# A filter expression that filters resources listed in the response.
|
464
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
438
465
|
# @param max_results [::Integer]
|
439
466
|
# 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`)
|
440
467
|
# @param order_by [::String]
|
@@ -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/ssl_policies/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/global_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
|
+
@global_operations = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client.new do |config|
|
146
|
+
config.credentials = credentials
|
147
|
+
config.endpoint = @config.endpoint
|
148
|
+
end
|
149
|
+
|
144
150
|
@ssl_policies_stub = ::Google::Cloud::Compute::V1::SslPolicies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
145
151
|
end
|
146
152
|
|
153
|
+
##
|
154
|
+
# Get the associated client for long-running operations via GlobalOperations.
|
155
|
+
#
|
156
|
+
# @return [::Google::Cloud::Compute::V1::GlobalOperations::Rest::Client]
|
157
|
+
#
|
158
|
+
attr_reader :global_operations
|
159
|
+
|
147
160
|
# Service calls
|
148
161
|
|
149
162
|
##
|
@@ -173,10 +186,10 @@ module Google
|
|
173
186
|
# @param ssl_policy [::String]
|
174
187
|
# Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035.
|
175
188
|
# @yield [result, response] Access the result along with the Faraday response object
|
176
|
-
# @yieldparam result [::Gapic::
|
189
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
177
190
|
# @yieldparam response [::Faraday::Response]
|
178
191
|
#
|
179
|
-
# @return [::Gapic::
|
192
|
+
# @return [::Gapic::GenericLRO::Operation]
|
180
193
|
#
|
181
194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
182
195
|
def delete request, options = nil
|
@@ -203,7 +216,14 @@ module Google
|
|
203
216
|
metadata: @config.metadata
|
204
217
|
|
205
218
|
@ssl_policies_stub.delete request, options do |result, response|
|
206
|
-
result = ::
|
219
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
220
|
+
operation: result,
|
221
|
+
client: global_operations,
|
222
|
+
request_values: {
|
223
|
+
"project" => request.project
|
224
|
+
},
|
225
|
+
options: options
|
226
|
+
)
|
207
227
|
yield result, response if block_given?
|
208
228
|
return result
|
209
229
|
end
|
@@ -302,10 +322,10 @@ module Google
|
|
302
322
|
# @param ssl_policy_resource [::Google::Cloud::Compute::V1::SslPolicy, ::Hash]
|
303
323
|
# The body resource for this request
|
304
324
|
# @yield [result, response] Access the result along with the Faraday response object
|
305
|
-
# @yieldparam result [::Gapic::
|
325
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
306
326
|
# @yieldparam response [::Faraday::Response]
|
307
327
|
#
|
308
|
-
# @return [::Gapic::
|
328
|
+
# @return [::Gapic::GenericLRO::Operation]
|
309
329
|
#
|
310
330
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
311
331
|
def insert request, options = nil
|
@@ -332,7 +352,14 @@ module Google
|
|
332
352
|
metadata: @config.metadata
|
333
353
|
|
334
354
|
@ssl_policies_stub.insert request, options do |result, response|
|
335
|
-
result = ::
|
355
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
356
|
+
operation: result,
|
357
|
+
client: global_operations,
|
358
|
+
request_values: {
|
359
|
+
"project" => request.project
|
360
|
+
},
|
361
|
+
options: options
|
362
|
+
)
|
336
363
|
yield result, response if block_given?
|
337
364
|
return result
|
338
365
|
end
|
@@ -362,7 +389,7 @@ module Google
|
|
362
389
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
363
390
|
#
|
364
391
|
# @param filter [::String]
|
365
|
-
# A filter expression that filters resources listed in the response.
|
392
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
366
393
|
# @param max_results [::Integer]
|
367
394
|
# 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`)
|
368
395
|
# @param order_by [::String]
|
@@ -434,7 +461,7 @@ module Google
|
|
434
461
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
435
462
|
#
|
436
463
|
# @param filter [::String]
|
437
|
-
# A filter expression that filters resources listed in the response.
|
464
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
438
465
|
# @param max_results [::Integer]
|
439
466
|
# 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`)
|
440
467
|
# @param order_by [::String]
|
@@ -513,10 +540,10 @@ module Google
|
|
513
540
|
# @param ssl_policy_resource [::Google::Cloud::Compute::V1::SslPolicy, ::Hash]
|
514
541
|
# The body resource for this request
|
515
542
|
# @yield [result, response] Access the result along with the Faraday response object
|
516
|
-
# @yieldparam result [::Gapic::
|
543
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
517
544
|
# @yieldparam response [::Faraday::Response]
|
518
545
|
#
|
519
|
-
# @return [::Gapic::
|
546
|
+
# @return [::Gapic::GenericLRO::Operation]
|
520
547
|
#
|
521
548
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
522
549
|
def patch request, options = nil
|
@@ -543,7 +570,14 @@ module Google
|
|
543
570
|
metadata: @config.metadata
|
544
571
|
|
545
572
|
@ssl_policies_stub.patch request, options do |result, response|
|
546
|
-
result = ::
|
573
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
574
|
+
operation: result,
|
575
|
+
client: global_operations,
|
576
|
+
request_values: {
|
577
|
+
"project" => request.project
|
578
|
+
},
|
579
|
+
options: options
|
580
|
+
)
|
547
581
|
yield result, response if block_given?
|
548
582
|
return result
|
549
583
|
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/subnetworks/rest/service_stub"
|
22
|
+
require "google/cloud/compute/v1/region_operations/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -159,9 +160,21 @@ module Google
|
|
159
160
|
credentials = Credentials.new credentials, scope: @config.scope
|
160
161
|
end
|
161
162
|
|
163
|
+
@region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
|
164
|
+
config.credentials = credentials
|
165
|
+
config.endpoint = @config.endpoint
|
166
|
+
end
|
167
|
+
|
162
168
|
@subnetworks_stub = ::Google::Cloud::Compute::V1::Subnetworks::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
163
169
|
end
|
164
170
|
|
171
|
+
##
|
172
|
+
# Get the associated client for long-running operations via RegionOperations.
|
173
|
+
#
|
174
|
+
# @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
|
175
|
+
#
|
176
|
+
attr_reader :region_operations
|
177
|
+
|
165
178
|
# Service calls
|
166
179
|
|
167
180
|
##
|
@@ -185,7 +198,7 @@ module Google
|
|
185
198
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
186
199
|
#
|
187
200
|
# @param filter [::String]
|
188
|
-
# A filter expression that filters resources listed in the response.
|
201
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
189
202
|
# @param include_all_scopes [::Boolean]
|
190
203
|
# 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.
|
191
204
|
# @param max_results [::Integer]
|
@@ -267,10 +280,10 @@ module Google
|
|
267
280
|
# @param subnetwork [::String]
|
268
281
|
# Name of the Subnetwork resource to delete.
|
269
282
|
# @yield [result, response] Access the result along with the Faraday response object
|
270
|
-
# @yieldparam result [::Gapic::
|
283
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
271
284
|
# @yieldparam response [::Faraday::Response]
|
272
285
|
#
|
273
|
-
# @return [::Gapic::
|
286
|
+
# @return [::Gapic::GenericLRO::Operation]
|
274
287
|
#
|
275
288
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
276
289
|
def delete request, options = nil
|
@@ -297,7 +310,15 @@ module Google
|
|
297
310
|
metadata: @config.metadata
|
298
311
|
|
299
312
|
@subnetworks_stub.delete request, options do |result, response|
|
300
|
-
result = ::
|
313
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
314
|
+
operation: result,
|
315
|
+
client: region_operations,
|
316
|
+
request_values: {
|
317
|
+
"project" => request.project,
|
318
|
+
"region" => request.region
|
319
|
+
},
|
320
|
+
options: options
|
321
|
+
)
|
301
322
|
yield result, response if block_given?
|
302
323
|
return result
|
303
324
|
end
|
@@ -337,10 +358,10 @@ module Google
|
|
337
358
|
# @param subnetworks_expand_ip_cidr_range_request_resource [::Google::Cloud::Compute::V1::SubnetworksExpandIpCidrRangeRequest, ::Hash]
|
338
359
|
# The body resource for this request
|
339
360
|
# @yield [result, response] Access the result along with the Faraday response object
|
340
|
-
# @yieldparam result [::Gapic::
|
361
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
341
362
|
# @yieldparam response [::Faraday::Response]
|
342
363
|
#
|
343
|
-
# @return [::Gapic::
|
364
|
+
# @return [::Gapic::GenericLRO::Operation]
|
344
365
|
#
|
345
366
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
346
367
|
def expand_ip_cidr_range request, options = nil
|
@@ -367,7 +388,15 @@ module Google
|
|
367
388
|
metadata: @config.metadata
|
368
389
|
|
369
390
|
@subnetworks_stub.expand_ip_cidr_range request, options do |result, response|
|
370
|
-
result = ::
|
391
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
392
|
+
operation: result,
|
393
|
+
client: region_operations,
|
394
|
+
request_values: {
|
395
|
+
"project" => request.project,
|
396
|
+
"region" => request.region
|
397
|
+
},
|
398
|
+
options: options
|
399
|
+
)
|
371
400
|
yield result, response if block_given?
|
372
401
|
return result
|
373
402
|
end
|
@@ -537,10 +566,10 @@ module Google
|
|
537
566
|
# @param subnetwork_resource [::Google::Cloud::Compute::V1::Subnetwork, ::Hash]
|
538
567
|
# The body resource for this request
|
539
568
|
# @yield [result, response] Access the result along with the Faraday response object
|
540
|
-
# @yieldparam result [::Gapic::
|
569
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
541
570
|
# @yieldparam response [::Faraday::Response]
|
542
571
|
#
|
543
|
-
# @return [::Gapic::
|
572
|
+
# @return [::Gapic::GenericLRO::Operation]
|
544
573
|
#
|
545
574
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
546
575
|
def insert request, options = nil
|
@@ -567,7 +596,15 @@ module Google
|
|
567
596
|
metadata: @config.metadata
|
568
597
|
|
569
598
|
@subnetworks_stub.insert request, options do |result, response|
|
570
|
-
result = ::
|
599
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
600
|
+
operation: result,
|
601
|
+
client: region_operations,
|
602
|
+
request_values: {
|
603
|
+
"project" => request.project,
|
604
|
+
"region" => request.region
|
605
|
+
},
|
606
|
+
options: options
|
607
|
+
)
|
571
608
|
yield result, response if block_given?
|
572
609
|
return result
|
573
610
|
end
|
@@ -597,7 +634,7 @@ module Google
|
|
597
634
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
598
635
|
#
|
599
636
|
# @param filter [::String]
|
600
|
-
# A filter expression that filters resources listed in the response.
|
637
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
601
638
|
# @param max_results [::Integer]
|
602
639
|
# 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`)
|
603
640
|
# @param order_by [::String]
|
@@ -671,7 +708,7 @@ module Google
|
|
671
708
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
672
709
|
#
|
673
710
|
# @param filter [::String]
|
674
|
-
# A filter expression that filters resources listed in the response.
|
711
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your 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) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
675
712
|
# @param max_results [::Integer]
|
676
713
|
# 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`)
|
677
714
|
# @param order_by [::String]
|
@@ -755,10 +792,10 @@ module Google
|
|
755
792
|
# @param subnetwork_resource [::Google::Cloud::Compute::V1::Subnetwork, ::Hash]
|
756
793
|
# The body resource for this request
|
757
794
|
# @yield [result, response] Access the result along with the Faraday response object
|
758
|
-
# @yieldparam result [::Gapic::
|
795
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
759
796
|
# @yieldparam response [::Faraday::Response]
|
760
797
|
#
|
761
|
-
# @return [::Gapic::
|
798
|
+
# @return [::Gapic::GenericLRO::Operation]
|
762
799
|
#
|
763
800
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
764
801
|
def patch request, options = nil
|
@@ -785,7 +822,15 @@ module Google
|
|
785
822
|
metadata: @config.metadata
|
786
823
|
|
787
824
|
@subnetworks_stub.patch request, options do |result, response|
|
788
|
-
result = ::
|
825
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
826
|
+
operation: result,
|
827
|
+
client: region_operations,
|
828
|
+
request_values: {
|
829
|
+
"project" => request.project,
|
830
|
+
"region" => request.region
|
831
|
+
},
|
832
|
+
options: options
|
833
|
+
)
|
789
834
|
yield result, response if block_given?
|
790
835
|
return result
|
791
836
|
end
|
@@ -892,10 +937,10 @@ module Google
|
|
892
937
|
# @param subnetworks_set_private_ip_google_access_request_resource [::Google::Cloud::Compute::V1::SubnetworksSetPrivateIpGoogleAccessRequest, ::Hash]
|
893
938
|
# The body resource for this request
|
894
939
|
# @yield [result, response] Access the result along with the Faraday response object
|
895
|
-
# @yieldparam result [::Gapic::
|
940
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
896
941
|
# @yieldparam response [::Faraday::Response]
|
897
942
|
#
|
898
|
-
# @return [::Gapic::
|
943
|
+
# @return [::Gapic::GenericLRO::Operation]
|
899
944
|
#
|
900
945
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
901
946
|
def set_private_ip_google_access request, options = nil
|
@@ -922,7 +967,15 @@ module Google
|
|
922
967
|
metadata: @config.metadata
|
923
968
|
|
924
969
|
@subnetworks_stub.set_private_ip_google_access request, options do |result, response|
|
925
|
-
result = ::
|
970
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
971
|
+
operation: result,
|
972
|
+
client: region_operations,
|
973
|
+
request_values: {
|
974
|
+
"project" => request.project,
|
975
|
+
"region" => request.region
|
976
|
+
},
|
977
|
+
options: options
|
978
|
+
)
|
926
979
|
yield result, response if block_given?
|
927
980
|
return result
|
928
981
|
end
|