Class: Kaltura::KalturaControlPanelCommand

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#batch_indexObject

The index of the batch process that the command refers to



3209
3210
3211
# File 'lib/kaltura_types.rb', line 3209

def batch_index
  @batch_index
end

#causeObject

The reason for the command



3217
3218
3219
# File 'lib/kaltura_types.rb', line 3217

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



3191
3192
3193
# File 'lib/kaltura_types.rb', line 3191

def created_at
  @created_at
end

#created_byObject

Creator name



3193
3194
3195
# File 'lib/kaltura_types.rb', line 3193

def created_by
  @created_by
end

#created_by_idObject

Creator id



3199
3200
3201
# File 'lib/kaltura_types.rb', line 3199

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



3219
3220
3221
# File 'lib/kaltura_types.rb', line 3219

def description
  @description
end

#error_descriptionObject

Error description



3221
3222
3223
# File 'lib/kaltura_types.rb', line 3221

def error_description
  @error_description
end

#idObject

The id of the Category



3189
3190
3191
# File 'lib/kaltura_types.rb', line 3189

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



3201
3202
3203
# File 'lib/kaltura_types.rb', line 3201

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



3215
3216
3217
# File 'lib/kaltura_types.rb', line 3215

def status
  @status
end

#target_typeObject

The command target type - data center / scheduler / job / job type



3213
3214
3215
# File 'lib/kaltura_types.rb', line 3213

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



3211
3212
3213
# File 'lib/kaltura_types.rb', line 3211

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



3195
3196
3197
# File 'lib/kaltura_types.rb', line 3195

def updated_at
  @updated_at
end

#updated_byObject

Updater name



3197
3198
3199
# File 'lib/kaltura_types.rb', line 3197

def updated_by
  @updated_by
end

#worker_configured_idObject

The id of the scheduler worker as configured in the ini file



3205
3206
3207
# File 'lib/kaltura_types.rb', line 3205

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



3203
3204
3205
# File 'lib/kaltura_types.rb', line 3203

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



3207
3208
3209
# File 'lib/kaltura_types.rb', line 3207

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
# File 'lib/kaltura_types.rb', line 3260

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['createdBy'] != nil
		self.created_by = xml_element.elements['createdBy'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['updatedBy'] != nil
		self.updated_by = xml_element.elements['updatedBy'].text
	end
	if xml_element.elements['createdById'] != nil
		self.created_by_id = xml_element.elements['createdById'].text
	end
	if xml_element.elements['schedulerId'] != nil
		self.scheduler_id = xml_element.elements['schedulerId'].text
	end
	if xml_element.elements['workerId'] != nil
		self.worker_id = xml_element.elements['workerId'].text
	end
	if xml_element.elements['workerConfiguredId'] != nil
		self.worker_configured_id = xml_element.elements['workerConfiguredId'].text
	end
	if xml_element.elements['workerName'] != nil
		self.worker_name = xml_element.elements['workerName'].text
	end
	if xml_element.elements['batchIndex'] != nil
		self.batch_index = xml_element.elements['batchIndex'].text
	end
	if xml_element.elements['type'] != nil
		self.type = xml_element.elements['type'].text
	end
	if xml_element.elements['targetType'] != nil
		self.target_type = xml_element.elements['targetType'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['cause'] != nil
		self.cause = xml_element.elements['cause'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
	if xml_element.elements['errorDescription'] != nil
		self.error_description = xml_element.elements['errorDescription'].text
	end
end