Class: Google::Apis::AnalyticsdataV1alpha::BatchRunReportsRequest

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

Overview

The batch request containing multiple report requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchRunReportsRequest

Returns a new instance of BatchRunReportsRequest.



85
86
87
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 85

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

Instance Attribute Details

#entityGoogle::Apis::AnalyticsdataV1alpha::Entity

The unique identifier of the property whose events are tracked. Corresponds to the JSON property entity



77
78
79
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 77

def entity
  @entity
end

#requestsArray<Google::Apis::AnalyticsdataV1alpha::RunReportRequest>

Individual requests. Each request has a separate report response. Each batch request is allowed up to 5 requests. Corresponds to the JSON property requests



83
84
85
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 83

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



90
91
92
93
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 90

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