Class: Google::Apis::PolyV1::ListLikedAssetsResponse

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

Overview

A response message from a request to list.

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) ⇒ ListLikedAssetsResponse

Returns a new instance of ListLikedAssetsResponse



289
290
291
# File 'generated/google/apis/poly_v1/classes.rb', line 289

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

Instance Attribute Details

#assetsArray<Google::Apis::PolyV1::Asset>

A list of assets that match the criteria specified in the request. Corresponds to the JSON property assets

Returns:



274
275
276
# File 'generated/google/apis/poly_v1/classes.rb', line 274

def assets
  @assets
end

#next_page_tokenString

The continuation token for retrieving the next page. If empty, indicates that there are no more pages. To get the next page, submit the same request specifying this value as the page_token. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


282
283
284
# File 'generated/google/apis/poly_v1/classes.rb', line 282

def next_page_token
  @next_page_token
end

#total_sizeFixnum

The total number of assets in the list, without pagination. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


287
288
289
# File 'generated/google/apis/poly_v1/classes.rb', line 287

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



294
295
296
297
298
# File 'generated/google/apis/poly_v1/classes.rb', line 294

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