Class: Kaltura::KalturaScheduler

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

#configsObject

Array of the last configs



5730
5731
5732
# File 'lib/kaltura_types.rb', line 5730

def configs
  @configs
end

#configured_idObject

The id as configured in the batch config



5722
5723
5724
# File 'lib/kaltura_types.rb', line 5722

def configured_id
  @configured_id
end

#created_atObject

creation time



5734
5735
5736
# File 'lib/kaltura_types.rb', line 5734

def created_at
  @created_at
end

#hostObject

The host name



5726
5727
5728
# File 'lib/kaltura_types.rb', line 5726

def host
  @host
end

#idObject

The id of the Scheduler



5720
5721
5722
# File 'lib/kaltura_types.rb', line 5720

def id
  @id
end

#last_statusObject

last status time



5736
5737
5738
# File 'lib/kaltura_types.rb', line 5736

def last_status
  @last_status
end

#last_status_strObject

last status formated



5738
5739
5740
# File 'lib/kaltura_types.rb', line 5738

def last_status_str
  @last_status_str
end

#nameObject

The scheduler name



5724
5725
5726
# File 'lib/kaltura_types.rb', line 5724

def name
  @name
end

#statusesObject

Array of the last statuses



5728
5729
5730
# File 'lib/kaltura_types.rb', line 5728

def statuses
  @statuses
end

#workersObject

Array of the workers



5732
5733
5734
# File 'lib/kaltura_types.rb', line 5732

def workers
  @workers
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
# File 'lib/kaltura_types.rb', line 5753

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['configuredId'] != nil
		self.configured_id = xml_element.elements['configuredId'].text
	end
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['host'] != nil
		self.host = xml_element.elements['host'].text
	end
	if xml_element.elements['statuses'] != nil
		self.statuses = KalturaClientBase.object_from_xml(xml_element.elements['statuses'], 'KalturaSchedulerStatus')
	end
	if xml_element.elements['configs'] != nil
		self.configs = KalturaClientBase.object_from_xml(xml_element.elements['configs'], 'KalturaSchedulerConfig')
	end
	if xml_element.elements['workers'] != nil
		self.workers = KalturaClientBase.object_from_xml(xml_element.elements['workers'], 'KalturaSchedulerWorker')
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['lastStatus'] != nil
		self.last_status = xml_element.elements['lastStatus'].text
	end
	if xml_element.elements['lastStatusStr'] != nil
		self.last_status_str = xml_element.elements['lastStatusStr'].text
	end
end