Class: Google::Apis::YoutubereportingV1::Job
- Inherits:
-
Object
- Object
- Google::Apis::YoutubereportingV1::Job
- 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
-
#create_time ⇒ String
The creation date/time of the job.
-
#expire_time ⇒ String
The date/time when this job will expire/expired.
-
#id ⇒ String
The server-generated ID of the job (max. 40 characters).
-
#name ⇒ String
The name of the job (max. 100 characters).
-
#report_type_id ⇒ String
The type of reports this job creates.
-
#system_managed ⇒ Boolean
(also: #system_managed?)
True if this a system-managed job that cannot be modified by the user; otherwise false.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Job
constructor
A new instance of Job.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Job
Returns a new instance of Job
257 258 259 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 257 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The creation date/time of the job.
Corresponds to the JSON property createTime
255 256 257 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 255 def create_time @create_time end |
#expire_time ⇒ String
The date/time when this job will expire/expired. After a job expired, no
new reports are generated.
Corresponds to the JSON property expireTime
233 234 235 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 233 def expire_time @expire_time end |
#id ⇒ String
The server-generated ID of the job (max. 40 characters).
Corresponds to the JSON property id
243 244 245 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 243 def id @id end |
#name ⇒ String
The name of the job (max. 100 characters).
Corresponds to the JSON property name
238 239 240 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 238 def name @name end |
#report_type_id ⇒ String
The type of reports this job creates. Corresponds to the ID of a
ReportType.
Corresponds to the JSON property reportTypeId
227 228 229 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 227 def report_type_id @report_type_id end |
#system_managed ⇒ Boolean 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
249 250 251 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 249 def system_managed @system_managed end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
262 263 264 265 266 267 268 269 |
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 262 def update!(**args) @report_type_id = args[:report_type_id] if args.key?(:report_type_id) @expire_time = args[:expire_time] if args.key?(:expire_time) @name = args[:name] if args.key?(:name) @id = args[:id] if args.key?(:id) @system_managed = args[:system_managed] if args.key?(:system_managed) @create_time = args[:create_time] if args.key?(:create_time) end |