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
@@ -186,13 +186,13 @@ module Google
|
|
186
186
|
# @param options [::Gapic::CallOptions, ::Hash]
|
187
187
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
188
188
|
#
|
189
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
189
|
+
# @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)
|
190
190
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
191
191
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
192
192
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
193
193
|
#
|
194
194
|
# @param filter [::String]
|
195
|
-
# 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
|
195
|
+
# 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.
|
196
196
|
# @param include_all_scopes [::Boolean]
|
197
197
|
# 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.
|
198
198
|
# @param max_results [::Integer]
|
@@ -205,6 +205,7 @@ module Google
|
|
205
205
|
# Name of the project scoping this request.
|
206
206
|
# @param return_partial_success [::Boolean]
|
207
207
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
208
|
+
# @param service_project_number [::Integer]
|
208
209
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
209
210
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SslPoliciesScopedList>]
|
210
211
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -212,6 +213,22 @@ module Google
|
|
212
213
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SslPoliciesScopedList>]
|
213
214
|
#
|
214
215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
216
|
+
#
|
217
|
+
# @example Basic example
|
218
|
+
# require "google/cloud/compute/v1"
|
219
|
+
#
|
220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
221
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
222
|
+
#
|
223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
224
|
+
# request = Google::Cloud::Compute::V1::AggregatedListSslPoliciesRequest.new
|
225
|
+
#
|
226
|
+
# # Call the aggregated_list method.
|
227
|
+
# result = client.aggregated_list request
|
228
|
+
#
|
229
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesAggregatedList.
|
230
|
+
# p result
|
231
|
+
#
|
215
232
|
def aggregated_list request, options = nil
|
216
233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
217
234
|
|
@@ -279,6 +296,22 @@ module Google
|
|
279
296
|
# @return [::Gapic::GenericLRO::Operation]
|
280
297
|
#
|
281
298
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
299
|
+
#
|
300
|
+
# @example Basic example
|
301
|
+
# require "google/cloud/compute/v1"
|
302
|
+
#
|
303
|
+
# # Create a client object. The client can be reused for multiple calls.
|
304
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
305
|
+
#
|
306
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
307
|
+
# request = Google::Cloud::Compute::V1::DeleteSslPolicyRequest.new
|
308
|
+
#
|
309
|
+
# # Call the delete method.
|
310
|
+
# result = client.delete request
|
311
|
+
#
|
312
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
313
|
+
# p result
|
314
|
+
#
|
282
315
|
def delete request, options = nil
|
283
316
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
284
317
|
|
@@ -351,6 +384,22 @@ module Google
|
|
351
384
|
# @return [::Google::Cloud::Compute::V1::SslPolicy]
|
352
385
|
#
|
353
386
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
|
+
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/compute/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::Compute::V1::GetSslPolicyRequest.new
|
396
|
+
#
|
397
|
+
# # Call the get method.
|
398
|
+
# result = client.get request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPolicy.
|
401
|
+
# p result
|
402
|
+
#
|
354
403
|
def get request, options = nil
|
355
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
356
405
|
|
@@ -417,6 +466,22 @@ module Google
|
|
417
466
|
# @return [::Gapic::GenericLRO::Operation]
|
418
467
|
#
|
419
468
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
469
|
+
#
|
470
|
+
# @example Basic example
|
471
|
+
# require "google/cloud/compute/v1"
|
472
|
+
#
|
473
|
+
# # Create a client object. The client can be reused for multiple calls.
|
474
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
475
|
+
#
|
476
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
477
|
+
# request = Google::Cloud::Compute::V1::InsertSslPolicyRequest.new
|
478
|
+
#
|
479
|
+
# # Call the insert method.
|
480
|
+
# result = client.insert request
|
481
|
+
#
|
482
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
483
|
+
# p result
|
484
|
+
#
|
420
485
|
def insert request, options = nil
|
421
486
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
487
|
|
@@ -479,7 +544,7 @@ module Google
|
|
479
544
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
480
545
|
#
|
481
546
|
# @param filter [::String]
|
482
|
-
# 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
|
547
|
+
# 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.
|
483
548
|
# @param max_results [::Integer]
|
484
549
|
# 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`)
|
485
550
|
# @param order_by [::String]
|
@@ -497,6 +562,22 @@ module Google
|
|
497
562
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslPolicy>]
|
498
563
|
#
|
499
564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
565
|
+
#
|
566
|
+
# @example Basic example
|
567
|
+
# require "google/cloud/compute/v1"
|
568
|
+
#
|
569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
570
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
571
|
+
#
|
572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
573
|
+
# request = Google::Cloud::Compute::V1::ListSslPoliciesRequest.new
|
574
|
+
#
|
575
|
+
# # Call the list method.
|
576
|
+
# result = client.list request
|
577
|
+
#
|
578
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesList.
|
579
|
+
# p result
|
580
|
+
#
|
500
581
|
def list request, options = nil
|
501
582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
502
583
|
|
@@ -552,7 +633,7 @@ module Google
|
|
552
633
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
553
634
|
#
|
554
635
|
# @param filter [::String]
|
555
|
-
# 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
|
636
|
+
# 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.
|
556
637
|
# @param max_results [::Integer]
|
557
638
|
# 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`)
|
558
639
|
# @param order_by [::String]
|
@@ -570,6 +651,22 @@ module Google
|
|
570
651
|
# @return [::Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse]
|
571
652
|
#
|
572
653
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
654
|
+
#
|
655
|
+
# @example Basic example
|
656
|
+
# require "google/cloud/compute/v1"
|
657
|
+
#
|
658
|
+
# # Create a client object. The client can be reused for multiple calls.
|
659
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
660
|
+
#
|
661
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
662
|
+
# request = Google::Cloud::Compute::V1::ListAvailableFeaturesSslPoliciesRequest.new
|
663
|
+
#
|
664
|
+
# # Call the list_available_features method.
|
665
|
+
# result = client.list_available_features request
|
666
|
+
#
|
667
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse.
|
668
|
+
# p result
|
669
|
+
#
|
573
670
|
def list_available_features request, options = nil
|
574
671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
575
672
|
|
@@ -638,6 +735,22 @@ module Google
|
|
638
735
|
# @return [::Gapic::GenericLRO::Operation]
|
639
736
|
#
|
640
737
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
738
|
+
#
|
739
|
+
# @example Basic example
|
740
|
+
# require "google/cloud/compute/v1"
|
741
|
+
#
|
742
|
+
# # Create a client object. The client can be reused for multiple calls.
|
743
|
+
# client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
|
744
|
+
#
|
745
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
746
|
+
# request = Google::Cloud::Compute::V1::PatchSslPolicyRequest.new
|
747
|
+
#
|
748
|
+
# # Call the patch method.
|
749
|
+
# result = client.patch request
|
750
|
+
#
|
751
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
752
|
+
# p result
|
753
|
+
#
|
641
754
|
def patch request, options = nil
|
642
755
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
643
756
|
|
@@ -199,13 +199,13 @@ module Google
|
|
199
199
|
# @param options [::Gapic::CallOptions, ::Hash]
|
200
200
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
201
201
|
#
|
202
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
202
|
+
# @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)
|
203
203
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
204
204
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
205
205
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
206
206
|
#
|
207
207
|
# @param filter [::String]
|
208
|
-
# 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
|
208
|
+
# 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.
|
209
209
|
# @param include_all_scopes [::Boolean]
|
210
210
|
# 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.
|
211
211
|
# @param max_results [::Integer]
|
@@ -218,6 +218,7 @@ module Google
|
|
218
218
|
# Project ID for this request.
|
219
219
|
# @param return_partial_success [::Boolean]
|
220
220
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
221
|
+
# @param service_project_number [::Integer]
|
221
222
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
222
223
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SubnetworksScopedList>]
|
223
224
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -225,6 +226,22 @@ module Google
|
|
225
226
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SubnetworksScopedList>]
|
226
227
|
#
|
227
228
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
229
|
+
#
|
230
|
+
# @example Basic example
|
231
|
+
# require "google/cloud/compute/v1"
|
232
|
+
#
|
233
|
+
# # Create a client object. The client can be reused for multiple calls.
|
234
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
235
|
+
#
|
236
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
237
|
+
# request = Google::Cloud::Compute::V1::AggregatedListSubnetworksRequest.new
|
238
|
+
#
|
239
|
+
# # Call the aggregated_list method.
|
240
|
+
# result = client.aggregated_list request
|
241
|
+
#
|
242
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SubnetworkAggregatedList.
|
243
|
+
# p result
|
244
|
+
#
|
228
245
|
def aggregated_list request, options = nil
|
229
246
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
230
247
|
|
@@ -294,6 +311,22 @@ module Google
|
|
294
311
|
# @return [::Gapic::GenericLRO::Operation]
|
295
312
|
#
|
296
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/cloud/compute/v1"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Cloud::Compute::V1::DeleteSubnetworkRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete method.
|
325
|
+
# result = client.delete request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
328
|
+
# p result
|
329
|
+
#
|
297
330
|
def delete request, options = nil
|
298
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
299
332
|
|
@@ -373,6 +406,22 @@ module Google
|
|
373
406
|
# @return [::Gapic::GenericLRO::Operation]
|
374
407
|
#
|
375
408
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
409
|
+
#
|
410
|
+
# @example Basic example
|
411
|
+
# require "google/cloud/compute/v1"
|
412
|
+
#
|
413
|
+
# # Create a client object. The client can be reused for multiple calls.
|
414
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
415
|
+
#
|
416
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
417
|
+
# request = Google::Cloud::Compute::V1::ExpandIpCidrRangeSubnetworkRequest.new
|
418
|
+
#
|
419
|
+
# # Call the expand_ip_cidr_range method.
|
420
|
+
# result = client.expand_ip_cidr_range request
|
421
|
+
#
|
422
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
423
|
+
# p result
|
424
|
+
#
|
376
425
|
def expand_ip_cidr_range request, options = nil
|
377
426
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
378
427
|
|
@@ -448,6 +497,22 @@ module Google
|
|
448
497
|
# @return [::Google::Cloud::Compute::V1::Subnetwork]
|
449
498
|
#
|
450
499
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
500
|
+
#
|
501
|
+
# @example Basic example
|
502
|
+
# require "google/cloud/compute/v1"
|
503
|
+
#
|
504
|
+
# # Create a client object. The client can be reused for multiple calls.
|
505
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
506
|
+
#
|
507
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
508
|
+
# request = Google::Cloud::Compute::V1::GetSubnetworkRequest.new
|
509
|
+
#
|
510
|
+
# # Call the get method.
|
511
|
+
# result = client.get request
|
512
|
+
#
|
513
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Subnetwork.
|
514
|
+
# p result
|
515
|
+
#
|
451
516
|
def get request, options = nil
|
452
517
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
453
518
|
|
@@ -516,6 +581,22 @@ module Google
|
|
516
581
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
517
582
|
#
|
518
583
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
584
|
+
#
|
585
|
+
# @example Basic example
|
586
|
+
# require "google/cloud/compute/v1"
|
587
|
+
#
|
588
|
+
# # Create a client object. The client can be reused for multiple calls.
|
589
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
590
|
+
#
|
591
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
592
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicySubnetworkRequest.new
|
593
|
+
#
|
594
|
+
# # Call the get_iam_policy method.
|
595
|
+
# result = client.get_iam_policy request
|
596
|
+
#
|
597
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
598
|
+
# p result
|
599
|
+
#
|
519
600
|
def get_iam_policy request, options = nil
|
520
601
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
521
602
|
|
@@ -584,6 +665,22 @@ module Google
|
|
584
665
|
# @return [::Gapic::GenericLRO::Operation]
|
585
666
|
#
|
586
667
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
668
|
+
#
|
669
|
+
# @example Basic example
|
670
|
+
# require "google/cloud/compute/v1"
|
671
|
+
#
|
672
|
+
# # Create a client object. The client can be reused for multiple calls.
|
673
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
674
|
+
#
|
675
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
676
|
+
# request = Google::Cloud::Compute::V1::InsertSubnetworkRequest.new
|
677
|
+
#
|
678
|
+
# # Call the insert method.
|
679
|
+
# result = client.insert request
|
680
|
+
#
|
681
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
682
|
+
# p result
|
683
|
+
#
|
587
684
|
def insert request, options = nil
|
588
685
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
589
686
|
|
@@ -647,7 +744,7 @@ module Google
|
|
647
744
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
648
745
|
#
|
649
746
|
# @param filter [::String]
|
650
|
-
# 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
|
747
|
+
# 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.
|
651
748
|
# @param max_results [::Integer]
|
652
749
|
# 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`)
|
653
750
|
# @param order_by [::String]
|
@@ -667,6 +764,22 @@ module Google
|
|
667
764
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Subnetwork>]
|
668
765
|
#
|
669
766
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
767
|
+
#
|
768
|
+
# @example Basic example
|
769
|
+
# require "google/cloud/compute/v1"
|
770
|
+
#
|
771
|
+
# # Create a client object. The client can be reused for multiple calls.
|
772
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
773
|
+
#
|
774
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
775
|
+
# request = Google::Cloud::Compute::V1::ListSubnetworksRequest.new
|
776
|
+
#
|
777
|
+
# # Call the list method.
|
778
|
+
# result = client.list request
|
779
|
+
#
|
780
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SubnetworkList.
|
781
|
+
# p result
|
782
|
+
#
|
670
783
|
def list request, options = nil
|
671
784
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
672
785
|
|
@@ -722,7 +835,7 @@ module Google
|
|
722
835
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
723
836
|
#
|
724
837
|
# @param filter [::String]
|
725
|
-
# 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
|
838
|
+
# 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.
|
726
839
|
# @param max_results [::Integer]
|
727
840
|
# 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`)
|
728
841
|
# @param order_by [::String]
|
@@ -740,6 +853,22 @@ module Google
|
|
740
853
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UsableSubnetwork>]
|
741
854
|
#
|
742
855
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
856
|
+
#
|
857
|
+
# @example Basic example
|
858
|
+
# require "google/cloud/compute/v1"
|
859
|
+
#
|
860
|
+
# # Create a client object. The client can be reused for multiple calls.
|
861
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
862
|
+
#
|
863
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
864
|
+
# request = Google::Cloud::Compute::V1::ListUsableSubnetworksRequest.new
|
865
|
+
#
|
866
|
+
# # Call the list_usable method.
|
867
|
+
# result = client.list_usable request
|
868
|
+
#
|
869
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UsableSubnetworksAggregatedList.
|
870
|
+
# p result
|
871
|
+
#
|
743
872
|
def list_usable request, options = nil
|
744
873
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
745
874
|
|
@@ -813,6 +942,22 @@ module Google
|
|
813
942
|
# @return [::Gapic::GenericLRO::Operation]
|
814
943
|
#
|
815
944
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
945
|
+
#
|
946
|
+
# @example Basic example
|
947
|
+
# require "google/cloud/compute/v1"
|
948
|
+
#
|
949
|
+
# # Create a client object. The client can be reused for multiple calls.
|
950
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
951
|
+
#
|
952
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
953
|
+
# request = Google::Cloud::Compute::V1::PatchSubnetworkRequest.new
|
954
|
+
#
|
955
|
+
# # Call the patch method.
|
956
|
+
# result = client.patch request
|
957
|
+
#
|
958
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
959
|
+
# p result
|
960
|
+
#
|
816
961
|
def patch request, options = nil
|
817
962
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
818
963
|
|
@@ -890,6 +1035,22 @@ module Google
|
|
890
1035
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
891
1036
|
#
|
892
1037
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1038
|
+
#
|
1039
|
+
# @example Basic example
|
1040
|
+
# require "google/cloud/compute/v1"
|
1041
|
+
#
|
1042
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1043
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
1044
|
+
#
|
1045
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1046
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicySubnetworkRequest.new
|
1047
|
+
#
|
1048
|
+
# # Call the set_iam_policy method.
|
1049
|
+
# result = client.set_iam_policy request
|
1050
|
+
#
|
1051
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1052
|
+
# p result
|
1053
|
+
#
|
893
1054
|
def set_iam_policy request, options = nil
|
894
1055
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
895
1056
|
|
@@ -960,6 +1121,22 @@ module Google
|
|
960
1121
|
# @return [::Gapic::GenericLRO::Operation]
|
961
1122
|
#
|
962
1123
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1124
|
+
#
|
1125
|
+
# @example Basic example
|
1126
|
+
# require "google/cloud/compute/v1"
|
1127
|
+
#
|
1128
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1129
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
1130
|
+
#
|
1131
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1132
|
+
# request = Google::Cloud::Compute::V1::SetPrivateIpGoogleAccessSubnetworkRequest.new
|
1133
|
+
#
|
1134
|
+
# # Call the set_private_ip_google_access method.
|
1135
|
+
# result = client.set_private_ip_google_access request
|
1136
|
+
#
|
1137
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1138
|
+
# p result
|
1139
|
+
#
|
963
1140
|
def set_private_ip_google_access request, options = nil
|
964
1141
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
965
1142
|
|
@@ -1037,6 +1214,22 @@ module Google
|
|
1037
1214
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1038
1215
|
#
|
1039
1216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1217
|
+
#
|
1218
|
+
# @example Basic example
|
1219
|
+
# require "google/cloud/compute/v1"
|
1220
|
+
#
|
1221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1222
|
+
# client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
|
1223
|
+
#
|
1224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1225
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsSubnetworkRequest.new
|
1226
|
+
#
|
1227
|
+
# # Call the test_iam_permissions method.
|
1228
|
+
# result = client.test_iam_permissions request
|
1229
|
+
#
|
1230
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
1231
|
+
# p result
|
1232
|
+
#
|
1040
1233
|
def test_iam_permissions request, options = nil
|
1041
1234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1042
1235
|
|