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



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

def batch_index
  @batch_index
end

#causeObject

The reason for the command



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

def cause
  @cause
end

#created_atObject

Creation date as Unix timestamp (In seconds)



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

def created_at
  @created_at
end

#created_byObject

Creator name



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

def created_by
  @created_by
end

#created_by_idObject

Creator id



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

def created_by_id
  @created_by_id
end

#descriptionObject

Command description



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

def description
  @description
end

#error_descriptionObject

Error description



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

def error_description
  @error_description
end

#idObject

The id of the Category



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

def id
  @id
end

#scheduler_idObject

The id of the scheduler that the command refers to



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

def scheduler_id
  @scheduler_id
end

#statusObject

The command status



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

def status
  @status
end

#target_typeObject

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



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

def target_type
  @target_type
end

#typeObject

The command type - stop / start / config



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

def type
  @type
end

#updated_atObject

Update date as Unix timestamp (In seconds)



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

def updated_at
  @updated_at
end

#updated_byObject

Updater name



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

def updated_by
  @updated_by
end

#worker_configured_idObject

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



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

def worker_configured_id
  @worker_configured_id
end

#worker_idObject

The id of the scheduler worker that the command refers to



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

def worker_id
  @worker_id
end

#worker_nameObject

The name of the scheduler worker that the command refers to



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

def worker_name
  @worker_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



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
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
# File 'lib/kaltura_types.rb', line 3199

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