Class: Google::Apis::PartnersV2::ListAnalyticsResponse

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

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

Returns a new instance of ListAnalyticsResponse



1209
1210
1211
# File 'generated/google/apis/partners_v2/classes.rb', line 1209

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

Instance Attribute Details

#analyticsArray<Google::Apis::PartnersV2::Analytics>

The list of analytics. Sorted in ascending order of Analytics.event_date. Corresponds to the JSON property analytics



1188
1189
1190
# File 'generated/google/apis/partners_v2/classes.rb', line 1188

def analytics
  @analytics
end

#analytics_summaryGoogle::Apis::PartnersV2::AnalyticsSummary

Analytics aggregated data for a Company for a given date range. Corresponds to the JSON property analyticsSummary



1193
1194
1195
# File 'generated/google/apis/partners_v2/classes.rb', line 1193

def analytics_summary
  @analytics_summary
end

#next_page_tokenString

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

Returns:

  • (String)


1202
1203
1204
# File 'generated/google/apis/partners_v2/classes.rb', line 1202

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



1207
1208
1209
# File 'generated/google/apis/partners_v2/classes.rb', line 1207

def 
  @response_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1214
1215
1216
1217
1218
1219
# File 'generated/google/apis/partners_v2/classes.rb', line 1214

def update!(**args)
  @analytics = args[:analytics] if args.key?(:analytics)
  @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
end