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 3742
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

==(other) click to toggle source

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

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 3762
def ==(other)
  super &&
  @cluster == other.cluster &&
  @cpu_profile == other.cpu_profile &&
  @drivers_iso == other.drivers_iso &&
  @host == other.host &&
  @name == other.name &&
  @password == other.password &&
  @provider == other.provider &&
  @quota == other.quota &&
  @sparse == other.sparse &&
  @storage_domain == other.storage_domain &&
  @url == other.url &&
  @username == other.username &&
  @vm == other.vm
end
cluster() click to toggle source

Returns the value of the `cluster` attribute.

@return [Cluster]

# File lib/ovirtsdk4/types.rb, line 3430
def cluster
  @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 3443
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 3455
def cpu_profile
  @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 3468
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 3480
def drivers_iso
  @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 3493
def drivers_iso=(value)
  if value.is_a?(Hash)
    value = File.new(value)
  end
  @drivers_iso = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 3782
def hash
  super +
  @cluster.hash +
  @cpu_profile.hash +
  @drivers_iso.hash +
  @host.hash +
  @name.hash +
  @password.hash +
  @provider.hash +
  @quota.hash +
  @sparse.hash +
  @storage_domain.hash +
  @url.hash +
  @username.hash +
  @vm.hash
end
host() click to toggle source

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 3505
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 3518
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 3530
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 3539
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 3548
def password
  @password
end
password=(value) click to toggle source

Sets the value of the `password` attribute.

@param value [String]

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

Sets the value of the `provider` attribute.

@param value [ExternalVmProviderType]

# File lib/ovirtsdk4/types.rb, line 3575
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 3584
def quota
  @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 3597
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 3609
def sparse
  @sparse
end
sparse=(value) click to toggle source

Sets the value of the `sparse` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 3618
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 3627
def storage_domain
  @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 3640
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 3652
def url
  @url
end
url=(value) click to toggle source

Sets the value of the `url` attribute.

@param value [String]

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

Sets the value of the `username` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3679
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 3688
def vm
  @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 3701
def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end