Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.
REST client for the NetworkServices service.
Service describing handlers for resources.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the NetworkServices Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all NetworkServices clients ::Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the NetworkServices 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_endpoint_policy
def create_endpoint_policy(request, options = nil) -> ::Gapic::Operation
def create_endpoint_policy(parent: nil, endpoint_policy_id: nil, endpoint_policy: nil) -> ::Gapic::OperationCreates a new EndpointPolicy in a given project and location.
def create_endpoint_policy(request, options = nil) -> ::Gapic::Operationcreate_endpoint_policy via a request object, either of type
CreateEndpointPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateEndpointPolicyRequest, ::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_endpoint_policy(parent: nil, endpoint_policy_id: nil, endpoint_policy: nil) -> ::Gapic::Operationcreate_endpoint_policy 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. The parent resource of the EndpointPolicy. Must be in the
format
projects/*/locations/global. - endpoint_policy_id (::String) — Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".
- endpoint_policy (::Google::Cloud::NetworkServices::V1::EndpointPolicy, ::Hash) — Required. EndpointPolicy resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateEndpointPolicyRequest.new # Call the create_endpoint_policy method. result = client.create_endpoint_policy 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_gateway
def create_gateway(request, options = nil) -> ::Gapic::Operation
def create_gateway(parent: nil, gateway_id: nil, gateway: nil) -> ::Gapic::OperationCreates a new Gateway in a given project and location.
def create_gateway(request, options = nil) -> ::Gapic::Operationcreate_gateway via a request object, either of type
CreateGatewayRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateGatewayRequest, ::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_gateway(parent: nil, gateway_id: nil, gateway: nil) -> ::Gapic::Operationcreate_gateway 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. The parent resource of the Gateway. Must be in the
format
projects/*/locations/*. - gateway_id (::String) — Required. Short name of the Gateway resource to be created.
- gateway (::Google::Cloud::NetworkServices::V1::Gateway, ::Hash) — Required. Gateway resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateGatewayRequest.new # Call the create_gateway method. result = client.create_gateway 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_grpc_route
def create_grpc_route(request, options = nil) -> ::Gapic::Operation
def create_grpc_route(parent: nil, grpc_route_id: nil, grpc_route: nil) -> ::Gapic::OperationCreates a new GrpcRoute in a given project and location.
def create_grpc_route(request, options = nil) -> ::Gapic::Operationcreate_grpc_route via a request object, either of type
CreateGrpcRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateGrpcRouteRequest, ::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_grpc_route(parent: nil, grpc_route_id: nil, grpc_route: nil) -> ::Gapic::Operationcreate_grpc_route 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. The parent resource of the GrpcRoute. Must be in the
format
projects/*/locations/global. - grpc_route_id (::String) — Required. Short name of the GrpcRoute resource to be created.
- grpc_route (::Google::Cloud::NetworkServices::V1::GrpcRoute, ::Hash) — Required. GrpcRoute resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateGrpcRouteRequest.new # Call the create_grpc_route method. result = client.create_grpc_route 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_http_route
def create_http_route(request, options = nil) -> ::Gapic::Operation
def create_http_route(parent: nil, http_route_id: nil, http_route: nil) -> ::Gapic::OperationCreates a new HttpRoute in a given project and location.
def create_http_route(request, options = nil) -> ::Gapic::Operationcreate_http_route via a request object, either of type
CreateHttpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateHttpRouteRequest, ::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_http_route(parent: nil, http_route_id: nil, http_route: nil) -> ::Gapic::Operationcreate_http_route 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. The parent resource of the HttpRoute. Must be in the
format
projects/*/locations/global. - http_route_id (::String) — Required. Short name of the HttpRoute resource to be created.
- http_route (::Google::Cloud::NetworkServices::V1::HttpRoute, ::Hash) — Required. HttpRoute resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateHttpRouteRequest.new # Call the create_http_route method. result = client.create_http_route 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_mesh
def create_mesh(request, options = nil) -> ::Gapic::Operation
def create_mesh(parent: nil, mesh_id: nil, mesh: nil) -> ::Gapic::OperationCreates a new Mesh in a given project and location.
def create_mesh(request, options = nil) -> ::Gapic::Operationcreate_mesh via a request object, either of type
CreateMeshRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateMeshRequest, ::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_mesh(parent: nil, mesh_id: nil, mesh: nil) -> ::Gapic::Operationcreate_mesh 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. The parent resource of the Mesh. Must be in the
format
projects/*/locations/global. - mesh_id (::String) — Required. Short name of the Mesh resource to be created.
- mesh (::Google::Cloud::NetworkServices::V1::Mesh, ::Hash) — Required. Mesh resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateMeshRequest.new # Call the create_mesh method. result = client.create_mesh 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_service_binding
def create_service_binding(request, options = nil) -> ::Gapic::Operation
def create_service_binding(parent: nil, service_binding_id: nil, service_binding: nil) -> ::Gapic::OperationCreates a new ServiceBinding in a given project and location.
def create_service_binding(request, options = nil) -> ::Gapic::Operationcreate_service_binding via a request object, either of type
CreateServiceBindingRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateServiceBindingRequest, ::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_service_binding(parent: nil, service_binding_id: nil, service_binding: nil) -> ::Gapic::Operationcreate_service_binding 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. The parent resource of the ServiceBinding. Must be in the
format
projects/*/locations/*. - service_binding_id (::String) — Required. Short name of the ServiceBinding resource to be created.
- service_binding (::Google::Cloud::NetworkServices::V1::ServiceBinding, ::Hash) — Required. ServiceBinding resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateServiceBindingRequest.new # Call the create_service_binding method. result = client.create_service_binding 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_service_lb_policy
def create_service_lb_policy(request, options = nil) -> ::Gapic::Operation
def create_service_lb_policy(parent: nil, service_lb_policy_id: nil, service_lb_policy: nil) -> ::Gapic::OperationCreates a new ServiceLbPolicy in a given project and location.
def create_service_lb_policy(request, options = nil) -> ::Gapic::Operationcreate_service_lb_policy via a request object, either of type
CreateServiceLbPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest, ::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_service_lb_policy(parent: nil, service_lb_policy_id: nil, service_lb_policy: nil) -> ::Gapic::Operationcreate_service_lb_policy 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. The parent resource of the ServiceLbPolicy. Must be in the
format
projects/{project}/locations/{location}. -
service_lb_policy_id (::String) — Required. Short name of the ServiceLbPolicy resource to be created.
E.g. for resource name
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}. the id is value of {service_lb_policy_name} - service_lb_policy (::Google::Cloud::NetworkServices::V1::ServiceLbPolicy, ::Hash) — Required. ServiceLbPolicy resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateServiceLbPolicyRequest.new # Call the create_service_lb_policy method. result = client.create_service_lb_policy 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_tcp_route
def create_tcp_route(request, options = nil) -> ::Gapic::Operation
def create_tcp_route(parent: nil, tcp_route_id: nil, tcp_route: nil) -> ::Gapic::OperationCreates a new TcpRoute in a given project and location.
def create_tcp_route(request, options = nil) -> ::Gapic::Operationcreate_tcp_route via a request object, either of type
CreateTcpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateTcpRouteRequest, ::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_tcp_route(parent: nil, tcp_route_id: nil, tcp_route: nil) -> ::Gapic::Operationcreate_tcp_route 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. The parent resource of the TcpRoute. Must be in the
format
projects/*/locations/global. - tcp_route_id (::String) — Required. Short name of the TcpRoute resource to be created.
- tcp_route (::Google::Cloud::NetworkServices::V1::TcpRoute, ::Hash) — Required. TcpRoute resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateTcpRouteRequest.new # Call the create_tcp_route method. result = client.create_tcp_route 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_tls_route
def create_tls_route(request, options = nil) -> ::Gapic::Operation
def create_tls_route(parent: nil, tls_route_id: nil, tls_route: nil) -> ::Gapic::OperationCreates a new TlsRoute in a given project and location.
def create_tls_route(request, options = nil) -> ::Gapic::Operationcreate_tls_route via a request object, either of type
CreateTlsRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateTlsRouteRequest, ::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_tls_route(parent: nil, tls_route_id: nil, tls_route: nil) -> ::Gapic::Operationcreate_tls_route 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. The parent resource of the TlsRoute. Must be in the
format
projects/*/locations/global. - tls_route_id (::String) — Required. Short name of the TlsRoute resource to be created.
- tls_route (::Google::Cloud::NetworkServices::V1::TlsRoute, ::Hash) — Required. TlsRoute resource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateTlsRouteRequest.new # Call the create_tls_route method. result = client.create_tls_route 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_wasm_plugin
def create_wasm_plugin(request, options = nil) -> ::Gapic::Operation
def create_wasm_plugin(parent: nil, wasm_plugin_id: nil, wasm_plugin: nil) -> ::Gapic::OperationCreates a new WasmPlugin resource in a given project
and location.
def create_wasm_plugin(request, options = nil) -> ::Gapic::Operationcreate_wasm_plugin via a request object, either of type
CreateWasmPluginRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest, ::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_wasm_plugin(parent: nil, wasm_plugin_id: nil, wasm_plugin: nil) -> ::Gapic::Operationcreate_wasm_plugin 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. The parent resource of the
WasmPluginresource. Must be in the formatprojects/{project}/locations/global. -
wasm_plugin_id (::String) — Required. User-provided ID of the
WasmPluginresource to be created. -
wasm_plugin (::Google::Cloud::NetworkServices::V1::WasmPlugin, ::Hash) — Required.
WasmPluginresource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateWasmPluginRequest.new # Call the create_wasm_plugin method. result = client.create_wasm_plugin 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_wasm_plugin_version
def create_wasm_plugin_version(request, options = nil) -> ::Gapic::Operation
def create_wasm_plugin_version(parent: nil, wasm_plugin_version_id: nil, wasm_plugin_version: nil) -> ::Gapic::OperationCreates a new WasmPluginVersion resource in a given project
and location.
def create_wasm_plugin_version(request, options = nil) -> ::Gapic::Operationcreate_wasm_plugin_version via a request object, either of type
CreateWasmPluginVersionRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest, ::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_wasm_plugin_version(parent: nil, wasm_plugin_version_id: nil, wasm_plugin_version: nil) -> ::Gapic::Operationcreate_wasm_plugin_version 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. The parent resource of the
WasmPluginVersionresource. Must be in the formatprojects/{project}/locations/global/wasmPlugins/{wasm_plugin}. -
wasm_plugin_version_id (::String) — Required. User-provided ID of the
WasmPluginVersionresource to be created. -
wasm_plugin_version (::Google::Cloud::NetworkServices::V1::WasmPluginVersion, ::Hash) — Required.
WasmPluginVersionresource to be created.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::CreateWasmPluginVersionRequest.new # Call the create_wasm_plugin_version method. result = client.create_wasm_plugin_version 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_endpoint_policy
def delete_endpoint_policy(request, options = nil) -> ::Gapic::Operation
def delete_endpoint_policy(name: nil) -> ::Gapic::OperationDeletes a single EndpointPolicy.
def delete_endpoint_policy(request, options = nil) -> ::Gapic::Operationdelete_endpoint_policy via a request object, either of type
DeleteEndpointPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteEndpointPolicyRequest, ::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_endpoint_policy(name: nil) -> ::Gapic::Operationdelete_endpoint_policy 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. A name of the EndpointPolicy to delete. Must be in the format
projects/*/locations/global/endpointPolicies/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteEndpointPolicyRequest.new # Call the delete_endpoint_policy method. result = client.delete_endpoint_policy 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_gateway
def delete_gateway(request, options = nil) -> ::Gapic::Operation
def delete_gateway(name: nil) -> ::Gapic::OperationDeletes a single Gateway.
def delete_gateway(request, options = nil) -> ::Gapic::Operationdelete_gateway via a request object, either of type
DeleteGatewayRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteGatewayRequest, ::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_gateway(name: nil) -> ::Gapic::Operationdelete_gateway 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. A name of the Gateway to delete. Must be in the format
projects/*/locations/*/gateways/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteGatewayRequest.new # Call the delete_gateway method. result = client.delete_gateway 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_grpc_route
def delete_grpc_route(request, options = nil) -> ::Gapic::Operation
def delete_grpc_route(name: nil) -> ::Gapic::OperationDeletes a single GrpcRoute.
def delete_grpc_route(request, options = nil) -> ::Gapic::Operationdelete_grpc_route via a request object, either of type
DeleteGrpcRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteGrpcRouteRequest, ::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_grpc_route(name: nil) -> ::Gapic::Operationdelete_grpc_route 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. A name of the GrpcRoute to delete. Must be in the format
projects/*/locations/global/grpcRoutes/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteGrpcRouteRequest.new # Call the delete_grpc_route method. result = client.delete_grpc_route 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_http_route
def delete_http_route(request, options = nil) -> ::Gapic::Operation
def delete_http_route(name: nil) -> ::Gapic::OperationDeletes a single HttpRoute.
def delete_http_route(request, options = nil) -> ::Gapic::Operationdelete_http_route via a request object, either of type
DeleteHttpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteHttpRouteRequest, ::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_http_route(name: nil) -> ::Gapic::Operationdelete_http_route 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. A name of the HttpRoute to delete. Must be in the format
projects/*/locations/global/httpRoutes/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteHttpRouteRequest.new # Call the delete_http_route method. result = client.delete_http_route 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_mesh
def delete_mesh(request, options = nil) -> ::Gapic::Operation
def delete_mesh(name: nil) -> ::Gapic::OperationDeletes a single Mesh.
def delete_mesh(request, options = nil) -> ::Gapic::Operationdelete_mesh via a request object, either of type
DeleteMeshRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteMeshRequest, ::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_mesh(name: nil) -> ::Gapic::Operationdelete_mesh 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. A name of the Mesh to delete. Must be in the format
projects/*/locations/global/meshes/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteMeshRequest.new # Call the delete_mesh method. result = client.delete_mesh 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_service_binding
def delete_service_binding(request, options = nil) -> ::Gapic::Operation
def delete_service_binding(name: nil) -> ::Gapic::OperationDeletes a single ServiceBinding.
def delete_service_binding(request, options = nil) -> ::Gapic::Operationdelete_service_binding via a request object, either of type
DeleteServiceBindingRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteServiceBindingRequest, ::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_service_binding(name: nil) -> ::Gapic::Operationdelete_service_binding 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. A name of the ServiceBinding to delete. Must be in the format
projects/*/locations/*/serviceBindings/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteServiceBindingRequest.new # Call the delete_service_binding method. result = client.delete_service_binding 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_service_lb_policy
def delete_service_lb_policy(request, options = nil) -> ::Gapic::Operation
def delete_service_lb_policy(name: nil) -> ::Gapic::OperationDeletes a single ServiceLbPolicy.
def delete_service_lb_policy(request, options = nil) -> ::Gapic::Operationdelete_service_lb_policy via a request object, either of type
DeleteServiceLbPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest, ::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_service_lb_policy(name: nil) -> ::Gapic::Operationdelete_service_lb_policy 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. A name of the ServiceLbPolicy to delete. Must be in the format
projects/{project}/locations/{location}/serviceLbPolicies/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteServiceLbPolicyRequest.new # Call the delete_service_lb_policy method. result = client.delete_service_lb_policy 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_tcp_route
def delete_tcp_route(request, options = nil) -> ::Gapic::Operation
def delete_tcp_route(name: nil) -> ::Gapic::OperationDeletes a single TcpRoute.
def delete_tcp_route(request, options = nil) -> ::Gapic::Operationdelete_tcp_route via a request object, either of type
DeleteTcpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteTcpRouteRequest, ::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_tcp_route(name: nil) -> ::Gapic::Operationdelete_tcp_route 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. A name of the TcpRoute to delete. Must be in the format
projects/*/locations/global/tcpRoutes/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteTcpRouteRequest.new # Call the delete_tcp_route method. result = client.delete_tcp_route 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_tls_route
def delete_tls_route(request, options = nil) -> ::Gapic::Operation
def delete_tls_route(name: nil) -> ::Gapic::OperationDeletes a single TlsRoute.
def delete_tls_route(request, options = nil) -> ::Gapic::Operationdelete_tls_route via a request object, either of type
DeleteTlsRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteTlsRouteRequest, ::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_tls_route(name: nil) -> ::Gapic::Operationdelete_tls_route 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. A name of the TlsRoute to delete. Must be in the format
projects/*/locations/global/tlsRoutes/*.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteTlsRouteRequest.new # Call the delete_tls_route method. result = client.delete_tls_route 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_wasm_plugin
def delete_wasm_plugin(request, options = nil) -> ::Gapic::Operation
def delete_wasm_plugin(name: nil) -> ::Gapic::OperationDeletes the specified WasmPlugin resource.
def delete_wasm_plugin(request, options = nil) -> ::Gapic::Operationdelete_wasm_plugin via a request object, either of type
DeleteWasmPluginRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest, ::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_wasm_plugin(name: nil) -> ::Gapic::Operationdelete_wasm_plugin 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. A name of the
WasmPluginresource to delete. Must be in the formatprojects/{project}/locations/global/wasmPlugins/{wasm_plugin}.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteWasmPluginRequest.new # Call the delete_wasm_plugin method. result = client.delete_wasm_plugin 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_wasm_plugin_version
def delete_wasm_plugin_version(request, options = nil) -> ::Gapic::Operation
def delete_wasm_plugin_version(name: nil) -> ::Gapic::OperationDeletes the specified WasmPluginVersion resource.
def delete_wasm_plugin_version(request, options = nil) -> ::Gapic::Operationdelete_wasm_plugin_version via a request object, either of type
DeleteWasmPluginVersionRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest, ::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_wasm_plugin_version(name: nil) -> ::Gapic::Operationdelete_wasm_plugin_version 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. A name of the
WasmPluginVersionresource to delete. Must be in the formatprojects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::DeleteWasmPluginVersionRequest.new # Call the delete_wasm_plugin_version method. result = client.delete_wasm_plugin_version 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
#get_endpoint_policy
def get_endpoint_policy(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::EndpointPolicy
def get_endpoint_policy(name: nil) -> ::Google::Cloud::NetworkServices::V1::EndpointPolicyGets details of a single EndpointPolicy.
def get_endpoint_policy(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::EndpointPolicyget_endpoint_policy via a request object, either of type
GetEndpointPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetEndpointPolicyRequest, ::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_endpoint_policy(name: nil) -> ::Google::Cloud::NetworkServices::V1::EndpointPolicyget_endpoint_policy 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. A name of the EndpointPolicy to get. Must be in the format
projects/*/locations/global/endpointPolicies/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::EndpointPolicy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetEndpointPolicyRequest.new # Call the get_endpoint_policy method. result = client.get_endpoint_policy request # The returned object is of type Google::Cloud::NetworkServices::V1::EndpointPolicy. p result
#get_gateway
def get_gateway(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::Gateway
def get_gateway(name: nil) -> ::Google::Cloud::NetworkServices::V1::GatewayGets details of a single Gateway.
def get_gateway(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::Gatewayget_gateway via a request object, either of type
GetGatewayRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetGatewayRequest, ::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_gateway(name: nil) -> ::Google::Cloud::NetworkServices::V1::Gatewayget_gateway 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. A name of the Gateway to get. Must be in the format
projects/*/locations/*/gateways/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::Gateway)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetGatewayRequest.new # Call the get_gateway method. result = client.get_gateway request # The returned object is of type Google::Cloud::NetworkServices::V1::Gateway. p result
#get_gateway_route_view
def get_gateway_route_view(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::GatewayRouteView
def get_gateway_route_view(name: nil) -> ::Google::Cloud::NetworkServices::V1::GatewayRouteViewGet a single RouteView of a Gateway.
def get_gateway_route_view(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::GatewayRouteViewget_gateway_route_view via a request object, either of type
GetGatewayRouteViewRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest, ::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_gateway_route_view(name: nil) -> ::Google::Cloud::NetworkServices::V1::GatewayRouteViewget_gateway_route_view 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 GatewayRouteView resource. Formats: projects/{project}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::GatewayRouteView)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetGatewayRouteViewRequest.new # Call the get_gateway_route_view method. result = client.get_gateway_route_view request # The returned object is of type Google::Cloud::NetworkServices::V1::GatewayRouteView. p result
#get_grpc_route
def get_grpc_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute
def get_grpc_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::GrpcRouteGets details of a single GrpcRoute.
def get_grpc_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::GrpcRouteget_grpc_route via a request object, either of type
GetGrpcRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetGrpcRouteRequest, ::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_grpc_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::GrpcRouteget_grpc_route 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. A name of the GrpcRoute to get. Must be in the format
projects/*/locations/global/grpcRoutes/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::GrpcRoute)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetGrpcRouteRequest.new # Call the get_grpc_route method. result = client.get_grpc_route request # The returned object is of type Google::Cloud::NetworkServices::V1::GrpcRoute. p result
#get_http_route
def get_http_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::HttpRoute
def get_http_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::HttpRouteGets details of a single HttpRoute.
def get_http_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::HttpRouteget_http_route via a request object, either of type
GetHttpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetHttpRouteRequest, ::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_http_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::HttpRouteget_http_route 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. A name of the HttpRoute to get. Must be in the format
projects/*/locations/global/httpRoutes/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::HttpRoute)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetHttpRouteRequest.new # Call the get_http_route method. result = client.get_http_route request # The returned object is of type Google::Cloud::NetworkServices::V1::HttpRoute. p result
#get_mesh
def get_mesh(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::Mesh
def get_mesh(name: nil) -> ::Google::Cloud::NetworkServices::V1::MeshGets details of a single Mesh.
def get_mesh(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::Meshget_mesh via a request object, either of type
GetMeshRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetMeshRequest, ::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_mesh(name: nil) -> ::Google::Cloud::NetworkServices::V1::Meshget_mesh 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. A name of the Mesh to get. Must be in the format
projects/*/locations/global/meshes/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::Mesh)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetMeshRequest.new # Call the get_mesh method. result = client.get_mesh request # The returned object is of type Google::Cloud::NetworkServices::V1::Mesh. p result
#get_mesh_route_view
def get_mesh_route_view(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::MeshRouteView
def get_mesh_route_view(name: nil) -> ::Google::Cloud::NetworkServices::V1::MeshRouteViewGet a single RouteView of a Mesh.
def get_mesh_route_view(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::MeshRouteViewget_mesh_route_view via a request object, either of type
GetMeshRouteViewRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest, ::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_mesh_route_view(name: nil) -> ::Google::Cloud::NetworkServices::V1::MeshRouteViewget_mesh_route_view 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 MeshRouteView resource. Format: projects/{project}/locations/{location}/meshes/{mesh}/routeViews/{route_view}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::MeshRouteView)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetMeshRouteViewRequest.new # Call the get_mesh_route_view method. result = client.get_mesh_route_view request # The returned object is of type Google::Cloud::NetworkServices::V1::MeshRouteView. p result
#get_service_binding
def get_service_binding(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::ServiceBinding
def get_service_binding(name: nil) -> ::Google::Cloud::NetworkServices::V1::ServiceBindingGets details of a single ServiceBinding.
def get_service_binding(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::ServiceBindingget_service_binding via a request object, either of type
GetServiceBindingRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetServiceBindingRequest, ::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_service_binding(name: nil) -> ::Google::Cloud::NetworkServices::V1::ServiceBindingget_service_binding 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. A name of the ServiceBinding to get. Must be in the format
projects/*/locations/*/serviceBindings/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::ServiceBinding)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetServiceBindingRequest.new # Call the get_service_binding method. result = client.get_service_binding request # The returned object is of type Google::Cloud::NetworkServices::V1::ServiceBinding. p result
#get_service_lb_policy
def get_service_lb_policy(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicy
def get_service_lb_policy(name: nil) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicyGets details of a single ServiceLbPolicy.
def get_service_lb_policy(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicyget_service_lb_policy via a request object, either of type
GetServiceLbPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest, ::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_service_lb_policy(name: nil) -> ::Google::Cloud::NetworkServices::V1::ServiceLbPolicyget_service_lb_policy 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. A name of the ServiceLbPolicy to get. Must be in the format
projects/{project}/locations/{location}/serviceLbPolicies/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::ServiceLbPolicy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetServiceLbPolicyRequest.new # Call the get_service_lb_policy method. result = client.get_service_lb_policy request # The returned object is of type Google::Cloud::NetworkServices::V1::ServiceLbPolicy. p result
#get_tcp_route
def get_tcp_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::TcpRoute
def get_tcp_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::TcpRouteGets details of a single TcpRoute.
def get_tcp_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::TcpRouteget_tcp_route via a request object, either of type
GetTcpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetTcpRouteRequest, ::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_tcp_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::TcpRouteget_tcp_route 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. A name of the TcpRoute to get. Must be in the format
projects/*/locations/global/tcpRoutes/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::TcpRoute)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetTcpRouteRequest.new # Call the get_tcp_route method. result = client.get_tcp_route request # The returned object is of type Google::Cloud::NetworkServices::V1::TcpRoute. p result
#get_tls_route
def get_tls_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::TlsRoute
def get_tls_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::TlsRouteGets details of a single TlsRoute.
def get_tls_route(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::TlsRouteget_tls_route via a request object, either of type
GetTlsRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetTlsRouteRequest, ::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_tls_route(name: nil) -> ::Google::Cloud::NetworkServices::V1::TlsRouteget_tls_route 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. A name of the TlsRoute to get. Must be in the format
projects/*/locations/global/tlsRoutes/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::TlsRoute)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetTlsRouteRequest.new # Call the get_tls_route method. result = client.get_tls_route request # The returned object is of type Google::Cloud::NetworkServices::V1::TlsRoute. p result
#get_wasm_plugin
def get_wasm_plugin(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin
def get_wasm_plugin(name: nil, view: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginGets details of the specified WasmPlugin resource.
def get_wasm_plugin(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginget_wasm_plugin via a request object, either of type
GetWasmPluginRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetWasmPluginRequest, ::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_wasm_plugin(name: nil, view: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginget_wasm_plugin 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. A name of the
WasmPluginresource to get. Must be in the formatprojects/{project}/locations/global/wasmPlugins/{wasm_plugin}. - view (::Google::Cloud::NetworkServices::V1::WasmPluginView) — Determines how much data must be returned in the response. See AIP-157.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::WasmPlugin)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetWasmPluginRequest.new # Call the get_wasm_plugin method. result = client.get_wasm_plugin request # The returned object is of type Google::Cloud::NetworkServices::V1::WasmPlugin. p result
#get_wasm_plugin_version
def get_wasm_plugin_version(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginVersion
def get_wasm_plugin_version(name: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginVersionGets details of the specified WasmPluginVersion resource.
def get_wasm_plugin_version(request, options = nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginVersionget_wasm_plugin_version via a request object, either of type
GetWasmPluginVersionRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest, ::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_wasm_plugin_version(name: nil) -> ::Google::Cloud::NetworkServices::V1::WasmPluginVersionget_wasm_plugin_version 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. A name of the
WasmPluginVersionresource to get. Must be in the formatprojects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetworkServices::V1::WasmPluginVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::GetWasmPluginVersionRequest.new # Call the get_wasm_plugin_version method. result = client.get_wasm_plugin_version request # The returned object is of type Google::Cloud::NetworkServices::V1::WasmPluginVersion. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new NetworkServices REST client object.
- (config) — Configure the NetworkServices client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new do |config| config.timeout = 10.0 end
#list_endpoint_policies
def list_endpoint_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>
def list_endpoint_policies(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>Lists EndpointPolicies in a given project and location.
def list_endpoint_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>list_endpoint_policies via a request object, either of type
ListEndpointPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListEndpointPoliciesRequest, ::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_endpoint_policies(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>list_endpoint_policies 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. The project and location from which the EndpointPolicies should
be listed, specified in the format
projects/*/locations/global. - page_size (::Integer) — Maximum number of EndpointPolicies to return per call.
-
page_token (::String) — The value returned by the last
ListEndpointPoliciesResponseIndicates that this is a continuation of a priorListEndpointPoliciescall, and that the system should return the next page of data. - return_partial_success (::Boolean) — Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::EndpointPolicy>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListEndpointPoliciesRequest.new # Call the list_endpoint_policies method. result = client.list_endpoint_policies 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::NetworkServices::V1::EndpointPolicy. p item end
#list_gateway_route_views
def list_gateway_route_views(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>
def list_gateway_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>Lists RouteViews
def list_gateway_route_views(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>list_gateway_route_views via a request object, either of type
ListGatewayRouteViewsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest, ::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_gateway_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>list_gateway_route_views 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. The Gateway to which a Route is associated. Formats: projects/{project}/locations/{location}/gateways/{gateway}
- page_size (::Integer) — Maximum number of GatewayRouteViews to return per call.
-
page_token (::String) — The value returned by the last
ListGatewayRouteViewsResponseIndicates that this is a continuation of a priorListGatewayRouteViewscall, and that the system should return the next page of data.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GatewayRouteView>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListGatewayRouteViewsRequest.new # Call the list_gateway_route_views method. result = client.list_gateway_route_views 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::NetworkServices::V1::GatewayRouteView. p item end
#list_gateways
def list_gateways(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>
def list_gateways(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>Lists Gateways in a given project and location.
def list_gateways(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>list_gateways via a request object, either of type
ListGatewaysRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListGatewaysRequest, ::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_gateways(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>list_gateways 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. The project and location from which the Gateways should be
listed, specified in the format
projects/*/locations/*. - page_size (::Integer) — Maximum number of Gateways to return per call.
-
page_token (::String) — The value returned by the last
ListGatewaysResponseIndicates that this is a continuation of a priorListGatewayscall, and that the system should return the next page of data.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Gateway>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListGatewaysRequest.new # Call the list_gateways method. result = client.list_gateways 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::NetworkServices::V1::Gateway. p item end
#list_grpc_routes
def list_grpc_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>
def list_grpc_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>Lists GrpcRoutes in a given project and location.
def list_grpc_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>list_grpc_routes via a request object, either of type
ListGrpcRoutesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListGrpcRoutesRequest, ::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_grpc_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>list_grpc_routes 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. The project and location from which the GrpcRoutes should be
listed, specified in the format
projects/*/locations/global. - page_size (::Integer) — Maximum number of GrpcRoutes to return per call.
-
page_token (::String) — The value returned by the last
ListGrpcRoutesResponseIndicates that this is a continuation of a priorListGrpcRoutescall, and that the system should return the next page of data. - return_partial_success (::Boolean) — Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::GrpcRoute>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListGrpcRoutesRequest.new # Call the list_grpc_routes method. result = client.list_grpc_routes 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::NetworkServices::V1::GrpcRoute. p item end
#list_http_routes
def list_http_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>
def list_http_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>Lists HttpRoute in a given project and location.
def list_http_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>list_http_routes via a request object, either of type
ListHttpRoutesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListHttpRoutesRequest, ::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_http_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>list_http_routes 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. The project and location from which the HttpRoutes should be
listed, specified in the format
projects/*/locations/global. - page_size (::Integer) — Maximum number of HttpRoutes to return per call.
-
page_token (::String) — The value returned by the last
ListHttpRoutesResponseIndicates that this is a continuation of a priorListHttpRoutescall, and that the system should return the next page of data. - return_partial_success (::Boolean) — Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::HttpRoute>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListHttpRoutesRequest.new # Call the list_http_routes method. result = client.list_http_routes 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::NetworkServices::V1::HttpRoute. p item end
#list_mesh_route_views
def list_mesh_route_views(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>
def list_mesh_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>Lists RouteViews
def list_mesh_route_views(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>list_mesh_route_views via a request object, either of type
ListMeshRouteViewsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest, ::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_mesh_route_views(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>list_mesh_route_views 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. The Mesh to which a Route is associated. Format: projects/{project}/locations/{location}/meshes/{mesh}
- page_size (::Integer) — Maximum number of MeshRouteViews to return per call.
-
page_token (::String) — The value returned by the last
ListMeshRouteViewsResponseIndicates that this is a continuation of a priorListMeshRouteViewscall, and that the system should return the next page of data.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::MeshRouteView>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListMeshRouteViewsRequest.new # Call the list_mesh_route_views method. result = client.list_mesh_route_views 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::NetworkServices::V1::MeshRouteView. p item end
#list_meshes
def list_meshes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>
def list_meshes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>Lists Meshes in a given project and location.
def list_meshes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>list_meshes via a request object, either of type
ListMeshesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListMeshesRequest, ::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_meshes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>list_meshes 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. The project and location from which the Meshes should be
listed, specified in the format
projects/*/locations/global. - page_size (::Integer) — Maximum number of Meshes to return per call.
-
page_token (::String) — The value returned by the last
ListMeshesResponseIndicates that this is a continuation of a priorListMeshescall, and that the system should return the next page of data. - return_partial_success (::Boolean) — Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::Mesh>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListMeshesRequest.new # Call the list_meshes method. result = client.list_meshes 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::NetworkServices::V1::Mesh. p item end
#list_service_bindings
def list_service_bindings(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>
def list_service_bindings(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>Lists ServiceBinding in a given project and location.
def list_service_bindings(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>list_service_bindings via a request object, either of type
ListServiceBindingsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListServiceBindingsRequest, ::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_service_bindings(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>list_service_bindings 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. The project and location from which the ServiceBindings should be
listed, specified in the format
projects/*/locations/*. - page_size (::Integer) — Maximum number of ServiceBindings to return per call.
-
page_token (::String) — The value returned by the last
ListServiceBindingsResponseIndicates that this is a continuation of a priorListRouterscall, and that the system should return the next page of data.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceBinding>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListServiceBindingsRequest.new # Call the list_service_bindings method. result = client.list_service_bindings 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::NetworkServices::V1::ServiceBinding. p item end
#list_service_lb_policies
def list_service_lb_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>
def list_service_lb_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>Lists ServiceLbPolicies in a given project and location.
def list_service_lb_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>list_service_lb_policies via a request object, either of type
ListServiceLbPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest, ::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_service_lb_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>list_service_lb_policies 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. The project and location from which the ServiceLbPolicies should
be listed, specified in the format
projects/{project}/locations/{location}. - page_size (::Integer) — Maximum number of ServiceLbPolicies to return per call.
-
page_token (::String) — The value returned by the last
ListServiceLbPoliciesResponseIndicates that this is a continuation of a priorListRouterscall, and that the system should return the next page of data.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::ServiceLbPolicy>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListServiceLbPoliciesRequest.new # Call the list_service_lb_policies method. result = client.list_service_lb_policies 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::NetworkServices::V1::ServiceLbPolicy. p item end
#list_tcp_routes
def list_tcp_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>
def list_tcp_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>Lists TcpRoute in a given project and location.
def list_tcp_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>list_tcp_routes via a request object, either of type
ListTcpRoutesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListTcpRoutesRequest, ::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_tcp_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>list_tcp_routes 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. The project and location from which the TcpRoutes should be
listed, specified in the format
projects/*/locations/global. - page_size (::Integer) — Maximum number of TcpRoutes to return per call.
-
page_token (::String) — The value returned by the last
ListTcpRoutesResponseIndicates that this is a continuation of a priorListTcpRoutescall, and that the system should return the next page of data. - return_partial_success (::Boolean) — Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TcpRoute>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListTcpRoutesRequest.new # Call the list_tcp_routes method. result = client.list_tcp_routes 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::NetworkServices::V1::TcpRoute. p item end
#list_tls_routes
def list_tls_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>
def list_tls_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>Lists TlsRoute in a given project and location.
def list_tls_routes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>list_tls_routes via a request object, either of type
ListTlsRoutesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListTlsRoutesRequest, ::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_tls_routes(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>list_tls_routes 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. The project and location from which the TlsRoutes should be
listed, specified in the format
projects/*/locations/global. - page_size (::Integer) — Maximum number of TlsRoutes to return per call.
-
page_token (::String) — The value returned by the last
ListTlsRoutesResponseIndicates that this is a continuation of a priorListTlsRoutescall, and that the system should return the next page of data. - return_partial_success (::Boolean) — Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::TlsRoute>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListTlsRoutesRequest.new # Call the list_tls_routes method. result = client.list_tls_routes 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::NetworkServices::V1::TlsRoute. p item end
#list_wasm_plugin_versions
def list_wasm_plugin_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>
def list_wasm_plugin_versions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>Lists WasmPluginVersion resources in a given project and
location.
def list_wasm_plugin_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>list_wasm_plugin_versions via a request object, either of type
ListWasmPluginVersionsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest, ::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_wasm_plugin_versions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>list_wasm_plugin_versions 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. The
WasmPluginresource whoseWasmPluginVersions are listed, specified in the following format:projects/{project}/locations/global/wasmPlugins/{wasm_plugin}. -
page_size (::Integer) — Maximum number of
WasmPluginVersionresources to return per call. If not specified, at most 50WasmPluginVersionresources are returned. The maximum value is 1000; values above 1000 are coerced to 1000. -
page_token (::String) — The value returned by the last
ListWasmPluginVersionsResponsecall. Indicates that this is a continuation of a priorListWasmPluginVersionscall, and that the next page of data is to be returned.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPluginVersion>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListWasmPluginVersionsRequest.new # Call the list_wasm_plugin_versions method. result = client.list_wasm_plugin_versions 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::NetworkServices::V1::WasmPluginVersion. p item end
#list_wasm_plugins
def list_wasm_plugins(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>
def list_wasm_plugins(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>Lists WasmPlugin resources in a given project and
location.
def list_wasm_plugins(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>list_wasm_plugins via a request object, either of type
ListWasmPluginsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest, ::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_wasm_plugins(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>list_wasm_plugins 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. The project and location from which the
WasmPluginresources are listed, specified in the following format:projects/{project}/locations/global. -
page_size (::Integer) — Maximum number of
WasmPluginresources to return per call. If not specified, at most 50WasmPluginresources are returned. The maximum value is 1000; values above 1000 are coerced to 1000. -
page_token (::String) — The value returned by the last
ListWasmPluginsResponsecall. Indicates that this is a continuation of a priorListWasmPluginscall, and that the next page of data is to be returned.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkServices::V1::WasmPlugin>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::ListWasmPluginsRequest.new # Call the list_wasm_plugins method. result = client.list_wasm_plugins 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::NetworkServices::V1::WasmPlugin. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::NetworkServices::V1::NetworkServices::Rest::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_endpoint_policy
def update_endpoint_policy(request, options = nil) -> ::Gapic::Operation
def update_endpoint_policy(update_mask: nil, endpoint_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single EndpointPolicy.
def update_endpoint_policy(request, options = nil) -> ::Gapic::Operationupdate_endpoint_policy via a request object, either of type
UpdateEndpointPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateEndpointPolicyRequest, ::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_endpoint_policy(update_mask: nil, endpoint_policy: nil) -> ::Gapic::Operationupdate_endpoint_policy 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) — Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy 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.
- endpoint_policy (::Google::Cloud::NetworkServices::V1::EndpointPolicy, ::Hash) — Required. Updated EndpointPolicy resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateEndpointPolicyRequest.new # Call the update_endpoint_policy method. result = client.update_endpoint_policy 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_gateway
def update_gateway(request, options = nil) -> ::Gapic::Operation
def update_gateway(update_mask: nil, gateway: nil) -> ::Gapic::OperationUpdates the parameters of a single Gateway.
def update_gateway(request, options = nil) -> ::Gapic::Operationupdate_gateway via a request object, either of type
UpdateGatewayRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateGatewayRequest, ::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_gateway(update_mask: nil, gateway: nil) -> ::Gapic::Operationupdate_gateway 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) — Optional. Field mask is used to specify the fields to be overwritten in the Gateway 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.
- gateway (::Google::Cloud::NetworkServices::V1::Gateway, ::Hash) — Required. Updated Gateway resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateGatewayRequest.new # Call the update_gateway method. result = client.update_gateway 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_grpc_route
def update_grpc_route(request, options = nil) -> ::Gapic::Operation
def update_grpc_route(update_mask: nil, grpc_route: nil) -> ::Gapic::OperationUpdates the parameters of a single GrpcRoute.
def update_grpc_route(request, options = nil) -> ::Gapic::Operationupdate_grpc_route via a request object, either of type
UpdateGrpcRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateGrpcRouteRequest, ::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_grpc_route(update_mask: nil, grpc_route: nil) -> ::Gapic::Operationupdate_grpc_route 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) — Optional. Field mask is used to specify the fields to be overwritten in the GrpcRoute 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.
- grpc_route (::Google::Cloud::NetworkServices::V1::GrpcRoute, ::Hash) — Required. Updated GrpcRoute resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateGrpcRouteRequest.new # Call the update_grpc_route method. result = client.update_grpc_route 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_http_route
def update_http_route(request, options = nil) -> ::Gapic::Operation
def update_http_route(update_mask: nil, http_route: nil) -> ::Gapic::OperationUpdates the parameters of a single HttpRoute.
def update_http_route(request, options = nil) -> ::Gapic::Operationupdate_http_route via a request object, either of type
UpdateHttpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateHttpRouteRequest, ::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_http_route(update_mask: nil, http_route: nil) -> ::Gapic::Operationupdate_http_route 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) — Optional. Field mask is used to specify the fields to be overwritten in the HttpRoute 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.
- http_route (::Google::Cloud::NetworkServices::V1::HttpRoute, ::Hash) — Required. Updated HttpRoute resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateHttpRouteRequest.new # Call the update_http_route method. result = client.update_http_route 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_mesh
def update_mesh(request, options = nil) -> ::Gapic::Operation
def update_mesh(update_mask: nil, mesh: nil) -> ::Gapic::OperationUpdates the parameters of a single Mesh.
def update_mesh(request, options = nil) -> ::Gapic::Operationupdate_mesh via a request object, either of type
UpdateMeshRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateMeshRequest, ::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_mesh(update_mask: nil, mesh: nil) -> ::Gapic::Operationupdate_mesh 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) — Optional. Field mask is used to specify the fields to be overwritten in the Mesh 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.
- mesh (::Google::Cloud::NetworkServices::V1::Mesh, ::Hash) — Required. Updated Mesh resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateMeshRequest.new # Call the update_mesh method. result = client.update_mesh 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_service_binding
def update_service_binding(request, options = nil) -> ::Gapic::Operation
def update_service_binding(update_mask: nil, service_binding: nil) -> ::Gapic::OperationUpdates the parameters of a single ServiceBinding.
def update_service_binding(request, options = nil) -> ::Gapic::Operationupdate_service_binding via a request object, either of type
UpdateServiceBindingRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest, ::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_service_binding(update_mask: nil, service_binding: nil) -> ::Gapic::Operationupdate_service_binding 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) — Optional. Field mask is used to specify the fields to be overwritten in the ServiceBinding 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.
- service_binding (::Google::Cloud::NetworkServices::V1::ServiceBinding, ::Hash) — Required. Updated ServiceBinding resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateServiceBindingRequest.new # Call the update_service_binding method. result = client.update_service_binding 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_service_lb_policy
def update_service_lb_policy(request, options = nil) -> ::Gapic::Operation
def update_service_lb_policy(update_mask: nil, service_lb_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single ServiceLbPolicy.
def update_service_lb_policy(request, options = nil) -> ::Gapic::Operationupdate_service_lb_policy via a request object, either of type
UpdateServiceLbPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest, ::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_service_lb_policy(update_mask: nil, service_lb_policy: nil) -> ::Gapic::Operationupdate_service_lb_policy 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) — Optional. Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy 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.
- service_lb_policy (::Google::Cloud::NetworkServices::V1::ServiceLbPolicy, ::Hash) — Required. Updated ServiceLbPolicy resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateServiceLbPolicyRequest.new # Call the update_service_lb_policy method. result = client.update_service_lb_policy 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_tcp_route
def update_tcp_route(request, options = nil) -> ::Gapic::Operation
def update_tcp_route(update_mask: nil, tcp_route: nil) -> ::Gapic::OperationUpdates the parameters of a single TcpRoute.
def update_tcp_route(request, options = nil) -> ::Gapic::Operationupdate_tcp_route via a request object, either of type
UpdateTcpRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateTcpRouteRequest, ::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_tcp_route(update_mask: nil, tcp_route: nil) -> ::Gapic::Operationupdate_tcp_route 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) — Optional. Field mask is used to specify the fields to be overwritten in the TcpRoute 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.
- tcp_route (::Google::Cloud::NetworkServices::V1::TcpRoute, ::Hash) — Required. Updated TcpRoute resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateTcpRouteRequest.new # Call the update_tcp_route method. result = client.update_tcp_route 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_tls_route
def update_tls_route(request, options = nil) -> ::Gapic::Operation
def update_tls_route(update_mask: nil, tls_route: nil) -> ::Gapic::OperationUpdates the parameters of a single TlsRoute.
def update_tls_route(request, options = nil) -> ::Gapic::Operationupdate_tls_route via a request object, either of type
UpdateTlsRouteRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateTlsRouteRequest, ::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_tls_route(update_mask: nil, tls_route: nil) -> ::Gapic::Operationupdate_tls_route 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) — Optional. Field mask is used to specify the fields to be overwritten in the TlsRoute 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.
- tls_route (::Google::Cloud::NetworkServices::V1::TlsRoute, ::Hash) — Required. Updated TlsRoute resource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateTlsRouteRequest.new # Call the update_tls_route method. result = client.update_tls_route 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_wasm_plugin
def update_wasm_plugin(request, options = nil) -> ::Gapic::Operation
def update_wasm_plugin(update_mask: nil, wasm_plugin: nil) -> ::Gapic::OperationUpdates the parameters of the specified WasmPlugin resource.
def update_wasm_plugin(request, options = nil) -> ::Gapic::Operationupdate_wasm_plugin via a request object, either of type
UpdateWasmPluginRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest, ::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_wasm_plugin(update_mask: nil, wasm_plugin: nil) -> ::Gapic::Operationupdate_wasm_plugin 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) — Optional. Used to specify the fields to be overwritten in the
WasmPluginresource by the update. The fields specified in theupdate_maskfield are relative to the resource, not the full request. An omittedupdate_maskfield is treated as an impliedupdate_maskfield equivalent to all fields that are populated (that have a non-empty value). Theupdate_maskfield supports a special value*, which means that each field in the givenWasmPluginresource (including the empty ones) replaces the current value. -
wasm_plugin (::Google::Cloud::NetworkServices::V1::WasmPlugin, ::Hash) — Required. Updated
WasmPluginresource.
- (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/network_services/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkServices::V1::NetworkServices::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkServices::V1::UpdateWasmPluginRequest.new # Call the update_wasm_plugin method. result = client.update_wasm_plugin 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