Class: Google::Apis::PartnersV2::ListCompaniesResponse
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::ListCompaniesResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb
Overview
Response message for ListCompanies.
Instance Attribute Summary collapse
-
#companies ⇒ Array<Google::Apis::PartnersV2::Company>
The list of companies.
-
#next_page_token ⇒ String
A token to retrieve next page of results.
-
#response_metadata ⇒ Google::Apis::PartnersV2::ResponseMetadata
Common data that is in each API response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListCompaniesResponse
constructor
A new instance of ListCompaniesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListCompaniesResponse
Returns a new instance of ListCompaniesResponse
700 701 702 |
# File 'generated/google/apis/partners_v2/classes.rb', line 700 def initialize(**args) update!(**args) end |
Instance Attribute Details
#companies ⇒ Array<Google::Apis::PartnersV2::Company>
The list of companies.
Corresponds to the JSON property companies
698 699 700 |
# File 'generated/google/apis/partners_v2/classes.rb', line 698 def companies @companies end |
#next_page_token ⇒ String
A token to retrieve next page of results.
Pass this value in the ListCompaniesRequest.page_token
field in the
subsequent call to
ListCompanies to retrieve the
next page of results.
Corresponds to the JSON property nextPageToken
688 689 690 |
# File 'generated/google/apis/partners_v2/classes.rb', line 688 def next_page_token @next_page_token end |
#response_metadata ⇒ Google::Apis::PartnersV2::ResponseMetadata
Common data that is in each API response.
Corresponds to the JSON property responseMetadata
693 694 695 |
# File 'generated/google/apis/partners_v2/classes.rb', line 693 def @response_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
705 706 707 708 709 |
# File 'generated/google/apis/partners_v2/classes.rb', line 705 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @response_metadata = args[:response_metadata] if args.key?(:response_metadata) @companies = args[:companies] if args.key?(:companies) end |