Class: Google::Apis::YoutubePartnerV1::OrderListResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/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) ⇒ OrderListResponse

Returns a new instance of OrderListResponse.


2472
2473
2474
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2472

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

Instance Attribute Details

#itemsArray<Google::Apis::YoutubePartnerV1::Order>

A list of orders that match the request criteria. Corresponds to the JSON property items


2447
2448
2449
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2447

def items
  @items
end

#kindString

The type of the API response. For this operation, the value is youtubePartner# orderList. Corresponds to the JSON property kind

Returns:

  • (String)

2453
2454
2455
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2453

def kind
  @kind
end

#next_page_tokenString

The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set. Corresponds to the JSON property nextPageToken

Returns:

  • (String)

2459
2460
2461
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2459

def next_page_token
  @next_page_token
end

#page_infoGoogle::Apis::YoutubePartnerV1::PageInfo

The pageInfo object encapsulates paging information for the result set. Corresponds to the JSON property pageInfo


2464
2465
2466
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2464

def page_info
  @page_info
end

#previous_page_tokenString

The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set. Corresponds to the JSON property previousPageToken

Returns:

  • (String)

2470
2471
2472
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2470

def previous_page_token
  @previous_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2477
2478
2479
2480
2481
2482
2483
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2477

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)
  @page_info = args[:page_info] if args.key?(:page_info)
  @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
end