Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommender_v1/classes.rb,
generated/google/apis/recommender_v1/representations.rb,
generated/google/apis/recommender_v1/representations.rb
Overview
Information related to insight state.
Instance Attribute Summary collapse
-
#state ⇒ String
Insight state.
-
#state_metadata ⇒ Hash<String,String>
A map of metadata for the state, provided by user or automations systems.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1InsightStateInfo
constructor
A new instance of GoogleCloudRecommenderV1InsightStateInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1InsightStateInfo
Returns a new instance of GoogleCloudRecommenderV1InsightStateInfo.
193 194 195 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
Insight state.
Corresponds to the JSON property state
186 187 188 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 186 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
191 192 193 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 191 def @state_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
198 199 200 201 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 198 def update!(**args) @state = args[:state] if args.key?(:state) @state_metadata = args[:state_metadata] if args.key?(:state_metadata) end |