Class: Google::Apis::MybusinessV3::ListAccountsResponse
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::ListAccountsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb
Instance Attribute Summary collapse
-
#accounts ⇒ Array<Google::Apis::MybusinessV3::Account>
A collection of accounts to which the user has access.
-
#next_page_token ⇒ String
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
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListAccountsResponse
constructor
A new instance of ListAccountsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListAccountsResponse
Returns a new instance of ListAccountsResponse.
42 43 44 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accounts ⇒ Array<Google::Apis::MybusinessV3::Account>
A collection of accounts to which the user has access.
Corresponds to the JSON property accounts
32 33 34 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 32 def accounts @accounts end |
#next_page_token ⇒ String
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
40 41 42 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 40 def next_page_token @next_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 47 def update!(**args) @accounts = args[:accounts] if args.key?(:accounts) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end |