Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo

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

Overview

Information for state. Contains state and metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1RecommendationStateInfo

Returns a new instance of GoogleCloudRecommenderV1beta1RecommendationStateInfo.



937
938
939
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 937

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

Instance Attribute Details

#stateString

The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED. Corresponds to the JSON property state

Returns:

  • (String)


930
931
932
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 930

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>)


935
936
937
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 935

def 
  @state_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



942
943
944
945
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 942

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