Class: OvirtSDK4::MigrationPolicy

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

Instance Method Summary collapse

Methods inherited from Identified

#==, #hash

Methods inherited from Struct

#==, #hash

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ MigrationPolicy

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



9772
9773
9774
# File 'lib/ovirtsdk4/types.rb', line 9772

def initialize(opts = {})
  super(opts)
end

Instance Method Details

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


9689
9690
9691
# File 'lib/ovirtsdk4/types.rb', line 9689

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


9698
9699
9700
# File 'lib/ovirtsdk4/types.rb', line 9698

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


9707
9708
9709
# File 'lib/ovirtsdk4/types.rb', line 9707

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


9716
9717
9718
# File 'lib/ovirtsdk4/types.rb', line 9716

def description=(value)
  @description = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


9725
9726
9727
# File 'lib/ovirtsdk4/types.rb', line 9725

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


9734
9735
9736
# File 'lib/ovirtsdk4/types.rb', line 9734

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


9743
9744
9745
# File 'lib/ovirtsdk4/types.rb', line 9743

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


9752
9753
9754
# File 'lib/ovirtsdk4/types.rb', line 9752

def name=(value)
  @name = value
end