class OvirtSDK4::ExternalVmImport

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {ExternalVmImport} 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 [Cluster, Hash] :cluster The value of attribute `cluster`.

@option opts [CpuProfile, Hash] :cpu_profile The value of attribute `cpu_profile`.

@option opts [File, Hash] :drivers_iso The value of attribute `drivers_iso`.

@option opts [Host, Hash] :host The value of attribute `host`.

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

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

@option opts [ExternalVmProviderType] :provider The value of attribute `provider`.

@option opts [Quota, Hash] :quota The value of attribute `quota`.

@option opts [Boolean] :sparse The value of attribute `sparse`.

@option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.

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

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

@option opts [Vm, Hash] :vm The value of attribute `vm`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 2956
def initialize(opts = {})
  super(opts)
  self.cluster = opts[:cluster]
  self.cpu_profile = opts[:cpu_profile]
  self.drivers_iso = opts[:drivers_iso]
  self.host = opts[:host]
  self.name = opts[:name]
  self.password = opts[:password]
  self.provider = opts[:provider]
  self.quota = opts[:quota]
  self.sparse = opts[:sparse]
  self.storage_domain = opts[:storage_domain]
  self.url = opts[:url]
  self.username = opts[:username]
  self.vm = opts[:vm]
end

Public Instance Methods

cluster() click to toggle source

Returns the value of the `cluster` attribute.

@return [Cluster]

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

Sets the value of the `cluster` attribute.

@param value [Cluster, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Cluster} 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 2657
def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end
cpu_profile() click to toggle source

Returns the value of the `cpu_profile` attribute.

@return [CpuProfile]

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

Sets the value of the `cpu_profile` attribute.

@param value [CpuProfile, Hash]

The `value` parameter can be an instance of {OvirtSDK4::CpuProfile} 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 2682
def cpu_profile=(value)
  if value.is_a?(Hash)
    value = CpuProfile.new(value)
  end
  @cpu_profile = value
end
drivers_iso() click to toggle source

Returns the value of the `drivers_iso` attribute.

@return [File]

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

Sets the value of the `drivers_iso` attribute.

@param value [File, Hash]

The `value` parameter can be an instance of {OvirtSDK4::File} 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 2707
def drivers_iso=(value)
  if value.is_a?(Hash)
    value = File.new(value)
  end
  @drivers_iso = value
end
host() click to toggle source

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 2719
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 2732
def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 2744
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 2753
def name=(value)
  @name = value
end
password() click to toggle source

Returns the value of the `password` attribute.

@return [String]

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

Sets the value of the `password` attribute.

@param value [String]

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

Returns the value of the `provider` attribute.

@return [ExternalVmProviderType]

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

Sets the value of the `provider` attribute.

@param value [ExternalVmProviderType]

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

Returns the value of the `quota` attribute.

@return [Quota]

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

Sets the value of the `quota` attribute.

@param value [Quota, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Quota} 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 2811
def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end
sparse() click to toggle source

Returns the value of the `sparse` attribute.

@return [Boolean]

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

Sets the value of the `sparse` attribute.

@param value [Boolean]

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

Returns the value of the `storage_domain` attribute.

@return [StorageDomain]

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

Sets the value of the `storage_domain` attribute.

@param value [StorageDomain, Hash]

The `value` parameter can be an instance of {OvirtSDK4::StorageDomain} 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 2854
def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end
url() click to toggle source

Returns the value of the `url` attribute.

@return [String]

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

Sets the value of the `url` attribute.

@param value [String]

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

Returns the value of the `username` attribute.

@return [String]

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

Sets the value of the `username` attribute.

@param value [String]

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

Returns the value of the `vm` attribute.

@return [Vm]

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

Sets the value of the `vm` attribute.

@param value [Vm, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Vm} 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 2915
def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end