Class: OvirtSDK4::Group
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Group
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#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. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#domain_entry_id ⇒ String
Returns the value of the
domain_entry_idattribute. -
#domain_entry_id=(value) ⇒ Object
Sets the value of the
domain_entry_idattribute. -
#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 = {}) ⇒ Group
constructor
Creates a new instance of the Group class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#namespace ⇒ String
Returns the value of the
namespaceattribute. -
#namespace=(value) ⇒ Object
Sets the value of the
namespaceattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#roles ⇒ Array<Role>
Returns the value of the
rolesattribute. -
#roles=(list) ⇒ Object
Sets the value of the
rolesattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Group
Creates a new instance of the OvirtSDK4::Group class.
44255 44256 44257 44258 44259 44260 44261 44262 44263 |
# File 'lib/ovirtsdk4/types.rb', line 44255 def initialize(opts = {}) super(opts) self.domain = opts[:domain] self.domain_entry_id = opts[:domain_entry_id] self.namespace = opts[:namespace] self. = opts[:permissions] self.roles = opts[:roles] self. = opts[:tags] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
44268 44269 44270 44271 44272 44273 44274 44275 44276 |
# File 'lib/ovirtsdk4/types.rb', line 44268 def ==(other) super && @domain == other.domain && @domain_entry_id == other.domain_entry_id && @namespace == other.namespace && @permissions == other. && @roles == other.roles && @tags == other. end |
#comment ⇒ String
Returns the value of the comment attribute.
44021 44022 44023 |
# File 'lib/ovirtsdk4/types.rb', line 44021 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
44030 44031 44032 |
# File 'lib/ovirtsdk4/types.rb', line 44030 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
44039 44040 44041 |
# File 'lib/ovirtsdk4/types.rb', line 44039 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
44048 44049 44050 |
# File 'lib/ovirtsdk4/types.rb', line 44048 def description=(value) @description = value end |
#domain ⇒ Domain
Returns the value of the domain attribute.
44057 44058 44059 |
# File 'lib/ovirtsdk4/types.rb', line 44057 def domain @domain end |
#domain=(value) ⇒ Object
Sets the value of the domain attribute.
The value parameter can be an instance of Domain 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.
44070 44071 44072 44073 44074 44075 |
# File 'lib/ovirtsdk4/types.rb', line 44070 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#domain_entry_id ⇒ String
Returns the value of the domain_entry_id attribute.
44082 44083 44084 |
# File 'lib/ovirtsdk4/types.rb', line 44082 def domain_entry_id @domain_entry_id end |
#domain_entry_id=(value) ⇒ Object
Sets the value of the domain_entry_id attribute.
44091 44092 44093 |
# File 'lib/ovirtsdk4/types.rb', line 44091 def domain_entry_id=(value) @domain_entry_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
44281 44282 44283 44284 44285 44286 44287 44288 44289 |
# File 'lib/ovirtsdk4/types.rb', line 44281 def hash super + @domain.hash + @domain_entry_id.hash + @namespace.hash + @permissions.hash + @roles.hash + @tags.hash end |
#id ⇒ String
Returns the value of the id attribute.
44100 44101 44102 |
# File 'lib/ovirtsdk4/types.rb', line 44100 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
44109 44110 44111 |
# File 'lib/ovirtsdk4/types.rb', line 44109 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
44118 44119 44120 |
# File 'lib/ovirtsdk4/types.rb', line 44118 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
44127 44128 44129 |
# File 'lib/ovirtsdk4/types.rb', line 44127 def name=(value) @name = value end |
#namespace ⇒ String
Returns the value of the namespace attribute.
44136 44137 44138 |
# File 'lib/ovirtsdk4/types.rb', line 44136 def namespace @namespace end |
#namespace=(value) ⇒ Object
Sets the value of the namespace attribute.
44145 44146 44147 |
# File 'lib/ovirtsdk4/types.rb', line 44145 def namespace=(value) @namespace = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
44154 44155 44156 |
# File 'lib/ovirtsdk4/types.rb', line 44154 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
44163 44164 44165 44166 44167 44168 44169 44170 44171 44172 44173 |
# File 'lib/ovirtsdk4/types.rb', line 44163 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#roles ⇒ Array<Role>
Returns the value of the roles attribute.
44180 44181 44182 |
# File 'lib/ovirtsdk4/types.rb', line 44180 def roles @roles end |
#roles=(list) ⇒ Object
Sets the value of the roles attribute.
44189 44190 44191 44192 44193 44194 44195 44196 44197 44198 44199 |
# File 'lib/ovirtsdk4/types.rb', line 44189 def roles=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Role.new(value) end end end @roles = list end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
44206 44207 44208 |
# File 'lib/ovirtsdk4/types.rb', line 44206 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
44215 44216 44217 44218 44219 44220 44221 44222 44223 44224 44225 |
# File 'lib/ovirtsdk4/types.rb', line 44215 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Tag.new(value) end end end @tags = list end |