Reference documentation and code samples for the Recommender V1 API class Google::Cloud::Recommender::V1::Recommender::Rest::ServiceStub.
REST service stub for the Recommender service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#get_insight
def get_insight(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Insight
Baseline implementation for the get_insight REST call
- request_pb (::Google::Cloud::Recommender::V1::GetInsightRequest) — 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::Recommender::V1::Insight)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Insight) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_insight_type_config
def get_insight_type_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::InsightTypeConfig
Baseline implementation for the get_insight_type_config REST call
- request_pb (::Google::Cloud::Recommender::V1::GetInsightTypeConfigRequest) — 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::Recommender::V1::InsightTypeConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::InsightTypeConfig) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_recommendation
def get_recommendation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Recommendation
Baseline implementation for the get_recommendation REST call
- request_pb (::Google::Cloud::Recommender::V1::GetRecommendationRequest) — 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::Recommender::V1::Recommendation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Recommendation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_recommender_config
def get_recommender_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::RecommenderConfig
Baseline implementation for the get_recommender_config REST call
- request_pb (::Google::Cloud::Recommender::V1::GetRecommenderConfigRequest) — 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::Recommender::V1::RecommenderConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::RecommenderConfig) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_insights
def list_insights(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::ListInsightsResponse
Baseline implementation for the list_insights REST call
- request_pb (::Google::Cloud::Recommender::V1::ListInsightsRequest) — 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::Recommender::V1::ListInsightsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::ListInsightsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_recommendations
def list_recommendations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::ListRecommendationsResponse
Baseline implementation for the list_recommendations REST call
- request_pb (::Google::Cloud::Recommender::V1::ListRecommendationsRequest) — 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::Recommender::V1::ListRecommendationsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::ListRecommendationsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#mark_insight_accepted
def mark_insight_accepted(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Insight
Baseline implementation for the mark_insight_accepted REST call
- request_pb (::Google::Cloud::Recommender::V1::MarkInsightAcceptedRequest) — 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::Recommender::V1::Insight)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Insight) — A result object deserialized from the server's reply
- (::ArgumentError)
#mark_recommendation_claimed
def mark_recommendation_claimed(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Recommendation
Baseline implementation for the mark_recommendation_claimed REST call
- request_pb (::Google::Cloud::Recommender::V1::MarkRecommendationClaimedRequest) — 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::Recommender::V1::Recommendation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Recommendation) — A result object deserialized from the server's reply
- (::ArgumentError)
#mark_recommendation_dismissed
def mark_recommendation_dismissed(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Recommendation
Baseline implementation for the mark_recommendation_dismissed REST call
- request_pb (::Google::Cloud::Recommender::V1::MarkRecommendationDismissedRequest) — 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::Recommender::V1::Recommendation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Recommendation) — A result object deserialized from the server's reply
- (::ArgumentError)
#mark_recommendation_failed
def mark_recommendation_failed(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Recommendation
Baseline implementation for the mark_recommendation_failed REST call
- request_pb (::Google::Cloud::Recommender::V1::MarkRecommendationFailedRequest) — 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::Recommender::V1::Recommendation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Recommendation) — A result object deserialized from the server's reply
- (::ArgumentError)
#mark_recommendation_succeeded
def mark_recommendation_succeeded(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::Recommendation
Baseline implementation for the mark_recommendation_succeeded REST call
- request_pb (::Google::Cloud::Recommender::V1::MarkRecommendationSucceededRequest) — 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::Recommender::V1::Recommendation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::Recommendation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_insight_type_config
def update_insight_type_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::InsightTypeConfig
Baseline implementation for the update_insight_type_config REST call
- request_pb (::Google::Cloud::Recommender::V1::UpdateInsightTypeConfigRequest) — 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::Recommender::V1::InsightTypeConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::InsightTypeConfig) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_recommender_config
def update_recommender_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::RecommenderConfig
Baseline implementation for the update_recommender_config REST call
- request_pb (::Google::Cloud::Recommender::V1::UpdateRecommenderConfigRequest) — 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::Recommender::V1::RecommenderConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Recommender::V1::RecommenderConfig) — A result object deserialized from the server's reply
- (::ArgumentError)