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
@@ -77,6 +77,11 @@ module Google
|
|
77
77
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
78
|
}
|
79
79
|
|
80
|
+
default_config.rpcs.get_macsec_config.timeout = 600.0
|
81
|
+
default_config.rpcs.get_macsec_config.retry_policy = {
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
83
|
+
}
|
84
|
+
|
80
85
|
default_config.rpcs.insert.timeout = 600.0
|
81
86
|
|
82
87
|
default_config.rpcs.list.timeout = 600.0
|
@@ -201,6 +206,22 @@ module Google
|
|
201
206
|
# @return [::Gapic::GenericLRO::Operation]
|
202
207
|
#
|
203
208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
209
|
+
#
|
210
|
+
# @example Basic example
|
211
|
+
# require "google/cloud/compute/v1"
|
212
|
+
#
|
213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
214
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
215
|
+
#
|
216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
217
|
+
# request = Google::Cloud::Compute::V1::DeleteInterconnectRequest.new
|
218
|
+
#
|
219
|
+
# # Call the delete method.
|
220
|
+
# result = client.delete request
|
221
|
+
#
|
222
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
223
|
+
# p result
|
224
|
+
#
|
204
225
|
def delete request, options = nil
|
205
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
227
|
|
@@ -273,6 +294,22 @@ module Google
|
|
273
294
|
# @return [::Google::Cloud::Compute::V1::Interconnect]
|
274
295
|
#
|
275
296
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
297
|
+
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/compute/v1"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::Compute::V1::GetInterconnectRequest.new
|
306
|
+
#
|
307
|
+
# # Call the get method.
|
308
|
+
# result = client.get request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Interconnect.
|
311
|
+
# p result
|
312
|
+
#
|
276
313
|
def get request, options = nil
|
277
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
315
|
|
@@ -309,7 +346,7 @@ module Google
|
|
309
346
|
end
|
310
347
|
|
311
348
|
##
|
312
|
-
# Returns the interconnectDiagnostics for the specified Interconnect.
|
349
|
+
# Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.
|
313
350
|
#
|
314
351
|
# @overload get_diagnostics(request, options = nil)
|
315
352
|
# Pass arguments to `get_diagnostics` via a request object, either of type
|
@@ -337,6 +374,22 @@ module Google
|
|
337
374
|
# @return [::Google::Cloud::Compute::V1::InterconnectsGetDiagnosticsResponse]
|
338
375
|
#
|
339
376
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
377
|
+
#
|
378
|
+
# @example Basic example
|
379
|
+
# require "google/cloud/compute/v1"
|
380
|
+
#
|
381
|
+
# # Create a client object. The client can be reused for multiple calls.
|
382
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
383
|
+
#
|
384
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
385
|
+
# request = Google::Cloud::Compute::V1::GetDiagnosticsInterconnectRequest.new
|
386
|
+
#
|
387
|
+
# # Call the get_diagnostics method.
|
388
|
+
# result = client.get_diagnostics request
|
389
|
+
#
|
390
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectsGetDiagnosticsResponse.
|
391
|
+
# p result
|
392
|
+
#
|
340
393
|
def get_diagnostics request, options = nil
|
341
394
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
395
|
|
@@ -372,6 +425,86 @@ module Google
|
|
372
425
|
raise ::Google::Cloud::Error.from_error(e)
|
373
426
|
end
|
374
427
|
|
428
|
+
##
|
429
|
+
# Returns the interconnectMacsecConfig for the specified Interconnect.
|
430
|
+
#
|
431
|
+
# @overload get_macsec_config(request, options = nil)
|
432
|
+
# Pass arguments to `get_macsec_config` via a request object, either of type
|
433
|
+
# {::Google::Cloud::Compute::V1::GetMacsecConfigInterconnectRequest} or an equivalent Hash.
|
434
|
+
#
|
435
|
+
# @param request [::Google::Cloud::Compute::V1::GetMacsecConfigInterconnectRequest, ::Hash]
|
436
|
+
# A request object representing the call parameters. Required. To specify no
|
437
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
438
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
439
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
440
|
+
#
|
441
|
+
# @overload get_macsec_config(interconnect: nil, project: nil)
|
442
|
+
# Pass arguments to `get_macsec_config` via keyword arguments. Note that at
|
443
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
444
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
445
|
+
#
|
446
|
+
# @param interconnect [::String]
|
447
|
+
# Name of the interconnect resource to query.
|
448
|
+
# @param project [::String]
|
449
|
+
# Project ID for this request.
|
450
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
451
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InterconnectsGetMacsecConfigResponse]
|
452
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
453
|
+
#
|
454
|
+
# @return [::Google::Cloud::Compute::V1::InterconnectsGetMacsecConfigResponse]
|
455
|
+
#
|
456
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
457
|
+
#
|
458
|
+
# @example Basic example
|
459
|
+
# require "google/cloud/compute/v1"
|
460
|
+
#
|
461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
462
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
463
|
+
#
|
464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
465
|
+
# request = Google::Cloud::Compute::V1::GetMacsecConfigInterconnectRequest.new
|
466
|
+
#
|
467
|
+
# # Call the get_macsec_config method.
|
468
|
+
# result = client.get_macsec_config request
|
469
|
+
#
|
470
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectsGetMacsecConfigResponse.
|
471
|
+
# p result
|
472
|
+
#
|
473
|
+
def get_macsec_config request, options = nil
|
474
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
475
|
+
|
476
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetMacsecConfigInterconnectRequest
|
477
|
+
|
478
|
+
# Converts hash and nil to an options object
|
479
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
480
|
+
|
481
|
+
# Customize the options with defaults
|
482
|
+
call_metadata = @config.rpcs.get_macsec_config.metadata.to_h
|
483
|
+
|
484
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
485
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
486
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
487
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
488
|
+
transports_version_send: [:rest]
|
489
|
+
|
490
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
491
|
+
|
492
|
+
options.apply_defaults timeout: @config.rpcs.get_macsec_config.timeout,
|
493
|
+
metadata: call_metadata,
|
494
|
+
retry_policy: @config.rpcs.get_macsec_config.retry_policy
|
495
|
+
|
496
|
+
options.apply_defaults timeout: @config.timeout,
|
497
|
+
metadata: @config.metadata,
|
498
|
+
retry_policy: @config.retry_policy
|
499
|
+
|
500
|
+
@interconnects_stub.get_macsec_config request, options do |result, operation|
|
501
|
+
yield result, operation if block_given?
|
502
|
+
return result
|
503
|
+
end
|
504
|
+
rescue ::Gapic::Rest::Error => e
|
505
|
+
raise ::Google::Cloud::Error.from_error(e)
|
506
|
+
end
|
507
|
+
|
375
508
|
##
|
376
509
|
# Creates an Interconnect in the specified project using the data included in the request.
|
377
510
|
#
|
@@ -403,6 +536,22 @@ module Google
|
|
403
536
|
# @return [::Gapic::GenericLRO::Operation]
|
404
537
|
#
|
405
538
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
539
|
+
#
|
540
|
+
# @example Basic example
|
541
|
+
# require "google/cloud/compute/v1"
|
542
|
+
#
|
543
|
+
# # Create a client object. The client can be reused for multiple calls.
|
544
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
545
|
+
#
|
546
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
547
|
+
# request = Google::Cloud::Compute::V1::InsertInterconnectRequest.new
|
548
|
+
#
|
549
|
+
# # Call the insert method.
|
550
|
+
# result = client.insert request
|
551
|
+
#
|
552
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
553
|
+
# p result
|
554
|
+
#
|
406
555
|
def insert request, options = nil
|
407
556
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
408
557
|
|
@@ -465,7 +614,7 @@ module Google
|
|
465
614
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
466
615
|
#
|
467
616
|
# @param filter [::String]
|
468
|
-
# 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
|
617
|
+
# 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.
|
469
618
|
# @param max_results [::Integer]
|
470
619
|
# 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`)
|
471
620
|
# @param order_by [::String]
|
@@ -483,6 +632,22 @@ module Google
|
|
483
632
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Interconnect>]
|
484
633
|
#
|
485
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
635
|
+
#
|
636
|
+
# @example Basic example
|
637
|
+
# require "google/cloud/compute/v1"
|
638
|
+
#
|
639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
640
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
641
|
+
#
|
642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
643
|
+
# request = Google::Cloud::Compute::V1::ListInterconnectsRequest.new
|
644
|
+
#
|
645
|
+
# # Call the list method.
|
646
|
+
# result = client.list request
|
647
|
+
#
|
648
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InterconnectList.
|
649
|
+
# p result
|
650
|
+
#
|
486
651
|
def list request, options = nil
|
487
652
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
653
|
|
@@ -552,6 +717,22 @@ module Google
|
|
552
717
|
# @return [::Gapic::GenericLRO::Operation]
|
553
718
|
#
|
554
719
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
720
|
+
#
|
721
|
+
# @example Basic example
|
722
|
+
# require "google/cloud/compute/v1"
|
723
|
+
#
|
724
|
+
# # Create a client object. The client can be reused for multiple calls.
|
725
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
726
|
+
#
|
727
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
728
|
+
# request = Google::Cloud::Compute::V1::PatchInterconnectRequest.new
|
729
|
+
#
|
730
|
+
# # Call the patch method.
|
731
|
+
# result = client.patch request
|
732
|
+
#
|
733
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
734
|
+
# p result
|
735
|
+
#
|
555
736
|
def patch request, options = nil
|
556
737
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
557
738
|
|
@@ -626,6 +807,22 @@ module Google
|
|
626
807
|
# @return [::Gapic::GenericLRO::Operation]
|
627
808
|
#
|
628
809
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
810
|
+
#
|
811
|
+
# @example Basic example
|
812
|
+
# require "google/cloud/compute/v1"
|
813
|
+
#
|
814
|
+
# # Create a client object. The client can be reused for multiple calls.
|
815
|
+
# client = Google::Cloud::Compute::V1::Interconnects::Rest::Client.new
|
816
|
+
#
|
817
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
818
|
+
# request = Google::Cloud::Compute::V1::SetLabelsInterconnectRequest.new
|
819
|
+
#
|
820
|
+
# # Call the set_labels method.
|
821
|
+
# result = client.set_labels request
|
822
|
+
#
|
823
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
824
|
+
# p result
|
825
|
+
#
|
629
826
|
def set_labels request, options = nil
|
630
827
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
631
828
|
|
@@ -810,6 +1007,11 @@ module Google
|
|
810
1007
|
#
|
811
1008
|
attr_reader :get_diagnostics
|
812
1009
|
##
|
1010
|
+
# RPC-specific configuration for `get_macsec_config`
|
1011
|
+
# @return [::Gapic::Config::Method]
|
1012
|
+
#
|
1013
|
+
attr_reader :get_macsec_config
|
1014
|
+
##
|
813
1015
|
# RPC-specific configuration for `insert`
|
814
1016
|
# @return [::Gapic::Config::Method]
|
815
1017
|
#
|
@@ -838,6 +1040,8 @@ module Google
|
|
838
1040
|
@get = ::Gapic::Config::Method.new get_config
|
839
1041
|
get_diagnostics_config = parent_rpcs.get_diagnostics if parent_rpcs.respond_to? :get_diagnostics
|
840
1042
|
@get_diagnostics = ::Gapic::Config::Method.new get_diagnostics_config
|
1043
|
+
get_macsec_config_config = parent_rpcs.get_macsec_config if parent_rpcs.respond_to? :get_macsec_config
|
1044
|
+
@get_macsec_config = ::Gapic::Config::Method.new get_macsec_config_config
|
841
1045
|
insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
|
842
1046
|
@insert = ::Gapic::Config::Method.new insert_config
|
843
1047
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
@@ -154,6 +154,44 @@ module Google
|
|
154
154
|
result
|
155
155
|
end
|
156
156
|
|
157
|
+
##
|
158
|
+
# Baseline implementation for the get_macsec_config REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetMacsecConfigInterconnectRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::InterconnectsGetMacsecConfigResponse]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::Compute::V1::InterconnectsGetMacsecConfigResponse]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def get_macsec_config request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_macsec_config_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Cloud::Compute::V1::InterconnectsGetMacsecConfigResponse.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
157
195
|
##
|
158
196
|
# Baseline implementation for the insert REST call
|
159
197
|
#
|
@@ -372,6 +410,28 @@ module Google
|
|
372
410
|
transcoder.transcode request_pb
|
373
411
|
end
|
374
412
|
|
413
|
+
##
|
414
|
+
# @private
|
415
|
+
#
|
416
|
+
# GRPC transcoding helper method for the get_macsec_config REST call
|
417
|
+
#
|
418
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetMacsecConfigInterconnectRequest]
|
419
|
+
# A request object representing the call parameters. Required.
|
420
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
421
|
+
# Uri, Body, Query string parameters
|
422
|
+
def self.transcode_get_macsec_config_request request_pb
|
423
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
424
|
+
.with_bindings(
|
425
|
+
uri_method: :get,
|
426
|
+
uri_template: "/compute/v1/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig",
|
427
|
+
matches: [
|
428
|
+
["project", %r{^[^/]+/?$}, false],
|
429
|
+
["interconnect", %r{^[^/]+/?$}, false]
|
430
|
+
]
|
431
|
+
)
|
432
|
+
transcoder.transcode request_pb
|
433
|
+
end
|
434
|
+
|
375
435
|
##
|
376
436
|
# @private
|
377
437
|
#
|
@@ -169,6 +169,22 @@ module Google
|
|
169
169
|
# @return [::Google::Cloud::Compute::V1::LicenseCode]
|
170
170
|
#
|
171
171
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
172
|
+
#
|
173
|
+
# @example Basic example
|
174
|
+
# require "google/cloud/compute/v1"
|
175
|
+
#
|
176
|
+
# # Create a client object. The client can be reused for multiple calls.
|
177
|
+
# client = Google::Cloud::Compute::V1::LicenseCodes::Rest::Client.new
|
178
|
+
#
|
179
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
180
|
+
# request = Google::Cloud::Compute::V1::GetLicenseCodeRequest.new
|
181
|
+
#
|
182
|
+
# # Call the get method.
|
183
|
+
# result = client.get request
|
184
|
+
#
|
185
|
+
# # The returned object is of type Google::Cloud::Compute::V1::LicenseCode.
|
186
|
+
# p result
|
187
|
+
#
|
172
188
|
def get request, options = nil
|
173
189
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
174
190
|
|
@@ -235,6 +251,22 @@ module Google
|
|
235
251
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
236
252
|
#
|
237
253
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
254
|
+
#
|
255
|
+
# @example Basic example
|
256
|
+
# require "google/cloud/compute/v1"
|
257
|
+
#
|
258
|
+
# # Create a client object. The client can be reused for multiple calls.
|
259
|
+
# client = Google::Cloud::Compute::V1::LicenseCodes::Rest::Client.new
|
260
|
+
#
|
261
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
262
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsLicenseCodeRequest.new
|
263
|
+
#
|
264
|
+
# # Call the test_iam_permissions method.
|
265
|
+
# result = client.test_iam_permissions request
|
266
|
+
#
|
267
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
268
|
+
# p result
|
269
|
+
#
|
238
270
|
def test_iam_permissions request, options = nil
|
239
271
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
240
272
|
|
@@ -201,6 +201,22 @@ module Google
|
|
201
201
|
# @return [::Gapic::GenericLRO::Operation]
|
202
202
|
#
|
203
203
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
204
|
+
#
|
205
|
+
# @example Basic example
|
206
|
+
# require "google/cloud/compute/v1"
|
207
|
+
#
|
208
|
+
# # Create a client object. The client can be reused for multiple calls.
|
209
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
210
|
+
#
|
211
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
212
|
+
# request = Google::Cloud::Compute::V1::DeleteLicenseRequest.new
|
213
|
+
#
|
214
|
+
# # Call the delete method.
|
215
|
+
# result = client.delete request
|
216
|
+
#
|
217
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
218
|
+
# p result
|
219
|
+
#
|
204
220
|
def delete request, options = nil
|
205
221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
222
|
|
@@ -273,6 +289,22 @@ module Google
|
|
273
289
|
# @return [::Google::Cloud::Compute::V1::License]
|
274
290
|
#
|
275
291
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
292
|
+
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/compute/v1"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Compute::V1::GetLicenseRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get method.
|
303
|
+
# result = client.get request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Compute::V1::License.
|
306
|
+
# p result
|
307
|
+
#
|
276
308
|
def get request, options = nil
|
277
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
310
|
|
@@ -339,6 +371,22 @@ module Google
|
|
339
371
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
340
372
|
#
|
341
373
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
374
|
+
#
|
375
|
+
# @example Basic example
|
376
|
+
# require "google/cloud/compute/v1"
|
377
|
+
#
|
378
|
+
# # Create a client object. The client can be reused for multiple calls.
|
379
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
380
|
+
#
|
381
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
382
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyLicenseRequest.new
|
383
|
+
#
|
384
|
+
# # Call the get_iam_policy method.
|
385
|
+
# result = client.get_iam_policy request
|
386
|
+
#
|
387
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
388
|
+
# p result
|
389
|
+
#
|
342
390
|
def get_iam_policy request, options = nil
|
343
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
392
|
|
@@ -405,6 +453,22 @@ module Google
|
|
405
453
|
# @return [::Gapic::GenericLRO::Operation]
|
406
454
|
#
|
407
455
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
456
|
+
#
|
457
|
+
# @example Basic example
|
458
|
+
# require "google/cloud/compute/v1"
|
459
|
+
#
|
460
|
+
# # Create a client object. The client can be reused for multiple calls.
|
461
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
462
|
+
#
|
463
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
464
|
+
# request = Google::Cloud::Compute::V1::InsertLicenseRequest.new
|
465
|
+
#
|
466
|
+
# # Call the insert method.
|
467
|
+
# result = client.insert request
|
468
|
+
#
|
469
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
470
|
+
# p result
|
471
|
+
#
|
408
472
|
def insert request, options = nil
|
409
473
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
410
474
|
|
@@ -467,7 +531,7 @@ module Google
|
|
467
531
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
468
532
|
#
|
469
533
|
# @param filter [::String]
|
470
|
-
# 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
|
534
|
+
# 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.
|
471
535
|
# @param max_results [::Integer]
|
472
536
|
# 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`)
|
473
537
|
# @param order_by [::String]
|
@@ -485,6 +549,22 @@ module Google
|
|
485
549
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::License>]
|
486
550
|
#
|
487
551
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
552
|
+
#
|
553
|
+
# @example Basic example
|
554
|
+
# require "google/cloud/compute/v1"
|
555
|
+
#
|
556
|
+
# # Create a client object. The client can be reused for multiple calls.
|
557
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
558
|
+
#
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
560
|
+
# request = Google::Cloud::Compute::V1::ListLicensesRequest.new
|
561
|
+
#
|
562
|
+
# # Call the list method.
|
563
|
+
# result = client.list request
|
564
|
+
#
|
565
|
+
# # The returned object is of type Google::Cloud::Compute::V1::LicensesListResponse.
|
566
|
+
# p result
|
567
|
+
#
|
488
568
|
def list request, options = nil
|
489
569
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
490
570
|
|
@@ -552,6 +632,22 @@ module Google
|
|
552
632
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
553
633
|
#
|
554
634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
635
|
+
#
|
636
|
+
# @example Basic example
|
637
|
+
# require "google/cloud/compute/v1"
|
638
|
+
#
|
639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
640
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
641
|
+
#
|
642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
643
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyLicenseRequest.new
|
644
|
+
#
|
645
|
+
# # Call the set_iam_policy method.
|
646
|
+
# result = client.set_iam_policy request
|
647
|
+
#
|
648
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
649
|
+
# p result
|
650
|
+
#
|
555
651
|
def set_iam_policy request, options = nil
|
556
652
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
557
653
|
|
@@ -618,6 +714,22 @@ module Google
|
|
618
714
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
619
715
|
#
|
620
716
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
717
|
+
#
|
718
|
+
# @example Basic example
|
719
|
+
# require "google/cloud/compute/v1"
|
720
|
+
#
|
721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
722
|
+
# client = Google::Cloud::Compute::V1::Licenses::Rest::Client.new
|
723
|
+
#
|
724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
725
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsLicenseRequest.new
|
726
|
+
#
|
727
|
+
# # Call the test_iam_permissions method.
|
728
|
+
# result = client.test_iam_permissions request
|
729
|
+
#
|
730
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
731
|
+
# p result
|
732
|
+
#
|
621
733
|
def test_iam_permissions request, options = nil
|
622
734
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
623
735
|
|