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



3156
3157
3158
# File 'lib/kaltura_types.rb', line 3156

def batch_index
  @batch_index
end

#causeObject

The reason for the command



3164
3165
3166
# File 'lib/kaltura_types.rb', line 3164

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



3138
3139
3140
# File 'lib/kaltura_types.rb', line 3138

def created_at
  @created_at
end

#created_byObject

Creator name



3140
3141
3142
# File 'lib/kaltura_types.rb', line 3140

def created_by
  @created_by
end

#created_by_idObject

Creator id



3146
3147
3148
# File 'lib/kaltura_types.rb', line 3146

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



3166
3167
3168
# File 'lib/kaltura_types.rb', line 3166

def description
  @description
end

#error_descriptionObject

Error description



3168
3169
3170
# File 'lib/kaltura_types.rb', line 3168

def error_description
  @error_description
end

#idObject

The id of the Category



3136
3137
3138
# File 'lib/kaltura_types.rb', line 3136

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



3148
3149
3150
# File 'lib/kaltura_types.rb', line 3148

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



3162
3163
3164
# File 'lib/kaltura_types.rb', line 3162

def status
  @status
end

#target_typeObject

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



3160
3161
3162
# File 'lib/kaltura_types.rb', line 3160

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



3158
3159
3160
# File 'lib/kaltura_types.rb', line 3158

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



3142
3143
3144
# File 'lib/kaltura_types.rb', line 3142

def updated_at
  @updated_at
end

#updated_byObject

Updater name



3144
3145
3146
# File 'lib/kaltura_types.rb', line 3144

def updated_by
  @updated_by
end

#worker_configured_idObject

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



3152
3153
3154
# File 'lib/kaltura_types.rb', line 3152

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



3150
3151
3152
# File 'lib/kaltura_types.rb', line 3150

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



3154
3155
3156
# File 'lib/kaltura_types.rb', line 3154

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
# File 'lib/kaltura_types.rb', line 3207

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