Class: OvirtSDK4::MigrationBandwidth

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (MigrationBandwidth) initialize(opts = {})

Creates a new instance of the OvirtSDK4::MigrationBandwidth class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):



6590
6591
6592
6593
6594
# File 'lib/ovirtsdk4/types.rb', line 6590

def initialize(opts = {})
  super(opts)
  self.assignment_method = opts[:assignment_method]
  self.custom_value = opts[:custom_value]
end

Instance Method Details

- (MigrationBandwidthAssignmentMethod) assignment_method

Returns the value of the assignment_method attribute.



6547
6548
6549
# File 'lib/ovirtsdk4/types.rb', line 6547

def assignment_method
  return @assignment_method
end

- (Object) assignment_method=(value)

Sets the value of the assignment_method attribute.



6556
6557
6558
# File 'lib/ovirtsdk4/types.rb', line 6556

def assignment_method=(value)
  @assignment_method = value
end

- (Integer) custom_value

Returns the value of the custom_value attribute.

Returns:

  • (Integer)


6565
6566
6567
# File 'lib/ovirtsdk4/types.rb', line 6565

def custom_value
  return @custom_value
end

- (Object) custom_value=(value)

Sets the value of the custom_value attribute.

Parameters:

  • value (Integer)


6574
6575
6576
# File 'lib/ovirtsdk4/types.rb', line 6574

def custom_value=(value)
  @custom_value = value
end