google-cloud-compute-v1 2.4.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77eb1ecc968c9d2f965e2c104f54280710ed1234818c682c1dcfcf4f09d0c354
|
4
|
+
data.tar.gz: 43a1a63e7d9b21fc006babf2af7a865045f47958988fc991bc36ec37923b0db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5ed01404095eb83af500e65e2a1d51f864976959d4c908610726db3ca55f5f2f08c3de03854ff5b853f1ac08cd705f0efdde71ff88ba3f023e4fc37b4ebae8
|
7
|
+
data.tar.gz: 86ab3d94b41f8677c2cd3cc555f0f54c50a94dd175b8403652b9c4c3243598e0ee11858c3be790aa4bb24576ccd5210734c3ce61b6d28e05782466c17dee260b
|
@@ -163,13 +163,13 @@ module Google
|
|
163
163
|
# @param options [::Gapic::CallOptions, ::Hash]
|
164
164
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
165
165
|
#
|
166
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
166
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
167
167
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
168
168
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
169
169
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
170
170
|
#
|
171
171
|
# @param filter [::String]
|
172
|
-
# 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
|
172
|
+
# 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. These two types of filter expressions cannot be mixed in one request. 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 `:*` 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`. You cannot combine constraints on multiple fields using regular expressions.
|
173
173
|
# @param include_all_scopes [::Boolean]
|
174
174
|
# 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.
|
175
175
|
# @param max_results [::Integer]
|
@@ -182,6 +182,7 @@ module Google
|
|
182
182
|
# Project ID for this request.
|
183
183
|
# @param return_partial_success [::Boolean]
|
184
184
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
185
|
+
# @param service_project_number [::Integer]
|
185
186
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
186
187
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AcceleratorTypesScopedList>]
|
187
188
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -189,6 +190,22 @@ module Google
|
|
189
190
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AcceleratorTypesScopedList>]
|
190
191
|
#
|
191
192
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
193
|
+
#
|
194
|
+
# @example Basic example
|
195
|
+
# require "google/cloud/compute/v1"
|
196
|
+
#
|
197
|
+
# # Create a client object. The client can be reused for multiple calls.
|
198
|
+
# client = Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
199
|
+
#
|
200
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
201
|
+
# request = Google::Cloud::Compute::V1::AggregatedListAcceleratorTypesRequest.new
|
202
|
+
#
|
203
|
+
# # Call the aggregated_list method.
|
204
|
+
# result = client.aggregated_list request
|
205
|
+
#
|
206
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AcceleratorTypeAggregatedList.
|
207
|
+
# p result
|
208
|
+
#
|
192
209
|
def aggregated_list request, options = nil
|
193
210
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
194
211
|
|
@@ -256,6 +273,22 @@ module Google
|
|
256
273
|
# @return [::Google::Cloud::Compute::V1::AcceleratorType]
|
257
274
|
#
|
258
275
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
276
|
+
#
|
277
|
+
# @example Basic example
|
278
|
+
# require "google/cloud/compute/v1"
|
279
|
+
#
|
280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
281
|
+
# client = Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
282
|
+
#
|
283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
284
|
+
# request = Google::Cloud::Compute::V1::GetAcceleratorTypeRequest.new
|
285
|
+
#
|
286
|
+
# # Call the get method.
|
287
|
+
# result = client.get request
|
288
|
+
#
|
289
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AcceleratorType.
|
290
|
+
# p result
|
291
|
+
#
|
259
292
|
def get request, options = nil
|
260
293
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
261
294
|
|
@@ -310,7 +343,7 @@ module Google
|
|
310
343
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
311
344
|
#
|
312
345
|
# @param filter [::String]
|
313
|
-
# 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
|
346
|
+
# 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. These two types of filter expressions cannot be mixed in one request. 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 `:*` 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`. You cannot combine constraints on multiple fields using regular expressions.
|
314
347
|
# @param max_results [::Integer]
|
315
348
|
# 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`)
|
316
349
|
# @param order_by [::String]
|
@@ -330,6 +363,22 @@ module Google
|
|
330
363
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::AcceleratorType>]
|
331
364
|
#
|
332
365
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
366
|
+
#
|
367
|
+
# @example Basic example
|
368
|
+
# require "google/cloud/compute/v1"
|
369
|
+
#
|
370
|
+
# # Create a client object. The client can be reused for multiple calls.
|
371
|
+
# client = Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
372
|
+
#
|
373
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
374
|
+
# request = Google::Cloud::Compute::V1::ListAcceleratorTypesRequest.new
|
375
|
+
#
|
376
|
+
# # Call the list method.
|
377
|
+
# result = client.list request
|
378
|
+
#
|
379
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AcceleratorTypeList.
|
380
|
+
# p result
|
381
|
+
#
|
333
382
|
def list request, options = nil
|
334
383
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
335
384
|
|
@@ -183,13 +183,13 @@ module Google
|
|
183
183
|
# @param options [::Gapic::CallOptions, ::Hash]
|
184
184
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
185
185
|
#
|
186
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
186
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
187
187
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
188
188
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
189
189
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
190
190
|
#
|
191
191
|
# @param filter [::String]
|
192
|
-
# 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
|
192
|
+
# 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. These two types of filter expressions cannot be mixed in one request. 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 `:*` 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`. You cannot combine constraints on multiple fields using regular expressions.
|
193
193
|
# @param include_all_scopes [::Boolean]
|
194
194
|
# 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.
|
195
195
|
# @param max_results [::Integer]
|
@@ -202,6 +202,7 @@ module Google
|
|
202
202
|
# Project ID for this request.
|
203
203
|
# @param return_partial_success [::Boolean]
|
204
204
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
205
|
+
# @param service_project_number [::Integer]
|
205
206
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
206
207
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AddressesScopedList>]
|
207
208
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -209,6 +210,22 @@ module Google
|
|
209
210
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AddressesScopedList>]
|
210
211
|
#
|
211
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/compute/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Compute::V1::AggregatedListAddressesRequest.new
|
222
|
+
#
|
223
|
+
# # Call the aggregated_list method.
|
224
|
+
# result = client.aggregated_list request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AddressAggregatedList.
|
227
|
+
# p result
|
228
|
+
#
|
212
229
|
def aggregated_list request, options = nil
|
213
230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
231
|
|
@@ -278,6 +295,22 @@ module Google
|
|
278
295
|
# @return [::Gapic::GenericLRO::Operation]
|
279
296
|
#
|
280
297
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
298
|
+
#
|
299
|
+
# @example Basic example
|
300
|
+
# require "google/cloud/compute/v1"
|
301
|
+
#
|
302
|
+
# # Create a client object. The client can be reused for multiple calls.
|
303
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
304
|
+
#
|
305
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
306
|
+
# request = Google::Cloud::Compute::V1::DeleteAddressRequest.new
|
307
|
+
#
|
308
|
+
# # Call the delete method.
|
309
|
+
# result = client.delete request
|
310
|
+
#
|
311
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
312
|
+
# p result
|
313
|
+
#
|
281
314
|
def delete request, options = nil
|
282
315
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
316
|
|
@@ -353,6 +386,22 @@ module Google
|
|
353
386
|
# @return [::Google::Cloud::Compute::V1::Address]
|
354
387
|
#
|
355
388
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
389
|
+
#
|
390
|
+
# @example Basic example
|
391
|
+
# require "google/cloud/compute/v1"
|
392
|
+
#
|
393
|
+
# # Create a client object. The client can be reused for multiple calls.
|
394
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
395
|
+
#
|
396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
397
|
+
# request = Google::Cloud::Compute::V1::GetAddressRequest.new
|
398
|
+
#
|
399
|
+
# # Call the get method.
|
400
|
+
# result = client.get request
|
401
|
+
#
|
402
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Address.
|
403
|
+
# p result
|
404
|
+
#
|
356
405
|
def get request, options = nil
|
357
406
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
407
|
|
@@ -421,6 +470,22 @@ module Google
|
|
421
470
|
# @return [::Gapic::GenericLRO::Operation]
|
422
471
|
#
|
423
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/compute/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::InsertAddressRequest.new
|
482
|
+
#
|
483
|
+
# # Call the insert method.
|
484
|
+
# result = client.insert request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
487
|
+
# p result
|
488
|
+
#
|
424
489
|
def insert request, options = nil
|
425
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
491
|
|
@@ -484,7 +549,7 @@ module Google
|
|
484
549
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
485
550
|
#
|
486
551
|
# @param filter [::String]
|
487
|
-
# 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
|
552
|
+
# 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. These two types of filter expressions cannot be mixed in one request. 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 `:*` 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`. You cannot combine constraints on multiple fields using regular expressions.
|
488
553
|
# @param max_results [::Integer]
|
489
554
|
# 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`)
|
490
555
|
# @param order_by [::String]
|
@@ -504,6 +569,22 @@ module Google
|
|
504
569
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Address>]
|
505
570
|
#
|
506
571
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
572
|
+
#
|
573
|
+
# @example Basic example
|
574
|
+
# require "google/cloud/compute/v1"
|
575
|
+
#
|
576
|
+
# # Create a client object. The client can be reused for multiple calls.
|
577
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
578
|
+
#
|
579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
580
|
+
# request = Google::Cloud::Compute::V1::ListAddressesRequest.new
|
581
|
+
#
|
582
|
+
# # Call the list method.
|
583
|
+
# result = client.list request
|
584
|
+
#
|
585
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AddressList.
|
586
|
+
# p result
|
587
|
+
#
|
507
588
|
def list request, options = nil
|
508
589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
590
|
|
@@ -575,6 +656,22 @@ module Google
|
|
575
656
|
# @return [::Gapic::GenericLRO::Operation]
|
576
657
|
#
|
577
658
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
659
|
+
#
|
660
|
+
# @example Basic example
|
661
|
+
# require "google/cloud/compute/v1"
|
662
|
+
#
|
663
|
+
# # Create a client object. The client can be reused for multiple calls.
|
664
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Compute::V1::MoveAddressRequest.new
|
668
|
+
#
|
669
|
+
# # Call the move method.
|
670
|
+
# result = client.move request
|
671
|
+
#
|
672
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
673
|
+
# p result
|
674
|
+
#
|
578
675
|
def move request, options = nil
|
579
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
677
|
|
@@ -654,6 +751,22 @@ module Google
|
|
654
751
|
# @return [::Gapic::GenericLRO::Operation]
|
655
752
|
#
|
656
753
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
754
|
+
#
|
755
|
+
# @example Basic example
|
756
|
+
# require "google/cloud/compute/v1"
|
757
|
+
#
|
758
|
+
# # Create a client object. The client can be reused for multiple calls.
|
759
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
760
|
+
#
|
761
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
762
|
+
# request = Google::Cloud::Compute::V1::SetLabelsAddressRequest.new
|
763
|
+
#
|
764
|
+
# # Call the set_labels method.
|
765
|
+
# result = client.set_labels request
|
766
|
+
#
|
767
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
768
|
+
# p result
|
769
|
+
#
|
657
770
|
def set_labels request, options = nil
|
658
771
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
659
772
|
|
@@ -183,13 +183,13 @@ module Google
|
|
183
183
|
# @param options [::Gapic::CallOptions, ::Hash]
|
184
184
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
185
185
|
#
|
186
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
186
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
187
187
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
188
188
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
189
189
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
190
190
|
#
|
191
191
|
# @param filter [::String]
|
192
|
-
# 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
|
192
|
+
# 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. These two types of filter expressions cannot be mixed in one request. 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 `:*` 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`. You cannot combine constraints on multiple fields using regular expressions.
|
193
193
|
# @param include_all_scopes [::Boolean]
|
194
194
|
# 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.
|
195
195
|
# @param max_results [::Integer]
|
@@ -202,6 +202,7 @@ module Google
|
|
202
202
|
# Project ID for this request.
|
203
203
|
# @param return_partial_success [::Boolean]
|
204
204
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
205
|
+
# @param service_project_number [::Integer]
|
205
206
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
206
207
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AutoscalersScopedList>]
|
207
208
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -209,6 +210,22 @@ module Google
|
|
209
210
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AutoscalersScopedList>]
|
210
211
|
#
|
211
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/compute/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Compute::V1::AggregatedListAutoscalersRequest.new
|
222
|
+
#
|
223
|
+
# # Call the aggregated_list method.
|
224
|
+
# result = client.aggregated_list request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AutoscalerAggregatedList.
|
227
|
+
# p result
|
228
|
+
#
|
212
229
|
def aggregated_list request, options = nil
|
213
230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
231
|
|
@@ -278,6 +295,22 @@ module Google
|
|
278
295
|
# @return [::Gapic::GenericLRO::Operation]
|
279
296
|
#
|
280
297
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
298
|
+
#
|
299
|
+
# @example Basic example
|
300
|
+
# require "google/cloud/compute/v1"
|
301
|
+
#
|
302
|
+
# # Create a client object. The client can be reused for multiple calls.
|
303
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
304
|
+
#
|
305
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
306
|
+
# request = Google::Cloud::Compute::V1::DeleteAutoscalerRequest.new
|
307
|
+
#
|
308
|
+
# # Call the delete method.
|
309
|
+
# result = client.delete request
|
310
|
+
#
|
311
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
312
|
+
# p result
|
313
|
+
#
|
281
314
|
def delete request, options = nil
|
282
315
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
316
|
|
@@ -353,6 +386,22 @@ module Google
|
|
353
386
|
# @return [::Google::Cloud::Compute::V1::Autoscaler]
|
354
387
|
#
|
355
388
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
389
|
+
#
|
390
|
+
# @example Basic example
|
391
|
+
# require "google/cloud/compute/v1"
|
392
|
+
#
|
393
|
+
# # Create a client object. The client can be reused for multiple calls.
|
394
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
395
|
+
#
|
396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
397
|
+
# request = Google::Cloud::Compute::V1::GetAutoscalerRequest.new
|
398
|
+
#
|
399
|
+
# # Call the get method.
|
400
|
+
# result = client.get request
|
401
|
+
#
|
402
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Autoscaler.
|
403
|
+
# p result
|
404
|
+
#
|
356
405
|
def get request, options = nil
|
357
406
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
407
|
|
@@ -421,6 +470,22 @@ module Google
|
|
421
470
|
# @return [::Gapic::GenericLRO::Operation]
|
422
471
|
#
|
423
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/compute/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::InsertAutoscalerRequest.new
|
482
|
+
#
|
483
|
+
# # Call the insert method.
|
484
|
+
# result = client.insert request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
487
|
+
# p result
|
488
|
+
#
|
424
489
|
def insert request, options = nil
|
425
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
491
|
|
@@ -484,7 +549,7 @@ module Google
|
|
484
549
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
485
550
|
#
|
486
551
|
# @param filter [::String]
|
487
|
-
# 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
|
552
|
+
# 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. These two types of filter expressions cannot be mixed in one request. 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 `:*` 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`. You cannot combine constraints on multiple fields using regular expressions.
|
488
553
|
# @param max_results [::Integer]
|
489
554
|
# 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`)
|
490
555
|
# @param order_by [::String]
|
@@ -504,6 +569,22 @@ module Google
|
|
504
569
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Autoscaler>]
|
505
570
|
#
|
506
571
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
572
|
+
#
|
573
|
+
# @example Basic example
|
574
|
+
# require "google/cloud/compute/v1"
|
575
|
+
#
|
576
|
+
# # Create a client object. The client can be reused for multiple calls.
|
577
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
578
|
+
#
|
579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
580
|
+
# request = Google::Cloud::Compute::V1::ListAutoscalersRequest.new
|
581
|
+
#
|
582
|
+
# # Call the list method.
|
583
|
+
# result = client.list request
|
584
|
+
#
|
585
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AutoscalerList.
|
586
|
+
# p result
|
587
|
+
#
|
507
588
|
def list request, options = nil
|
508
589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
590
|
|
@@ -575,6 +656,22 @@ module Google
|
|
575
656
|
# @return [::Gapic::GenericLRO::Operation]
|
576
657
|
#
|
577
658
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
659
|
+
#
|
660
|
+
# @example Basic example
|
661
|
+
# require "google/cloud/compute/v1"
|
662
|
+
#
|
663
|
+
# # Create a client object. The client can be reused for multiple calls.
|
664
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Compute::V1::PatchAutoscalerRequest.new
|
668
|
+
#
|
669
|
+
# # Call the patch method.
|
670
|
+
# result = client.patch request
|
671
|
+
#
|
672
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
673
|
+
# p result
|
674
|
+
#
|
578
675
|
def patch request, options = nil
|
579
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
677
|
|
@@ -654,6 +751,22 @@ module Google
|
|
654
751
|
# @return [::Gapic::GenericLRO::Operation]
|
655
752
|
#
|
656
753
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
754
|
+
#
|
755
|
+
# @example Basic example
|
756
|
+
# require "google/cloud/compute/v1"
|
757
|
+
#
|
758
|
+
# # Create a client object. The client can be reused for multiple calls.
|
759
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
760
|
+
#
|
761
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
762
|
+
# request = Google::Cloud::Compute::V1::UpdateAutoscalerRequest.new
|
763
|
+
#
|
764
|
+
# # Call the update method.
|
765
|
+
# result = client.update request
|
766
|
+
#
|
767
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
768
|
+
# p result
|
769
|
+
#
|
657
770
|
def update request, options = nil
|
658
771
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
659
772
|
|