Creates a new instance of the {ImageTransfer} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [ImageTransferDirection] :direction The value of attribute `direction`.
@option opts [Host, Hash] :host The value of attribute `host`.
@option opts [String] :id The value of attribute `id`.
@option opts [Image, Hash] :image The value of attribute `image`.
@option opts [String] :name The value of attribute `name`.
@option opts [ImageTransferPhase] :phase The value of attribute `phase`.
@option opts [String] :proxy_url The value of attribute `proxy_url`.
@option opts [String] :signed_ticket The value of attribute `signed_ticket`.
# File lib/ovirtsdk4/types.rb, line 5457 def initialize(opts = {}) super(opts) self.direction = opts[:direction] self.host = opts[:host] self.image = opts[:image] self.phase = opts[:phase] self.proxy_url = opts[:proxy_url] self.signed_ticket = opts[:signed_ticket] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 5470 def ==(other) super && @direction == other.direction && @host == other.host && @image == other.image && @phase == other.phase && @proxy_url == other.proxy_url && @signed_ticket == other.signed_ticket end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5240 def comment @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5249 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5258 def description @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5267 def description=(value) @description = value end
Returns the value of the `direction` attribute.
@return [ImageTransferDirection]
# File lib/ovirtsdk4/types.rb, line 5276 def direction @direction end
Sets the value of the `direction` attribute.
@param value [ImageTransferDirection]
# File lib/ovirtsdk4/types.rb, line 5285 def direction=(value) @direction = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 5483 def hash super + @direction.hash + @host.hash + @image.hash + @phase.hash + @proxy_url.hash + @signed_ticket.hash end
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 5294 def host @host end
Sets the value of the `host` attribute.
@param value [Host, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 5307 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5319 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5328 def id=(value) @id = value end
Returns the value of the `image` attribute.
@return [Image]
# File lib/ovirtsdk4/types.rb, line 5337 def image @image end
Sets the value of the `image` attribute.
@param value [Image, Hash]
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.
# File lib/ovirtsdk4/types.rb, line 5350 def image=(value) if value.is_a?(Hash) value = Image.new(value) end @image = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5362 def name @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5371 def name=(value) @name = value end
Returns the value of the `phase` attribute.
@return [ImageTransferPhase]
# File lib/ovirtsdk4/types.rb, line 5380 def phase @phase end
Sets the value of the `phase` attribute.
@param value [ImageTransferPhase]
# File lib/ovirtsdk4/types.rb, line 5389 def phase=(value) @phase = value end
Returns the value of the `proxy_url` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5398 def proxy_url @proxy_url end
Sets the value of the `proxy_url` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5407 def proxy_url=(value) @proxy_url = value end
Returns the value of the `signed_ticket` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5416 def signed_ticket @signed_ticket end
Sets the value of the `signed_ticket` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5425 def signed_ticket=(value) @signed_ticket = value end