Class: Google::Apis::YoutubereportingV1::Job

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 job creating reports of a specific type.

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

Returns a new instance of Job.


148
149
150
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 148

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

Instance Attribute Details

#create_timeString

The creation date/time of the job. Corresponds to the JSON property createTime

Returns:

  • (String)

133
134
135
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 133

def create_time
  @create_time
end

#expire_timeString

The date/time when this job will expire/expired. After a job expired, no new reports are generated. Corresponds to the JSON property expireTime

Returns:

  • (String)

139
140
141
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 139

def expire_time
  @expire_time
end

#idString

The server-generated ID of the job (max. 40 characters). Corresponds to the JSON property id

Returns:

  • (String)

118
119
120
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 118

def id
  @id
end

#nameString

The name of the job (max. 100 characters). Corresponds to the JSON property name

Returns:

  • (String)

128
129
130
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 128

def name
  @name
end

#report_type_idString

The type of reports this job creates. Corresponds to the ID of a ReportType. Corresponds to the JSON property reportTypeId

Returns:

  • (String)

123
124
125
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 123

def report_type_id
  @report_type_id
end

#system_managedBoolean Also known as: system_managed?

True if this a system-managed job that cannot be modified by the user; otherwise false. Corresponds to the JSON property systemManaged

Returns:

  • (Boolean)

145
146
147
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 145

def system_managed
  @system_managed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


153
154
155
156
157
158
159
160
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 153

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
  @name = args[:name] if args.key?(:name)
  @create_time = args[:create_time] if args.key?(:create_time)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @system_managed = args[:system_managed] if args.key?(:system_managed)
end