Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListInsightsResponse

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

Response to the ListInsights method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1ListInsightsResponse

Returns a new instance of GoogleCloudRecommenderV1ListInsightsResponse.



219
220
221
# File 'generated/google/apis/recommender_v1/classes.rb', line 219

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

Instance Attribute Details

#insightsArray<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Insight>

The set of insights for the parent resource. Corresponds to the JSON property insights



211
212
213
# File 'generated/google/apis/recommender_v1/classes.rb', line 211

def insights
  @insights
end

#next_page_tokenString

A token that can be used to request the next page of results. This field is empty if there are no additional results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


217
218
219
# File 'generated/google/apis/recommender_v1/classes.rb', line 217

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



224
225
226
227
# File 'generated/google/apis/recommender_v1/classes.rb', line 224

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