Reference documentation and code samples for the Service Directory V1beta1 API class Google::Cloud::ServiceDirectory::V1beta1::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::V1beta1::Endpoint
Baseline implementation for the create_endpoint REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::CreateEndpointRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Endpoint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Endpoint) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_namespace
def create_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Namespace
Baseline implementation for the create_namespace REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::CreateNamespaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Namespace)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Namespace) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_service
def create_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Service
Baseline implementation for the create_service REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::CreateServiceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Service)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Service) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_endpoint
def delete_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_endpoint REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::DeleteEndpointRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_namespace
def delete_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_namespace REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::DeleteNamespaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_service
def delete_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_service REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::DeleteServiceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_endpoint
def get_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Endpoint
Baseline implementation for the get_endpoint REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::GetEndpointRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Endpoint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Endpoint) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_namespace
def get_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Namespace
Baseline implementation for the get_namespace REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::GetNamespaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Namespace)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Namespace) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_service
def get_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Service
Baseline implementation for the get_service REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::GetServiceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Service)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Service) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_endpoints
def list_endpoints(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsResponse
Baseline implementation for the list_endpoints REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::ListEndpointsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_namespaces
def list_namespaces(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesResponse
Baseline implementation for the list_namespaces REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_services
def list_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::ListServicesResponse
Baseline implementation for the list_services REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::ListServicesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::ListServicesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::ListServicesResponse) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_endpoint
def update_endpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Endpoint
Baseline implementation for the update_endpoint REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::UpdateEndpointRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Endpoint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Endpoint) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_namespace
def update_namespace(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Namespace
Baseline implementation for the update_namespace REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::UpdateNamespaceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Namespace)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Namespace) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_service
def update_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceDirectory::V1beta1::Service
Baseline implementation for the update_service REST call
- request_pb (::Google::Cloud::ServiceDirectory::V1beta1::UpdateServiceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::ServiceDirectory::V1beta1::Service)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::ServiceDirectory::V1beta1::Service) — A result object deserialized from the server's reply
- (::ArgumentError)