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.
16094 16095 16096 16097 16098 16099 16100 |
# File 'lib/ovirtsdk4/types.rb', line 16094 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.
16105 16106 16107 16108 16109 16110 16111 |
# File 'lib/ovirtsdk4/types.rb', line 16105 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.
15917 15918 15919 |
# File 'lib/ovirtsdk4/types.rb', line 15917 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
15926 15927 15928 |
# File 'lib/ovirtsdk4/types.rb', line 15926 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
15935 15936 15937 |
# File 'lib/ovirtsdk4/types.rb', line 15935 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
15944 15945 15946 |
# File 'lib/ovirtsdk4/types.rb', line 15944 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
16116 16117 16118 16119 16120 16121 16122 |
# File 'lib/ovirtsdk4/types.rb', line 16116 def hash super + @limit.hash + @quota.hash + @storage_domain.hash + @usage.hash end |
#id ⇒ String
Returns the value of the id
attribute.
15953 15954 15955 |
# File 'lib/ovirtsdk4/types.rb', line 15953 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
15962 15963 15964 |
# File 'lib/ovirtsdk4/types.rb', line 15962 def id=(value) @id = value end |
#limit ⇒ Integer
Returns the value of the limit
attribute.
15971 15972 15973 |
# File 'lib/ovirtsdk4/types.rb', line 15971 def limit @limit end |
#limit=(value) ⇒ Object
Sets the value of the limit
attribute.
15980 15981 15982 |
# File 'lib/ovirtsdk4/types.rb', line 15980 def limit=(value) @limit = value end |
#name ⇒ String
Returns the value of the name
attribute.
15989 15990 15991 |
# File 'lib/ovirtsdk4/types.rb', line 15989 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
15998 15999 16000 |
# File 'lib/ovirtsdk4/types.rb', line 15998 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
16007 16008 16009 |
# File 'lib/ovirtsdk4/types.rb', line 16007 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.
16020 16021 16022 16023 16024 16025 |
# File 'lib/ovirtsdk4/types.rb', line 16020 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.
16032 16033 16034 |
# File 'lib/ovirtsdk4/types.rb', line 16032 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.
16045 16046 16047 16048 16049 16050 |
# File 'lib/ovirtsdk4/types.rb', line 16045 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.
16057 16058 16059 |
# File 'lib/ovirtsdk4/types.rb', line 16057 def usage @usage end |
#usage=(value) ⇒ Object
Sets the value of the usage
attribute.
16066 16067 16068 |
# File 'lib/ovirtsdk4/types.rb', line 16066 def usage=(value) @usage = value end |