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.
3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 |
# File 'lib/ovirtsdk4/types.rb', line 3742 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.
3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 |
# File 'lib/ovirtsdk4/types.rb', line 3762 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.
3430 3431 3432 |
# File 'lib/ovirtsdk4/types.rb', line 3430 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.
3443 3444 3445 3446 3447 3448 |
# File 'lib/ovirtsdk4/types.rb', line 3443 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.
3455 3456 3457 |
# File 'lib/ovirtsdk4/types.rb', line 3455 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.
3468 3469 3470 3471 3472 3473 |
# File 'lib/ovirtsdk4/types.rb', line 3468 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.
3480 3481 3482 |
# File 'lib/ovirtsdk4/types.rb', line 3480 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.
3493 3494 3495 3496 3497 3498 |
# File 'lib/ovirtsdk4/types.rb', line 3493 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.
3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 |
# File 'lib/ovirtsdk4/types.rb', line 3782 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.
3505 3506 3507 |
# File 'lib/ovirtsdk4/types.rb', line 3505 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.
3518 3519 3520 3521 3522 3523 |
# File 'lib/ovirtsdk4/types.rb', line 3518 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.
3530 3531 3532 |
# File 'lib/ovirtsdk4/types.rb', line 3530 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
3539 3540 3541 |
# File 'lib/ovirtsdk4/types.rb', line 3539 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
3548 3549 3550 |
# File 'lib/ovirtsdk4/types.rb', line 3548 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
3557 3558 3559 |
# File 'lib/ovirtsdk4/types.rb', line 3557 def password=(value) @password = value end |
#provider ⇒ ExternalVmProviderType
Returns the value of the provider attribute.
3566 3567 3568 |
# File 'lib/ovirtsdk4/types.rb', line 3566 def provider @provider end |
#provider=(value) ⇒ Object
Sets the value of the provider attribute.
3575 3576 3577 |
# File 'lib/ovirtsdk4/types.rb', line 3575 def provider=(value) @provider = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
3584 3585 3586 |
# File 'lib/ovirtsdk4/types.rb', line 3584 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.
3597 3598 3599 3600 3601 3602 |
# File 'lib/ovirtsdk4/types.rb', line 3597 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.
3609 3610 3611 |
# File 'lib/ovirtsdk4/types.rb', line 3609 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse attribute.
3618 3619 3620 |
# File 'lib/ovirtsdk4/types.rb', line 3618 def sparse=(value) @sparse = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
3627 3628 3629 |
# File 'lib/ovirtsdk4/types.rb', line 3627 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.
3640 3641 3642 3643 3644 3645 |
# File 'lib/ovirtsdk4/types.rb', line 3640 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.
3652 3653 3654 |
# File 'lib/ovirtsdk4/types.rb', line 3652 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
3661 3662 3663 |
# File 'lib/ovirtsdk4/types.rb', line 3661 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
3670 3671 3672 |
# File 'lib/ovirtsdk4/types.rb', line 3670 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
3679 3680 3681 |
# File 'lib/ovirtsdk4/types.rb', line 3679 def username=(value) @username = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
3688 3689 3690 |
# File 'lib/ovirtsdk4/types.rb', line 3688 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.
3701 3702 3703 3704 3705 3706 |
# File 'lib/ovirtsdk4/types.rb', line 3701 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |