Class: OvirtSDK4::Application

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

- (Application) initialize(opts = {})

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

  • :vm (Vm, Hash)

    The value of attribute vm.



23185
23186
23187
23188
23189
23190
23191
23192
# File 'lib/ovirtsdk4/types.rb', line 23185

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


23075
23076
23077
# File 'lib/ovirtsdk4/types.rb', line 23075

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


23084
23085
23086
# File 'lib/ovirtsdk4/types.rb', line 23084

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


23093
23094
23095
# File 'lib/ovirtsdk4/types.rb', line 23093

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


23102
23103
23104
# File 'lib/ovirtsdk4/types.rb', line 23102

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


23111
23112
23113
# File 'lib/ovirtsdk4/types.rb', line 23111

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


23120
23121
23122
# File 'lib/ovirtsdk4/types.rb', line 23120

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


23129
23130
23131
# File 'lib/ovirtsdk4/types.rb', line 23129

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


23138
23139
23140
# File 'lib/ovirtsdk4/types.rb', line 23138

def name=(value)
  @name = value
end

- (Vm) vm

Returns the value of the vm attribute.

Returns:



23147
23148
23149
# File 'lib/ovirtsdk4/types.rb', line 23147

def vm
  return @vm
end

- (Object) vm=(value)

Sets the value of the vm attribute.

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

  • value (Vm, Hash)


23160
23161
23162
23163
23164
23165
# File 'lib/ovirtsdk4/types.rb', line 23160

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end