Class: Google::Apis::PredictionV1_6::List

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ List

Returns a new instance of List.



637
638
639
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 637

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

Instance Attribute Details

#itemsArray<Google::Apis::PredictionV1_6::Insert2>

List of models. Corresponds to the JSON property items



620
621
622
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 620

def items
  @items
end

#kindString

What kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


625
626
627
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 625

def kind
  @kind
end

#next_page_tokenString

Pagination token to fetch the next page, if one exists. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


630
631
632
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 630

def next_page_token
  @next_page_token
end

A URL to re-request this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


635
636
637
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 635

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



642
643
644
645
646
647
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 642

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