class OvirtSDK4::ExternalTemplateImport

def ==(other)


Returns `true` if `self` and `other` have the same attributes and values.
def ==(other)
  super &&
  @clone == other.clone &&
  @cluster == other.cluster &&
  @cpu_profile == other.cpu_profile &&
  @host == other.host &&
  @quota == other.quota &&
  @storage_domain == other.storage_domain &&
  @template == other.template &&
  @url == other.url
end

def clone

Returns:
  • (Boolean) -
def clone
  @clone
end

def clone=(value)

Parameters:
  • value (Boolean) --
def clone=(value)
  @clone = value
end

def cluster

Returns:
  • (Cluster) -
def cluster
  @cluster
end

def cluster=(value)

Parameters:
  • value (Cluster, Hash) --
def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end

def cpu_profile

Returns:
  • (CpuProfile) -
def cpu_profile
  @cpu_profile
end

def cpu_profile=(value)

Parameters:
  • value (CpuProfile, Hash) --
def cpu_profile=(value)
  if value.is_a?(Hash)
    value = CpuProfile.new(value)
  end
  @cpu_profile = value
end

def hash


Generates a hash value for this object.
def hash
  super +
  @clone.hash +
  @cluster.hash +
  @cpu_profile.hash +
  @host.hash +
  @quota.hash +
  @storage_domain.hash +
  @template.hash +
  @url.hash
end

def host

Returns:
  • (Host) -
def host
  @host
end

def host=(value)

Parameters:
  • value (Host, Hash) --
def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

def initialize(opts = {})

Options Hash: (**opts)
  • :url (String) -- The value of attribute `url`.
  • :template (Template, Hash) -- The value of attribute `template`.
  • :storage_domain (StorageDomain, Hash) -- The value of attribute `storage_domain`.
  • :quota (Quota, Hash) -- The value of attribute `quota`.
  • :host (Host, Hash) -- The value of attribute `host`.
  • :cpu_profile (CpuProfile, Hash) -- The value of attribute `cpu_profile`.
  • :cluster (Cluster, Hash) -- The value of attribute `cluster`.
  • :clone (Boolean) -- The value of attribute `clone`.

Parameters:
  • opts (Hash) -- A hash containing the attributes of the object. The keys of the hash
def initialize(opts = {})
  super(opts)
  self.clone = opts[:clone]
  self.cluster = opts[:cluster]
  self.cpu_profile = opts[:cpu_profile]
  self.host = opts[:host]
  self.quota = opts[:quota]
  self.storage_domain = opts[:storage_domain]
  self.template = opts[:template]
  self.url = opts[:url]
end

def quota

Returns:
  • (Quota) -
def quota
  @quota
end

def quota=(value)

Parameters:
  • value (Quota, Hash) --
def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

def storage_domain

Returns:
  • (StorageDomain) -
def storage_domain
  @storage_domain
end

def storage_domain=(value)

Parameters:
  • value (StorageDomain, Hash) --
def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end

def template

Returns:
  • (Template) -
def template
  @template
end

def template=(value)

Parameters:
  • value (Template, Hash) --
def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end

def url

Returns:
  • (String) -
def url
  @url
end

def url=(value)

Parameters:
  • value (String) --
def url=(value)
  @url = value
end