Class: Google::Apis::PartnersV2::ListCompaniesResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#companiesArray<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_tokenString

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

Returns:

  • (String)


688
689
690
# File 'generated/google/apis/partners_v2/classes.rb', line 688

def next_page_token
  @next_page_token
end

#response_metadataGoogle::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