Class: Google::Apis::MybusinessaccountmanagementV1::ListAccountsResponse

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

Overview

Response message for Accounts.ListAccounts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListAccountsResponse

Returns a new instance of ListAccountsResponse.



285
286
287
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 285

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

Instance Attribute Details

#accountsArray<Google::Apis::MybusinessaccountmanagementV1::Account>

A collection of accounts to which the user has access. The personal account of the user doing the query will always be the first item of the result, unless it is filtered out. Corresponds to the JSON property accounts



275
276
277
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 275

def accounts
  @accounts
end

#next_page_tokenString

If the number of accounts exceeds the requested page size, this field is populated with a token to fetch the next page of accounts on a subsequent call to accounts.list. If there are no more accounts, this field is not present in the response. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 283

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



290
291
292
293
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 290

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