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

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

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

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 4417
def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.host = opts[:host]
  self.id = opts[:id]
  self.image = opts[:image]
  self.name = opts[:name]
  self.phase = opts[:phase]
  self.proxy_url = opts[:proxy_url]
  self.signed_ticket = opts[:signed_ticket]
end

Public Instance Methods

comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

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

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4229
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 4238
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

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

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 4256
def host
  return @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 4269
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 4281
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4290
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 4299
def image
  return @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 4312
def image=(value)
  if value.is_a?(Hash)
    value = Image.new(value)
  end
  @image = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

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

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4333
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 4342
def phase
  return @phase
end
phase=(value) click to toggle source

Sets the value of the `phase` attribute.

@param value [ImageTransferPhase]

# File lib/ovirtsdk4/types.rb, line 4351
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 4360
def proxy_url
  return @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 4369
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 4378
def signed_ticket
  return @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 4387
def signed_ticket=(value)
  @signed_ticket = value
end