Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::ControlService::Rest::ServiceStub.
REST service stub for the ControlService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_control
def create_control(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Control
Baseline implementation for the create_control REST call
- request_pb (::Google::Cloud::Retail::V2::CreateControlRequest) — 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::Control)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Control) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_control
def delete_control(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_control REST call
- request_pb (::Google::Cloud::Retail::V2::DeleteControlRequest) — 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_control
def get_control(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Control
Baseline implementation for the get_control REST call
- request_pb (::Google::Cloud::Retail::V2::GetControlRequest) — 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::Control)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Control) — 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_controls
def list_controls(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ListControlsResponse
Baseline implementation for the list_controls REST call
- request_pb (::Google::Cloud::Retail::V2::ListControlsRequest) — 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::ListControlsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ListControlsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_control
def update_control(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Control
Baseline implementation for the update_control REST call
- request_pb (::Google::Cloud::Retail::V2::UpdateControlRequest) — 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::Control)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Control) — A result object deserialized from the server's reply
- (::ArgumentError)