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.



1257
1258
1259
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1257

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)


1250
1251
1252
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1250

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



1255
1256
1257
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1255

def programs
  @programs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1262
1263
1264
1265
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1262

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