class OvirtSDK4::ExternalTemplateImport

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {ExternalTemplateImport} 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] :clone The value of attribute ‘clone`.

@option opts [Cluster, Hash] :cluster The value of attribute ‘cluster`.

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

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

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

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

@option opts [Template, Hash] :template The value of attribute ‘template`.

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

Calls superclass method OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 3996
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

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 4011
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
clone() click to toggle source

Returns the value of the ‘clone` attribute.

@return [Boolean]

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

Sets the value of the ‘clone` attribute.

@param value [Boolean]

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

Returns the value of the ‘cluster` attribute.

@return [Cluster]

# File lib/ovirtsdk4/types.rb, line 3809
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 3822
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 3834
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 3847
def cpu_profile=(value)
  if value.is_a?(Hash)
    value = CpuProfile.new(value)
  end
  @cpu_profile = 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 4026
def hash
  super +
  @clone.hash +
  @cluster.hash +
  @cpu_profile.hash +
  @host.hash +
  @quota.hash +
  @storage_domain.hash +
  @template.hash +
  @url.hash
end
host() click to toggle source

Returns the value of the ‘host` attribute.

@return [Host]

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

Returns the value of the ‘quota` attribute.

@return [Quota]

# File lib/ovirtsdk4/types.rb, line 3884
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 3897
def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end
storage_domain() click to toggle source

Returns the value of the ‘storage_domain` attribute.

@return [StorageDomain]

# File lib/ovirtsdk4/types.rb, line 3909
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 3922
def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end
template() click to toggle source

Returns the value of the ‘template` attribute.

@return [Template]

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

Sets the value of the ‘template` attribute.

@param value [Template, Hash]

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

Returns the value of the ‘url` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3959
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 3968
def url=(value)
  @url = value
end