class OvirtSDK4::ImageTransfer

Public Class Methods

new(opts = {}) click to toggle source

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 [Boolean] :active The value of attribute `active`.

@option opts [Backup, Hash] :backup The value of attribute `backup`.

@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 [Disk, Hash] :disk The value of attribute `disk`.

@option opts [DiskFormat] :format The value of attribute `format`.

@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 [Integer] :inactivity_timeout The value of attribute `inactivity_timeout`.

@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`.

@option opts [DiskSnapshot, Hash] :snapshot The value of attribute `snapshot`.

@option opts [String] :transfer_url The value of attribute `transfer_url`.

@option opts [Integer] :transferred The value of attribute `transferred`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 5815
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.signed_ticket = opts[:signed_ticket]
  self.snapshot = opts[:snapshot]
  self.transfer_url = opts[:transfer_url]
  self.transferred = opts[:transferred]
end

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Identified#==
# File lib/ovirtsdk4/types.rb, line 5836
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 &&
  @signed_ticket == other.signed_ticket &&
  @snapshot == other.snapshot &&
  @transfer_url == other.transfer_url &&
  @transferred == other.transferred
end
active() click to toggle source

Returns the value of the `active` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 5417
def active
  @active
end
active=(value) click to toggle source

Sets the value of the `active` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 5426
def active=(value)
  @active = value
end
backup() click to toggle source

Returns the value of the `backup` attribute.

@return [Backup]

# File lib/ovirtsdk4/types.rb, line 5435
def backup
  @backup
end
backup=(value) click to toggle source

Sets the value of the `backup` attribute.

@param value [Backup, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 5448
def backup=(value)
  if value.is_a?(Hash)
    value = Backup.new(value)
  end
  @backup = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5460
def comment
  @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5469
def comment=(value)
  @comment = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5478
def description
  @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5487
def description=(value)
  @description = value
end
direction() click to toggle source

Returns the value of the `direction` attribute.

@return [ImageTransferDirection]

# File lib/ovirtsdk4/types.rb, line 5496
def direction
  @direction
end
direction=(value) click to toggle source

Sets the value of the `direction` attribute.

@param value [ImageTransferDirection]

# File lib/ovirtsdk4/types.rb, line 5505
def direction=(value)
  @direction = value
end
disk() click to toggle source

Returns the value of the `disk` attribute.

@return [Disk]

# File lib/ovirtsdk4/types.rb, line 5514
def disk
  @disk
end
disk=(value) click to toggle source

Sets the value of the `disk` attribute.

@param value [Disk, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 5527
def disk=(value)
  if value.is_a?(Hash)
    value = Disk.new(value)
  end
  @disk = value
end
format() click to toggle source

Returns the value of the `format` attribute.

@return [DiskFormat]

# File lib/ovirtsdk4/types.rb, line 5539
def format
  @format
end
format=(value) click to toggle source

Sets the value of the `format` attribute.

@param value [DiskFormat]

# File lib/ovirtsdk4/types.rb, line 5548
def format=(value)
  @format = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Identified#hash
# File lib/ovirtsdk4/types.rb, line 5857
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 +
  @signed_ticket.hash +
  @snapshot.hash +
  @transfer_url.hash +
  @transferred.hash
end
host() click to toggle source

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 5557
def host
  @host
end
host=(value) click to toggle source

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 5570
def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5582
def id
  @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5591
def id=(value)
  @id = value
end
image() click to toggle source

Returns the value of the `image` attribute.

@return [Image]

# File lib/ovirtsdk4/types.rb, line 5600
def image
  @image
end
image=(value) click to toggle source

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 5613
def image=(value)
  if value.is_a?(Hash)
    value = Image.new(value)
  end
  @image = value
end
inactivity_timeout() click to toggle source

Returns the value of the `inactivity_timeout` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 5625
def inactivity_timeout
  @inactivity_timeout
end
inactivity_timeout=(value) click to toggle source

Sets the value of the `inactivity_timeout` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 5634
def inactivity_timeout=(value)
  @inactivity_timeout = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5643
def name
  @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5652
def name=(value)
  @name = value
end
phase() click to toggle source

Returns the value of the `phase` attribute.

@return [ImageTransferPhase]

# File lib/ovirtsdk4/types.rb, line 5661
def phase
  @phase
end
phase=(value) click to toggle source

Sets the value of the `phase` attribute.

@param value [ImageTransferPhase]

# File lib/ovirtsdk4/types.rb, line 5670
def phase=(value)
  @phase = value
end
proxy_url() click to toggle source

Returns the value of the `proxy_url` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5679
def proxy_url
  @proxy_url
end
proxy_url=(value) click to toggle source

Sets the value of the `proxy_url` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5688
def proxy_url=(value)
  @proxy_url = value
end
signed_ticket() click to toggle source

Returns the value of the `signed_ticket` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5697
def signed_ticket
  @signed_ticket
end
signed_ticket=(value) click to toggle source

Sets the value of the `signed_ticket` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5706
def signed_ticket=(value)
  @signed_ticket = value
end
snapshot() click to toggle source

Returns the value of the `snapshot` attribute.

@return [DiskSnapshot]

# File lib/ovirtsdk4/types.rb, line 5715
def snapshot
  @snapshot
end
snapshot=(value) click to toggle source

Sets the value of the `snapshot` attribute.

@param value [DiskSnapshot, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 5728
def snapshot=(value)
  if value.is_a?(Hash)
    value = DiskSnapshot.new(value)
  end
  @snapshot = value
end
transfer_url() click to toggle source

Returns the value of the `transfer_url` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5740
def transfer_url
  @transfer_url
end
transfer_url=(value) click to toggle source

Sets the value of the `transfer_url` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5749
def transfer_url=(value)
  @transfer_url = value
end
transferred() click to toggle source

Returns the value of the `transferred` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 5758
def transferred
  @transferred
end
transferred=(value) click to toggle source

Sets the value of the `transferred` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 5767
def transferred=(value)
  @transferred = value
end