Class: OvirtSDK4::OperatingSystemInfo

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

- (OperatingSystemInfo) initialize(opts = {})

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

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :name (String)

    The value of attribute name.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.



9637
9638
9639
9640
9641
9642
9643
9644
9645
# File 'lib/ovirtsdk4/types.rb', line 9637

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


9500
9501
9502
# File 'lib/ovirtsdk4/types.rb', line 9500

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


9509
9510
9511
# File 'lib/ovirtsdk4/types.rb', line 9509

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


9518
9519
9520
# File 'lib/ovirtsdk4/types.rb', line 9518

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


9527
9528
9529
# File 'lib/ovirtsdk4/types.rb', line 9527

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


9536
9537
9538
# File 'lib/ovirtsdk4/types.rb', line 9536

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


9545
9546
9547
# File 'lib/ovirtsdk4/types.rb', line 9545

def id=(value)
  @id = value
end

- (Icon) large_icon

Returns the value of the large_icon attribute.

Returns:



9554
9555
9556
# File 'lib/ovirtsdk4/types.rb', line 9554

def large_icon
  return @large_icon
end

- (Object) large_icon=(value)

Sets the value of the large_icon attribute.

The value parameter can be an instance of Icon 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 (Icon, Hash)


9567
9568
9569
9570
9571
9572
# File 'lib/ovirtsdk4/types.rb', line 9567

def large_icon=(value)
  if value.is_a?(Hash)
    value = Icon.new(value)
  end
  @large_icon = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


9579
9580
9581
# File 'lib/ovirtsdk4/types.rb', line 9579

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


9588
9589
9590
# File 'lib/ovirtsdk4/types.rb', line 9588

def name=(value)
  @name = value
end

- (Icon) small_icon

Returns the value of the small_icon attribute.

Returns:



9597
9598
9599
# File 'lib/ovirtsdk4/types.rb', line 9597

def small_icon
  return @small_icon
end

- (Object) small_icon=(value)

Sets the value of the small_icon attribute.

The value parameter can be an instance of Icon 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 (Icon, Hash)


9610
9611
9612
9613
9614
9615
# File 'lib/ovirtsdk4/types.rb', line 9610

def small_icon=(value)
  if value.is_a?(Hash)
    value = Icon.new(value)
  end
  @small_icon = value
end