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.



527
528
529
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 527

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)


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

def next_page_token
  @next_page_token
end

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

The set of recommenders available Corresponds to the JSON property recommenders



525
526
527
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 525

def recommenders
  @recommenders
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



532
533
534
535
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 532

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