class OvirtSDK4::ExternalTemplateImport
Public Class Methods
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`.
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 3772 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
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 3787 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
Returns the value of the `clone` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 3567 def clone @clone end
Sets the value of the `clone` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 3576 def clone=(value) @clone = value end
Returns the value of the `cluster` attribute.
@return [Cluster]
# File lib/ovirtsdk4/types.rb, line 3585 def cluster @cluster end
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 3598 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end
Returns the value of the `cpu_profile` attribute.
@return [CpuProfile]
# File lib/ovirtsdk4/types.rb, line 3610 def cpu_profile @cpu_profile end
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 3623 def cpu_profile=(value) if value.is_a?(Hash) value = CpuProfile.new(value) end @cpu_profile = value end
Generates a hash value for this object.
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 3802 def hash super + @clone.hash + @cluster.hash + @cpu_profile.hash + @host.hash + @quota.hash + @storage_domain.hash + @template.hash + @url.hash end
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 3635 def host @host end
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 3648 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `quota` attribute.
@return [Quota]
# File lib/ovirtsdk4/types.rb, line 3660 def quota @quota end
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 3673 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end
Returns the value of the `storage_domain` attribute.
@return [StorageDomain]
# File lib/ovirtsdk4/types.rb, line 3685 def storage_domain @storage_domain end
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 3698 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end
Returns the value of the `template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 3710 def template @template end
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 3723 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end
Returns the value of the `url` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 3735 def url @url end
Sets the value of the `url` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3744 def url=(value) @url = value end