Class: OvirtSDK4::Group
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Group
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Domain) domain
Returns the value of the
domain
attribute. -
- (Object) domain=(value)
Sets the value of the
domain
attribute. -
- (String) domain_entry_id
Returns the value of the
domain_entry_id
attribute. -
- (Object) domain_entry_id=(value)
Sets the value of the
domain_entry_id
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Group) initialize(opts = {})
constructor
Creates a new instance of the Group class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) namespace
Returns the value of the
namespace
attribute. -
- (Object) namespace=(value)
Sets the value of the
namespace
attribute. -
- (Array<Permission>) permissions
Returns the value of the
permissions
attribute. -
- (Object) permissions=(list)
Sets the value of the
permissions
attribute. -
- (Array<Role>) roles
Returns the value of the
roles
attribute. -
- (Object) roles=(list)
Sets the value of the
roles
attribute. -
- (Array<Tag>) tags
Returns the value of the
tags
attribute. -
- (Object) tags=(list)
Sets the value of the
tags
attribute.
Methods included from Type
Constructor Details
- (Group) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Group class.
32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 |
# File 'lib/ovirtsdk4/types.rb', line 32216 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.domain = opts[:domain] self.domain_entry_id = opts[:domain_entry_id] self.id = opts[:id] self.name = opts[:name] self.namespace = opts[:namespace] self. = opts[:permissions] self.roles = opts[:roles] self. = opts[:tags] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
31985 31986 31987 |
# File 'lib/ovirtsdk4/types.rb', line 31985 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
31994 31995 31996 |
# File 'lib/ovirtsdk4/types.rb', line 31994 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
32003 32004 32005 |
# File 'lib/ovirtsdk4/types.rb', line 32003 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
32012 32013 32014 |
# File 'lib/ovirtsdk4/types.rb', line 32012 def description=(value) @description = value end |
- (Domain) domain
Returns the value of the domain
attribute.
32021 32022 32023 |
# File 'lib/ovirtsdk4/types.rb', line 32021 def domain return @domain end |
- (Object) domain=(value)
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.
32034 32035 32036 32037 32038 32039 |
# File 'lib/ovirtsdk4/types.rb', line 32034 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
- (String) domain_entry_id
Returns the value of the domain_entry_id
attribute.
32046 32047 32048 |
# File 'lib/ovirtsdk4/types.rb', line 32046 def domain_entry_id return @domain_entry_id end |
- (Object) domain_entry_id=(value)
Sets the value of the domain_entry_id
attribute.
32055 32056 32057 |
# File 'lib/ovirtsdk4/types.rb', line 32055 def domain_entry_id=(value) @domain_entry_id = value end |
- (String) id
Returns the value of the id
attribute.
32064 32065 32066 |
# File 'lib/ovirtsdk4/types.rb', line 32064 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
32073 32074 32075 |
# File 'lib/ovirtsdk4/types.rb', line 32073 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
32082 32083 32084 |
# File 'lib/ovirtsdk4/types.rb', line 32082 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
32091 32092 32093 |
# File 'lib/ovirtsdk4/types.rb', line 32091 def name=(value) @name = value end |
- (String) namespace
Returns the value of the namespace
attribute.
32100 32101 32102 |
# File 'lib/ovirtsdk4/types.rb', line 32100 def namespace return @namespace end |
- (Object) namespace=(value)
Sets the value of the namespace
attribute.
32109 32110 32111 |
# File 'lib/ovirtsdk4/types.rb', line 32109 def namespace=(value) @namespace = value end |
- (Array<Permission>) permissions
Returns the value of the permissions
attribute.
32118 32119 32120 |
# File 'lib/ovirtsdk4/types.rb', line 32118 def return @permissions end |
- (Object) permissions=(list)
Sets the value of the permissions
attribute.
32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 |
# File 'lib/ovirtsdk4/types.rb', line 32126 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 |
- (Array<Role>) roles
Returns the value of the roles
attribute.
32143 32144 32145 |
# File 'lib/ovirtsdk4/types.rb', line 32143 def roles return @roles end |
- (Object) roles=(list)
Sets the value of the roles
attribute.
32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 |
# File 'lib/ovirtsdk4/types.rb', line 32151 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 |
- (Array<Tag>) tags
Returns the value of the tags
attribute.
32168 32169 32170 |
# File 'lib/ovirtsdk4/types.rb', line 32168 def return @tags end |
- (Object) tags=(list)
Sets the value of the tags
attribute.
32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 |
# File 'lib/ovirtsdk4/types.rb', line 32176 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 |