Class: OvirtSDK4::SeLinux

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (SeLinux) initialize(opts = {})

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



13614
13615
13616
13617
# File 'lib/ovirtsdk4/types.rb', line 13614

def initialize(opts = {})
  super(opts)
  self.mode = opts[:mode]
end

Instance Method Details

- (SeLinuxMode) mode

Returns the value of the mode attribute.

Returns:



13591
13592
13593
# File 'lib/ovirtsdk4/types.rb', line 13591

def mode
  return @mode
end

- (Object) mode=(value)

Sets the value of the mode attribute.

Parameters:



13600
13601
13602
# File 'lib/ovirtsdk4/types.rb', line 13600

def mode=(value)
  @mode = value
end