Class: Google::Apis::PartnersV2::ListLeadsResponse

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 ListLeads.

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

Returns a new instance of ListLeadsResponse



1173
1174
1175
# File 'generated/google/apis/partners_v2/classes.rb', line 1173

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

Instance Attribute Details

#leadsArray<Google::Apis::PartnersV2::Lead>

The list of leads. Corresponds to the JSON property leads

Returns:



1171
1172
1173
# File 'generated/google/apis/partners_v2/classes.rb', line 1171

def leads
  @leads
end

#next_page_tokenString

A token to retrieve next page of results. Pass this value in the ListLeadsRequest.page_token field in the subsequent call to ListLeads to retrieve the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1156
1157
1158
# File 'generated/google/apis/partners_v2/classes.rb', line 1156

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



1161
1162
1163
# File 'generated/google/apis/partners_v2/classes.rb', line 1161

def 
  @response_metadata
end

#total_sizeFixnum

The total count of leads for the given company. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


1166
1167
1168
# File 'generated/google/apis/partners_v2/classes.rb', line 1166

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1178
1179
1180
1181
1182
1183
# File 'generated/google/apis/partners_v2/classes.rb', line 1178

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)
  @total_size = args[:total_size] if args.key?(:total_size)
  @leads = args[:leads] if args.key?(:leads)
end