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.
3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 |
# File 'lib/ovirtsdk4/types.rb', line 3754 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.
3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 |
# File 'lib/ovirtsdk4/types.rb', line 3774 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.
3442 3443 3444 |
# File 'lib/ovirtsdk4/types.rb', line 3442 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.
3455 3456 3457 3458 3459 3460 |
# File 'lib/ovirtsdk4/types.rb', line 3455 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.
3467 3468 3469 |
# File 'lib/ovirtsdk4/types.rb', line 3467 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.
3480 3481 3482 3483 3484 3485 |
# File 'lib/ovirtsdk4/types.rb', line 3480 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.
3492 3493 3494 |
# File 'lib/ovirtsdk4/types.rb', line 3492 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.
3505 3506 3507 3508 3509 3510 |
# File 'lib/ovirtsdk4/types.rb', line 3505 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.
3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 |
# File 'lib/ovirtsdk4/types.rb', line 3794 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.
3517 3518 3519 |
# File 'lib/ovirtsdk4/types.rb', line 3517 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.
3530 3531 3532 3533 3534 3535 |
# File 'lib/ovirtsdk4/types.rb', line 3530 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.
3542 3543 3544 |
# File 'lib/ovirtsdk4/types.rb', line 3542 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
3551 3552 3553 |
# File 'lib/ovirtsdk4/types.rb', line 3551 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
3560 3561 3562 |
# File 'lib/ovirtsdk4/types.rb', line 3560 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
3569 3570 3571 |
# File 'lib/ovirtsdk4/types.rb', line 3569 def password=(value) @password = value end |
#provider ⇒ ExternalVmProviderType
Returns the value of the provider
attribute.
3578 3579 3580 |
# File 'lib/ovirtsdk4/types.rb', line 3578 def provider @provider end |
#provider=(value) ⇒ Object
Sets the value of the provider
attribute.
3587 3588 3589 |
# File 'lib/ovirtsdk4/types.rb', line 3587 def provider=(value) @provider = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
3596 3597 3598 |
# File 'lib/ovirtsdk4/types.rb', line 3596 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.
3609 3610 3611 3612 3613 3614 |
# File 'lib/ovirtsdk4/types.rb', line 3609 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.
3621 3622 3623 |
# File 'lib/ovirtsdk4/types.rb', line 3621 def sparse @sparse end |
#sparse=(value) ⇒ Object
Sets the value of the sparse
attribute.
3630 3631 3632 |
# File 'lib/ovirtsdk4/types.rb', line 3630 def sparse=(value) @sparse = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
3639 3640 3641 |
# File 'lib/ovirtsdk4/types.rb', line 3639 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.
3652 3653 3654 3655 3656 3657 |
# File 'lib/ovirtsdk4/types.rb', line 3652 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.
3664 3665 3666 |
# File 'lib/ovirtsdk4/types.rb', line 3664 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
3673 3674 3675 |
# File 'lib/ovirtsdk4/types.rb', line 3673 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
3682 3683 3684 |
# File 'lib/ovirtsdk4/types.rb', line 3682 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
3691 3692 3693 |
# File 'lib/ovirtsdk4/types.rb', line 3691 def username=(value) @username = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
3700 3701 3702 |
# File 'lib/ovirtsdk4/types.rb', line 3700 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.
3713 3714 3715 3716 3717 3718 |
# File 'lib/ovirtsdk4/types.rb', line 3713 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |