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.
6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 |
# File 'lib/ovirtsdk4/types.rb', line 6228 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.
6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 |
# File 'lib/ovirtsdk4/types.rb', line 6250 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.
5810 5811 5812 |
# File 'lib/ovirtsdk4/types.rb', line 5810 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
5819 5820 5821 |
# File 'lib/ovirtsdk4/types.rb', line 5819 def active=(value) @active = value end |
#backup ⇒ Backup
Returns the value of the backup
attribute.
5828 5829 5830 |
# File 'lib/ovirtsdk4/types.rb', line 5828 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.
5841 5842 5843 5844 5845 5846 |
# File 'lib/ovirtsdk4/types.rb', line 5841 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.
5853 5854 5855 |
# File 'lib/ovirtsdk4/types.rb', line 5853 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
5862 5863 5864 |
# File 'lib/ovirtsdk4/types.rb', line 5862 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
5871 5872 5873 |
# File 'lib/ovirtsdk4/types.rb', line 5871 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
5880 5881 5882 |
# File 'lib/ovirtsdk4/types.rb', line 5880 def description=(value) @description = value end |
#direction ⇒ ImageTransferDirection
Returns the value of the direction
attribute.
5889 5890 5891 |
# File 'lib/ovirtsdk4/types.rb', line 5889 def direction @direction end |
#direction=(value) ⇒ Object
Sets the value of the direction
attribute.
5898 5899 5900 |
# File 'lib/ovirtsdk4/types.rb', line 5898 def direction=(value) @direction = value end |
#disk ⇒ Disk
Returns the value of the disk
attribute.
5907 5908 5909 |
# File 'lib/ovirtsdk4/types.rb', line 5907 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.
5920 5921 5922 5923 5924 5925 |
# File 'lib/ovirtsdk4/types.rb', line 5920 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.
5932 5933 5934 |
# File 'lib/ovirtsdk4/types.rb', line 5932 def format @format end |
#format=(value) ⇒ Object
Sets the value of the format
attribute.
5941 5942 5943 |
# File 'lib/ovirtsdk4/types.rb', line 5941 def format=(value) @format = value end |
#hash ⇒ Object
Generates a hash value for this object.
6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 |
# File 'lib/ovirtsdk4/types.rb', line 6272 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.
5950 5951 5952 |
# File 'lib/ovirtsdk4/types.rb', line 5950 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.
5963 5964 5965 5966 5967 5968 |
# File 'lib/ovirtsdk4/types.rb', line 5963 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.
5975 5976 5977 |
# File 'lib/ovirtsdk4/types.rb', line 5975 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
5984 5985 5986 |
# File 'lib/ovirtsdk4/types.rb', line 5984 def id=(value) @id = value end |
#image ⇒ Image
Returns the value of the image
attribute.
5993 5994 5995 |
# File 'lib/ovirtsdk4/types.rb', line 5993 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.
6006 6007 6008 6009 6010 6011 |
# File 'lib/ovirtsdk4/types.rb', line 6006 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.
6018 6019 6020 |
# File 'lib/ovirtsdk4/types.rb', line 6018 def inactivity_timeout @inactivity_timeout end |
#inactivity_timeout=(value) ⇒ Object
Sets the value of the inactivity_timeout
attribute.
6027 6028 6029 |
# File 'lib/ovirtsdk4/types.rb', line 6027 def inactivity_timeout=(value) @inactivity_timeout = value end |
#name ⇒ String
Returns the value of the name
attribute.
6036 6037 6038 |
# File 'lib/ovirtsdk4/types.rb', line 6036 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
6045 6046 6047 |
# File 'lib/ovirtsdk4/types.rb', line 6045 def name=(value) @name = value end |
#phase ⇒ ImageTransferPhase
Returns the value of the phase
attribute.
6054 6055 6056 |
# File 'lib/ovirtsdk4/types.rb', line 6054 def phase @phase end |
#phase=(value) ⇒ Object
Sets the value of the phase
attribute.
6063 6064 6065 |
# File 'lib/ovirtsdk4/types.rb', line 6063 def phase=(value) @phase = value end |
#proxy_url ⇒ String
Returns the value of the proxy_url
attribute.
6072 6073 6074 |
# File 'lib/ovirtsdk4/types.rb', line 6072 def proxy_url @proxy_url end |
#proxy_url=(value) ⇒ Object
Sets the value of the proxy_url
attribute.
6081 6082 6083 |
# File 'lib/ovirtsdk4/types.rb', line 6081 def proxy_url=(value) @proxy_url = value end |
#shallow ⇒ Boolean
Returns the value of the shallow
attribute.
6090 6091 6092 |
# File 'lib/ovirtsdk4/types.rb', line 6090 def shallow @shallow end |
#shallow=(value) ⇒ Object
Sets the value of the shallow
attribute.
6099 6100 6101 |
# File 'lib/ovirtsdk4/types.rb', line 6099 def shallow=(value) @shallow = value end |
#snapshot ⇒ DiskSnapshot
Returns the value of the snapshot
attribute.
6108 6109 6110 |
# File 'lib/ovirtsdk4/types.rb', line 6108 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.
6121 6122 6123 6124 6125 6126 |
# File 'lib/ovirtsdk4/types.rb', line 6121 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.
6133 6134 6135 |
# File 'lib/ovirtsdk4/types.rb', line 6133 def timeout_policy @timeout_policy end |
#timeout_policy=(value) ⇒ Object
Sets the value of the timeout_policy
attribute.
6142 6143 6144 |
# File 'lib/ovirtsdk4/types.rb', line 6142 def timeout_policy=(value) @timeout_policy = value end |
#transfer_url ⇒ String
Returns the value of the transfer_url
attribute.
6151 6152 6153 |
# File 'lib/ovirtsdk4/types.rb', line 6151 def transfer_url @transfer_url end |
#transfer_url=(value) ⇒ Object
Sets the value of the transfer_url
attribute.
6160 6161 6162 |
# File 'lib/ovirtsdk4/types.rb', line 6160 def transfer_url=(value) @transfer_url = value end |
#transferred ⇒ Integer
Returns the value of the transferred
attribute.
6169 6170 6171 |
# File 'lib/ovirtsdk4/types.rb', line 6169 def transferred @transferred end |
#transferred=(value) ⇒ Object
Sets the value of the transferred
attribute.
6178 6179 6180 |
# File 'lib/ovirtsdk4/types.rb', line 6178 def transferred=(value) @transferred = value end |