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



3121
3122
3123
# File 'lib/kaltura_types.rb', line 3121

def batch_index
  @batch_index
end

#causeObject

The reason for the command



3129
3130
3131
# File 'lib/kaltura_types.rb', line 3129

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



3103
3104
3105
# File 'lib/kaltura_types.rb', line 3103

def created_at
  @created_at
end

#created_byObject

Creator name



3105
3106
3107
# File 'lib/kaltura_types.rb', line 3105

def created_by
  @created_by
end

#created_by_idObject

Creator id



3111
3112
3113
# File 'lib/kaltura_types.rb', line 3111

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



3131
3132
3133
# File 'lib/kaltura_types.rb', line 3131

def description
  @description
end

#error_descriptionObject

Error description



3133
3134
3135
# File 'lib/kaltura_types.rb', line 3133

def error_description
  @error_description
end

#idObject

The id of the Category



3101
3102
3103
# File 'lib/kaltura_types.rb', line 3101

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



3113
3114
3115
# File 'lib/kaltura_types.rb', line 3113

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



3127
3128
3129
# File 'lib/kaltura_types.rb', line 3127

def status
  @status
end

#target_typeObject

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



3125
3126
3127
# File 'lib/kaltura_types.rb', line 3125

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



3123
3124
3125
# File 'lib/kaltura_types.rb', line 3123

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



3107
3108
3109
# File 'lib/kaltura_types.rb', line 3107

def updated_at
  @updated_at
end

#updated_byObject

Updater name



3109
3110
3111
# File 'lib/kaltura_types.rb', line 3109

def updated_by
  @updated_by
end

#worker_configured_idObject

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



3117
3118
3119
# File 'lib/kaltura_types.rb', line 3117

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



3115
3116
3117
# File 'lib/kaltura_types.rb', line 3115

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



3119
3120
3121
# File 'lib/kaltura_types.rb', line 3119

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
# File 'lib/kaltura_types.rb', line 3172

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