Class: Kaltura::KalturaAccessControl

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

#contains_unsuported_restrictionsObject

Indicates that the access control profile is new and should be handled using KalturaAccessControlProfile object and accessControlProfile service



74
75
76
# File 'lib/kaltura_types.rb', line 74

def contains_unsuported_restrictions
  @contains_unsuported_restrictions
end

#created_atObject

Creation date as Unix timestamp (In seconds)



68
69
70
# File 'lib/kaltura_types.rb', line 68

def created_at
  @created_at
end

#descriptionObject

The description of the Access Control Profile



66
67
68
# File 'lib/kaltura_types.rb', line 66

def description
  @description
end

#idObject

The id of the Access Control Profile



59
60
61
# File 'lib/kaltura_types.rb', line 59

def id
  @id
end

#is_defaultObject

True if this Conversion Profile is the default



70
71
72
# File 'lib/kaltura_types.rb', line 70

def is_default
  @is_default
end

#nameObject

The name of the Access Control Profile



62
63
64
# File 'lib/kaltura_types.rb', line 62

def name
  @name
end

#partner_idObject

Returns the value of attribute partner_id.



60
61
62
# File 'lib/kaltura_types.rb', line 60

def partner_id
  @partner_id
end

#restrictionsObject

Array of Access Control Restrictions



72
73
74
# File 'lib/kaltura_types.rb', line 72

def restrictions
  @restrictions
end

#system_nameObject

System name of the Access Control Profile



64
65
66
# File 'lib/kaltura_types.rb', line 64

def system_name
  @system_name
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/kaltura_types.rb', line 92

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['systemName'] != nil
		self.system_name = xml_element.elements['systemName'].text
	end
	if xml_element.elements['description'] != nil
		self.description = xml_element.elements['description'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['isDefault'] != nil
		self.is_default = xml_element.elements['isDefault'].text
	end
	if xml_element.elements['restrictions'] != nil
		self.restrictions = KalturaClientBase.object_from_xml(xml_element.elements['restrictions'], 'KalturaBaseRestriction')
	end
	if xml_element.elements['containsUnsuportedRestrictions'] != nil
		self.contains_unsuported_restrictions = xml_element.elements['containsUnsuportedRestrictions'].text
	end
end