Class: OvirtSDK4::ExternalVmImport
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profileattribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profileattribute. -
#drivers_iso ⇒ File
Returns the value of the
drivers_isoattribute. -
#drivers_iso=(value) ⇒ Object
Sets the value of the
drivers_isoattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#initialize(opts = {}) ⇒ ExternalVmImport
constructor
Creates a new instance of the ExternalVmImport class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#provider ⇒ ExternalVmProviderType
Returns the value of the
providerattribute. -
#provider=(value) ⇒ Object
Sets the value of the
providerattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#sparse ⇒ Boolean
Returns the value of the
sparseattribute. -
#sparse=(value) ⇒ Object
Sets the value of the
sparseattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#url ⇒ String
Returns the value of the
urlattribute. -
#url=(value) ⇒ Object
Sets the value of the
urlattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalVmImport
Creates a new instance of the OvirtSDK4::ExternalVmImport class.
4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 |
# File 'lib/ovirtsdk4/types.rb', line 4359 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.
4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 |
# File 'lib/ovirtsdk4/types.rb', line 4379 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.
4047 4048 4049 |
# File 'lib/ovirtsdk4/types.rb', line 4047 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.
4060 4061 4062 4063 4064 4065 |
# File 'lib/ovirtsdk4/types.rb', line 4060 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.
4072 4073 4074 |
# File 'lib/ovirtsdk4/types.rb', line 4072 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.
4085 4086 4087 4088 4089 4090 |
# File 'lib/ovirtsdk4/types.rb', line 4085 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.
4097 4098 4099 |
# File 'lib/ovirtsdk4/types.rb', line 4097 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.
4110 4111 4112 4113 4114 4115 |
# File 'lib/ovirtsdk4/types.rb', line 4110 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.
4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 |
# File 'lib/ovirtsdk4/types.rb', line 4399 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.
4122 4123 4124 |
# File 'lib/ovirtsdk4/types.rb', line 4122 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.
4135 4136 4137 4138 4139 4140 |
# File 'lib/ovirtsdk4/types.rb', line 4135 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.
4147 4148 4149 |
# File 'lib/ovirtsdk4/types.rb', line 4147 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
4156 4157 4158 |
# File 'lib/ovirtsdk4/types.rb', line 4156 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
4165 4166 4167 |
# File 'lib/ovirtsdk4/types.rb', line 4165 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
4174 4175 4176 |
# File 'lib/ovirtsdk4/types.rb', line 4174 def password=(value) @password = value end |
#provider ⇒ ExternalVmProviderType
Returns the value of the provider attribute.
4183 4184 4185 |
# File 'lib/ovirtsdk4/types.rb', line 4183 def provider @provider end |
#provider=(value) ⇒ Object
Sets the value of the provider attribute.
4192 4193 4194 |
# File 'lib/ovirtsdk4/types.rb', line 4192 def provider=(value) @provider = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
4201 4202 4203 |
# File 'lib/ovirtsdk4/types.rb', line 4201 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.
4214 4215 4216 4217 4218 4219 |
# File 'lib/ovirtsdk4/types.rb', line 4214 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.
4226 4227 4228 |
# File 'lib/ovirtsdk4/types.rb', line 4226 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse attribute.
4235 4236 4237 |
# File 'lib/ovirtsdk4/types.rb', line 4235 def sparse=(value) @sparse = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
4244 4245 4246 |
# File 'lib/ovirtsdk4/types.rb', line 4244 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.
4257 4258 4259 4260 4261 4262 |
# File 'lib/ovirtsdk4/types.rb', line 4257 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.
4269 4270 4271 |
# File 'lib/ovirtsdk4/types.rb', line 4269 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
4278 4279 4280 |
# File 'lib/ovirtsdk4/types.rb', line 4278 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
4287 4288 4289 |
# File 'lib/ovirtsdk4/types.rb', line 4287 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
4296 4297 4298 |
# File 'lib/ovirtsdk4/types.rb', line 4296 def username=(value) @username = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
4305 4306 4307 |
# File 'lib/ovirtsdk4/types.rb', line 4305 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.
4318 4319 4320 4321 4322 4323 |
# File 'lib/ovirtsdk4/types.rb', line 4318 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |