Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListRecommendationsResponse

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

Overview

Response to the ListRecommendations method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1ListRecommendationsResponse

Returns a new instance of GoogleCloudRecommenderV1beta1ListRecommendationsResponse.



245
246
247
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 245

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

Instance Attribute Details

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


238
239
240
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 238

def next_page_token
  @next_page_token
end

#recommendationsArray<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation>

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



243
244
245
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 243

def recommendations
  @recommendations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
# File 'generated/google/apis/recommender_v1beta1/classes.rb', line 250

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