Class: OvirtSDK4::Permit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Permit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#administrative ⇒ Boolean
Returns the value of the
administrativeattribute. -
#administrative=(value) ⇒ Object
Sets the value of the
administrativeattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Permit
constructor
Creates a new instance of the Permit class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#role ⇒ Role
Returns the value of the
roleattribute. -
#role=(value) ⇒ Object
Sets the value of the
roleattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Permit
Creates a new instance of the OvirtSDK4::Permit class.
14922 14923 14924 14925 14926 |
# File 'lib/ovirtsdk4/types.rb', line 14922 def initialize(opts = {}) super(opts) self.administrative = opts[:administrative] self.role = opts[:role] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
14931 14932 14933 14934 14935 |
# File 'lib/ovirtsdk4/types.rb', line 14931 def ==(other) super && @administrative == other.administrative && @role == other.role end |
#administrative ⇒ Boolean
Returns the value of the administrative attribute.
14792 14793 14794 |
# File 'lib/ovirtsdk4/types.rb', line 14792 def administrative @administrative end |
#administrative=(value) ⇒ Object
Sets the value of the administrative attribute.
14801 14802 14803 |
# File 'lib/ovirtsdk4/types.rb', line 14801 def administrative=(value) @administrative = value end |
#comment ⇒ String
Returns the value of the comment attribute.
14810 14811 14812 |
# File 'lib/ovirtsdk4/types.rb', line 14810 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
14819 14820 14821 |
# File 'lib/ovirtsdk4/types.rb', line 14819 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
14828 14829 14830 |
# File 'lib/ovirtsdk4/types.rb', line 14828 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
14837 14838 14839 |
# File 'lib/ovirtsdk4/types.rb', line 14837 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
14940 14941 14942 14943 14944 |
# File 'lib/ovirtsdk4/types.rb', line 14940 def hash super + @administrative.hash + @role.hash end |
#id ⇒ String
Returns the value of the id attribute.
14846 14847 14848 |
# File 'lib/ovirtsdk4/types.rb', line 14846 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
14855 14856 14857 |
# File 'lib/ovirtsdk4/types.rb', line 14855 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
14864 14865 14866 |
# File 'lib/ovirtsdk4/types.rb', line 14864 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
14873 14874 14875 |
# File 'lib/ovirtsdk4/types.rb', line 14873 def name=(value) @name = value end |
#role ⇒ Role
Returns the value of the role attribute.
14882 14883 14884 |
# File 'lib/ovirtsdk4/types.rb', line 14882 def role @role end |
#role=(value) ⇒ Object
Sets the value of the role attribute.
The value parameter can be an instance of Role or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
14895 14896 14897 14898 14899 14900 |
# File 'lib/ovirtsdk4/types.rb', line 14895 def role=(value) if value.is_a?(Hash) value = Role.new(value) end @role = value end |