Class: OvirtSDK4::ImageTransfer
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ImageTransfer
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#active ⇒ Boolean
Returns the value of the
activeattribute. -
#active=(value) ⇒ Object
Sets the value of the
activeattribute. -
#backup ⇒ Backup
Returns the value of the
backupattribute. -
#backup=(value) ⇒ Object
Sets the value of the
backupattribute. -
#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. -
#direction ⇒ ImageTransferDirection
Returns the value of the
directionattribute. -
#direction=(value) ⇒ Object
Sets the value of the
directionattribute. -
#disk ⇒ Disk
Returns the value of the
diskattribute. -
#disk=(value) ⇒ Object
Sets the value of the
diskattribute. -
#format ⇒ DiskFormat
Returns the value of the
formatattribute. -
#format=(value) ⇒ Object
Sets the value of the
formatattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#image ⇒ Image
Returns the value of the
imageattribute. -
#image=(value) ⇒ Object
Sets the value of the
imageattribute. -
#inactivity_timeout ⇒ Integer
Returns the value of the
inactivity_timeoutattribute. -
#inactivity_timeout=(value) ⇒ Object
Sets the value of the
inactivity_timeoutattribute. -
#initialize(opts = {}) ⇒ ImageTransfer
constructor
Creates a new instance of the ImageTransfer class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#phase ⇒ ImageTransferPhase
Returns the value of the
phaseattribute. -
#phase=(value) ⇒ Object
Sets the value of the
phaseattribute. -
#proxy_url ⇒ String
Returns the value of the
proxy_urlattribute. -
#proxy_url=(value) ⇒ Object
Sets the value of the
proxy_urlattribute. -
#shallow ⇒ Boolean
Returns the value of the
shallowattribute. -
#shallow=(value) ⇒ Object
Sets the value of the
shallowattribute. -
#snapshot ⇒ DiskSnapshot
Returns the value of the
snapshotattribute. -
#snapshot=(value) ⇒ Object
Sets the value of the
snapshotattribute. -
#timeout_policy ⇒ ImageTransferTimeoutPolicy
Returns the value of the
timeout_policyattribute. -
#timeout_policy=(value) ⇒ Object
Sets the value of the
timeout_policyattribute. -
#transfer_url ⇒ String
Returns the value of the
transfer_urlattribute. -
#transfer_url=(value) ⇒ Object
Sets the value of the
transfer_urlattribute. -
#transferred ⇒ Integer
Returns the value of the
transferredattribute. -
#transferred=(value) ⇒ Object
Sets the value of the
transferredattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ImageTransfer
Creates a new instance of the OvirtSDK4::ImageTransfer class.
6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 |
# File 'lib/ovirtsdk4/types.rb', line 6452 def initialize(opts = {}) super(opts) self.active = opts[:active] self.backup = opts[:backup] self.direction = opts[:direction] self.disk = opts[:disk] self.format = opts[:format] self.host = opts[:host] self.image = opts[:image] self.inactivity_timeout = opts[:inactivity_timeout] self.phase = opts[:phase] self.proxy_url = opts[:proxy_url] self.shallow = opts[:shallow] self.snapshot = opts[:snapshot] self.timeout_policy = opts[:timeout_policy] self.transfer_url = opts[:transfer_url] self.transferred = opts[:transferred] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 |
# File 'lib/ovirtsdk4/types.rb', line 6474 def ==(other) super && @active == other.active && @backup == other.backup && @direction == other.direction && @disk == other.disk && @format == other.format && @host == other.host && @image == other.image && @inactivity_timeout == other.inactivity_timeout && @phase == other.phase && @proxy_url == other.proxy_url && @shallow == other.shallow && @snapshot == other.snapshot && @timeout_policy == other.timeout_policy && @transfer_url == other.transfer_url && @transferred == other.transferred end |
#active ⇒ Boolean
Returns the value of the active attribute.
6034 6035 6036 |
# File 'lib/ovirtsdk4/types.rb', line 6034 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
6043 6044 6045 |
# File 'lib/ovirtsdk4/types.rb', line 6043 def active=(value) @active = value end |
#backup ⇒ Backup
Returns the value of the backup attribute.
6052 6053 6054 |
# File 'lib/ovirtsdk4/types.rb', line 6052 def backup @backup end |
#backup=(value) ⇒ Object
Sets the value of the backup attribute.
The value parameter can be an instance of Backup 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.
6065 6066 6067 6068 6069 6070 |
# File 'lib/ovirtsdk4/types.rb', line 6065 def backup=(value) if value.is_a?(Hash) value = Backup.new(value) end @backup = value end |
#comment ⇒ String
Returns the value of the comment attribute.
6077 6078 6079 |
# File 'lib/ovirtsdk4/types.rb', line 6077 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
6086 6087 6088 |
# File 'lib/ovirtsdk4/types.rb', line 6086 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
6095 6096 6097 |
# File 'lib/ovirtsdk4/types.rb', line 6095 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
6104 6105 6106 |
# File 'lib/ovirtsdk4/types.rb', line 6104 def description=(value) @description = value end |
#direction ⇒ ImageTransferDirection
Returns the value of the direction attribute.
6113 6114 6115 |
# File 'lib/ovirtsdk4/types.rb', line 6113 def direction @direction end |
#direction=(value) ⇒ Object
Sets the value of the direction attribute.
6122 6123 6124 |
# File 'lib/ovirtsdk4/types.rb', line 6122 def direction=(value) @direction = value end |
#disk ⇒ Disk
Returns the value of the disk attribute.
6131 6132 6133 |
# File 'lib/ovirtsdk4/types.rb', line 6131 def disk @disk end |
#disk=(value) ⇒ Object
Sets the value of the disk attribute.
The value parameter can be an instance of Disk 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.
6144 6145 6146 6147 6148 6149 |
# File 'lib/ovirtsdk4/types.rb', line 6144 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end |
#format ⇒ DiskFormat
Returns the value of the format attribute.
6156 6157 6158 |
# File 'lib/ovirtsdk4/types.rb', line 6156 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format attribute.
6165 6166 6167 |
# File 'lib/ovirtsdk4/types.rb', line 6165 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 |
# File 'lib/ovirtsdk4/types.rb', line 6496 def hash super + @active.hash + @backup.hash + @direction.hash + @disk.hash + @format.hash + @host.hash + @image.hash + @inactivity_timeout.hash + @phase.hash + @proxy_url.hash + @shallow.hash + @snapshot.hash + @timeout_policy.hash + @transfer_url.hash + @transferred.hash end |
#host ⇒ Host
Returns the value of the host attribute.
6174 6175 6176 |
# File 'lib/ovirtsdk4/types.rb', line 6174 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host attribute.
The value parameter can be an instance of Host 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.
6187 6188 6189 6190 6191 6192 |
# File 'lib/ovirtsdk4/types.rb', line 6187 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
6199 6200 6201 |
# File 'lib/ovirtsdk4/types.rb', line 6199 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
6208 6209 6210 |
# File 'lib/ovirtsdk4/types.rb', line 6208 def id=(value) @id = value end |
#image ⇒ Image
Returns the value of the image attribute.
6217 6218 6219 |
# File 'lib/ovirtsdk4/types.rb', line 6217 def image @image end |
#image=(value) ⇒ Object
Sets the value of the image attribute.
The value parameter can be an instance of OvirtSDK4::Image 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.
6230 6231 6232 6233 6234 6235 |
# File 'lib/ovirtsdk4/types.rb', line 6230 def image=(value) if value.is_a?(Hash) value = Image.new(value) end @image = value end |
#inactivity_timeout ⇒ Integer
Returns the value of the inactivity_timeout attribute.
6242 6243 6244 |
# File 'lib/ovirtsdk4/types.rb', line 6242 def inactivity_timeout @inactivity_timeout end |
#inactivity_timeout=(value) ⇒ Object
Sets the value of the inactivity_timeout attribute.
6251 6252 6253 |
# File 'lib/ovirtsdk4/types.rb', line 6251 def inactivity_timeout=(value) @inactivity_timeout = value end |
#name ⇒ String
Returns the value of the name attribute.
6260 6261 6262 |
# File 'lib/ovirtsdk4/types.rb', line 6260 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
6269 6270 6271 |
# File 'lib/ovirtsdk4/types.rb', line 6269 def name=(value) @name = value end |
#phase ⇒ ImageTransferPhase
Returns the value of the phase attribute.
6278 6279 6280 |
# File 'lib/ovirtsdk4/types.rb', line 6278 def phase @phase end |
#phase=(value) ⇒ Object
Sets the value of the phase attribute.
6287 6288 6289 |
# File 'lib/ovirtsdk4/types.rb', line 6287 def phase=(value) @phase = value end |
#proxy_url ⇒ String
Returns the value of the proxy_url attribute.
6296 6297 6298 |
# File 'lib/ovirtsdk4/types.rb', line 6296 def proxy_url @proxy_url end |
#proxy_url=(value) ⇒ Object
Sets the value of the proxy_url attribute.
6305 6306 6307 |
# File 'lib/ovirtsdk4/types.rb', line 6305 def proxy_url=(value) @proxy_url = value end |
#shallow ⇒ Boolean
Returns the value of the shallow attribute.
6314 6315 6316 |
# File 'lib/ovirtsdk4/types.rb', line 6314 def shallow @shallow end |
#shallow=(value) ⇒ Object
Sets the value of the shallow attribute.
6323 6324 6325 |
# File 'lib/ovirtsdk4/types.rb', line 6323 def shallow=(value) @shallow = value end |
#snapshot ⇒ DiskSnapshot
Returns the value of the snapshot attribute.
6332 6333 6334 |
# File 'lib/ovirtsdk4/types.rb', line 6332 def snapshot @snapshot end |
#snapshot=(value) ⇒ Object
Sets the value of the snapshot attribute.
The value parameter can be an instance of DiskSnapshot 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.
6345 6346 6347 6348 6349 6350 |
# File 'lib/ovirtsdk4/types.rb', line 6345 def snapshot=(value) if value.is_a?(Hash) value = DiskSnapshot.new(value) end @snapshot = value end |
#timeout_policy ⇒ ImageTransferTimeoutPolicy
Returns the value of the timeout_policy attribute.
6357 6358 6359 |
# File 'lib/ovirtsdk4/types.rb', line 6357 def timeout_policy @timeout_policy end |
#timeout_policy=(value) ⇒ Object
Sets the value of the timeout_policy attribute.
6366 6367 6368 |
# File 'lib/ovirtsdk4/types.rb', line 6366 def timeout_policy=(value) @timeout_policy = value end |
#transfer_url ⇒ String
Returns the value of the transfer_url attribute.
6375 6376 6377 |
# File 'lib/ovirtsdk4/types.rb', line 6375 def transfer_url @transfer_url end |
#transfer_url=(value) ⇒ Object
Sets the value of the transfer_url attribute.
6384 6385 6386 |
# File 'lib/ovirtsdk4/types.rb', line 6384 def transfer_url=(value) @transfer_url = value end |
#transferred ⇒ Integer
Returns the value of the transferred attribute.
6393 6394 6395 |
# File 'lib/ovirtsdk4/types.rb', line 6393 def transferred @transferred end |
#transferred=(value) ⇒ Object
Sets the value of the transferred attribute.
6402 6403 6404 |
# File 'lib/ovirtsdk4/types.rb', line 6402 def transferred=(value) @transferred = value end |