Service Client: Google::Cloud::Recommender::V1beta1::RecommenderService::RecommenderClient

Client stub representing the remote Recommender gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to recommender.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Recommender::V1beta1::RecommenderService - Compiled Protocol Buffers messages for google/cloud/recommender/v1beta1/recommender_service.proto

SYNOPSIS

use Google::Cloud::Recommender::V1beta1::RecommenderService;

my $msg = Google::Cloud::Recommender::V1beta1::RecommenderService::ListInsightsRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
    filter => $filter,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Recommender::V1beta1::RecommenderService::ListInsightsRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/recommender/v1beta1/recommender_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Recommender::V1beta1::RecommenderService::ListInsightsRequest

Request for the `ListInsights` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The container resource on which to execute the request. Acceptable formats:

    * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`

    * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`

    * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`

    * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`

    * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`

    LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filter expression to restrict the insights returned. Supported filter fields:

    * `stateInfo.state`

    * `insightSubtype`

    * `severity`

    Examples:

    * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`

    * `insightSubtype = PERMISSIONS_USAGE`

    * `severity = CRITICAL OR severity = HIGH`

    * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)`

    (These expressions are based on the filter language described at https://google.aip.dev/160)

Google::Cloud::Recommender::V1beta1::RecommenderService::ListInsightsResponse

Response to the `ListInsights` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->insights() / $msg->insights($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::Insight::Insight)

    The set of insights for the `parent` resource.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be used to request the next page of results. This field is empty if there are no additional results.

Google::Cloud::Recommender::V1beta1::RecommenderService::GetInsightRequest

Request to the `GetInsight` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the insight.

Google::Cloud::Recommender::V1beta1::RecommenderService::MarkInsightAcceptedRequest

Request for the `MarkInsightAccepted` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recommender::V1beta1::RecommenderService::ListRecommendationsRequest

Request for the `ListRecommendations` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The container resource on which to execute the request. Acceptable formats:

    * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`

    * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`

    * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`

    * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`

    * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`

    LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Filter expression to restrict the recommendations returned. Supported filter fields:

    * `state_info.state`

    * `recommenderSubtype`

    * `priority`

    Examples:

    * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED`

    * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE`

    * `priority = P1 OR priority = P2`

    * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)`

    (These expressions are based on the filter language described at https://google.aip.dev/160)

Google::Cloud::Recommender::V1beta1::RecommenderService::ListRecommendationsResponse

Response to the `ListRecommendations` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->recommendations() / $msg->recommendations($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::Recommendation::Recommendation)

    The set of recommendations for the `parent` resource.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be used to request the next page of results. This field is empty if there are no additional results.

Google::Cloud::Recommender::V1beta1::RecommenderService::GetRecommendationRequest

Request to the `GetRecommendation` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the recommendation.

Google::Cloud::Recommender::V1beta1::RecommenderService::MarkRecommendationClaimedRequest

Request for the `MarkRecommendationClaimed` Method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the recommendation.

  • $msg->state_metadata() / $msg->state_metadata($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::RecommenderService::MarkRecommendationClaimedRequest::StateMetadataEntry)

    State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Required. Fingerprint of the Recommendation. Provides optimistic locking.

Google::Cloud::Recommender::V1beta1::RecommenderService::MarkRecommendationSucceededRequest

Request for the `MarkRecommendationSucceeded` Method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the recommendation.

  • $msg->state_metadata() / $msg->state_metadata($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::RecommenderService::MarkRecommendationSucceededRequest::StateMetadataEntry)

    State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Required. Fingerprint of the Recommendation. Provides optimistic locking.

Google::Cloud::Recommender::V1beta1::RecommenderService::MarkRecommendationFailedRequest

Request for the `MarkRecommendationFailed` Method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the recommendation.

  • $msg->state_metadata() / $msg->state_metadata($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::RecommenderService::MarkRecommendationFailedRequest::StateMetadataEntry)

    State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Required. Fingerprint of the Recommendation. Provides optimistic locking.

Google::Cloud::Recommender::V1beta1::RecommenderService::GetRecommenderConfigRequest

Request for the GetRecommenderConfig` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the Recommendation Config to get.

    Acceptable formats:

    * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`

    * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`

    * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`

Google::Cloud::Recommender::V1beta1::RecommenderService::UpdateRecommenderConfigRequest

Request for the `UpdateRecommenderConfig` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recommender::V1beta1::RecommenderService::GetInsightTypeConfigRequest

Request for the GetInsightTypeConfig` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the InsightTypeConfig to get.

    Acceptable formats:

    * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`

    * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`

    * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`

Google::Cloud::Recommender::V1beta1::RecommenderService::UpdateInsightTypeConfigRequest

Request for the `UpdateInsightTypeConfig` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Recommender::V1beta1::RecommenderService::ListRecommendersRequest

Request for the `ListRecommender` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The number of RecommenderTypes to return per page. The service may return fewer than this value.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page.

Google::Cloud::Recommender::V1beta1::RecommenderService::ListRecommendersResponse

Response for the `ListRecommender` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->recommenders() / $msg->recommenders($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::Recommendation::RecommenderType)

    The set of recommenders available

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Recommender::V1beta1::RecommenderService::ListInsightTypesRequest

Request for the `ListInsightTypes` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The number of InsightTypes to return per page. The service may return fewer than this value.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page.

Google::Cloud::Recommender::V1beta1::RecommenderService::ListInsightTypesResponse

Response for the `ListInsightTypes` method.

Inherits from Protobuf::Message.

Accessors

  • $msg->insight_types() / $msg->insight_types($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::Insight::InsightType)

    The set of recommenders available

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Recommender::V1beta1::RecommenderService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.