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)



959
960
961
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 959

def created_at
  @created_at
end

#editable_fieldsObject

Returns the value of attribute editable_fields.



969
970
971
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 969

def editable_fields
  @editable_fields
end

#idObject

Auto generated



957
958
959
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 957

def id
  @id
end

#is_defaultObject

Returns the value of attribute is_default.



963
964
965
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 963

def is_default
  @is_default
end

#mandatory_fieldsObject

Returns the value of attribute mandatory_fields.



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

def mandatory_fields
  @mandatory_fields
end

#optional_flavor_params_idsObject

Returns the value of attribute optional_flavor_params_ids.



965
966
967
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 965

def optional_flavor_params_ids
  @optional_flavor_params_ids
end

#optional_thumb_dimensionsObject

Returns the value of attribute optional_thumb_dimensions.



967
968
969
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 967

def optional_thumb_dimensions
  @optional_thumb_dimensions
end

#partner_idObject

Returns the value of attribute partner_id.



962
963
964
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 962

def partner_id
  @partner_id
end

#required_flavor_params_idsObject

Returns the value of attribute required_flavor_params_ids.



966
967
968
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 966

def required_flavor_params_ids
  @required_flavor_params_ids
end

#required_thumb_dimensionsObject

Returns the value of attribute required_thumb_dimensions.



968
969
970
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 968

def required_thumb_dimensions
  @required_thumb_dimensions
end

#statusObject

Returns the value of attribute status.



964
965
966
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 964

def status
  @status
end

#updated_atObject

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



961
962
963
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 961

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
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
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 991

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