Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationInsightReference

Inherits:
Object
  • Object
show all
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

Reference to an associated insight.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1RecommendationInsightReference

Returns a new instance of GoogleCloudRecommenderV1RecommendationInsightReference.



599
600
601
# File 'generated/google/apis/recommender_v1/classes.rb', line 599

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

Instance Attribute Details

#insightString

Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/ insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID] Corresponds to the JSON property insight

Returns:

  • (String)


597
598
599
# File 'generated/google/apis/recommender_v1/classes.rb', line 597

def insight
  @insight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



604
605
606
# File 'generated/google/apis/recommender_v1/classes.rb', line 604

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