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



1791
1792
1793
# File 'lib/kaltura_types.rb', line 1791

def batch_index
  @batch_index
end

#causeObject

The reason for the command



1803
1804
1805
# File 'lib/kaltura_types.rb', line 1803

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



1764
1765
1766
# File 'lib/kaltura_types.rb', line 1764

def created_at
  @created_at
end

#created_byObject

Creator name



1767
1768
1769
# File 'lib/kaltura_types.rb', line 1767

def created_by
  @created_by
end

#created_by_idObject

Creator id



1776
1777
1778
# File 'lib/kaltura_types.rb', line 1776

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



1806
1807
1808
# File 'lib/kaltura_types.rb', line 1806

def description
  @description
end

#error_descriptionObject

Error description



1809
1810
1811
# File 'lib/kaltura_types.rb', line 1809

def error_description
  @error_description
end

#idObject

The id of the Category



1761
1762
1763
# File 'lib/kaltura_types.rb', line 1761

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



1779
1780
1781
# File 'lib/kaltura_types.rb', line 1779

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



1800
1801
1802
# File 'lib/kaltura_types.rb', line 1800

def status
  @status
end

#target_typeObject

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



1797
1798
1799
# File 'lib/kaltura_types.rb', line 1797

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



1794
1795
1796
# File 'lib/kaltura_types.rb', line 1794

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



1770
1771
1772
# File 'lib/kaltura_types.rb', line 1770

def updated_at
  @updated_at
end

#updated_byObject

Updater name



1773
1774
1775
# File 'lib/kaltura_types.rb', line 1773

def updated_by
  @updated_by
end

#worker_configured_idObject

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



1785
1786
1787
# File 'lib/kaltura_types.rb', line 1785

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



1782
1783
1784
# File 'lib/kaltura_types.rb', line 1782

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



1788
1789
1790
# File 'lib/kaltura_types.rb', line 1788

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
# File 'lib/kaltura_types.rb', line 1848

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