Class Recommender.RecommenderBase (3.0.0)

[BindServiceMethod(typeof(Recommender), "BindService")]
public abstract class RecommenderBase

Base class for server-side implementations of Recommender

Inheritance

Object > Recommender.RecommenderBase

Namespace

Google.Cloud.Recommender.V1

Assembly

Google.Cloud.Recommender.V1.dll

Methods

GetInsight(GetInsightRequest, ServerCallContext)

public virtual Task<Insight> GetInsight(GetInsightRequest request, ServerCallContext context)

Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.

Parameters
Name Description
request GetInsightRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Insight>

The response to send back to the client (wrapped by a task).

GetRecommendation(GetRecommendationRequest, ServerCallContext)

public virtual Task<Recommendation> GetRecommendation(GetRecommendationRequest request, ServerCallContext context)

Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.

Parameters
Name Description
request GetRecommendationRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Recommendation>

The response to send back to the client (wrapped by a task).

ListInsights(ListInsightsRequest, ServerCallContext)

public virtual Task<ListInsightsResponse> ListInsights(ListInsightsRequest request, ServerCallContext context)

Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.

Parameters
Name Description
request ListInsightsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<ListInsightsResponse>

The response to send back to the client (wrapped by a task).

ListRecommendations(ListRecommendationsRequest, ServerCallContext)

public virtual Task<ListRecommendationsResponse> ListRecommendations(ListRecommendationsRequest request, ServerCallContext context)

Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.

Parameters
Name Description
request ListRecommendationsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<ListRecommendationsResponse>

The response to send back to the client (wrapped by a task).

MarkInsightAccepted(MarkInsightAcceptedRequest, ServerCallContext)

public virtual Task<Insight> MarkInsightAccepted(MarkInsightAcceptedRequest request, ServerCallContext context)

Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated.

MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.

Parameters
Name Description
request MarkInsightAcceptedRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Insight>

The response to send back to the client (wrapped by a task).

MarkRecommendationClaimed(MarkRecommendationClaimedRequest, ServerCallContext)

public virtual Task<Recommendation> MarkRecommendationClaimed(MarkRecommendationClaimedRequest request, ServerCallContext context)

Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state.

MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state.

Requires the recommender.*.update IAM permission for the specified recommender.

Parameters
Name Description
request MarkRecommendationClaimedRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Recommendation>

The response to send back to the client (wrapped by a task).

MarkRecommendationFailed(MarkRecommendationFailedRequest, ServerCallContext)

public virtual Task<Recommendation> MarkRecommendationFailed(MarkRecommendationFailedRequest request, ServerCallContext context)

Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state.

MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state.

Requires the recommender.*.update IAM permission for the specified recommender.

Parameters
Name Description
request MarkRecommendationFailedRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Recommendation>

The response to send back to the client (wrapped by a task).

MarkRecommendationSucceeded(MarkRecommendationSucceededRequest, ServerCallContext)

public virtual Task<Recommendation> MarkRecommendationSucceeded(MarkRecommendationSucceededRequest request, ServerCallContext context)

Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state.

MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state.

Requires the recommender.*.update IAM permission for the specified recommender.

Parameters
Name Description
request MarkRecommendationSucceededRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Recommendation>

The response to send back to the client (wrapped by a task).