Class: OvirtSDK4::Group

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Group) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Group class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :domain_entry_id (String)

    The value of attribute domain_entry_id.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :namespace (String)

    The value of attribute namespace.

  • :permissions (Array<Permission>, Array<Hash>)

    The values of attribute permissions.

  • :roles (Array<Role>, Array<Hash>)

    The values of attribute roles.

  • :tags (Array<Tag>, Array<Hash>)

    The values of attribute tags.



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.permissions = opts[:permissions]
  self.roles = opts[:roles]
  self.tags = opts[:tags]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



32118
32119
32120
# File 'lib/ovirtsdk4/types.rb', line 32118

def permissions
  return @permissions
end

- (Object) permissions=(list)

Sets the value of the permissions attribute.

Parameters:



32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
# File 'lib/ovirtsdk4/types.rb', line 32126

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

- (Array<Role>) roles

Returns the value of the roles attribute.

Returns:



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.

Parameters:

  • list (Array<Role>)


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.

Returns:



32168
32169
32170
# File 'lib/ovirtsdk4/types.rb', line 32168

def tags
  return @tags
end

- (Object) tags=(list)

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
# File 'lib/ovirtsdk4/types.rb', line 32176

def tags=(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