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
@@ -222,6 +222,22 @@ module Google
|
|
222
222
|
# @return [::Gapic::GenericLRO::Operation]
|
223
223
|
#
|
224
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/cloud/compute/v1"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Cloud::Compute::V1::AddNodesNodeGroupRequest.new
|
234
|
+
#
|
235
|
+
# # Call the add_nodes method.
|
236
|
+
# result = client.add_nodes request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
239
|
+
# p result
|
240
|
+
#
|
225
241
|
def add_nodes request, options = nil
|
226
242
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
227
243
|
|
@@ -279,13 +295,13 @@ module Google
|
|
279
295
|
# @param options [::Gapic::CallOptions, ::Hash]
|
280
296
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
281
297
|
#
|
282
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
298
|
+
# @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)
|
283
299
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
284
300
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
285
301
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
286
302
|
#
|
287
303
|
# @param filter [::String]
|
288
|
-
# 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
|
304
|
+
# 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.
|
289
305
|
# @param include_all_scopes [::Boolean]
|
290
306
|
# 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.
|
291
307
|
# @param max_results [::Integer]
|
@@ -298,6 +314,7 @@ module Google
|
|
298
314
|
# Project ID for this request.
|
299
315
|
# @param return_partial_success [::Boolean]
|
300
316
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
317
|
+
# @param service_project_number [::Integer]
|
301
318
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
302
319
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeGroupsScopedList>]
|
303
320
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -305,6 +322,22 @@ module Google
|
|
305
322
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeGroupsScopedList>]
|
306
323
|
#
|
307
324
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
325
|
+
#
|
326
|
+
# @example Basic example
|
327
|
+
# require "google/cloud/compute/v1"
|
328
|
+
#
|
329
|
+
# # Create a client object. The client can be reused for multiple calls.
|
330
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
331
|
+
#
|
332
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
333
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNodeGroupsRequest.new
|
334
|
+
#
|
335
|
+
# # Call the aggregated_list method.
|
336
|
+
# result = client.aggregated_list request
|
337
|
+
#
|
338
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroupAggregatedList.
|
339
|
+
# p result
|
340
|
+
#
|
308
341
|
def aggregated_list request, options = nil
|
309
342
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
310
343
|
|
@@ -374,6 +407,22 @@ module Google
|
|
374
407
|
# @return [::Gapic::GenericLRO::Operation]
|
375
408
|
#
|
376
409
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
410
|
+
#
|
411
|
+
# @example Basic example
|
412
|
+
# require "google/cloud/compute/v1"
|
413
|
+
#
|
414
|
+
# # Create a client object. The client can be reused for multiple calls.
|
415
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
416
|
+
#
|
417
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
418
|
+
# request = Google::Cloud::Compute::V1::DeleteNodeGroupRequest.new
|
419
|
+
#
|
420
|
+
# # Call the delete method.
|
421
|
+
# result = client.delete request
|
422
|
+
#
|
423
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
424
|
+
# p result
|
425
|
+
#
|
377
426
|
def delete request, options = nil
|
378
427
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
379
428
|
|
@@ -453,6 +502,22 @@ module Google
|
|
453
502
|
# @return [::Gapic::GenericLRO::Operation]
|
454
503
|
#
|
455
504
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
505
|
+
#
|
506
|
+
# @example Basic example
|
507
|
+
# require "google/cloud/compute/v1"
|
508
|
+
#
|
509
|
+
# # Create a client object. The client can be reused for multiple calls.
|
510
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
511
|
+
#
|
512
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
513
|
+
# request = Google::Cloud::Compute::V1::DeleteNodesNodeGroupRequest.new
|
514
|
+
#
|
515
|
+
# # Call the delete_nodes method.
|
516
|
+
# result = client.delete_nodes request
|
517
|
+
#
|
518
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
519
|
+
# p result
|
520
|
+
#
|
456
521
|
def delete_nodes request, options = nil
|
457
522
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
458
523
|
|
@@ -528,6 +593,22 @@ module Google
|
|
528
593
|
# @return [::Google::Cloud::Compute::V1::NodeGroup]
|
529
594
|
#
|
530
595
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
596
|
+
#
|
597
|
+
# @example Basic example
|
598
|
+
# require "google/cloud/compute/v1"
|
599
|
+
#
|
600
|
+
# # Create a client object. The client can be reused for multiple calls.
|
601
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
602
|
+
#
|
603
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
604
|
+
# request = Google::Cloud::Compute::V1::GetNodeGroupRequest.new
|
605
|
+
#
|
606
|
+
# # Call the get method.
|
607
|
+
# result = client.get request
|
608
|
+
#
|
609
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroup.
|
610
|
+
# p result
|
611
|
+
#
|
531
612
|
def get request, options = nil
|
532
613
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
533
614
|
|
@@ -596,6 +677,22 @@ module Google
|
|
596
677
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
597
678
|
#
|
598
679
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
680
|
+
#
|
681
|
+
# @example Basic example
|
682
|
+
# require "google/cloud/compute/v1"
|
683
|
+
#
|
684
|
+
# # Create a client object. The client can be reused for multiple calls.
|
685
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
686
|
+
#
|
687
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
688
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyNodeGroupRequest.new
|
689
|
+
#
|
690
|
+
# # Call the get_iam_policy method.
|
691
|
+
# result = client.get_iam_policy request
|
692
|
+
#
|
693
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
694
|
+
# p result
|
695
|
+
#
|
599
696
|
def get_iam_policy request, options = nil
|
600
697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
601
698
|
|
@@ -666,6 +763,22 @@ module Google
|
|
666
763
|
# @return [::Gapic::GenericLRO::Operation]
|
667
764
|
#
|
668
765
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
766
|
+
#
|
767
|
+
# @example Basic example
|
768
|
+
# require "google/cloud/compute/v1"
|
769
|
+
#
|
770
|
+
# # Create a client object. The client can be reused for multiple calls.
|
771
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
772
|
+
#
|
773
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
774
|
+
# request = Google::Cloud::Compute::V1::InsertNodeGroupRequest.new
|
775
|
+
#
|
776
|
+
# # Call the insert method.
|
777
|
+
# result = client.insert request
|
778
|
+
#
|
779
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
780
|
+
# p result
|
781
|
+
#
|
669
782
|
def insert request, options = nil
|
670
783
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
784
|
|
@@ -729,7 +842,7 @@ module Google
|
|
729
842
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
730
843
|
#
|
731
844
|
# @param filter [::String]
|
732
|
-
# 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
|
845
|
+
# 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.
|
733
846
|
# @param max_results [::Integer]
|
734
847
|
# 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`)
|
735
848
|
# @param order_by [::String]
|
@@ -749,6 +862,22 @@ module Google
|
|
749
862
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroup>]
|
750
863
|
#
|
751
864
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
865
|
+
#
|
866
|
+
# @example Basic example
|
867
|
+
# require "google/cloud/compute/v1"
|
868
|
+
#
|
869
|
+
# # Create a client object. The client can be reused for multiple calls.
|
870
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
871
|
+
#
|
872
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
873
|
+
# request = Google::Cloud::Compute::V1::ListNodeGroupsRequest.new
|
874
|
+
#
|
875
|
+
# # Call the list method.
|
876
|
+
# result = client.list request
|
877
|
+
#
|
878
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroupList.
|
879
|
+
# p result
|
880
|
+
#
|
752
881
|
def list request, options = nil
|
753
882
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
754
883
|
|
@@ -804,7 +933,7 @@ module Google
|
|
804
933
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
805
934
|
#
|
806
935
|
# @param filter [::String]
|
807
|
-
# 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
|
936
|
+
# 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.
|
808
937
|
# @param max_results [::Integer]
|
809
938
|
# 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`)
|
810
939
|
# @param node_group [::String]
|
@@ -826,6 +955,22 @@ module Google
|
|
826
955
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroupNode>]
|
827
956
|
#
|
828
957
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
958
|
+
#
|
959
|
+
# @example Basic example
|
960
|
+
# require "google/cloud/compute/v1"
|
961
|
+
#
|
962
|
+
# # Create a client object. The client can be reused for multiple calls.
|
963
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
964
|
+
#
|
965
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
966
|
+
# request = Google::Cloud::Compute::V1::ListNodesNodeGroupsRequest.new
|
967
|
+
#
|
968
|
+
# # Call the list_nodes method.
|
969
|
+
# result = client.list_nodes request
|
970
|
+
#
|
971
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroupsListNodes.
|
972
|
+
# p result
|
973
|
+
#
|
829
974
|
def list_nodes request, options = nil
|
830
975
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
831
976
|
|
@@ -897,6 +1042,22 @@ module Google
|
|
897
1042
|
# @return [::Gapic::GenericLRO::Operation]
|
898
1043
|
#
|
899
1044
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1045
|
+
#
|
1046
|
+
# @example Basic example
|
1047
|
+
# require "google/cloud/compute/v1"
|
1048
|
+
#
|
1049
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1050
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
1051
|
+
#
|
1052
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1053
|
+
# request = Google::Cloud::Compute::V1::PatchNodeGroupRequest.new
|
1054
|
+
#
|
1055
|
+
# # Call the patch method.
|
1056
|
+
# result = client.patch request
|
1057
|
+
#
|
1058
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1059
|
+
# p result
|
1060
|
+
#
|
900
1061
|
def patch request, options = nil
|
901
1062
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
902
1063
|
|
@@ -974,6 +1135,22 @@ module Google
|
|
974
1135
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
975
1136
|
#
|
976
1137
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1138
|
+
#
|
1139
|
+
# @example Basic example
|
1140
|
+
# require "google/cloud/compute/v1"
|
1141
|
+
#
|
1142
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1143
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
1144
|
+
#
|
1145
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1146
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyNodeGroupRequest.new
|
1147
|
+
#
|
1148
|
+
# # Call the set_iam_policy method.
|
1149
|
+
# result = client.set_iam_policy request
|
1150
|
+
#
|
1151
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1152
|
+
# p result
|
1153
|
+
#
|
977
1154
|
def set_iam_policy request, options = nil
|
978
1155
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
979
1156
|
|
@@ -1044,6 +1221,22 @@ module Google
|
|
1044
1221
|
# @return [::Gapic::GenericLRO::Operation]
|
1045
1222
|
#
|
1046
1223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1224
|
+
#
|
1225
|
+
# @example Basic example
|
1226
|
+
# require "google/cloud/compute/v1"
|
1227
|
+
#
|
1228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1229
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
1230
|
+
#
|
1231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1232
|
+
# request = Google::Cloud::Compute::V1::SetNodeTemplateNodeGroupRequest.new
|
1233
|
+
#
|
1234
|
+
# # Call the set_node_template method.
|
1235
|
+
# result = client.set_node_template request
|
1236
|
+
#
|
1237
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1238
|
+
# p result
|
1239
|
+
#
|
1047
1240
|
def set_node_template request, options = nil
|
1048
1241
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1049
1242
|
|
@@ -1123,6 +1316,22 @@ module Google
|
|
1123
1316
|
# @return [::Gapic::GenericLRO::Operation]
|
1124
1317
|
#
|
1125
1318
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1319
|
+
#
|
1320
|
+
# @example Basic example
|
1321
|
+
# require "google/cloud/compute/v1"
|
1322
|
+
#
|
1323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1324
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
1325
|
+
#
|
1326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1327
|
+
# request = Google::Cloud::Compute::V1::SimulateMaintenanceEventNodeGroupRequest.new
|
1328
|
+
#
|
1329
|
+
# # Call the simulate_maintenance_event method.
|
1330
|
+
# result = client.simulate_maintenance_event request
|
1331
|
+
#
|
1332
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1333
|
+
# p result
|
1334
|
+
#
|
1126
1335
|
def simulate_maintenance_event request, options = nil
|
1127
1336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1128
1337
|
|
@@ -1200,6 +1409,22 @@ module Google
|
|
1200
1409
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1201
1410
|
#
|
1202
1411
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1412
|
+
#
|
1413
|
+
# @example Basic example
|
1414
|
+
# require "google/cloud/compute/v1"
|
1415
|
+
#
|
1416
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1417
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
1418
|
+
#
|
1419
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1420
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsNodeGroupRequest.new
|
1421
|
+
#
|
1422
|
+
# # Call the test_iam_permissions method.
|
1423
|
+
# result = client.test_iam_permissions request
|
1424
|
+
#
|
1425
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
1426
|
+
# p result
|
1427
|
+
#
|
1203
1428
|
def test_iam_permissions request, options = nil
|
1204
1429
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1205
1430
|
|
@@ -188,13 +188,13 @@ module Google
|
|
188
188
|
# @param options [::Gapic::CallOptions, ::Hash]
|
189
189
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
190
190
|
#
|
191
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
191
|
+
# @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)
|
192
192
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
193
193
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
194
194
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
195
195
|
#
|
196
196
|
# @param filter [::String]
|
197
|
-
# 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
|
197
|
+
# 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.
|
198
198
|
# @param include_all_scopes [::Boolean]
|
199
199
|
# 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.
|
200
200
|
# @param max_results [::Integer]
|
@@ -207,6 +207,7 @@ module Google
|
|
207
207
|
# Project ID for this request.
|
208
208
|
# @param return_partial_success [::Boolean]
|
209
209
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
210
|
+
# @param service_project_number [::Integer]
|
210
211
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
211
212
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTemplatesScopedList>]
|
212
213
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -214,6 +215,22 @@ module Google
|
|
214
215
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTemplatesScopedList>]
|
215
216
|
#
|
216
217
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
218
|
+
#
|
219
|
+
# @example Basic example
|
220
|
+
# require "google/cloud/compute/v1"
|
221
|
+
#
|
222
|
+
# # Create a client object. The client can be reused for multiple calls.
|
223
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
224
|
+
#
|
225
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
226
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNodeTemplatesRequest.new
|
227
|
+
#
|
228
|
+
# # Call the aggregated_list method.
|
229
|
+
# result = client.aggregated_list request
|
230
|
+
#
|
231
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeTemplateAggregatedList.
|
232
|
+
# p result
|
233
|
+
#
|
217
234
|
def aggregated_list request, options = nil
|
218
235
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
219
236
|
|
@@ -283,6 +300,22 @@ module Google
|
|
283
300
|
# @return [::Gapic::GenericLRO::Operation]
|
284
301
|
#
|
285
302
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
303
|
+
#
|
304
|
+
# @example Basic example
|
305
|
+
# require "google/cloud/compute/v1"
|
306
|
+
#
|
307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
308
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
309
|
+
#
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
311
|
+
# request = Google::Cloud::Compute::V1::DeleteNodeTemplateRequest.new
|
312
|
+
#
|
313
|
+
# # Call the delete method.
|
314
|
+
# result = client.delete request
|
315
|
+
#
|
316
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
317
|
+
# p result
|
318
|
+
#
|
286
319
|
def delete request, options = nil
|
287
320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
288
321
|
|
@@ -358,6 +391,22 @@ module Google
|
|
358
391
|
# @return [::Google::Cloud::Compute::V1::NodeTemplate]
|
359
392
|
#
|
360
393
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
394
|
+
#
|
395
|
+
# @example Basic example
|
396
|
+
# require "google/cloud/compute/v1"
|
397
|
+
#
|
398
|
+
# # Create a client object. The client can be reused for multiple calls.
|
399
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
400
|
+
#
|
401
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
402
|
+
# request = Google::Cloud::Compute::V1::GetNodeTemplateRequest.new
|
403
|
+
#
|
404
|
+
# # Call the get method.
|
405
|
+
# result = client.get request
|
406
|
+
#
|
407
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeTemplate.
|
408
|
+
# p result
|
409
|
+
#
|
361
410
|
def get request, options = nil
|
362
411
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
363
412
|
|
@@ -426,6 +475,22 @@ module Google
|
|
426
475
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
427
476
|
#
|
428
477
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
478
|
+
#
|
479
|
+
# @example Basic example
|
480
|
+
# require "google/cloud/compute/v1"
|
481
|
+
#
|
482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
483
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
484
|
+
#
|
485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
486
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyNodeTemplateRequest.new
|
487
|
+
#
|
488
|
+
# # Call the get_iam_policy method.
|
489
|
+
# result = client.get_iam_policy request
|
490
|
+
#
|
491
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
492
|
+
# p result
|
493
|
+
#
|
429
494
|
def get_iam_policy request, options = nil
|
430
495
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
496
|
|
@@ -494,6 +559,22 @@ module Google
|
|
494
559
|
# @return [::Gapic::GenericLRO::Operation]
|
495
560
|
#
|
496
561
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
562
|
+
#
|
563
|
+
# @example Basic example
|
564
|
+
# require "google/cloud/compute/v1"
|
565
|
+
#
|
566
|
+
# # Create a client object. The client can be reused for multiple calls.
|
567
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
568
|
+
#
|
569
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
570
|
+
# request = Google::Cloud::Compute::V1::InsertNodeTemplateRequest.new
|
571
|
+
#
|
572
|
+
# # Call the insert method.
|
573
|
+
# result = client.insert request
|
574
|
+
#
|
575
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
576
|
+
# p result
|
577
|
+
#
|
497
578
|
def insert request, options = nil
|
498
579
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
580
|
|
@@ -557,7 +638,7 @@ module Google
|
|
557
638
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
558
639
|
#
|
559
640
|
# @param filter [::String]
|
560
|
-
# 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
|
641
|
+
# 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.
|
561
642
|
# @param max_results [::Integer]
|
562
643
|
# 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`)
|
563
644
|
# @param order_by [::String]
|
@@ -577,6 +658,22 @@ module Google
|
|
577
658
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeTemplate>]
|
578
659
|
#
|
579
660
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
661
|
+
#
|
662
|
+
# @example Basic example
|
663
|
+
# require "google/cloud/compute/v1"
|
664
|
+
#
|
665
|
+
# # Create a client object. The client can be reused for multiple calls.
|
666
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
667
|
+
#
|
668
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
669
|
+
# request = Google::Cloud::Compute::V1::ListNodeTemplatesRequest.new
|
670
|
+
#
|
671
|
+
# # Call the list method.
|
672
|
+
# result = client.list request
|
673
|
+
#
|
674
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeTemplateList.
|
675
|
+
# p result
|
676
|
+
#
|
580
677
|
def list request, options = nil
|
581
678
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
582
679
|
|
@@ -646,6 +743,22 @@ module Google
|
|
646
743
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
647
744
|
#
|
648
745
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
746
|
+
#
|
747
|
+
# @example Basic example
|
748
|
+
# require "google/cloud/compute/v1"
|
749
|
+
#
|
750
|
+
# # Create a client object. The client can be reused for multiple calls.
|
751
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
752
|
+
#
|
753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
754
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyNodeTemplateRequest.new
|
755
|
+
#
|
756
|
+
# # Call the set_iam_policy method.
|
757
|
+
# result = client.set_iam_policy request
|
758
|
+
#
|
759
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
760
|
+
# p result
|
761
|
+
#
|
649
762
|
def set_iam_policy request, options = nil
|
650
763
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
651
764
|
|
@@ -714,6 +827,22 @@ module Google
|
|
714
827
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
715
828
|
#
|
716
829
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
830
|
+
#
|
831
|
+
# @example Basic example
|
832
|
+
# require "google/cloud/compute/v1"
|
833
|
+
#
|
834
|
+
# # Create a client object. The client can be reused for multiple calls.
|
835
|
+
# client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
|
836
|
+
#
|
837
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
838
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsNodeTemplateRequest.new
|
839
|
+
#
|
840
|
+
# # Call the test_iam_permissions method.
|
841
|
+
# result = client.test_iam_permissions request
|
842
|
+
#
|
843
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
844
|
+
# p result
|
845
|
+
#
|
717
846
|
def test_iam_permissions request, options = nil
|
718
847
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
719
848
|
|