Class RecommendationStateInfo (2.15.5)

RecommendationStateInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Information for state. Contains state and metadata.

Attributes

Name Description
state google.cloud.recommender_v1.types.RecommendationStateInfo.State
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
state_metadata MutableMapping[str, str]
A map of metadata for the state, provided by user or automations systems.

Classes

State

State(value)

Represents Recommendation State.

    ACTIVE recommendations can be marked as CLAIMED,
    SUCCEEDED, or FAILED.
CLAIMED (6):
    Recommendation is in claimed state.
    Recommendations content is immutable and cannot
    be updated by Google.

    CLAIMED recommendations can be marked as
    CLAIMED, SUCCEEDED, or FAILED.
SUCCEEDED (3):
    Recommendation is in succeeded state.
    Recommendations content is immutable and cannot
    be updated by Google.

    SUCCEEDED recommendations can be marked as
    SUCCEEDED, or FAILED.
FAILED (4):
    Recommendation is in failed state.
    Recommendations content is immutable and cannot
    be updated by Google.

    FAILED recommendations can be marked as
    SUCCEEDED, or FAILED.
DISMISSED (5):
    Recommendation is in dismissed state.
    Recommendation content can be updated by Google.

    DISMISSED recommendations can be marked as
    ACTIVE.

StateMetadataEntry

StateMetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.