Class: OvirtSDK4::MigrationOptions
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#auto_converge ⇒ InheritableBoolean
Returns the value of the
auto_convergeattribute. -
#auto_converge=(value) ⇒ Object
Sets the value of the
auto_convergeattribute. -
#bandwidth ⇒ MigrationBandwidth
Returns the value of the
bandwidthattribute. -
#bandwidth=(value) ⇒ Object
Sets the value of the
bandwidthattribute. -
#compressed ⇒ InheritableBoolean
Returns the value of the
compressedattribute. -
#compressed=(value) ⇒ Object
Sets the value of the
compressedattribute. -
#custom_parallel_migrations ⇒ Integer
Returns the value of the
custom_parallel_migrationsattribute. -
#custom_parallel_migrations=(value) ⇒ Object
Sets the value of the
custom_parallel_migrationsattribute. -
#encrypted ⇒ InheritableBoolean
Returns the value of the
encryptedattribute. -
#encrypted=(value) ⇒ Object
Sets the value of the
encryptedattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ MigrationOptions
constructor
Creates a new instance of the MigrationOptions class.
-
#parallel_migrations_policy ⇒ ParallelMigrationsPolicy
Returns the value of the
parallel_migrations_policyattribute. -
#parallel_migrations_policy=(value) ⇒ Object
Sets the value of the
parallel_migrations_policyattribute. -
#policy ⇒ MigrationPolicy
Returns the value of the
policyattribute. -
#policy=(value) ⇒ Object
Sets the value of the
policyattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MigrationOptions
Creates a new instance of the OvirtSDK4::MigrationOptions class.
10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 |
# File 'lib/ovirtsdk4/types.rb', line 10338 def initialize(opts = {}) super(opts) self.auto_converge = opts[:auto_converge] self.bandwidth = opts[:bandwidth] self.compressed = opts[:compressed] self.custom_parallel_migrations = opts[:custom_parallel_migrations] self.encrypted = opts[:encrypted] self.parallel_migrations_policy = opts[:parallel_migrations_policy] self.policy = opts[:policy] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 |
# File 'lib/ovirtsdk4/types.rb', line 10352 def ==(other) super && @auto_converge == other.auto_converge && @bandwidth == other.bandwidth && @compressed == other.compressed && @custom_parallel_migrations == other.custom_parallel_migrations && @encrypted == other.encrypted && @parallel_migrations_policy == other.parallel_migrations_policy && @policy == other.policy end |
#auto_converge ⇒ InheritableBoolean
Returns the value of the auto_converge attribute.
10181 10182 10183 |
# File 'lib/ovirtsdk4/types.rb', line 10181 def auto_converge @auto_converge end |
#auto_converge=(value) ⇒ Object
Sets the value of the auto_converge attribute.
10190 10191 10192 |
# File 'lib/ovirtsdk4/types.rb', line 10190 def auto_converge=(value) @auto_converge = value end |
#bandwidth ⇒ MigrationBandwidth
Returns the value of the bandwidth attribute.
10199 10200 10201 |
# File 'lib/ovirtsdk4/types.rb', line 10199 def bandwidth @bandwidth end |
#bandwidth=(value) ⇒ Object
Sets the value of the bandwidth attribute.
The value parameter can be an instance of OvirtSDK4::MigrationBandwidth 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.
10212 10213 10214 10215 10216 10217 |
# File 'lib/ovirtsdk4/types.rb', line 10212 def bandwidth=(value) if value.is_a?(Hash) value = MigrationBandwidth.new(value) end @bandwidth = value end |
#compressed ⇒ InheritableBoolean
Returns the value of the compressed attribute.
10224 10225 10226 |
# File 'lib/ovirtsdk4/types.rb', line 10224 def compressed @compressed end |
#compressed=(value) ⇒ Object
Sets the value of the compressed attribute.
10233 10234 10235 |
# File 'lib/ovirtsdk4/types.rb', line 10233 def compressed=(value) @compressed = value end |
#custom_parallel_migrations ⇒ Integer
Returns the value of the custom_parallel_migrations attribute.
10242 10243 10244 |
# File 'lib/ovirtsdk4/types.rb', line 10242 def custom_parallel_migrations @custom_parallel_migrations end |
#custom_parallel_migrations=(value) ⇒ Object
Sets the value of the custom_parallel_migrations attribute.
10251 10252 10253 |
# File 'lib/ovirtsdk4/types.rb', line 10251 def custom_parallel_migrations=(value) @custom_parallel_migrations = value end |
#encrypted ⇒ InheritableBoolean
Returns the value of the encrypted attribute.
10260 10261 10262 |
# File 'lib/ovirtsdk4/types.rb', line 10260 def encrypted @encrypted end |
#encrypted=(value) ⇒ Object
Sets the value of the encrypted attribute.
10269 10270 10271 |
# File 'lib/ovirtsdk4/types.rb', line 10269 def encrypted=(value) @encrypted = value end |
#hash ⇒ Object
Generates a hash value for this object.
10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 |
# File 'lib/ovirtsdk4/types.rb', line 10366 def hash super + @auto_converge.hash + @bandwidth.hash + @compressed.hash + @custom_parallel_migrations.hash + @encrypted.hash + @parallel_migrations_policy.hash + @policy.hash end |
#parallel_migrations_policy ⇒ ParallelMigrationsPolicy
Returns the value of the parallel_migrations_policy attribute.
10278 10279 10280 |
# File 'lib/ovirtsdk4/types.rb', line 10278 def parallel_migrations_policy @parallel_migrations_policy end |
#parallel_migrations_policy=(value) ⇒ Object
Sets the value of the parallel_migrations_policy attribute.
10287 10288 10289 |
# File 'lib/ovirtsdk4/types.rb', line 10287 def parallel_migrations_policy=(value) @parallel_migrations_policy = value end |
#policy ⇒ MigrationPolicy
Returns the value of the policy attribute.
10296 10297 10298 |
# File 'lib/ovirtsdk4/types.rb', line 10296 def policy @policy end |
#policy=(value) ⇒ Object
Sets the value of the policy attribute.
The value parameter can be an instance of OvirtSDK4::MigrationPolicy 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.
10309 10310 10311 10312 10313 10314 |
# File 'lib/ovirtsdk4/types.rb', line 10309 def policy=(value) if value.is_a?(Hash) value = MigrationPolicy.new(value) end @policy = value end |