Class: Google::Apis::YoutubeAnalyticsV1::BatchReport

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

Overview

Contains single batchReport resource.

Defined Under Namespace

Classes: Output, TimeSpan

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

Returns a new instance of BatchReport.



61
62
63
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 61

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

Instance Attribute Details

#idString

The ID that YouTube assigns and uses to uniquely identify the report. Corresponds to the JSON property id

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 32

def id
  @id
end

#kindString

This value specifies the type of data of this item. For batch report the kind property value is youtubeAnalytics#batchReport. Corresponds to the JSON property kind

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 38

def kind
  @kind
end

#outputsArray<Google::Apis::YoutubeAnalyticsV1::BatchReport::Output>

Report outputs. Corresponds to the JSON property outputs



43
44
45
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 43

def outputs
  @outputs
end

#report_idString

The ID of the the report definition. Corresponds to the JSON property reportId

Returns:

  • (String)


48
49
50
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 48

def report_id
  @report_id
end

#time_spanGoogle::Apis::YoutubeAnalyticsV1::BatchReport::TimeSpan

Period included in the report. For reports containing all entities endTime is not set. Both startTime and endTime are inclusive. Corresponds to the JSON property timeSpan



54
55
56
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 54

def time_span
  @time_span
end

#time_updatedDateTime

The time when the report was updated. Corresponds to the JSON property timeUpdated

Returns:

  • (DateTime)


59
60
61
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 59

def time_updated
  @time_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



66
67
68
69
70
71
72
73
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 66

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @outputs = args[:outputs] if args.key?(:outputs)
  @report_id = args[:report_id] if args.key?(:report_id)
  @time_span = args[:time_span] if args.key?(:time_span)
  @time_updated = args[:time_updated] if args.key?(:time_updated)
end