Class: OvirtSDK4::QuotaStorageLimit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::QuotaStorageLimit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ QuotaStorageLimit
constructor
Creates a new instance of the QuotaStorageLimit class.
-
#limit ⇒ Integer
Returns the value of the
limit
attribute. -
#limit=(value) ⇒ Object
Sets the value of the
limit
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#usage ⇒ Float
Returns the value of the
usage
attribute. -
#usage=(value) ⇒ Object
Sets the value of the
usage
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ QuotaStorageLimit
Creates a new instance of the OvirtSDK4::QuotaStorageLimit class.
16242 16243 16244 16245 16246 16247 16248 |
# File 'lib/ovirtsdk4/types.rb', line 16242 def initialize(opts = {}) super(opts) self.limit = opts[:limit] self.quota = opts[:quota] self.storage_domain = opts[:storage_domain] self.usage = opts[:usage] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
16253 16254 16255 16256 16257 16258 16259 |
# File 'lib/ovirtsdk4/types.rb', line 16253 def ==(other) super && @limit == other.limit && @quota == other.quota && @storage_domain == other.storage_domain && @usage == other.usage end |
#comment ⇒ String
Returns the value of the comment
attribute.
16065 16066 16067 |
# File 'lib/ovirtsdk4/types.rb', line 16065 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
16074 16075 16076 |
# File 'lib/ovirtsdk4/types.rb', line 16074 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
16083 16084 16085 |
# File 'lib/ovirtsdk4/types.rb', line 16083 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
16092 16093 16094 |
# File 'lib/ovirtsdk4/types.rb', line 16092 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
16264 16265 16266 16267 16268 16269 16270 |
# File 'lib/ovirtsdk4/types.rb', line 16264 def hash super + @limit.hash + @quota.hash + @storage_domain.hash + @usage.hash end |
#id ⇒ String
Returns the value of the id
attribute.
16101 16102 16103 |
# File 'lib/ovirtsdk4/types.rb', line 16101 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
16110 16111 16112 |
# File 'lib/ovirtsdk4/types.rb', line 16110 def id=(value) @id = value end |
#limit ⇒ Integer
Returns the value of the limit
attribute.
16119 16120 16121 |
# File 'lib/ovirtsdk4/types.rb', line 16119 def limit @limit end |
#limit=(value) ⇒ Object
Sets the value of the limit
attribute.
16128 16129 16130 |
# File 'lib/ovirtsdk4/types.rb', line 16128 def limit=(value) @limit = value end |
#name ⇒ String
Returns the value of the name
attribute.
16137 16138 16139 |
# File 'lib/ovirtsdk4/types.rb', line 16137 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
16146 16147 16148 |
# File 'lib/ovirtsdk4/types.rb', line 16146 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
16155 16156 16157 |
# File 'lib/ovirtsdk4/types.rb', line 16155 def quota @quota end |
#quota=(value) ⇒ Object
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.
16168 16169 16170 16171 16172 16173 |
# File 'lib/ovirtsdk4/types.rb', line 16168 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
16180 16181 16182 |
# File 'lib/ovirtsdk4/types.rb', line 16180 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of StorageDomain 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.
16193 16194 16195 16196 16197 16198 |
# File 'lib/ovirtsdk4/types.rb', line 16193 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#usage ⇒ Float
Returns the value of the usage
attribute.
16205 16206 16207 |
# File 'lib/ovirtsdk4/types.rb', line 16205 def usage @usage end |
#usage=(value) ⇒ Object
Sets the value of the usage
attribute.
16214 16215 16216 |
# File 'lib/ovirtsdk4/types.rb', line 16214 def usage=(value) @usage = value end |