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)



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

def created_at
  @created_at
end

#editable_fieldsObject

Returns the value of attribute editable_fields.



990
991
992
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 990

def editable_fields
  @editable_fields
end

#idObject

Auto generated



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

def id
  @id
end

#is_defaultObject

Returns the value of attribute is_default.



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

def is_default
  @is_default
end

#mandatory_fieldsObject

Returns the value of attribute mandatory_fields.



991
992
993
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 991

def mandatory_fields
  @mandatory_fields
end

#optional_flavor_params_idsObject

Returns the value of attribute optional_flavor_params_ids.



986
987
988
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 986

def optional_flavor_params_ids
  @optional_flavor_params_ids
end

#optional_thumb_dimensionsObject

Returns the value of attribute optional_thumb_dimensions.



988
989
990
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 988

def optional_thumb_dimensions
  @optional_thumb_dimensions
end

#partner_idObject

Returns the value of attribute partner_id.



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

def partner_id
  @partner_id
end

#required_flavor_params_idsObject

Returns the value of attribute required_flavor_params_ids.



987
988
989
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 987

def required_flavor_params_ids
  @required_flavor_params_ids
end

#required_thumb_dimensionsObject

Returns the value of attribute required_thumb_dimensions.



989
990
991
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 989

def required_thumb_dimensions
  @required_thumb_dimensions
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#updated_atObject

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



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

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



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
1044
1045
1046
1047
1048
1049
1050
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1012

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