Class: OvirtSDK4::QuotaClusterLimit

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

- (QuotaClusterLimit) initialize(opts = {})

Creates a new instance of the OvirtSDK4::QuotaClusterLimit 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):

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :memory_limit (Fixnum)

    The value of attribute memory_limit.

  • :memory_usage (Fixnum)

    The value of attribute memory_usage.

  • :name (String)

    The value of attribute name.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :vcpu_limit (Integer)

    The value of attribute vcpu_limit.

  • :vcpu_usage (Integer)

    The value of attribute vcpu_usage.



12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
# File 'lib/ovirtsdk4/types.rb', line 12241

def initialize(opts = {})
  super(opts)
  self.cluster = opts[:cluster]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.memory_limit = opts[:memory_limit]
  self.memory_usage = opts[:memory_usage]
  self.name = opts[:name]
  self.quota = opts[:quota]
  self.vcpu_limit = opts[:vcpu_limit]
  self.vcpu_usage = opts[:vcpu_usage]
end

Instance Method Details

- (Cluster) cluster

Returns the value of the cluster attribute.

Returns:



12024
12025
12026
# File 'lib/ovirtsdk4/types.rb', line 12024

def cluster
  return @cluster
end

- (Object) cluster=(value)

Sets the value of the cluster attribute.

The value parameter can be an instance of Cluster 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:



12037
12038
12039
12040
12041
12042
# File 'lib/ovirtsdk4/types.rb', line 12037

def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


12049
12050
12051
# File 'lib/ovirtsdk4/types.rb', line 12049

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


12058
12059
12060
# File 'lib/ovirtsdk4/types.rb', line 12058

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


12067
12068
12069
# File 'lib/ovirtsdk4/types.rb', line 12067

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


12076
12077
12078
# File 'lib/ovirtsdk4/types.rb', line 12076

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


12085
12086
12087
# File 'lib/ovirtsdk4/types.rb', line 12085

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


12094
12095
12096
# File 'lib/ovirtsdk4/types.rb', line 12094

def id=(value)
  @id = value
end

- (Fixnum) memory_limit

Returns the value of the memory_limit attribute.

Returns:

  • (Fixnum)


12103
12104
12105
# File 'lib/ovirtsdk4/types.rb', line 12103

def memory_limit
  return @memory_limit
end

- (Object) memory_limit=(value)

Sets the value of the memory_limit attribute.

Parameters:

  • value (Fixnum)


12112
12113
12114
# File 'lib/ovirtsdk4/types.rb', line 12112

def memory_limit=(value)
  @memory_limit = value
end

- (Fixnum) memory_usage

Returns the value of the memory_usage attribute.

Returns:

  • (Fixnum)


12121
12122
12123
# File 'lib/ovirtsdk4/types.rb', line 12121

def memory_usage
  return @memory_usage
end

- (Object) memory_usage=(value)

Sets the value of the memory_usage attribute.

Parameters:

  • value (Fixnum)


12130
12131
12132
# File 'lib/ovirtsdk4/types.rb', line 12130

def memory_usage=(value)
  @memory_usage = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


12139
12140
12141
# File 'lib/ovirtsdk4/types.rb', line 12139

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


12148
12149
12150
# File 'lib/ovirtsdk4/types.rb', line 12148

def name=(value)
  @name = value
end

- (Quota) quota

Returns the value of the quota attribute.

Returns:



12157
12158
12159
# File 'lib/ovirtsdk4/types.rb', line 12157

def quota
  return @quota
end

- (Object) quota=(value)

Sets the value of the quota attribute.

The value parameter can be an instance of OvirtSDK4::Quota 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:



12170
12171
12172
12173
12174
12175
# File 'lib/ovirtsdk4/types.rb', line 12170

def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

- (Integer) vcpu_limit

Returns the value of the vcpu_limit attribute.

Returns:

  • (Integer)


12182
12183
12184
# File 'lib/ovirtsdk4/types.rb', line 12182

def vcpu_limit
  return @vcpu_limit
end

- (Object) vcpu_limit=(value)

Sets the value of the vcpu_limit attribute.

Parameters:

  • value (Integer)


12191
12192
12193
# File 'lib/ovirtsdk4/types.rb', line 12191

def vcpu_limit=(value)
  @vcpu_limit = value
end

- (Integer) vcpu_usage

Returns the value of the vcpu_usage attribute.

Returns:

  • (Integer)


12200
12201
12202
# File 'lib/ovirtsdk4/types.rb', line 12200

def vcpu_usage
  return @vcpu_usage
end

- (Object) vcpu_usage=(value)

Sets the value of the vcpu_usage attribute.

Parameters:

  • value (Integer)


12209
12210
12211
# File 'lib/ovirtsdk4/types.rb', line 12209

def vcpu_usage=(value)
  @vcpu_usage = value
end