Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Rest::ServiceStub.
REST service stub for the UserEventService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#collect_user_event
def collect_user_event(request_pb, options = nil) { |result, operation| ... } -> ::Google::Api::HttpBody
Baseline implementation for the collect_user_event REST call
- request_pb (::Google::Cloud::RecommendationEngine::V1beta1::CollectUserEventRequest) — 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::Api::HttpBody)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Api::HttpBody) — A result object deserialized from the server's reply
- (::ArgumentError)
#import_user_events
def import_user_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the import_user_events REST call
- request_pb (::Google::Cloud::RecommendationEngine::V1beta1::ImportUserEventsRequest) — 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)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_user_events
def list_user_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsResponse
Baseline implementation for the list_user_events REST call
- request_pb (::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsRequest) — 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::RecommendationEngine::V1beta1::ListUserEventsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#purge_user_events
def purge_user_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the purge_user_events REST call
- request_pb (::Google::Cloud::RecommendationEngine::V1beta1::PurgeUserEventsRequest) — 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)
#write_user_event
def write_user_event(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent
Baseline implementation for the write_user_event REST call
- request_pb (::Google::Cloud::RecommendationEngine::V1beta1::WriteUserEventRequest) — 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::RecommendationEngine::V1beta1::UserEvent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::RecommendationEngine::V1beta1::UserEvent) — A result object deserialized from the server's reply
- (::ArgumentError)