Class: Kaltura::KalturaDistributionJobData

Inherits:
KalturaJobData show all
Defined in:
lib/kaltura_plugins/kaltura_content_distribution_client_plugin.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

#distribution_profileObject

Returns the value of attribute distribution_profile.



1164
1165
1166
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1164

def distribution_profile
  @distribution_profile
end

#distribution_profile_idObject

Returns the value of attribute distribution_profile_id.



1163
1164
1165
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1163

def distribution_profile_id
  @distribution_profile_id
end

#entry_distributionObject

Returns the value of attribute entry_distribution.



1166
1167
1168
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1166

def entry_distribution
  @entry_distribution
end

#entry_distribution_idObject

Returns the value of attribute entry_distribution_id.



1165
1166
1167
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1165

def entry_distribution_id
  @entry_distribution_id
end

#media_filesObject

Stores array of media files that submitted to the destination site Could be used later for media update



1178
1179
1180
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1178

def media_files
  @media_files
end

#provider_dataObject

Additional data that relevant for the provider only



1171
1172
1173
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1171

def provider_data
  @provider_data
end

#provider_typeObject

Returns the value of attribute provider_type.



1169
1170
1171
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1169

def provider_type
  @provider_type
end

#remote_idObject

Id of the media in the remote system



1168
1169
1170
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1168

def remote_id
  @remote_id
end

#resultsObject

The results as returned from the remote destination



1173
1174
1175
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1173

def results
  @results
end

#sent_dataObject

The data as sent to the remote destination



1175
1176
1177
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1175

def sent_data
  @sent_data
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1187

def from_xml(xml_element)
  super
  if xml_element.elements['distributionProfileId'] != nil
    self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
  end
  if xml_element.elements['distributionProfile'] != nil
    self.distribution_profile = KalturaClientBase.object_from_xml(xml_element.elements['distributionProfile'], 'KalturaDistributionProfile')
  end
  if xml_element.elements['entryDistributionId'] != nil
    self.entry_distribution_id = xml_element.elements['entryDistributionId'].text
  end
  if xml_element.elements['entryDistribution'] != nil
    self.entry_distribution = KalturaClientBase.object_from_xml(xml_element.elements['entryDistribution'], 'KalturaEntryDistribution')
  end
  if xml_element.elements['remoteId'] != nil
    self.remote_id = xml_element.elements['remoteId'].text
  end
  if xml_element.elements['providerType'] != nil
    self.provider_type = xml_element.elements['providerType'].text
  end
  if xml_element.elements['providerData'] != nil
    self.provider_data = KalturaClientBase.object_from_xml(xml_element.elements['providerData'], 'KalturaDistributionJobProviderData')
  end
  if xml_element.elements['results'] != nil
    self.results = xml_element.elements['results'].text
  end
  if xml_element.elements['sentData'] != nil
    self.sent_data = xml_element.elements['sentData'].text
  end
  if xml_element.elements['mediaFiles'] != nil
    self.media_files = KalturaClientBase.object_from_xml(xml_element.elements['mediaFiles'], 'KalturaDistributionRemoteMediaFile')
  end
end