Retail V2 API - Class Google::Cloud::Retail::V2::ServingConfigService::Rest::ServiceStub (v1.0.1)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::ServingConfigService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#add_control

def add_control(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ServingConfig

Baseline implementation for the add_control REST call

Parameters
  • request_pb (::Google::Cloud::Retail::V2::AddControlRequest) — 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)

#create_serving_config

def create_serving_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ServingConfig

Baseline implementation for the create_serving_config REST call

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

#delete_serving_config

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

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

def get_serving_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ServingConfig

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

def list_serving_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ListServingConfigsResponse

Baseline implementation for the list_serving_configs REST call

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

#remove_control

def remove_control(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ServingConfig

Baseline implementation for the remove_control REST call

Parameters
  • request_pb (::Google::Cloud::Retail::V2::RemoveControlRequest) — 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_serving_config

def update_serving_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ServingConfig

Baseline implementation for the update_serving_config REST call

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