Class: OvirtSDK4::Spm

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

- (Spm) initialize(opts = {})

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

  • :priority (Integer)

    The value of attribute priority.

  • :status (SpmStatus)

    The value of attribute status.



14122
14123
14124
14125
14126
# File 'lib/ovirtsdk4/types.rb', line 14122

def initialize(opts = {})
  super(opts)
  self.priority = opts[:priority]
  self.status = opts[:status]
end

Instance Method Details

- (Integer) priority

Returns the value of the priority attribute.

Returns:

  • (Integer)


14079
14080
14081
# File 'lib/ovirtsdk4/types.rb', line 14079

def priority
  return @priority
end

- (Object) priority=(value)

Sets the value of the priority attribute.

Parameters:

  • value (Integer)


14088
14089
14090
# File 'lib/ovirtsdk4/types.rb', line 14088

def priority=(value)
  @priority = value
end

- (SpmStatus) status

Returns the value of the status attribute.

Returns:



14097
14098
14099
# File 'lib/ovirtsdk4/types.rb', line 14097

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



14106
14107
14108
# File 'lib/ovirtsdk4/types.rb', line 14106

def status=(value)
  @status = value
end