Service Directory V1 API - Class Google::Cloud::ServiceDirectory::V1::RegistrationService::Rest::ServiceStub (v1.0.1)

Reference documentation and code samples for the Service Directory V1 API class Google::Cloud::ServiceDirectory::V1::RegistrationService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_endpoint

def create_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Endpoint

Baseline implementation for the create_endpoint REST call

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

#create_namespace

def create_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Namespace

Baseline implementation for the create_namespace REST call

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

#create_service

def create_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Service

Baseline implementation for the create_service REST call

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

#delete_endpoint

def delete_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_endpoint REST call

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

#delete_namespace

def delete_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_namespace REST call

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

#delete_service

def delete_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_service 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

def get_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Endpoint

Baseline implementation for the get_endpoint REST call

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

#get_iam_policy

def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the get_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::GetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_namespace

def get_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Namespace

Baseline implementation for the get_namespace REST call

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

#get_service

def get_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Service

Baseline implementation for the get_service 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_endpoints

def list_endpoints(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::ListEndpointsResponse

Baseline implementation for the list_endpoints REST call

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

#list_namespaces

def list_namespaces(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::ListNamespacesResponse

Baseline implementation for the list_namespaces REST call

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

#list_services

def list_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::ListServicesResponse

Baseline implementation for the list_services REST call

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

#set_iam_policy

def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the set_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::SetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#test_iam_permissions

def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse

Baseline implementation for the test_iam_permissions REST call

Parameters
  • request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
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

def update_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Endpoint

Baseline implementation for the update_endpoint REST call

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

#update_namespace

def update_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Namespace

Baseline implementation for the update_namespace REST call

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

#update_service

def update_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1::Service

Baseline implementation for the update_service REST call

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