Google Cloud Recommender v1 API - Class Recommender.RecommenderBase (3.2.0)

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

Reference documentation and code samples for the Google Cloud Recommender v1 API class Recommender.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
NameDescription
requestGetInsightRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Insight>

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

GetInsightTypeConfig(GetInsightTypeConfigRequest, ServerCallContext)

public virtual Task<InsightTypeConfig> GetInsightTypeConfig(GetInsightTypeConfigRequest request, ServerCallContext context)

Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.

Parameters
NameDescription
requestGetInsightTypeConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<InsightTypeConfig>

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
NameDescription
requestGetRecommendationRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Recommendation>

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

GetRecommenderConfig(GetRecommenderConfigRequest, ServerCallContext)

public virtual Task<RecommenderConfig> GetRecommenderConfig(GetRecommenderConfigRequest request, ServerCallContext context)

Gets the requested Recommender Config. There is only one instance of the config for each Recommender.

Parameters
NameDescription
requestGetRecommenderConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<RecommenderConfig>

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
NameDescription
requestListInsightsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestListRecommendationsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestMarkInsightAcceptedRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestMarkRecommendationClaimedRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestMarkRecommendationFailedRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestMarkRecommendationSucceededRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Recommendation>

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

UpdateInsightTypeConfig(UpdateInsightTypeConfigRequest, ServerCallContext)

public virtual Task<InsightTypeConfig> UpdateInsightTypeConfig(UpdateInsightTypeConfigRequest request, ServerCallContext context)

Updates an InsightTypeConfig change. This will create a new revision of the config.

Parameters
NameDescription
requestUpdateInsightTypeConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<InsightTypeConfig>

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

UpdateRecommenderConfig(UpdateRecommenderConfigRequest, ServerCallContext)

public virtual Task<RecommenderConfig> UpdateRecommenderConfig(UpdateRecommenderConfigRequest request, ServerCallContext context)

Updates a Recommender Config. This will create a new revision of the config.

Parameters
NameDescription
requestUpdateRecommenderConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<RecommenderConfig>

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