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
@@ -161,13 +161,13 @@ module Google
|
|
161
161
|
# @param options [::Gapic::CallOptions, ::Hash]
|
162
162
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
163
163
|
#
|
164
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
164
|
+
# @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)
|
165
165
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
166
166
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
167
167
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
168
168
|
#
|
169
169
|
# @param filter [::String]
|
170
|
-
# 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
|
170
|
+
# 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.
|
171
171
|
# @param include_all_scopes [::Boolean]
|
172
172
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
173
173
|
# @param max_results [::Integer]
|
@@ -180,6 +180,7 @@ module Google
|
|
180
180
|
# Project ID for this request.
|
181
181
|
# @param return_partial_success [::Boolean]
|
182
182
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
183
|
+
# @param service_project_number [::Integer]
|
183
184
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
184
185
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTypesScopedList>]
|
185
186
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -187,6 +188,22 @@ module Google
|
|
187
188
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTypesScopedList>]
|
188
189
|
#
|
189
190
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
191
|
+
#
|
192
|
+
# @example Basic example
|
193
|
+
# require "google/cloud/compute/v1"
|
194
|
+
#
|
195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
196
|
+
# client = Google::Cloud::Compute::V1::NodeTypes::Rest::Client.new
|
197
|
+
#
|
198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
199
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNodeTypesRequest.new
|
200
|
+
#
|
201
|
+
# # Call the aggregated_list method.
|
202
|
+
# result = client.aggregated_list request
|
203
|
+
#
|
204
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeTypeAggregatedList.
|
205
|
+
# p result
|
206
|
+
#
|
190
207
|
def aggregated_list request, options = nil
|
191
208
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
209
|
|
@@ -254,6 +271,22 @@ module Google
|
|
254
271
|
# @return [::Google::Cloud::Compute::V1::NodeType]
|
255
272
|
#
|
256
273
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
274
|
+
#
|
275
|
+
# @example Basic example
|
276
|
+
# require "google/cloud/compute/v1"
|
277
|
+
#
|
278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
279
|
+
# client = Google::Cloud::Compute::V1::NodeTypes::Rest::Client.new
|
280
|
+
#
|
281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
282
|
+
# request = Google::Cloud::Compute::V1::GetNodeTypeRequest.new
|
283
|
+
#
|
284
|
+
# # Call the get method.
|
285
|
+
# result = client.get request
|
286
|
+
#
|
287
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeType.
|
288
|
+
# p result
|
289
|
+
#
|
257
290
|
def get request, options = nil
|
258
291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
259
292
|
|
@@ -308,7 +341,7 @@ module Google
|
|
308
341
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
309
342
|
#
|
310
343
|
# @param filter [::String]
|
311
|
-
# 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
|
344
|
+
# 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.
|
312
345
|
# @param max_results [::Integer]
|
313
346
|
# 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`)
|
314
347
|
# @param order_by [::String]
|
@@ -328,6 +361,22 @@ module Google
|
|
328
361
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeType>]
|
329
362
|
#
|
330
363
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
364
|
+
#
|
365
|
+
# @example Basic example
|
366
|
+
# require "google/cloud/compute/v1"
|
367
|
+
#
|
368
|
+
# # Create a client object. The client can be reused for multiple calls.
|
369
|
+
# client = Google::Cloud::Compute::V1::NodeTypes::Rest::Client.new
|
370
|
+
#
|
371
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
372
|
+
# request = Google::Cloud::Compute::V1::ListNodeTypesRequest.new
|
373
|
+
#
|
374
|
+
# # Call the list method.
|
375
|
+
# result = client.list request
|
376
|
+
#
|
377
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeTypeList.
|
378
|
+
# p result
|
379
|
+
#
|
331
380
|
def list request, options = nil
|
332
381
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
333
382
|
|
@@ -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::PacketMirroringsScopedList>]
|
207
208
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -209,6 +210,22 @@ module Google
|
|
209
210
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::PacketMirroringsScopedList>]
|
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::PacketMirrorings::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Compute::V1::AggregatedListPacketMirroringsRequest.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::PacketMirroringAggregatedList.
|
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::PacketMirrorings::Rest::Client.new
|
304
|
+
#
|
305
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
306
|
+
# request = Google::Cloud::Compute::V1::DeletePacketMirroringRequest.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::PacketMirroring]
|
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::PacketMirrorings::Rest::Client.new
|
395
|
+
#
|
396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
397
|
+
# request = Google::Cloud::Compute::V1::GetPacketMirroringRequest.new
|
398
|
+
#
|
399
|
+
# # Call the get method.
|
400
|
+
# result = client.get request
|
401
|
+
#
|
402
|
+
# # The returned object is of type Google::Cloud::Compute::V1::PacketMirroring.
|
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::PacketMirrorings::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::InsertPacketMirroringRequest.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::PacketMirroring>]
|
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::PacketMirrorings::Rest::Client.new
|
578
|
+
#
|
579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
580
|
+
# request = Google::Cloud::Compute::V1::ListPacketMirroringsRequest.new
|
581
|
+
#
|
582
|
+
# # Call the list method.
|
583
|
+
# result = client.list request
|
584
|
+
#
|
585
|
+
# # The returned object is of type Google::Cloud::Compute::V1::PacketMirroringList.
|
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::PacketMirrorings::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Compute::V1::PatchPacketMirroringRequest.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
|
|
@@ -652,6 +749,22 @@ module Google
|
|
652
749
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
653
750
|
#
|
654
751
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
752
|
+
#
|
753
|
+
# @example Basic example
|
754
|
+
# require "google/cloud/compute/v1"
|
755
|
+
#
|
756
|
+
# # Create a client object. The client can be reused for multiple calls.
|
757
|
+
# client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
|
758
|
+
#
|
759
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
760
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsPacketMirroringRequest.new
|
761
|
+
#
|
762
|
+
# # Call the test_iam_permissions method.
|
763
|
+
# result = client.test_iam_permissions request
|
764
|
+
#
|
765
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
766
|
+
# p result
|
767
|
+
#
|
655
768
|
def test_iam_permissions request, options = nil
|
656
769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
657
770
|
|
@@ -211,6 +211,22 @@ module Google
|
|
211
211
|
# @return [::Gapic::GenericLRO::Operation]
|
212
212
|
#
|
213
213
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
214
|
+
#
|
215
|
+
# @example Basic example
|
216
|
+
# require "google/cloud/compute/v1"
|
217
|
+
#
|
218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
219
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
220
|
+
#
|
221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
222
|
+
# request = Google::Cloud::Compute::V1::DisableXpnHostProjectRequest.new
|
223
|
+
#
|
224
|
+
# # Call the disable_xpn_host method.
|
225
|
+
# result = client.disable_xpn_host request
|
226
|
+
#
|
227
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
228
|
+
# p result
|
229
|
+
#
|
214
230
|
def disable_xpn_host request, options = nil
|
215
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
216
232
|
|
@@ -285,6 +301,22 @@ module Google
|
|
285
301
|
# @return [::Gapic::GenericLRO::Operation]
|
286
302
|
#
|
287
303
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
304
|
+
#
|
305
|
+
# @example Basic example
|
306
|
+
# require "google/cloud/compute/v1"
|
307
|
+
#
|
308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
309
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
310
|
+
#
|
311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
312
|
+
# request = Google::Cloud::Compute::V1::DisableXpnResourceProjectRequest.new
|
313
|
+
#
|
314
|
+
# # Call the disable_xpn_resource method.
|
315
|
+
# result = client.disable_xpn_resource request
|
316
|
+
#
|
317
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
318
|
+
# p result
|
319
|
+
#
|
288
320
|
def disable_xpn_resource request, options = nil
|
289
321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
290
322
|
|
@@ -357,6 +389,22 @@ module Google
|
|
357
389
|
# @return [::Gapic::GenericLRO::Operation]
|
358
390
|
#
|
359
391
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
392
|
+
#
|
393
|
+
# @example Basic example
|
394
|
+
# require "google/cloud/compute/v1"
|
395
|
+
#
|
396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
397
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
398
|
+
#
|
399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
400
|
+
# request = Google::Cloud::Compute::V1::EnableXpnHostProjectRequest.new
|
401
|
+
#
|
402
|
+
# # Call the enable_xpn_host method.
|
403
|
+
# result = client.enable_xpn_host request
|
404
|
+
#
|
405
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
406
|
+
# p result
|
407
|
+
#
|
360
408
|
def enable_xpn_host request, options = nil
|
361
409
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
362
410
|
|
@@ -431,6 +479,22 @@ module Google
|
|
431
479
|
# @return [::Gapic::GenericLRO::Operation]
|
432
480
|
#
|
433
481
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
482
|
+
#
|
483
|
+
# @example Basic example
|
484
|
+
# require "google/cloud/compute/v1"
|
485
|
+
#
|
486
|
+
# # Create a client object. The client can be reused for multiple calls.
|
487
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
488
|
+
#
|
489
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
490
|
+
# request = Google::Cloud::Compute::V1::EnableXpnResourceProjectRequest.new
|
491
|
+
#
|
492
|
+
# # Call the enable_xpn_resource method.
|
493
|
+
# result = client.enable_xpn_resource request
|
494
|
+
#
|
495
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
496
|
+
# p result
|
497
|
+
#
|
434
498
|
def enable_xpn_resource request, options = nil
|
435
499
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
436
500
|
|
@@ -501,6 +565,22 @@ module Google
|
|
501
565
|
# @return [::Google::Cloud::Compute::V1::Project]
|
502
566
|
#
|
503
567
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
568
|
+
#
|
569
|
+
# @example Basic example
|
570
|
+
# require "google/cloud/compute/v1"
|
571
|
+
#
|
572
|
+
# # Create a client object. The client can be reused for multiple calls.
|
573
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
574
|
+
#
|
575
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
576
|
+
# request = Google::Cloud::Compute::V1::GetProjectRequest.new
|
577
|
+
#
|
578
|
+
# # Call the get method.
|
579
|
+
# result = client.get request
|
580
|
+
#
|
581
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Project.
|
582
|
+
# p result
|
583
|
+
#
|
504
584
|
def get request, options = nil
|
505
585
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
506
586
|
|
@@ -563,6 +643,22 @@ module Google
|
|
563
643
|
# @return [::Google::Cloud::Compute::V1::Project]
|
564
644
|
#
|
565
645
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
646
|
+
#
|
647
|
+
# @example Basic example
|
648
|
+
# require "google/cloud/compute/v1"
|
649
|
+
#
|
650
|
+
# # Create a client object. The client can be reused for multiple calls.
|
651
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
652
|
+
#
|
653
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
654
|
+
# request = Google::Cloud::Compute::V1::GetXpnHostProjectRequest.new
|
655
|
+
#
|
656
|
+
# # Call the get_xpn_host method.
|
657
|
+
# result = client.get_xpn_host request
|
658
|
+
#
|
659
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Project.
|
660
|
+
# p result
|
661
|
+
#
|
566
662
|
def get_xpn_host request, options = nil
|
567
663
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
568
664
|
|
@@ -617,7 +713,7 @@ module Google
|
|
617
713
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
618
714
|
#
|
619
715
|
# @param filter [::String]
|
620
|
-
# 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
|
716
|
+
# 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.
|
621
717
|
# @param max_results [::Integer]
|
622
718
|
# 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`)
|
623
719
|
# @param order_by [::String]
|
@@ -635,6 +731,22 @@ module Google
|
|
635
731
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::XpnResourceId>]
|
636
732
|
#
|
637
733
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
734
|
+
#
|
735
|
+
# @example Basic example
|
736
|
+
# require "google/cloud/compute/v1"
|
737
|
+
#
|
738
|
+
# # Create a client object. The client can be reused for multiple calls.
|
739
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
740
|
+
#
|
741
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
742
|
+
# request = Google::Cloud::Compute::V1::GetXpnResourcesProjectsRequest.new
|
743
|
+
#
|
744
|
+
# # Call the get_xpn_resources method.
|
745
|
+
# result = client.get_xpn_resources request
|
746
|
+
#
|
747
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ProjectsGetXpnResources.
|
748
|
+
# p result
|
749
|
+
#
|
638
750
|
def get_xpn_resources request, options = nil
|
639
751
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
640
752
|
|
@@ -690,7 +802,7 @@ module Google
|
|
690
802
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
691
803
|
#
|
692
804
|
# @param filter [::String]
|
693
|
-
# 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
|
805
|
+
# 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.
|
694
806
|
# @param max_results [::Integer]
|
695
807
|
# 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`)
|
696
808
|
# @param order_by [::String]
|
@@ -710,6 +822,22 @@ module Google
|
|
710
822
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Project>]
|
711
823
|
#
|
712
824
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
825
|
+
#
|
826
|
+
# @example Basic example
|
827
|
+
# require "google/cloud/compute/v1"
|
828
|
+
#
|
829
|
+
# # Create a client object. The client can be reused for multiple calls.
|
830
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
831
|
+
#
|
832
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
833
|
+
# request = Google::Cloud::Compute::V1::ListXpnHostsProjectsRequest.new
|
834
|
+
#
|
835
|
+
# # Call the list_xpn_hosts method.
|
836
|
+
# result = client.list_xpn_hosts request
|
837
|
+
#
|
838
|
+
# # The returned object is of type Google::Cloud::Compute::V1::XpnHostList.
|
839
|
+
# p result
|
840
|
+
#
|
713
841
|
def list_xpn_hosts request, options = nil
|
714
842
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
715
843
|
|
@@ -777,6 +905,22 @@ module Google
|
|
777
905
|
# @return [::Gapic::GenericLRO::Operation]
|
778
906
|
#
|
779
907
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
908
|
+
#
|
909
|
+
# @example Basic example
|
910
|
+
# require "google/cloud/compute/v1"
|
911
|
+
#
|
912
|
+
# # Create a client object. The client can be reused for multiple calls.
|
913
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
914
|
+
#
|
915
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
916
|
+
# request = Google::Cloud::Compute::V1::MoveDiskProjectRequest.new
|
917
|
+
#
|
918
|
+
# # Call the move_disk method.
|
919
|
+
# result = client.move_disk request
|
920
|
+
#
|
921
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
922
|
+
# p result
|
923
|
+
#
|
780
924
|
def move_disk request, options = nil
|
781
925
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
782
926
|
|
@@ -851,6 +995,22 @@ module Google
|
|
851
995
|
# @return [::Gapic::GenericLRO::Operation]
|
852
996
|
#
|
853
997
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
998
|
+
#
|
999
|
+
# @example Basic example
|
1000
|
+
# require "google/cloud/compute/v1"
|
1001
|
+
#
|
1002
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1003
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
1004
|
+
#
|
1005
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1006
|
+
# request = Google::Cloud::Compute::V1::MoveInstanceProjectRequest.new
|
1007
|
+
#
|
1008
|
+
# # Call the move_instance method.
|
1009
|
+
# result = client.move_instance request
|
1010
|
+
#
|
1011
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1012
|
+
# p result
|
1013
|
+
#
|
854
1014
|
def move_instance request, options = nil
|
855
1015
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
856
1016
|
|
@@ -925,6 +1085,22 @@ module Google
|
|
925
1085
|
# @return [::Gapic::GenericLRO::Operation]
|
926
1086
|
#
|
927
1087
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1088
|
+
#
|
1089
|
+
# @example Basic example
|
1090
|
+
# require "google/cloud/compute/v1"
|
1091
|
+
#
|
1092
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1093
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
1094
|
+
#
|
1095
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1096
|
+
# request = Google::Cloud::Compute::V1::SetCommonInstanceMetadataProjectRequest.new
|
1097
|
+
#
|
1098
|
+
# # Call the set_common_instance_metadata method.
|
1099
|
+
# result = client.set_common_instance_metadata request
|
1100
|
+
#
|
1101
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1102
|
+
# p result
|
1103
|
+
#
|
928
1104
|
def set_common_instance_metadata request, options = nil
|
929
1105
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
930
1106
|
|
@@ -999,6 +1175,22 @@ module Google
|
|
999
1175
|
# @return [::Gapic::GenericLRO::Operation]
|
1000
1176
|
#
|
1001
1177
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1178
|
+
#
|
1179
|
+
# @example Basic example
|
1180
|
+
# require "google/cloud/compute/v1"
|
1181
|
+
#
|
1182
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1183
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
1184
|
+
#
|
1185
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1186
|
+
# request = Google::Cloud::Compute::V1::SetDefaultNetworkTierProjectRequest.new
|
1187
|
+
#
|
1188
|
+
# # Call the set_default_network_tier method.
|
1189
|
+
# result = client.set_default_network_tier request
|
1190
|
+
#
|
1191
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1192
|
+
# p result
|
1193
|
+
#
|
1002
1194
|
def set_default_network_tier request, options = nil
|
1003
1195
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1004
1196
|
|
@@ -1073,6 +1265,22 @@ module Google
|
|
1073
1265
|
# @return [::Gapic::GenericLRO::Operation]
|
1074
1266
|
#
|
1075
1267
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1268
|
+
#
|
1269
|
+
# @example Basic example
|
1270
|
+
# require "google/cloud/compute/v1"
|
1271
|
+
#
|
1272
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1273
|
+
# client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
|
1274
|
+
#
|
1275
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1276
|
+
# request = Google::Cloud::Compute::V1::SetUsageExportBucketProjectRequest.new
|
1277
|
+
#
|
1278
|
+
# # Call the set_usage_export_bucket method.
|
1279
|
+
# result = client.set_usage_export_bucket request
|
1280
|
+
#
|
1281
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1282
|
+
# p result
|
1283
|
+
#
|
1076
1284
|
def set_usage_export_bucket request, options = nil
|
1077
1285
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1078
1286
|
|