Network Services V1 API - Class Google::Cloud::NetworkServices::V1::NetworkServices::Rest::ServiceStub (v0.1.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::NetworkServices::Rest::ServiceStub.

REST service stub for the NetworkServices service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_endpoint_policy

def create_endpoint_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_endpoint_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_gateway

def create_gateway(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_gateway REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_grpc_route

def create_grpc_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_grpc_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_http_route

def create_http_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_http_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_mesh

def create_mesh(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_mesh REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_service_binding

def create_service_binding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_service_binding REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_tcp_route

def create_tcp_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_tcp_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_tls_route

def create_tls_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_tls_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_endpoint_policy

def delete_endpoint_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_endpoint_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_gateway

def delete_gateway(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_gateway REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_grpc_route

def delete_grpc_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_grpc_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_http_route

def delete_http_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_http_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_mesh

def delete_mesh(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_mesh REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_service_binding

def delete_service_binding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_service_binding REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_tcp_route

def delete_tcp_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_tcp_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_tls_route

def delete_tls_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_tls_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_endpoint_policy

def get_endpoint_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::EndpointPolicy

Baseline implementation for the get_endpoint_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_gateway

def get_gateway(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::Gateway

Baseline implementation for the get_gateway REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_grpc_route

def get_grpc_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::GrpcRoute

Baseline implementation for the get_grpc_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_http_route

def get_http_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::HttpRoute

Baseline implementation for the get_http_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_mesh

def get_mesh(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::Mesh

Baseline implementation for the get_mesh REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_service_binding

def get_service_binding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ServiceBinding

Baseline implementation for the get_service_binding REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_tcp_route

def get_tcp_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::TcpRoute

Baseline implementation for the get_tcp_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_tls_route

def get_tls_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::TlsRoute

Baseline implementation for the get_tls_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_endpoint_policies

def list_endpoint_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListEndpointPoliciesResponse

Baseline implementation for the list_endpoint_policies REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_gateways

def list_gateways(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListGatewaysResponse

Baseline implementation for the list_gateways REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_grpc_routes

def list_grpc_routes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListGrpcRoutesResponse

Baseline implementation for the list_grpc_routes REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_http_routes

def list_http_routes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListHttpRoutesResponse

Baseline implementation for the list_http_routes REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_meshes

def list_meshes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListMeshesResponse

Baseline implementation for the list_meshes REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_service_bindings

def list_service_bindings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListServiceBindingsResponse

Baseline implementation for the list_service_bindings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_tcp_routes

def list_tcp_routes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListTcpRoutesResponse

Baseline implementation for the list_tcp_routes REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_tls_routes

def list_tls_routes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkServices::V1::ListTlsRoutesResponse

Baseline implementation for the list_tls_routes REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_endpoint_policy

def update_endpoint_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_endpoint_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_gateway

def update_gateway(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_gateway REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_grpc_route

def update_grpc_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_grpc_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_http_route

def update_http_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_http_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_mesh

def update_mesh(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_mesh REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_tcp_route

def update_tcp_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_tcp_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_tls_route

def update_tls_route(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_tls_route REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)