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.



9459
9460
9461
# File 'lib/ovirtsdk4/types.rb', line 9459

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

Instance Method Details

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


9376
9377
9378
# File 'lib/ovirtsdk4/types.rb', line 9376

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


9385
9386
9387
# File 'lib/ovirtsdk4/types.rb', line 9385

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


9394
9395
9396
# File 'lib/ovirtsdk4/types.rb', line 9394

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


9403
9404
9405
# File 'lib/ovirtsdk4/types.rb', line 9403

def description=(value)
  @description = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


9412
9413
9414
# File 'lib/ovirtsdk4/types.rb', line 9412

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


9421
9422
9423
# File 'lib/ovirtsdk4/types.rb', line 9421

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


9430
9431
9432
# File 'lib/ovirtsdk4/types.rb', line 9430

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


9439
9440
9441
# File 'lib/ovirtsdk4/types.rb', line 9439

def name=(value)
  @name = value
end