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



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

def batch_index
  @batch_index
end

#causeObject

The reason for the command



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

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



3177
3178
3179
# File 'lib/kaltura_types.rb', line 3177

def created_at
  @created_at
end

#created_byObject

Creator name



3179
3180
3181
# File 'lib/kaltura_types.rb', line 3179

def created_by
  @created_by
end

#created_by_idObject

Creator id



3185
3186
3187
# File 'lib/kaltura_types.rb', line 3185

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



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

def description
  @description
end

#error_descriptionObject

Error description



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

def error_description
  @error_description
end

#idObject

The id of the Category



3175
3176
3177
# File 'lib/kaltura_types.rb', line 3175

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



3187
3188
3189
# File 'lib/kaltura_types.rb', line 3187

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



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

def status
  @status
end

#target_typeObject

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



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

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



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

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



3181
3182
3183
# File 'lib/kaltura_types.rb', line 3181

def updated_at
  @updated_at
end

#updated_byObject

Updater name



3183
3184
3185
# File 'lib/kaltura_types.rb', line 3183

def updated_by
  @updated_by
end

#worker_configured_idObject

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



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

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



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

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



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

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
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
# File 'lib/kaltura_types.rb', line 3246

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