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.
3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 |
# File 'lib/ovirtsdk4/types.rb', line 3713 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.
3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 |
# File 'lib/ovirtsdk4/types.rb', line 3733 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.
3401 3402 3403 |
# File 'lib/ovirtsdk4/types.rb', line 3401 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.
3414 3415 3416 3417 3418 3419 |
# File 'lib/ovirtsdk4/types.rb', line 3414 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.
3426 3427 3428 |
# File 'lib/ovirtsdk4/types.rb', line 3426 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.
3439 3440 3441 3442 3443 3444 |
# File 'lib/ovirtsdk4/types.rb', line 3439 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.
3451 3452 3453 |
# File 'lib/ovirtsdk4/types.rb', line 3451 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.
3464 3465 3466 3467 3468 3469 |
# File 'lib/ovirtsdk4/types.rb', line 3464 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.
3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 |
# File 'lib/ovirtsdk4/types.rb', line 3753 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.
3476 3477 3478 |
# File 'lib/ovirtsdk4/types.rb', line 3476 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.
3489 3490 3491 3492 3493 3494 |
# File 'lib/ovirtsdk4/types.rb', line 3489 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.
3501 3502 3503 |
# File 'lib/ovirtsdk4/types.rb', line 3501 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
3510 3511 3512 |
# File 'lib/ovirtsdk4/types.rb', line 3510 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
3519 3520 3521 |
# File 'lib/ovirtsdk4/types.rb', line 3519 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
3528 3529 3530 |
# File 'lib/ovirtsdk4/types.rb', line 3528 def password=(value) @password = value end |
#provider ⇒ ExternalVmProviderType
Returns the value of the provider
attribute.
3537 3538 3539 |
# File 'lib/ovirtsdk4/types.rb', line 3537 def provider @provider end |
#provider=(value) ⇒ Object
Sets the value of the provider
attribute.
3546 3547 3548 |
# File 'lib/ovirtsdk4/types.rb', line 3546 def provider=(value) @provider = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
3555 3556 3557 |
# File 'lib/ovirtsdk4/types.rb', line 3555 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.
3568 3569 3570 3571 3572 3573 |
# File 'lib/ovirtsdk4/types.rb', line 3568 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.
3580 3581 3582 |
# File 'lib/ovirtsdk4/types.rb', line 3580 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
3589 3590 3591 |
# File 'lib/ovirtsdk4/types.rb', line 3589 def sparse=(value) @sparse = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
3598 3599 3600 |
# File 'lib/ovirtsdk4/types.rb', line 3598 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.
3611 3612 3613 3614 3615 3616 |
# File 'lib/ovirtsdk4/types.rb', line 3611 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.
3623 3624 3625 |
# File 'lib/ovirtsdk4/types.rb', line 3623 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
3632 3633 3634 |
# File 'lib/ovirtsdk4/types.rb', line 3632 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
3641 3642 3643 |
# File 'lib/ovirtsdk4/types.rb', line 3641 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
3650 3651 3652 |
# File 'lib/ovirtsdk4/types.rb', line 3650 def username=(value) @username = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
3659 3660 3661 |
# File 'lib/ovirtsdk4/types.rb', line 3659 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.
3672 3673 3674 3675 3676 3677 |
# File 'lib/ovirtsdk4/types.rb', line 3672 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |