Recommender V1 API - Class Google::Cloud::Recommender::V1::Recommender::Rest::ServiceStub (v0.12.0)

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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_insights

def list_insights(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Recommender::V1::ListInsightsResponse

Baseline implementation for the list_insights REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)