API hub V1 API - Class Google::Cloud::ApiHub::V1::ApiHubCurate::Rest::ServiceStub (v0.6.0)

Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::ApiHubCurate::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_curation

def create_curation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::Curation

Baseline implementation for the create_curation REST call

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

#delete_curation

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

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

def get_curation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::Curation

Baseline implementation for the get_curation REST call

Parameters
  • request_pb (::Google::Cloud::ApiHub::V1::GetCurationRequest) — 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)

#list_curations

def list_curations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::ListCurationsResponse

Baseline implementation for the list_curations REST call

Parameters
  • request_pb (::Google::Cloud::ApiHub::V1::ListCurationsRequest) — 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)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_curation

def update_curation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::Curation

Baseline implementation for the update_curation REST call

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