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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ QuotaStorageLimit
constructor
Creates a new instance of the QuotaStorageLimit class.
-
#limit ⇒ Integer
Returns the value of the
limitattribute. -
#limit=(value) ⇒ Object
Sets the value of the
limitattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#usage ⇒ Float
Returns the value of the
usageattribute. -
#usage=(value) ⇒ Object
Sets the value of the
usageattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ QuotaStorageLimit
Creates a new instance of the OvirtSDK4::QuotaStorageLimit class.
17242 17243 17244 17245 17246 17247 17248 |
# File 'lib/ovirtsdk4/types.rb', line 17242 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.
17253 17254 17255 17256 17257 17258 17259 |
# File 'lib/ovirtsdk4/types.rb', line 17253 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.
17065 17066 17067 |
# File 'lib/ovirtsdk4/types.rb', line 17065 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
17074 17075 17076 |
# File 'lib/ovirtsdk4/types.rb', line 17074 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
17083 17084 17085 |
# File 'lib/ovirtsdk4/types.rb', line 17083 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
17092 17093 17094 |
# File 'lib/ovirtsdk4/types.rb', line 17092 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
17264 17265 17266 17267 17268 17269 17270 |
# File 'lib/ovirtsdk4/types.rb', line 17264 def hash super + @limit.hash + @quota.hash + @storage_domain.hash + @usage.hash end |
#id ⇒ String
Returns the value of the id attribute.
17101 17102 17103 |
# File 'lib/ovirtsdk4/types.rb', line 17101 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
17110 17111 17112 |
# File 'lib/ovirtsdk4/types.rb', line 17110 def id=(value) @id = value end |
#limit ⇒ Integer
Returns the value of the limit attribute.
17119 17120 17121 |
# File 'lib/ovirtsdk4/types.rb', line 17119 def limit @limit end |
#limit=(value) ⇒ Object
Sets the value of the limit attribute.
17128 17129 17130 |
# File 'lib/ovirtsdk4/types.rb', line 17128 def limit=(value) @limit = value end |
#name ⇒ String
Returns the value of the name attribute.
17137 17138 17139 |
# File 'lib/ovirtsdk4/types.rb', line 17137 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
17146 17147 17148 |
# File 'lib/ovirtsdk4/types.rb', line 17146 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
17155 17156 17157 |
# File 'lib/ovirtsdk4/types.rb', line 17155 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.
17168 17169 17170 17171 17172 17173 |
# File 'lib/ovirtsdk4/types.rb', line 17168 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.
17180 17181 17182 |
# File 'lib/ovirtsdk4/types.rb', line 17180 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.
17193 17194 17195 17196 17197 17198 |
# File 'lib/ovirtsdk4/types.rb', line 17193 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.
17205 17206 17207 |
# File 'lib/ovirtsdk4/types.rb', line 17205 def usage @usage end |
#usage=(value) ⇒ Object
Sets the value of the usage attribute.
17214 17215 17216 |
# File 'lib/ovirtsdk4/types.rb', line 17214 def usage=(value) @usage = value end |