Class: Google::Apis::MerchantapiAccountsV1beta::ListProgramsResponse

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

Overview

Response message for the ListPrograms method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListProgramsResponse

Returns a new instance of ListProgramsResponse.



2429
2430
2431
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2429

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

Instance Attribute Details

#next_page_tokenString

A token that 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)


2422
2423
2424
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2422

def next_page_token
  @next_page_token
end

#programsArray<Google::Apis::MerchantapiAccountsV1beta::Program>

The programs for the given account. Corresponds to the JSON property programs



2427
2428
2429
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2427

def programs
  @programs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2434
2435
2436
2437
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2434

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