Class: Google::Apis::YoutubereportingV1::Report

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

Overview

A report's metadata including the URL from which the report itself can be downloaded.

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

Returns a new instance of Report



67
68
69
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 67

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

Instance Attribute Details

#create_timeString

The date/time when this report was created. Corresponds to the JSON property createTime

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 33

def create_time
  @create_time
end

#download_urlString

The URL from which the report can be downloaded (max. 1000 characters). Corresponds to the JSON property downloadUrl

Returns:

  • (String)


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

def download_url
  @download_url
end

#end_timeString

The end of the time period that the report instance covers. The value is exclusive. Corresponds to the JSON property endTime

Returns:

  • (String)


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

def end_time
  @end_time
end

#idString

The server-generated ID of the report. Corresponds to the JSON property id

Returns:

  • (String)


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

def id
  @id
end

#job_expire_timeString

The date/time when the job this report belongs to will expire/expired. Corresponds to the JSON property jobExpireTime

Returns:

  • (String)


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

def job_expire_time
  @job_expire_time
end

#job_idString

The ID of the job that created this report. Corresponds to the JSON property jobId

Returns:

  • (String)


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

def job_id
  @job_id
end

#start_timeString

The start of the time period that the report instance covers. The value is inclusive. Corresponds to the JSON property startTime

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 65

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



72
73
74
75
76
77
78
79
80
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 72

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @job_id = args[:job_id] if args.key?(:job_id)
  @id = args[:id] if args.key?(:id)
  @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @download_url = args[:download_url] if args.key?(:download_url)
  @start_time = args[:start_time] if args.key?(:start_time)
end