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
true
ifself
andother
have the same attributes and values. -
#active ⇒ Boolean
Returns the value of the
active
attribute. -
#active=(value) ⇒ Object
Sets the value of the
active
attribute. -
#backup ⇒ Backup
Returns the value of the
backup
attribute. -
#backup=(value) ⇒ Object
Sets the value of the
backup
attribute. -
#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. -
#direction ⇒ ImageTransferDirection
Returns the value of the
direction
attribute. -
#direction=(value) ⇒ Object
Sets the value of the
direction
attribute. -
#disk ⇒ Disk
Returns the value of the
disk
attribute. -
#disk=(value) ⇒ Object
Sets the value of the
disk
attribute. -
#format ⇒ DiskFormat
Returns the value of the
format
attribute. -
#format=(value) ⇒ Object
Sets the value of the
format
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#image ⇒ Image
Returns the value of the
image
attribute. -
#image=(value) ⇒ Object
Sets the value of the
image
attribute. -
#inactivity_timeout ⇒ Integer
Returns the value of the
inactivity_timeout
attribute. -
#inactivity_timeout=(value) ⇒ Object
Sets the value of the
inactivity_timeout
attribute. -
#initialize(opts = {}) ⇒ ImageTransfer
constructor
Creates a new instance of the ImageTransfer class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#phase ⇒ ImageTransferPhase
Returns the value of the
phase
attribute. -
#phase=(value) ⇒ Object
Sets the value of the
phase
attribute. -
#proxy_url ⇒ String
Returns the value of the
proxy_url
attribute. -
#proxy_url=(value) ⇒ Object
Sets the value of the
proxy_url
attribute. -
#shallow ⇒ Boolean
Returns the value of the
shallow
attribute. -
#shallow=(value) ⇒ Object
Sets the value of the
shallow
attribute. -
#snapshot ⇒ DiskSnapshot
Returns the value of the
snapshot
attribute. -
#snapshot=(value) ⇒ Object
Sets the value of the
snapshot
attribute. -
#timeout_policy ⇒ ImageTransferTimeoutPolicy
Returns the value of the
timeout_policy
attribute. -
#timeout_policy=(value) ⇒ Object
Sets the value of the
timeout_policy
attribute. -
#transfer_url ⇒ String
Returns the value of the
transfer_url
attribute. -
#transfer_url=(value) ⇒ Object
Sets the value of the
transfer_url
attribute. -
#transferred ⇒ Integer
Returns the value of the
transferred
attribute. -
#transferred=(value) ⇒ Object
Sets the value of the
transferred
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ImageTransfer
Creates a new instance of the OvirtSDK4::ImageTransfer class.
5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 |
# File 'lib/ovirtsdk4/types.rb', line 5847 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.
5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 |
# File 'lib/ovirtsdk4/types.rb', line 5869 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.
5429 5430 5431 |
# File 'lib/ovirtsdk4/types.rb', line 5429 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
5438 5439 5440 |
# File 'lib/ovirtsdk4/types.rb', line 5438 def active=(value) @active = value end |
#backup ⇒ Backup
Returns the value of the backup
attribute.
5447 5448 5449 |
# File 'lib/ovirtsdk4/types.rb', line 5447 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.
5460 5461 5462 5463 5464 5465 |
# File 'lib/ovirtsdk4/types.rb', line 5460 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.
5472 5473 5474 |
# File 'lib/ovirtsdk4/types.rb', line 5472 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
5481 5482 5483 |
# File 'lib/ovirtsdk4/types.rb', line 5481 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
5490 5491 5492 |
# File 'lib/ovirtsdk4/types.rb', line 5490 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
5499 5500 5501 |
# File 'lib/ovirtsdk4/types.rb', line 5499 def description=(value) @description = value end |
#direction ⇒ ImageTransferDirection
Returns the value of the direction
attribute.
5508 5509 5510 |
# File 'lib/ovirtsdk4/types.rb', line 5508 def direction @direction end |
#direction=(value) ⇒ Object
Sets the value of the direction
attribute.
5517 5518 5519 |
# File 'lib/ovirtsdk4/types.rb', line 5517 def direction=(value) @direction = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
5526 5527 5528 |
# File 'lib/ovirtsdk4/types.rb', line 5526 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.
5539 5540 5541 5542 5543 5544 |
# File 'lib/ovirtsdk4/types.rb', line 5539 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.
5551 5552 5553 |
# File 'lib/ovirtsdk4/types.rb', line 5551 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
5560 5561 5562 |
# File 'lib/ovirtsdk4/types.rb', line 5560 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 |
# File 'lib/ovirtsdk4/types.rb', line 5891 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.
5569 5570 5571 |
# File 'lib/ovirtsdk4/types.rb', line 5569 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.
5582 5583 5584 5585 5586 5587 |
# File 'lib/ovirtsdk4/types.rb', line 5582 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.
5594 5595 5596 |
# File 'lib/ovirtsdk4/types.rb', line 5594 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
5603 5604 5605 |
# File 'lib/ovirtsdk4/types.rb', line 5603 def id=(value) @id = value end |
#image ⇒ Image
Returns the value of the image
attribute.
5612 5613 5614 |
# File 'lib/ovirtsdk4/types.rb', line 5612 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.
5625 5626 5627 5628 5629 5630 |
# File 'lib/ovirtsdk4/types.rb', line 5625 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.
5637 5638 5639 |
# File 'lib/ovirtsdk4/types.rb', line 5637 def inactivity_timeout @inactivity_timeout end |
#inactivity_timeout=(value) ⇒ Object
Sets the value of the inactivity_timeout
attribute.
5646 5647 5648 |
# File 'lib/ovirtsdk4/types.rb', line 5646 def inactivity_timeout=(value) @inactivity_timeout = value end |
#name ⇒ String
Returns the value of the name
attribute.
5655 5656 5657 |
# File 'lib/ovirtsdk4/types.rb', line 5655 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
5664 5665 5666 |
# File 'lib/ovirtsdk4/types.rb', line 5664 def name=(value) @name = value end |
#phase ⇒ ImageTransferPhase
Returns the value of the phase
attribute.
5673 5674 5675 |
# File 'lib/ovirtsdk4/types.rb', line 5673 def phase @phase end |
#phase=(value) ⇒ Object
Sets the value of the phase
attribute.
5682 5683 5684 |
# File 'lib/ovirtsdk4/types.rb', line 5682 def phase=(value) @phase = value end |
#proxy_url ⇒ String
Returns the value of the proxy_url
attribute.
5691 5692 5693 |
# File 'lib/ovirtsdk4/types.rb', line 5691 def proxy_url @proxy_url end |
#proxy_url=(value) ⇒ Object
Sets the value of the proxy_url
attribute.
5700 5701 5702 |
# File 'lib/ovirtsdk4/types.rb', line 5700 def proxy_url=(value) @proxy_url = value end |
#shallow ⇒ Boolean
Returns the value of the shallow
attribute.
5709 5710 5711 |
# File 'lib/ovirtsdk4/types.rb', line 5709 def shallow @shallow end |
#shallow=(value) ⇒ Object
Sets the value of the shallow
attribute.
5718 5719 5720 |
# File 'lib/ovirtsdk4/types.rb', line 5718 def shallow=(value) @shallow = value end |
#snapshot ⇒ DiskSnapshot
Returns the value of the snapshot
attribute.
5727 5728 5729 |
# File 'lib/ovirtsdk4/types.rb', line 5727 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.
5740 5741 5742 5743 5744 5745 |
# File 'lib/ovirtsdk4/types.rb', line 5740 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.
5752 5753 5754 |
# File 'lib/ovirtsdk4/types.rb', line 5752 def timeout_policy @timeout_policy end |
#timeout_policy=(value) ⇒ Object
Sets the value of the timeout_policy
attribute.
5761 5762 5763 |
# File 'lib/ovirtsdk4/types.rb', line 5761 def timeout_policy=(value) @timeout_policy = value end |
#transfer_url ⇒ String
Returns the value of the transfer_url
attribute.
5770 5771 5772 |
# File 'lib/ovirtsdk4/types.rb', line 5770 def transfer_url @transfer_url end |
#transfer_url=(value) ⇒ Object
Sets the value of the transfer_url
attribute.
5779 5780 5781 |
# File 'lib/ovirtsdk4/types.rb', line 5779 def transfer_url=(value) @transfer_url = value end |
#transferred ⇒ Integer
Returns the value of the transferred
attribute.
5788 5789 5790 |
# File 'lib/ovirtsdk4/types.rb', line 5788 def transferred @transferred end |
#transferred=(value) ⇒ Object
Sets the value of the transferred
attribute.
5797 5798 5799 |
# File 'lib/ovirtsdk4/types.rb', line 5797 def transferred=(value) @transferred = value end |