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



2970
2971
2972
# File 'lib/kaltura_types.rb', line 2970

def batch_index
  @batch_index
end

#causeObject

The reason for the command



2978
2979
2980
# File 'lib/kaltura_types.rb', line 2978

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



2952
2953
2954
# File 'lib/kaltura_types.rb', line 2952

def created_at
  @created_at
end

#created_byObject

Creator name



2954
2955
2956
# File 'lib/kaltura_types.rb', line 2954

def created_by
  @created_by
end

#created_by_idObject

Creator id



2960
2961
2962
# File 'lib/kaltura_types.rb', line 2960

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



2980
2981
2982
# File 'lib/kaltura_types.rb', line 2980

def description
  @description
end

#error_descriptionObject

Error description



2982
2983
2984
# File 'lib/kaltura_types.rb', line 2982

def error_description
  @error_description
end

#idObject

The id of the Category



2950
2951
2952
# File 'lib/kaltura_types.rb', line 2950

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



2962
2963
2964
# File 'lib/kaltura_types.rb', line 2962

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



2976
2977
2978
# File 'lib/kaltura_types.rb', line 2976

def status
  @status
end

#target_typeObject

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



2974
2975
2976
# File 'lib/kaltura_types.rb', line 2974

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



2972
2973
2974
# File 'lib/kaltura_types.rb', line 2972

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



2956
2957
2958
# File 'lib/kaltura_types.rb', line 2956

def updated_at
  @updated_at
end

#updated_byObject

Updater name



2958
2959
2960
# File 'lib/kaltura_types.rb', line 2958

def updated_by
  @updated_by
end

#worker_configured_idObject

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



2966
2967
2968
# File 'lib/kaltura_types.rb', line 2966

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



2964
2965
2966
# File 'lib/kaltura_types.rb', line 2964

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



2968
2969
2970
# File 'lib/kaltura_types.rb', line 2968

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
# File 'lib/kaltura_types.rb', line 3021

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