Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1InsightRecommendationReference

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

Reference to an associated recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1InsightRecommendationReference

Returns a new instance of GoogleCloudRecommenderV1InsightRecommendationReference.



200
201
202
# File 'lib/google/apis/recommender_v1/classes.rb', line 200

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

Instance Attribute Details

#recommendationString

Recommendation resource name, e.g. projects/[PROJECT_NUMBER]/locations/[ LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID] Corresponds to the JSON property recommendation

Returns:

  • (String)


198
199
200
# File 'lib/google/apis/recommender_v1/classes.rb', line 198

def recommendation
  @recommendation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
# File 'lib/google/apis/recommender_v1/classes.rb', line 205

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