Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::ModelService::Rest::ServiceStub.
REST service stub for the ModelService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_model
def create_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the create_model REST call
- request_pb (::Google::Cloud::Retail::V2::CreateModelRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_model
def delete_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_model REST call
- request_pb (::Google::Cloud::Retail::V2::DeleteModelRequest) — 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_model
def get_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Model
Baseline implementation for the get_model REST call
- request_pb (::Google::Cloud::Retail::V2::GetModelRequest) — 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::Model)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Model) — 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_models
def list_models(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ListModelsResponse
Baseline implementation for the list_models REST call
- request_pb (::Google::Cloud::Retail::V2::ListModelsRequest) — 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::ListModelsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ListModelsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#pause_model
def pause_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Model
Baseline implementation for the pause_model REST call
- request_pb (::Google::Cloud::Retail::V2::PauseModelRequest) — 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::Model)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Model) — A result object deserialized from the server's reply
- (::ArgumentError)
#resume_model
def resume_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Model
Baseline implementation for the resume_model REST call
- request_pb (::Google::Cloud::Retail::V2::ResumeModelRequest) — 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::Model)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Model) — A result object deserialized from the server's reply
- (::ArgumentError)
#tune_model
def tune_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the tune_model REST call
- request_pb (::Google::Cloud::Retail::V2::TuneModelRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_model
def update_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Model
Baseline implementation for the update_model REST call
- request_pb (::Google::Cloud::Retail::V2::UpdateModelRequest) — 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::Model)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Model) — A result object deserialized from the server's reply
- (::ArgumentError)