Class: OvirtSDK4::LogicalUnit
- 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. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#discard_max_size ⇒ Integer
Returns the value of the
discard_max_size
attribute. -
#discard_max_size=(value) ⇒ Object
Sets the value of the
discard_max_size
attribute. -
#discard_zeroes_data ⇒ Boolean
Returns the value of the
discard_zeroes_data
attribute. -
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the
discard_zeroes_data
attribute. -
#disk_id ⇒ String
Returns the value of the
disk_id
attribute. -
#disk_id=(value) ⇒ Object
Sets the value of the
disk_id
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 = {}) ⇒ LogicalUnit
constructor
Creates a new instance of the LogicalUnit class.
-
#lun_mapping ⇒ Integer
Returns the value of the
lun_mapping
attribute. -
#lun_mapping=(value) ⇒ Object
Sets the value of the
lun_mapping
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#paths ⇒ Integer
Returns the value of the
paths
attribute. -
#paths=(value) ⇒ Object
Sets the value of the
paths
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#portal ⇒ String
Returns the value of the
portal
attribute. -
#portal=(value) ⇒ Object
Sets the value of the
portal
attribute. -
#product_id ⇒ String
Returns the value of the
product_id
attribute. -
#product_id=(value) ⇒ Object
Sets the value of the
product_id
attribute. -
#serial ⇒ String
Returns the value of the
serial
attribute. -
#serial=(value) ⇒ Object
Sets the value of the
serial
attribute. -
#size ⇒ Integer
Returns the value of the
size
attribute. -
#size=(value) ⇒ Object
Sets the value of the
size
attribute. -
#status ⇒ LunStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#storage_domain_id ⇒ String
Returns the value of the
storage_domain_id
attribute. -
#storage_domain_id=(value) ⇒ Object
Sets the value of the
storage_domain_id
attribute. -
#target ⇒ String
Returns the value of the
target
attribute. -
#target=(value) ⇒ Object
Sets the value of the
target
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute. -
#vendor_id ⇒ String
Returns the value of the
vendor_id
attribute. -
#vendor_id=(value) ⇒ Object
Sets the value of the
vendor_id
attribute. -
#volume_group_id ⇒ String
Returns the value of the
volume_group_id
attribute. -
#volume_group_id=(value) ⇒ Object
Sets the value of the
volume_group_id
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ LogicalUnit
Creates a new instance of the OvirtSDK4::LogicalUnit class.
9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 |
# File 'lib/ovirtsdk4/types.rb', line 9116 def initialize(opts = {}) super(opts) self.address = opts[:address] self.discard_max_size = opts[:discard_max_size] self.discard_zeroes_data = opts[:discard_zeroes_data] self.disk_id = opts[:disk_id] self.id = opts[:id] self.lun_mapping = opts[:lun_mapping] self.password = opts[:password] self.paths = opts[:paths] self.port = opts[:port] self.portal = opts[:portal] self.product_id = opts[:product_id] self.serial = opts[:serial] self.size = opts[:size] self.status = opts[:status] self.storage_domain_id = opts[:storage_domain_id] self.target = opts[:target] self.username = opts[:username] self.vendor_id = opts[:vendor_id] self.volume_group_id = opts[:volume_group_id] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 |
# File 'lib/ovirtsdk4/types.rb', line 9142 def ==(other) super && @address == other.address && @discard_max_size == other.discard_max_size && @discard_zeroes_data == other.discard_zeroes_data && @disk_id == other.disk_id && @id == other.id && @lun_mapping == other.lun_mapping && @password == other.password && @paths == other.paths && @port == other.port && @portal == other.portal && @product_id == other.product_id && @serial == other.serial && @size == other.size && @status == other.status && @storage_domain_id == other.storage_domain_id && @target == other.target && @username == other.username && @vendor_id == other.vendor_id && @volume_group_id == other.volume_group_id end |
#address ⇒ String
Returns the value of the address
attribute.
8733 8734 8735 |
# File 'lib/ovirtsdk4/types.rb', line 8733 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
8742 8743 8744 |
# File 'lib/ovirtsdk4/types.rb', line 8742 def address=(value) @address = value end |
#discard_max_size ⇒ Integer
Returns the value of the discard_max_size
attribute.
8751 8752 8753 |
# File 'lib/ovirtsdk4/types.rb', line 8751 def discard_max_size @discard_max_size end |
#discard_max_size=(value) ⇒ Object
Sets the value of the discard_max_size
attribute.
8760 8761 8762 |
# File 'lib/ovirtsdk4/types.rb', line 8760 def discard_max_size=(value) @discard_max_size = value end |
#discard_zeroes_data ⇒ Boolean
Returns the value of the discard_zeroes_data
attribute.
8769 8770 8771 |
# File 'lib/ovirtsdk4/types.rb', line 8769 def discard_zeroes_data @discard_zeroes_data end |
#discard_zeroes_data=(value) ⇒ Object
Sets the value of the discard_zeroes_data
attribute.
8778 8779 8780 |
# File 'lib/ovirtsdk4/types.rb', line 8778 def discard_zeroes_data=(value) @discard_zeroes_data = value end |
#disk_id ⇒ String
Returns the value of the disk_id
attribute.
8787 8788 8789 |
# File 'lib/ovirtsdk4/types.rb', line 8787 def disk_id @disk_id end |
#disk_id=(value) ⇒ Object
Sets the value of the disk_id
attribute.
8796 8797 8798 |
# File 'lib/ovirtsdk4/types.rb', line 8796 def disk_id=(value) @disk_id = value end |
#hash ⇒ Object
Generates a hash value for this object.
9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 |
# File 'lib/ovirtsdk4/types.rb', line 9168 def hash super + @address.hash + @discard_max_size.hash + @discard_zeroes_data.hash + @disk_id.hash + @id.hash + @lun_mapping.hash + @password.hash + @paths.hash + @port.hash + @portal.hash + @product_id.hash + @serial.hash + @size.hash + @status.hash + @storage_domain_id.hash + @target.hash + @username.hash + @vendor_id.hash + @volume_group_id.hash end |
#id ⇒ String
Returns the value of the id
attribute.
8805 8806 8807 |
# File 'lib/ovirtsdk4/types.rb', line 8805 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8814 8815 8816 |
# File 'lib/ovirtsdk4/types.rb', line 8814 def id=(value) @id = value end |
#lun_mapping ⇒ Integer
Returns the value of the lun_mapping
attribute.
8823 8824 8825 |
# File 'lib/ovirtsdk4/types.rb', line 8823 def lun_mapping @lun_mapping end |
#lun_mapping=(value) ⇒ Object
Sets the value of the lun_mapping
attribute.
8832 8833 8834 |
# File 'lib/ovirtsdk4/types.rb', line 8832 def lun_mapping=(value) @lun_mapping = value end |
#password ⇒ String
Returns the value of the password
attribute.
8841 8842 8843 |
# File 'lib/ovirtsdk4/types.rb', line 8841 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
8850 8851 8852 |
# File 'lib/ovirtsdk4/types.rb', line 8850 def password=(value) @password = value end |
#paths ⇒ Integer
Returns the value of the paths
attribute.
8859 8860 8861 |
# File 'lib/ovirtsdk4/types.rb', line 8859 def paths @paths end |
#paths=(value) ⇒ Object
Sets the value of the paths
attribute.
8868 8869 8870 |
# File 'lib/ovirtsdk4/types.rb', line 8868 def paths=(value) @paths = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
8877 8878 8879 |
# File 'lib/ovirtsdk4/types.rb', line 8877 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
8886 8887 8888 |
# File 'lib/ovirtsdk4/types.rb', line 8886 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
8895 8896 8897 |
# File 'lib/ovirtsdk4/types.rb', line 8895 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
8904 8905 8906 |
# File 'lib/ovirtsdk4/types.rb', line 8904 def portal=(value) @portal = value end |
#product_id ⇒ String
Returns the value of the product_id
attribute.
8913 8914 8915 |
# File 'lib/ovirtsdk4/types.rb', line 8913 def product_id @product_id end |
#product_id=(value) ⇒ Object
Sets the value of the product_id
attribute.
8922 8923 8924 |
# File 'lib/ovirtsdk4/types.rb', line 8922 def product_id=(value) @product_id = value end |
#serial ⇒ String
Returns the value of the serial
attribute.
8931 8932 8933 |
# File 'lib/ovirtsdk4/types.rb', line 8931 def serial @serial end |
#serial=(value) ⇒ Object
Sets the value of the serial
attribute.
8940 8941 8942 |
# File 'lib/ovirtsdk4/types.rb', line 8940 def serial=(value) @serial = value end |
#size ⇒ Integer
Returns the value of the size
attribute.
8949 8950 8951 |
# File 'lib/ovirtsdk4/types.rb', line 8949 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
8958 8959 8960 |
# File 'lib/ovirtsdk4/types.rb', line 8958 def size=(value) @size = value end |
#status ⇒ LunStatus
Returns the value of the status
attribute.
8967 8968 8969 |
# File 'lib/ovirtsdk4/types.rb', line 8967 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
8976 8977 8978 |
# File 'lib/ovirtsdk4/types.rb', line 8976 def status=(value) @status = value end |
#storage_domain_id ⇒ String
Returns the value of the storage_domain_id
attribute.
8985 8986 8987 |
# File 'lib/ovirtsdk4/types.rb', line 8985 def storage_domain_id @storage_domain_id end |
#storage_domain_id=(value) ⇒ Object
Sets the value of the storage_domain_id
attribute.
8994 8995 8996 |
# File 'lib/ovirtsdk4/types.rb', line 8994 def storage_domain_id=(value) @storage_domain_id = value end |
#target ⇒ String
Returns the value of the target
attribute.
9003 9004 9005 |
# File 'lib/ovirtsdk4/types.rb', line 9003 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
9012 9013 9014 |
# File 'lib/ovirtsdk4/types.rb', line 9012 def target=(value) @target = value end |
#username ⇒ String
Returns the value of the username
attribute.
9021 9022 9023 |
# File 'lib/ovirtsdk4/types.rb', line 9021 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
9030 9031 9032 |
# File 'lib/ovirtsdk4/types.rb', line 9030 def username=(value) @username = value end |
#vendor_id ⇒ String
Returns the value of the vendor_id
attribute.
9039 9040 9041 |
# File 'lib/ovirtsdk4/types.rb', line 9039 def vendor_id @vendor_id end |
#vendor_id=(value) ⇒ Object
Sets the value of the vendor_id
attribute.
9048 9049 9050 |
# File 'lib/ovirtsdk4/types.rb', line 9048 def vendor_id=(value) @vendor_id = value end |
#volume_group_id ⇒ String
Returns the value of the volume_group_id
attribute.
9057 9058 9059 |
# File 'lib/ovirtsdk4/types.rb', line 9057 def volume_group_id @volume_group_id end |
#volume_group_id=(value) ⇒ Object
Sets the value of the volume_group_id
attribute.
9066 9067 9068 |
# File 'lib/ovirtsdk4/types.rb', line 9066 def volume_group_id=(value) @volume_group_id = value end |