Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightStateInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recommender_v1/classes.rb,
lib/google/apis/recommender_v1/representations.rb,
lib/google/apis/recommender_v1/representations.rb

Overview

Information related to insight state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1InsightStateInfo

Returns a new instance of GoogleCloudRecommenderV1InsightStateInfo.



238
239
240
# File 'lib/google/apis/recommender_v1/classes.rb', line 238

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#stateString

Insight state. Corresponds to the JSON property state

Returns:

  • (String)


231
232
233
# File 'lib/google/apis/recommender_v1/classes.rb', line 231

def state
  @state
end

#state_metadataHash<String,String>

A map of metadata for the state, provided by user or automations systems. Corresponds to the JSON property stateMetadata

Returns:

  • (Hash<String,String>)


236
237
238
# File 'lib/google/apis/recommender_v1/classes.rb', line 236

def 
  @state_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



243
244
245
246
# File 'lib/google/apis/recommender_v1/classes.rb', line 243

def update!(**args)
  @state = args[:state] if args.key?(:state)
  @state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end