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
@@ -192,13 +192,13 @@ module Google
|
|
192
192
|
# @param options [::Gapic::CallOptions, ::Hash]
|
193
193
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
194
194
|
#
|
195
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
195
|
+
# @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)
|
196
196
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
197
197
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
198
198
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
199
199
|
#
|
200
200
|
# @param filter [::String]
|
201
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
201
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. 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.
|
202
202
|
# @param include_all_scopes [::Boolean]
|
203
203
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
204
204
|
# @param max_results [::Integer]
|
@@ -211,6 +211,7 @@ module Google
|
|
211
211
|
# Project ID for this request.
|
212
212
|
# @param return_partial_success [::Boolean]
|
213
213
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
214
|
+
# @param service_project_number [::Integer]
|
214
215
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
215
216
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ReservationsScopedList>]
|
216
217
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -218,6 +219,22 @@ module Google
|
|
218
219
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ReservationsScopedList>]
|
219
220
|
#
|
220
221
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
222
|
+
#
|
223
|
+
# @example Basic example
|
224
|
+
# require "google/cloud/compute/v1"
|
225
|
+
#
|
226
|
+
# # Create a client object. The client can be reused for multiple calls.
|
227
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
228
|
+
#
|
229
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
230
|
+
# request = Google::Cloud::Compute::V1::AggregatedListReservationsRequest.new
|
231
|
+
#
|
232
|
+
# # Call the aggregated_list method.
|
233
|
+
# result = client.aggregated_list request
|
234
|
+
#
|
235
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ReservationAggregatedList.
|
236
|
+
# p result
|
237
|
+
#
|
221
238
|
def aggregated_list request, options = nil
|
222
239
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
223
240
|
|
@@ -287,6 +304,22 @@ module Google
|
|
287
304
|
# @return [::Gapic::GenericLRO::Operation]
|
288
305
|
#
|
289
306
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
307
|
+
#
|
308
|
+
# @example Basic example
|
309
|
+
# require "google/cloud/compute/v1"
|
310
|
+
#
|
311
|
+
# # Create a client object. The client can be reused for multiple calls.
|
312
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
313
|
+
#
|
314
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
315
|
+
# request = Google::Cloud::Compute::V1::DeleteReservationRequest.new
|
316
|
+
#
|
317
|
+
# # Call the delete method.
|
318
|
+
# result = client.delete request
|
319
|
+
#
|
320
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
321
|
+
# p result
|
322
|
+
#
|
290
323
|
def delete request, options = nil
|
291
324
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
325
|
|
@@ -362,6 +395,22 @@ module Google
|
|
362
395
|
# @return [::Google::Cloud::Compute::V1::Reservation]
|
363
396
|
#
|
364
397
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
398
|
+
#
|
399
|
+
# @example Basic example
|
400
|
+
# require "google/cloud/compute/v1"
|
401
|
+
#
|
402
|
+
# # Create a client object. The client can be reused for multiple calls.
|
403
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
404
|
+
#
|
405
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
406
|
+
# request = Google::Cloud::Compute::V1::GetReservationRequest.new
|
407
|
+
#
|
408
|
+
# # Call the get method.
|
409
|
+
# result = client.get request
|
410
|
+
#
|
411
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Reservation.
|
412
|
+
# p result
|
413
|
+
#
|
365
414
|
def get request, options = nil
|
366
415
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
367
416
|
|
@@ -430,6 +479,22 @@ module Google
|
|
430
479
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
431
480
|
#
|
432
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::Reservations::Rest::Client.new
|
488
|
+
#
|
489
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
490
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyReservationRequest.new
|
491
|
+
#
|
492
|
+
# # Call the get_iam_policy method.
|
493
|
+
# result = client.get_iam_policy request
|
494
|
+
#
|
495
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
496
|
+
# p result
|
497
|
+
#
|
433
498
|
def get_iam_policy request, options = nil
|
434
499
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
435
500
|
|
@@ -498,6 +563,22 @@ module Google
|
|
498
563
|
# @return [::Gapic::GenericLRO::Operation]
|
499
564
|
#
|
500
565
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
566
|
+
#
|
567
|
+
# @example Basic example
|
568
|
+
# require "google/cloud/compute/v1"
|
569
|
+
#
|
570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
571
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
572
|
+
#
|
573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
574
|
+
# request = Google::Cloud::Compute::V1::InsertReservationRequest.new
|
575
|
+
#
|
576
|
+
# # Call the insert method.
|
577
|
+
# result = client.insert request
|
578
|
+
#
|
579
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
580
|
+
# p result
|
581
|
+
#
|
501
582
|
def insert request, options = nil
|
502
583
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
503
584
|
|
@@ -561,7 +642,7 @@ module Google
|
|
561
642
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
562
643
|
#
|
563
644
|
# @param filter [::String]
|
564
|
-
# 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
|
645
|
+
# 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.
|
565
646
|
# @param max_results [::Integer]
|
566
647
|
# 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`)
|
567
648
|
# @param order_by [::String]
|
@@ -581,6 +662,22 @@ module Google
|
|
581
662
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Reservation>]
|
582
663
|
#
|
583
664
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
665
|
+
#
|
666
|
+
# @example Basic example
|
667
|
+
# require "google/cloud/compute/v1"
|
668
|
+
#
|
669
|
+
# # Create a client object. The client can be reused for multiple calls.
|
670
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
671
|
+
#
|
672
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
673
|
+
# request = Google::Cloud::Compute::V1::ListReservationsRequest.new
|
674
|
+
#
|
675
|
+
# # Call the list method.
|
676
|
+
# result = client.list request
|
677
|
+
#
|
678
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ReservationList.
|
679
|
+
# p result
|
680
|
+
#
|
584
681
|
def list request, options = nil
|
585
682
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
586
683
|
|
@@ -652,6 +749,22 @@ module Google
|
|
652
749
|
# @return [::Gapic::GenericLRO::Operation]
|
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::Reservations::Rest::Client.new
|
758
|
+
#
|
759
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
760
|
+
# request = Google::Cloud::Compute::V1::ResizeReservationRequest.new
|
761
|
+
#
|
762
|
+
# # Call the resize method.
|
763
|
+
# result = client.resize request
|
764
|
+
#
|
765
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
766
|
+
# p result
|
767
|
+
#
|
655
768
|
def resize request, options = nil
|
656
769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
657
770
|
|
@@ -729,6 +842,22 @@ module Google
|
|
729
842
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
730
843
|
#
|
731
844
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
845
|
+
#
|
846
|
+
# @example Basic example
|
847
|
+
# require "google/cloud/compute/v1"
|
848
|
+
#
|
849
|
+
# # Create a client object. The client can be reused for multiple calls.
|
850
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
851
|
+
#
|
852
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
853
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyReservationRequest.new
|
854
|
+
#
|
855
|
+
# # Call the set_iam_policy method.
|
856
|
+
# result = client.set_iam_policy request
|
857
|
+
#
|
858
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
859
|
+
# p result
|
860
|
+
#
|
732
861
|
def set_iam_policy request, options = nil
|
733
862
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
734
863
|
|
@@ -797,6 +926,22 @@ module Google
|
|
797
926
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
798
927
|
#
|
799
928
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
929
|
+
#
|
930
|
+
# @example Basic example
|
931
|
+
# require "google/cloud/compute/v1"
|
932
|
+
#
|
933
|
+
# # Create a client object. The client can be reused for multiple calls.
|
934
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
935
|
+
#
|
936
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
937
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsReservationRequest.new
|
938
|
+
#
|
939
|
+
# # Call the test_iam_permissions method.
|
940
|
+
# result = client.test_iam_permissions request
|
941
|
+
#
|
942
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
943
|
+
# p result
|
944
|
+
#
|
800
945
|
def test_iam_permissions request, options = nil
|
801
946
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
802
947
|
|
@@ -870,6 +1015,22 @@ module Google
|
|
870
1015
|
# @return [::Gapic::GenericLRO::Operation]
|
871
1016
|
#
|
872
1017
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1018
|
+
#
|
1019
|
+
# @example Basic example
|
1020
|
+
# require "google/cloud/compute/v1"
|
1021
|
+
#
|
1022
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1023
|
+
# client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
|
1024
|
+
#
|
1025
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1026
|
+
# request = Google::Cloud::Compute::V1::UpdateReservationRequest.new
|
1027
|
+
#
|
1028
|
+
# # Call the update method.
|
1029
|
+
# result = client.update request
|
1030
|
+
#
|
1031
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1032
|
+
# p result
|
1033
|
+
#
|
873
1034
|
def update request, options = nil
|
874
1035
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
875
1036
|
|
@@ -190,13 +190,13 @@ module Google
|
|
190
190
|
# @param options [::Gapic::CallOptions, ::Hash]
|
191
191
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
192
192
|
#
|
193
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
193
|
+
# @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)
|
194
194
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
195
195
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
196
196
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
197
197
|
#
|
198
198
|
# @param filter [::String]
|
199
|
-
# 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
|
199
|
+
# 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.
|
200
200
|
# @param include_all_scopes [::Boolean]
|
201
201
|
# 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.
|
202
202
|
# @param max_results [::Integer]
|
@@ -209,6 +209,7 @@ module Google
|
|
209
209
|
# Project ID for this request.
|
210
210
|
# @param return_partial_success [::Boolean]
|
211
211
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
212
|
+
# @param service_project_number [::Integer]
|
212
213
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
213
214
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ResourcePoliciesScopedList>]
|
214
215
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -216,6 +217,22 @@ module Google
|
|
216
217
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ResourcePoliciesScopedList>]
|
217
218
|
#
|
218
219
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
220
|
+
#
|
221
|
+
# @example Basic example
|
222
|
+
# require "google/cloud/compute/v1"
|
223
|
+
#
|
224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
225
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
226
|
+
#
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
228
|
+
# request = Google::Cloud::Compute::V1::AggregatedListResourcePoliciesRequest.new
|
229
|
+
#
|
230
|
+
# # Call the aggregated_list method.
|
231
|
+
# result = client.aggregated_list request
|
232
|
+
#
|
233
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ResourcePolicyAggregatedList.
|
234
|
+
# p result
|
235
|
+
#
|
219
236
|
def aggregated_list request, options = nil
|
220
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
238
|
|
@@ -285,6 +302,22 @@ module Google
|
|
285
302
|
# @return [::Gapic::GenericLRO::Operation]
|
286
303
|
#
|
287
304
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
305
|
+
#
|
306
|
+
# @example Basic example
|
307
|
+
# require "google/cloud/compute/v1"
|
308
|
+
#
|
309
|
+
# # Create a client object. The client can be reused for multiple calls.
|
310
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
311
|
+
#
|
312
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
313
|
+
# request = Google::Cloud::Compute::V1::DeleteResourcePolicyRequest.new
|
314
|
+
#
|
315
|
+
# # Call the delete method.
|
316
|
+
# result = client.delete request
|
317
|
+
#
|
318
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
319
|
+
# p result
|
320
|
+
#
|
288
321
|
def delete request, options = nil
|
289
322
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
290
323
|
|
@@ -360,6 +393,22 @@ module Google
|
|
360
393
|
# @return [::Google::Cloud::Compute::V1::ResourcePolicy]
|
361
394
|
#
|
362
395
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
396
|
+
#
|
397
|
+
# @example Basic example
|
398
|
+
# require "google/cloud/compute/v1"
|
399
|
+
#
|
400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
401
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
402
|
+
#
|
403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
404
|
+
# request = Google::Cloud::Compute::V1::GetResourcePolicyRequest.new
|
405
|
+
#
|
406
|
+
# # Call the get method.
|
407
|
+
# result = client.get request
|
408
|
+
#
|
409
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ResourcePolicy.
|
410
|
+
# p result
|
411
|
+
#
|
363
412
|
def get request, options = nil
|
364
413
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
365
414
|
|
@@ -428,6 +477,22 @@ module Google
|
|
428
477
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
429
478
|
#
|
430
479
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
480
|
+
#
|
481
|
+
# @example Basic example
|
482
|
+
# require "google/cloud/compute/v1"
|
483
|
+
#
|
484
|
+
# # Create a client object. The client can be reused for multiple calls.
|
485
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
486
|
+
#
|
487
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
488
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyResourcePolicyRequest.new
|
489
|
+
#
|
490
|
+
# # Call the get_iam_policy method.
|
491
|
+
# result = client.get_iam_policy request
|
492
|
+
#
|
493
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
494
|
+
# p result
|
495
|
+
#
|
431
496
|
def get_iam_policy request, options = nil
|
432
497
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
433
498
|
|
@@ -496,6 +561,22 @@ module Google
|
|
496
561
|
# @return [::Gapic::GenericLRO::Operation]
|
497
562
|
#
|
498
563
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
564
|
+
#
|
565
|
+
# @example Basic example
|
566
|
+
# require "google/cloud/compute/v1"
|
567
|
+
#
|
568
|
+
# # Create a client object. The client can be reused for multiple calls.
|
569
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
570
|
+
#
|
571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
572
|
+
# request = Google::Cloud::Compute::V1::InsertResourcePolicyRequest.new
|
573
|
+
#
|
574
|
+
# # Call the insert method.
|
575
|
+
# result = client.insert request
|
576
|
+
#
|
577
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
578
|
+
# p result
|
579
|
+
#
|
499
580
|
def insert request, options = nil
|
500
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
501
582
|
|
@@ -559,7 +640,7 @@ module Google
|
|
559
640
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
560
641
|
#
|
561
642
|
# @param filter [::String]
|
562
|
-
# 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
|
643
|
+
# 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.
|
563
644
|
# @param max_results [::Integer]
|
564
645
|
# 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`)
|
565
646
|
# @param order_by [::String]
|
@@ -579,6 +660,22 @@ module Google
|
|
579
660
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ResourcePolicy>]
|
580
661
|
#
|
581
662
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
663
|
+
#
|
664
|
+
# @example Basic example
|
665
|
+
# require "google/cloud/compute/v1"
|
666
|
+
#
|
667
|
+
# # Create a client object. The client can be reused for multiple calls.
|
668
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
669
|
+
#
|
670
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
671
|
+
# request = Google::Cloud::Compute::V1::ListResourcePoliciesRequest.new
|
672
|
+
#
|
673
|
+
# # Call the list method.
|
674
|
+
# result = client.list request
|
675
|
+
#
|
676
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ResourcePolicyList.
|
677
|
+
# p result
|
678
|
+
#
|
582
679
|
def list request, options = nil
|
583
680
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
584
681
|
|
@@ -652,6 +749,22 @@ module Google
|
|
652
749
|
# @return [::Gapic::GenericLRO::Operation]
|
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::ResourcePolicies::Rest::Client.new
|
758
|
+
#
|
759
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
760
|
+
# request = Google::Cloud::Compute::V1::PatchResourcePolicyRequest.new
|
761
|
+
#
|
762
|
+
# # Call the patch method.
|
763
|
+
# result = client.patch request
|
764
|
+
#
|
765
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
766
|
+
# p result
|
767
|
+
#
|
655
768
|
def patch request, options = nil
|
656
769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
657
770
|
|
@@ -729,6 +842,22 @@ module Google
|
|
729
842
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
730
843
|
#
|
731
844
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
845
|
+
#
|
846
|
+
# @example Basic example
|
847
|
+
# require "google/cloud/compute/v1"
|
848
|
+
#
|
849
|
+
# # Create a client object. The client can be reused for multiple calls.
|
850
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
851
|
+
#
|
852
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
853
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyResourcePolicyRequest.new
|
854
|
+
#
|
855
|
+
# # Call the set_iam_policy method.
|
856
|
+
# result = client.set_iam_policy request
|
857
|
+
#
|
858
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
859
|
+
# p result
|
860
|
+
#
|
732
861
|
def set_iam_policy request, options = nil
|
733
862
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
734
863
|
|
@@ -797,6 +926,22 @@ module Google
|
|
797
926
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
798
927
|
#
|
799
928
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
929
|
+
#
|
930
|
+
# @example Basic example
|
931
|
+
# require "google/cloud/compute/v1"
|
932
|
+
#
|
933
|
+
# # Create a client object. The client can be reused for multiple calls.
|
934
|
+
# client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
|
935
|
+
#
|
936
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
937
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsResourcePolicyRequest.new
|
938
|
+
#
|
939
|
+
# # Call the test_iam_permissions method.
|
940
|
+
# result = client.test_iam_permissions request
|
941
|
+
#
|
942
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
943
|
+
# p result
|
944
|
+
#
|
800
945
|
def test_iam_permissions request, options = nil
|
801
946
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
802
947
|
|
@@ -89,6 +89,7 @@ require "google/cloud/compute/v1/routers/rest"
|
|
89
89
|
require "google/cloud/compute/v1/routes/rest"
|
90
90
|
require "google/cloud/compute/v1/security_policies/rest"
|
91
91
|
require "google/cloud/compute/v1/service_attachments/rest"
|
92
|
+
require "google/cloud/compute/v1/snapshot_settings_service/rest"
|
92
93
|
require "google/cloud/compute/v1/snapshots/rest"
|
93
94
|
require "google/cloud/compute/v1/ssl_certificates/rest"
|
94
95
|
require "google/cloud/compute/v1/ssl_policies/rest"
|