Reference documentation and code samples for the Distributed Cloud Edge Network V1 API class Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.
REST client for the EdgeNetwork service.
EdgeNetwork API provides managed, highly available cloud dynamic network configuration service to the GEC customer to enable edge application and network function solutions. This allows the customers to easily define and configure the network setup and property to meet the workload requirement.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the EdgeNetwork Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all EdgeNetwork clients ::Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the EdgeNetwork Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_interconnect_attachment
def create_interconnect_attachment(request, options = nil) -> ::Gapic::Operation
def create_interconnect_attachment(parent: nil, interconnect_attachment_id: nil, interconnect_attachment: nil, request_id: nil) -> ::Gapic::Operation
Creates a new InterconnectAttachment in a given project and location.
def create_interconnect_attachment(request, options = nil) -> ::Gapic::Operation
create_interconnect_attachment
via a request object, either of type
CreateInterconnectAttachmentRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::CreateInterconnectAttachmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_interconnect_attachment(parent: nil, interconnect_attachment_id: nil, interconnect_attachment: nil, request_id: nil) -> ::Gapic::Operation
create_interconnect_attachment
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Value for parent.
- interconnect_attachment_id (::String) — Required. Id of the requesting object If auto-generating Id server-side, remove this field and interconnect_attachment_id from the method_signature of Create RPC
- interconnect_attachment (::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment, ::Hash) — Required. The resource being created
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::CreateInterconnectAttachmentRequest.new # Call the create_interconnect_attachment method. result = client.create_interconnect_attachment request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_network
def create_network(request, options = nil) -> ::Gapic::Operation
def create_network(parent: nil, network_id: nil, network: nil, request_id: nil) -> ::Gapic::Operation
Creates a new Network in a given project and location.
def create_network(request, options = nil) -> ::Gapic::Operation
create_network
via a request object, either of type
CreateNetworkRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::CreateNetworkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_network(parent: nil, network_id: nil, network: nil, request_id: nil) -> ::Gapic::Operation
create_network
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Value for parent.
- network_id (::String) — Required. Id of the requesting object If auto-generating Id server-side, remove this field and network_id from the method_signature of Create RPC
- network (::Google::Cloud::EdgeNetwork::V1::Network, ::Hash) — Required. The resource being created
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::CreateNetworkRequest.new # Call the create_network method. result = client.create_network request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_router
def create_router(request, options = nil) -> ::Gapic::Operation
def create_router(parent: nil, router_id: nil, router: nil, request_id: nil) -> ::Gapic::Operation
Creates a new Router in a given project and location.
def create_router(request, options = nil) -> ::Gapic::Operation
create_router
via a request object, either of type
CreateRouterRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::CreateRouterRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_router(parent: nil, router_id: nil, router: nil, request_id: nil) -> ::Gapic::Operation
create_router
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Value for parent.
- router_id (::String) — Required. Id of the requesting object If auto-generating Id server-side, remove this field and router_id from the method_signature of Create RPC
- router (::Google::Cloud::EdgeNetwork::V1::Router, ::Hash) — Required. The resource being created
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::CreateRouterRequest.new # Call the create_router method. result = client.create_router request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_subnet
def create_subnet(request, options = nil) -> ::Gapic::Operation
def create_subnet(parent: nil, subnet_id: nil, subnet: nil, request_id: nil) -> ::Gapic::Operation
Creates a new Subnet in a given project and location.
def create_subnet(request, options = nil) -> ::Gapic::Operation
create_subnet
via a request object, either of type
CreateSubnetRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::CreateSubnetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_subnet(parent: nil, subnet_id: nil, subnet: nil, request_id: nil) -> ::Gapic::Operation
create_subnet
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Value for parent.
- subnet_id (::String) — Required. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC
- subnet (::Google::Cloud::EdgeNetwork::V1::Subnet, ::Hash) — Required. The resource being created
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::CreateSubnetRequest.new # Call the create_subnet method. result = client.create_subnet request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_interconnect_attachment
def delete_interconnect_attachment(request, options = nil) -> ::Gapic::Operation
def delete_interconnect_attachment(name: nil, request_id: nil) -> ::Gapic::Operation
Deletes a single InterconnectAttachment.
def delete_interconnect_attachment(request, options = nil) -> ::Gapic::Operation
delete_interconnect_attachment
via a request object, either of type
DeleteInterconnectAttachmentRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DeleteInterconnectAttachmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_interconnect_attachment(name: nil, request_id: nil) -> ::Gapic::Operation
delete_interconnect_attachment
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DeleteInterconnectAttachmentRequest.new # Call the delete_interconnect_attachment method. result = client.delete_interconnect_attachment request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_network
def delete_network(request, options = nil) -> ::Gapic::Operation
def delete_network(name: nil, request_id: nil) -> ::Gapic::Operation
Deletes a single Network.
def delete_network(request, options = nil) -> ::Gapic::Operation
delete_network
via a request object, either of type
DeleteNetworkRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DeleteNetworkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_network(name: nil, request_id: nil) -> ::Gapic::Operation
delete_network
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DeleteNetworkRequest.new # Call the delete_network method. result = client.delete_network request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_router
def delete_router(request, options = nil) -> ::Gapic::Operation
def delete_router(name: nil, request_id: nil) -> ::Gapic::Operation
Deletes a single Router.
def delete_router(request, options = nil) -> ::Gapic::Operation
delete_router
via a request object, either of type
DeleteRouterRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DeleteRouterRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_router(name: nil, request_id: nil) -> ::Gapic::Operation
delete_router
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DeleteRouterRequest.new # Call the delete_router method. result = client.delete_router request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_subnet
def delete_subnet(request, options = nil) -> ::Gapic::Operation
def delete_subnet(name: nil, request_id: nil) -> ::Gapic::Operation
Deletes a single Subnet.
def delete_subnet(request, options = nil) -> ::Gapic::Operation
delete_subnet
via a request object, either of type
DeleteSubnetRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DeleteSubnetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_subnet(name: nil, request_id: nil) -> ::Gapic::Operation
delete_subnet
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DeleteSubnetRequest.new # Call the delete_subnet method. result = client.delete_subnet request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#diagnose_interconnect
def diagnose_interconnect(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse
def diagnose_interconnect(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse
Get the diagnostics of a single interconnect resource.
def diagnose_interconnect(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse
diagnose_interconnect
via a request object, either of type
DiagnoseInterconnectRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def diagnose_interconnect(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse
diagnose_interconnect
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the interconnect resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectRequest.new # Call the diagnose_interconnect method. result = client.diagnose_interconnect request # The returned object is of type Google::Cloud::EdgeNetwork::V1::DiagnoseInterconnectResponse. p result
#diagnose_network
def diagnose_network(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse
def diagnose_network(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse
Get the diagnostics of a single network resource.
def diagnose_network(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse
diagnose_network
via a request object, either of type
DiagnoseNetworkRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def diagnose_network(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse
diagnose_network
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the network resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkRequest.new # Call the diagnose_network method. result = client.diagnose_network request # The returned object is of type Google::Cloud::EdgeNetwork::V1::DiagnoseNetworkResponse. p result
#diagnose_router
def diagnose_router(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse
def diagnose_router(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse
Get the diagnostics of a single router resource.
def diagnose_router(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse
diagnose_router
via a request object, either of type
DiagnoseRouterRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def diagnose_router(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse
diagnose_router
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the router resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::DiagnoseRouterRequest.new # Call the diagnose_router method. result = client.diagnose_router request # The returned object is of type Google::Cloud::EdgeNetwork::V1::DiagnoseRouterResponse. p result
#get_interconnect
def get_interconnect(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Interconnect
def get_interconnect(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Interconnect
Gets details of a single Interconnect.
def get_interconnect(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Interconnect
get_interconnect
via a request object, either of type
GetInterconnectRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::GetInterconnectRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_interconnect(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Interconnect
get_interconnect
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::Interconnect)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::GetInterconnectRequest.new # Call the get_interconnect method. result = client.get_interconnect request # The returned object is of type Google::Cloud::EdgeNetwork::V1::Interconnect. p result
#get_interconnect_attachment
def get_interconnect_attachment(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment
def get_interconnect_attachment(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment
Gets details of a single InterconnectAttachment.
def get_interconnect_attachment(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment
get_interconnect_attachment
via a request object, either of type
GetInterconnectAttachmentRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::GetInterconnectAttachmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_interconnect_attachment(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment
get_interconnect_attachment
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::GetInterconnectAttachmentRequest.new # Call the get_interconnect_attachment method. result = client.get_interconnect_attachment request # The returned object is of type Google::Cloud::EdgeNetwork::V1::InterconnectAttachment. p result
#get_network
def get_network(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Network
def get_network(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Network
Gets details of a single Network.
def get_network(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Network
get_network
via a request object, either of type
GetNetworkRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::GetNetworkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_network(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Network
get_network
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::Network)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::GetNetworkRequest.new # Call the get_network method. result = client.get_network request # The returned object is of type Google::Cloud::EdgeNetwork::V1::Network. p result
#get_router
def get_router(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Router
def get_router(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Router
Gets details of a single Router.
def get_router(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Router
get_router
via a request object, either of type
GetRouterRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::GetRouterRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_router(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Router
get_router
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::Router)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::GetRouterRequest.new # Call the get_router method. result = client.get_router request # The returned object is of type Google::Cloud::EdgeNetwork::V1::Router. p result
#get_subnet
def get_subnet(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Subnet
def get_subnet(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Subnet
Gets details of a single Subnet.
def get_subnet(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Subnet
get_subnet
via a request object, either of type
GetSubnetRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::GetSubnetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_subnet(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Subnet
get_subnet
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::Subnet)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::GetSubnetRequest.new # Call the get_subnet method. result = client.get_subnet request # The returned object is of type Google::Cloud::EdgeNetwork::V1::Subnet. p result
#get_zone
def get_zone(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Zone
def get_zone(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Zone
Gets details of a single Zone.
def get_zone(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::Zone
get_zone
via a request object, either of type
GetZoneRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::GetZoneRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_zone(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::Zone
get_zone
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::Zone)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::GetZoneRequest.new # Call the get_zone method. result = client.get_zone request # The returned object is of type Google::Cloud::EdgeNetwork::V1::Zone. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new EdgeNetwork REST client object.
- (config) — Configure the EdgeNetwork client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new do |config| config.timeout = 10.0 end
#initialize_zone
def initialize_zone(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse
def initialize_zone(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse
InitializeZone will initialize resources for a zone in a project.
def initialize_zone(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse
initialize_zone
via a request object, either of type
InitializeZoneRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::InitializeZoneRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def initialize_zone(name: nil) -> ::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse
initialize_zone
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the zone resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::InitializeZoneRequest.new # Call the initialize_zone method. result = client.initialize_zone request # The returned object is of type Google::Cloud::EdgeNetwork::V1::InitializeZoneResponse. p result
#list_interconnect_attachments
def list_interconnect_attachments(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse
def list_interconnect_attachments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse
Lists InterconnectAttachments in a given project and location.
def list_interconnect_attachments(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse
list_interconnect_attachments
via a request object, either of type
ListInterconnectAttachmentsRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_interconnect_attachments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse
list_interconnect_attachments
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListInterconnectAttachmentsRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::ListInterconnectAttachmentsRequest.new # Call the list_interconnect_attachments method. result = client.list_interconnect_attachments request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::EdgeNetwork::V1::InterconnectAttachment. p item end
#list_interconnects
def list_interconnects(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse
def list_interconnects(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse
Lists Interconnects in a given project and location.
def list_interconnects(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse
list_interconnects
via a request object, either of type
ListInterconnectsRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::ListInterconnectsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_interconnects(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse
list_interconnects
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListInterconnectsRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::ListInterconnectsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::ListInterconnectsRequest.new # Call the list_interconnects method. result = client.list_interconnects request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::EdgeNetwork::V1::Interconnect. p item end
#list_networks
def list_networks(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse
def list_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse
Lists Networks in a given project and location.
def list_networks(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse
list_networks
via a request object, either of type
ListNetworksRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::ListNetworksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse
list_networks
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListNetworksRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::ListNetworksResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::ListNetworksRequest.new # Call the list_networks method. result = client.list_networks request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::EdgeNetwork::V1::Network. p item end
#list_routers
def list_routers(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse
def list_routers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse
Lists Routers in a given project and location.
def list_routers(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse
list_routers
via a request object, either of type
ListRoutersRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::ListRoutersRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_routers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse
list_routers
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListRoutersRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::ListRoutersResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::ListRoutersRequest.new # Call the list_routers method. result = client.list_routers request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::EdgeNetwork::V1::Router. p item end
#list_subnets
def list_subnets(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse
def list_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse
Lists Subnets in a given project and location.
def list_subnets(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse
list_subnets
via a request object, either of type
ListSubnetsRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::ListSubnetsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse
list_subnets
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListSubnetsRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::ListSubnetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::ListSubnetsRequest.new # Call the list_subnets method. result = client.list_subnets request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::EdgeNetwork::V1::Subnet. p item end
#list_zones
def list_zones(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListZonesResponse
def list_zones(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListZonesResponse
Lists Zones in a given project and location.
def list_zones(request, options = nil) -> ::Google::Cloud::EdgeNetwork::V1::ListZonesResponse
list_zones
via a request object, either of type
ListZonesRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::ListZonesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_zones(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::EdgeNetwork::V1::ListZonesResponse
list_zones
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListZonesRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::EdgeNetwork::V1::ListZonesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::ListZonesRequest.new # Call the list_zones method. result = client.list_zones request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::EdgeNetwork::V1::Zone. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#operations_client
def operations_client() -> ::Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Operations
Get the associated client for long-running operations.
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_router
def update_router(request, options = nil) -> ::Gapic::Operation
def update_router(update_mask: nil, router: nil, request_id: nil) -> ::Gapic::Operation
Updates the parameters of a single Router.
def update_router(request, options = nil) -> ::Gapic::Operation
update_router
via a request object, either of type
UpdateRouterRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::UpdateRouterRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_router(update_mask: nil, router: nil, request_id: nil) -> ::Gapic::Operation
update_router
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the Router resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- router (::Google::Cloud::EdgeNetwork::V1::Router, ::Hash) — Required. The resource being updated
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::UpdateRouterRequest.new # Call the update_router method. result = client.update_router request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#update_subnet
def update_subnet(request, options = nil) -> ::Gapic::Operation
def update_subnet(update_mask: nil, subnet: nil, request_id: nil) -> ::Gapic::Operation
Updates the parameters of a single Subnet.
def update_subnet(request, options = nil) -> ::Gapic::Operation
update_subnet
via a request object, either of type
UpdateSubnetRequest or an equivalent Hash.
- request (::Google::Cloud::EdgeNetwork::V1::UpdateSubnetRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_subnet(update_mask: nil, subnet: nil, request_id: nil) -> ::Gapic::Operation
update_subnet
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- subnet (::Google::Cloud::EdgeNetwork::V1::Subnet, ::Hash) — Required. The resource being updated
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/edge_network/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::EdgeNetwork::V1::EdgeNetwork::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::EdgeNetwork::V1::UpdateSubnetRequest.new # Call the update_subnet method. result = client.update_subnet request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end