Class: Google::Apis::PartnersV2::ListOffersHistoryResponse

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 for ListOfferHistory.

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) ⇒ ListOffersHistoryResponse

Returns a new instance of ListOffersHistoryResponse



912
913
914
# File 'generated/google/apis/partners_v2/classes.rb', line 912

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

Instance Attribute Details

#can_show_entire_companyBoolean Also known as: can_show_entire_company?

True if the user has the option to show entire company history. Corresponds to the JSON property canShowEntireCompany

Returns:

  • (Boolean)


909
910
911
# File 'generated/google/apis/partners_v2/classes.rb', line 909

def can_show_entire_company
  @can_show_entire_company
end

#next_page_tokenString

Supply this token in a ListOffersHistoryRequest to retrieve the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


899
900
901
# File 'generated/google/apis/partners_v2/classes.rb', line 899

def next_page_token
  @next_page_token
end

#offersArray<Google::Apis::PartnersV2::HistoricalOffer>

Historical offers meeting request. Corresponds to the JSON property offers



894
895
896
# File 'generated/google/apis/partners_v2/classes.rb', line 894

def offers
  @offers
end

#response_metadataGoogle::Apis::PartnersV2::ResponseMetadata

Common data that is in each API response. Corresponds to the JSON property responseMetadata



904
905
906
# File 'generated/google/apis/partners_v2/classes.rb', line 904

def 
  @response_metadata
end

#showing_entire_companyBoolean Also known as: showing_entire_company?

True if this response is showing entire company history. Corresponds to the JSON property showingEntireCompany

Returns:

  • (Boolean)


888
889
890
# File 'generated/google/apis/partners_v2/classes.rb', line 888

def showing_entire_company
  @showing_entire_company
end

#total_resultsFixnum

Number of results across all pages. Corresponds to the JSON property totalResults

Returns:

  • (Fixnum)


883
884
885
# File 'generated/google/apis/partners_v2/classes.rb', line 883

def total_results
  @total_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



917
918
919
920
921
922
923
924
# File 'generated/google/apis/partners_v2/classes.rb', line 917

def update!(**args)
  @total_results = args[:total_results] if args.key?(:total_results)
  @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
  @offers = args[:offers] if args.key?(:offers)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
  @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
end