Class: OvirtSDK4::NetworkFilter

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

- (NetworkFilter) initialize(opts = {})

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

  • :version (Version, Hash)

    The value of attribute version.



7788
7789
7790
7791
7792
7793
7794
7795
# File 'lib/ovirtsdk4/types.rb', line 7788

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


7678
7679
7680
# File 'lib/ovirtsdk4/types.rb', line 7678

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


7687
7688
7689
# File 'lib/ovirtsdk4/types.rb', line 7687

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


7696
7697
7698
# File 'lib/ovirtsdk4/types.rb', line 7696

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


7705
7706
7707
# File 'lib/ovirtsdk4/types.rb', line 7705

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


7714
7715
7716
# File 'lib/ovirtsdk4/types.rb', line 7714

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


7723
7724
7725
# File 'lib/ovirtsdk4/types.rb', line 7723

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


7732
7733
7734
# File 'lib/ovirtsdk4/types.rb', line 7732

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


7741
7742
7743
# File 'lib/ovirtsdk4/types.rb', line 7741

def name=(value)
  @name = value
end

- (Version) version

Returns the value of the version attribute.

Returns:



7750
7751
7752
# File 'lib/ovirtsdk4/types.rb', line 7750

def version
  return @version
end

- (Object) version=(value)

Sets the value of the version attribute.

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



7763
7764
7765
7766
7767
7768
# File 'lib/ovirtsdk4/types.rb', line 7763

def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end