Class: OvirtSDK4::ExternalVmImport
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#drivers_iso ⇒ File
Returns the value of the
drivers_iso
attribute. -
#drivers_iso=(value) ⇒ Object
Sets the value of the
drivers_iso
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#initialize(opts = {}) ⇒ ExternalVmImport
constructor
Creates a new instance of the ExternalVmImport class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#provider ⇒ ExternalVmProviderType
Returns the value of the
provider
attribute. -
#provider=(value) ⇒ Object
Sets the value of the
provider
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#sparse ⇒ Boolean
Returns the value of the
sparse
attribute. -
#sparse=(value) ⇒ Object
Sets the value of the
sparse
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#url ⇒ String
Returns the value of the
url
attribute. -
#url=(value) ⇒ Object
Sets the value of the
url
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalVmImport
Creates a new instance of the OvirtSDK4::ExternalVmImport class.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 |
# File 'lib/ovirtsdk4/types.rb', line 4135 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 |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 |
# File 'lib/ovirtsdk4/types.rb', line 4155 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 ⇒ Cluster
Returns the value of the cluster
attribute.
3823 3824 3825 |
# File 'lib/ovirtsdk4/types.rb', line 3823 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster
attribute.
The value
parameter can be an instance of 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.
3836 3837 3838 3839 3840 3841 |
# File 'lib/ovirtsdk4/types.rb', line 3836 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
3848 3849 3850 |
# File 'lib/ovirtsdk4/types.rb', line 3848 def cpu_profile @cpu_profile end |
#cpu_profile=(value) ⇒ Object
Sets the value of the cpu_profile
attribute.
The value
parameter can be an instance of 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.
3861 3862 3863 3864 3865 3866 |
# File 'lib/ovirtsdk4/types.rb', line 3861 def cpu_profile=(value) if value.is_a?(Hash) value = CpuProfile.new(value) end @cpu_profile = value end |
#drivers_iso ⇒ File
Returns the value of the drivers_iso
attribute.
3873 3874 3875 |
# File 'lib/ovirtsdk4/types.rb', line 3873 def drivers_iso @drivers_iso end |
#drivers_iso=(value) ⇒ Object
Sets the value of the drivers_iso
attribute.
The value
parameter can be an instance of 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.
3886 3887 3888 3889 3890 3891 |
# File 'lib/ovirtsdk4/types.rb', line 3886 def drivers_iso=(value) if value.is_a?(Hash) value = File.new(value) end @drivers_iso = value end |
#hash ⇒ Object
Generates a hash value for this object.
4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 |
# File 'lib/ovirtsdk4/types.rb', line 4175 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 ⇒ Host
Returns the value of the host
attribute.
3898 3899 3900 |
# File 'lib/ovirtsdk4/types.rb', line 3898 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of 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.
3911 3912 3913 3914 3915 3916 |
# File 'lib/ovirtsdk4/types.rb', line 3911 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#name ⇒ String
Returns the value of the name
attribute.
3923 3924 3925 |
# File 'lib/ovirtsdk4/types.rb', line 3923 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
3932 3933 3934 |
# File 'lib/ovirtsdk4/types.rb', line 3932 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
3941 3942 3943 |
# File 'lib/ovirtsdk4/types.rb', line 3941 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
3950 3951 3952 |
# File 'lib/ovirtsdk4/types.rb', line 3950 def password=(value) @password = value end |
#provider ⇒ ExternalVmProviderType
Returns the value of the provider
attribute.
3959 3960 3961 |
# File 'lib/ovirtsdk4/types.rb', line 3959 def provider @provider end |
#provider=(value) ⇒ Object
Sets the value of the provider
attribute.
3968 3969 3970 |
# File 'lib/ovirtsdk4/types.rb', line 3968 def provider=(value) @provider = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
3977 3978 3979 |
# File 'lib/ovirtsdk4/types.rb', line 3977 def quota @quota end |
#quota=(value) ⇒ Object
Sets the value of the quota
attribute.
The value
parameter can be an instance of 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.
3990 3991 3992 3993 3994 3995 |
# File 'lib/ovirtsdk4/types.rb', line 3990 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#sparse ⇒ Boolean
Returns the value of the sparse
attribute.
4002 4003 4004 |
# File 'lib/ovirtsdk4/types.rb', line 4002 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
4011 4012 4013 |
# File 'lib/ovirtsdk4/types.rb', line 4011 def sparse=(value) @sparse = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
4020 4021 4022 |
# File 'lib/ovirtsdk4/types.rb', line 4020 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of 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.
4033 4034 4035 4036 4037 4038 |
# File 'lib/ovirtsdk4/types.rb', line 4033 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#url ⇒ String
Returns the value of the url
attribute.
4045 4046 4047 |
# File 'lib/ovirtsdk4/types.rb', line 4045 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
4054 4055 4056 |
# File 'lib/ovirtsdk4/types.rb', line 4054 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
4063 4064 4065 |
# File 'lib/ovirtsdk4/types.rb', line 4063 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
4072 4073 4074 |
# File 'lib/ovirtsdk4/types.rb', line 4072 def username=(value) @username = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
4081 4082 4083 |
# File 'lib/ovirtsdk4/types.rb', line 4081 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm
attribute.
The value
parameter can be an instance of 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.
4094 4095 4096 4097 4098 4099 |
# File 'lib/ovirtsdk4/types.rb', line 4094 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |