Class: OvirtSDK4::Filter

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Filter) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Filter 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):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :position (Integer)

    The value of attribute position.

  • :scheduling_policy_unit (SchedulingPolicyUnit, Hash)

    The value of attribute scheduling_policy_unit.



29788
29789
29790
29791
29792
29793
29794
29795
29796
# File 'lib/ovirtsdk4/types.rb', line 29788

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.name = opts[:name]
  self.position = opts[:position]
  self.scheduling_policy_unit = opts[:scheduling_policy_unit]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


29658
29659
29660
# File 'lib/ovirtsdk4/types.rb', line 29658

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


29667
29668
29669
# File 'lib/ovirtsdk4/types.rb', line 29667

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


29676
29677
29678
# File 'lib/ovirtsdk4/types.rb', line 29676

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


29685
29686
29687
# File 'lib/ovirtsdk4/types.rb', line 29685

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


29694
29695
29696
# File 'lib/ovirtsdk4/types.rb', line 29694

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


29703
29704
29705
# File 'lib/ovirtsdk4/types.rb', line 29703

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


29712
29713
29714
# File 'lib/ovirtsdk4/types.rb', line 29712

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


29721
29722
29723
# File 'lib/ovirtsdk4/types.rb', line 29721

def name=(value)
  @name = value
end

- (Integer) position

Returns the value of the position attribute.

Returns:

  • (Integer)


29730
29731
29732
# File 'lib/ovirtsdk4/types.rb', line 29730

def position
  return @position
end

- (Object) position=(value)

Sets the value of the position attribute.

Parameters:

  • value (Integer)


29739
29740
29741
# File 'lib/ovirtsdk4/types.rb', line 29739

def position=(value)
  @position = value
end

- (SchedulingPolicyUnit) scheduling_policy_unit

Returns the value of the scheduling_policy_unit attribute.



29748
29749
29750
# File 'lib/ovirtsdk4/types.rb', line 29748

def scheduling_policy_unit
  return @scheduling_policy_unit
end

- (Object) scheduling_policy_unit=(value)

Sets the value of the scheduling_policy_unit attribute.

The value parameter can be an instance of SchedulingPolicyUnit 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.

Parameters:



29761
29762
29763
29764
29765
29766
# File 'lib/ovirtsdk4/types.rb', line 29761

def scheduling_policy_unit=(value)
  if value.is_a?(Hash)
    value = SchedulingPolicyUnit.new(value)
  end
  @scheduling_policy_unit = value
end