Creates a new instance of the {Group} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [Domain, Hash] :domain The value of attribute `domain`.
@option opts [String] :domain_entry_id The value of attribute `domain_entry_id`.
@option opts [String] :id The value of attribute `id`.
@option opts [String] :name The value of attribute `name`.
@option opts [String] :namespace The value of attribute `namespace`.
@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.
@option opts [Array<Role>, Array<Hash>] :roles The values of attribute `roles`.
@option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.
# File lib/ovirtsdk4/types.rb, line 32704 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.permissions = opts[:permissions] self.roles = opts[:roles] self.tags = opts[:tags] end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 32473 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 32482 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 32491 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 32500 def description=(value) @description = value end
Returns the value of the `domain` attribute.
@return [Domain]
# File lib/ovirtsdk4/types.rb, line 32509 def domain return @domain end
Sets the value of the `domain` attribute.
@param value [Domain, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 32522 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end
Returns the value of the `domain_entry_id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 32534 def domain_entry_id return @domain_entry_id end
Sets the value of the `domain_entry_id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 32543 def domain_entry_id=(value) @domain_entry_id = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 32552 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 32561 def id=(value) @id = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 32570 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 32579 def name=(value) @name = value end
Returns the value of the `namespace` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 32588 def namespace return @namespace end
Sets the value of the `namespace` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 32597 def namespace=(value) @namespace = value end
Returns the value of the `permissions` attribute.
@return [Array<Permission>]
# File lib/ovirtsdk4/types.rb, line 32606 def permissions return @permissions end
Sets the value of the `permissions` attribute.
@param list [Array<Permission>]
# File lib/ovirtsdk4/types.rb, line 32614 def permissions=(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
Returns the value of the `roles` attribute.
@return [Array<Role>]
# File lib/ovirtsdk4/types.rb, line 32631 def roles return @roles end
Sets the value of the `roles` attribute.
@param list [Array<Role>]
# File lib/ovirtsdk4/types.rb, line 32639 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