Class: Google::Apis::AnalyticsreportingV4::GetReportsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analyticsreporting_v4/classes.rb,
generated/google/apis/analyticsreporting_v4/representations.rb,
generated/google/apis/analyticsreporting_v4/representations.rb

Overview

The batch request containing multiple report request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GetReportsRequest

Returns a new instance of GetReportsRequest.



603
604
605
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 603

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

Instance Attribute Details

#report_requestsArray<Google::Apis::AnalyticsreportingV4::ReportRequest>

Requests, each request will have a separate response. There can be a maximum of 5 requests. All requests should have the same dateRanges, viewId, segments, samplingLevel, and cohortGroup. Corresponds to the JSON property reportRequests



589
590
591
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 589

def report_requests
  @report_requests
end

#use_resource_quotasBoolean Also known as: use_resource_quotas?

Enables resource based quotas, (defaults to False). If this field is set to True the per view (profile) quotas are governed by the computational cost of the request. Note that using cost based quotas will higher enable sampling rates. (10 Million for SMALL, 100M for LARGE. See the limits and quotas documentation for details. Corresponds to the JSON property useResourceQuotas

Returns:

  • (Boolean)


600
601
602
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 600

def use_resource_quotas
  @use_resource_quotas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



608
609
610
611
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 608

def update!(**args)
  @report_requests = args[:report_requests] if args.key?(:report_requests)
  @use_resource_quotas = args[:use_resource_quotas] if args.key?(:use_resource_quotas)
end