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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::ServingConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ServingConfig) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Retail::V2::CreateServingConfigRequest) — 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::Retail::V2::ServingConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ServingConfig) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Retail::V2::DeleteServingConfigRequest) — 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)
#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
- request_pb (::Google::Cloud::Retail::V2::GetServingConfigRequest) — 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::Retail::V2::ServingConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ServingConfig) — 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_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
- request_pb (::Google::Cloud::Retail::V2::ListServingConfigsRequest) — 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::Retail::V2::ListServingConfigsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ListServingConfigsResponse) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Retail::V2::ServingConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ServingConfig) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (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
- request_pb (::Google::Cloud::Retail::V2::UpdateServingConfigRequest) — 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::Retail::V2::ServingConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ServingConfig) — A result object deserialized from the server's reply
- (::ArgumentError)