Class: Kaltura::KalturaGenericDistributionProvider

Inherits:
KalturaDistributionProvider show all
Defined in:
lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaDistributionProvider

#availability_update_enabled, #delete_instead_update, #interval_before_sunrise, #interval_before_sunset, #name, #schedule_update_enabled, #type, #update_required_entry_fields, #update_required_metadata_xpaths

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#created_atObject

Generic distribution provider creation date as Unix timestamp (In seconds)



973
974
975
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 973

def created_at
  @created_at
end

#editable_fieldsObject

Returns the value of attribute editable_fields.



983
984
985
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 983

def editable_fields
  @editable_fields
end

#idObject

Auto generated



971
972
973
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 971

def id
  @id
end

#is_defaultObject

Returns the value of attribute is_default.



977
978
979
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 977

def is_default
  @is_default
end

#mandatory_fieldsObject

Returns the value of attribute mandatory_fields.



984
985
986
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 984

def mandatory_fields
  @mandatory_fields
end

#optional_flavor_params_idsObject

Returns the value of attribute optional_flavor_params_ids.



979
980
981
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 979

def optional_flavor_params_ids
  @optional_flavor_params_ids
end

#optional_thumb_dimensionsObject

Returns the value of attribute optional_thumb_dimensions.



981
982
983
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 981

def optional_thumb_dimensions
  @optional_thumb_dimensions
end

#partner_idObject

Returns the value of attribute partner_id.



976
977
978
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 976

def partner_id
  @partner_id
end

#required_flavor_params_idsObject

Returns the value of attribute required_flavor_params_ids.



980
981
982
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 980

def required_flavor_params_ids
  @required_flavor_params_ids
end

#required_thumb_dimensionsObject

Returns the value of attribute required_thumb_dimensions.



982
983
984
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 982

def required_thumb_dimensions
  @required_thumb_dimensions
end

#statusObject

Returns the value of attribute status.



978
979
980
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 978

def status
  @status
end

#updated_atObject

Generic distribution provider last update date as Unix timestamp (In seconds)



975
976
977
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 975

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1005

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['updatedAt'] != nil
    self.updated_at = xml_element.elements['updatedAt'].text
  end
  if xml_element.elements['partnerId'] != nil
    self.partner_id = xml_element.elements['partnerId'].text
  end
  if xml_element.elements['isDefault'] != nil
    self.is_default = xml_element.elements['isDefault'].text
  end
  if xml_element.elements['status'] != nil
    self.status = xml_element.elements['status'].text
  end
  if xml_element.elements['optionalFlavorParamsIds'] != nil
    self.optional_flavor_params_ids = xml_element.elements['optionalFlavorParamsIds'].text
  end
  if xml_element.elements['requiredFlavorParamsIds'] != nil
    self.required_flavor_params_ids = xml_element.elements['requiredFlavorParamsIds'].text
  end
  if xml_element.elements['optionalThumbDimensions'] != nil
    self.optional_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['optionalThumbDimensions'], 'KalturaDistributionThumbDimensions')
  end
  if xml_element.elements['requiredThumbDimensions'] != nil
    self.required_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['requiredThumbDimensions'], 'KalturaDistributionThumbDimensions')
  end
  if xml_element.elements['editableFields'] != nil
    self.editable_fields = xml_element.elements['editableFields'].text
  end
  if xml_element.elements['mandatoryFields'] != nil
    self.mandatory_fields = xml_element.elements['mandatoryFields'].text
  end
end