Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ListRecommendersResponse

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

Response for the ListRecommender method. Next ID: 3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1ListRecommendersResponse

Returns a new instance of GoogleCloudRecommenderV1beta1ListRecommendersResponse.



513
514
515
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 513

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

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


506
507
508
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 506

def next_page_token
  @next_page_token
end

#recommendersArray<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommenderType>

The set of recommenders available Corresponds to the JSON property recommenders



511
512
513
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 511

def recommenders
  @recommenders
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



518
519
520
521
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 518

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