Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommender_v1beta1/classes.rb,
generated/google/apis/recommender_v1beta1/representations.rb,
generated/google/apis/recommender_v1beta1/representations.rb
Overview
Information for state. Contains state and metadata.
Instance Attribute Summary collapse
-
#state ⇒ String
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
-
#state_metadata ⇒ Hash<String,String>
A map of metadata for the state, provided by user or automations systems.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1RecommendationStateInfo
constructor
A new instance of GoogleCloudRecommenderV1beta1RecommendationStateInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1RecommendationStateInfo
Returns a new instance of GoogleCloudRecommenderV1beta1RecommendationStateInfo.
623 624 625 |
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 623 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
Corresponds to the JSON property state
616 617 618 |
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 616 def state @state end |
#state_metadata ⇒ Hash<String,String>
A map of metadata for the state, provided by user or automations systems.
Corresponds to the JSON property stateMetadata
621 622 623 |
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 621 def @state_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
628 629 630 631 |
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 628 def update!(**args) @state = args[:state] if args.key?(:state) @state_metadata = args[:state_metadata] if args.key?(:state_metadata) end |