Class: Google::Apis::MigrationcenterV1alpha1::Selinux

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

SELinux details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Selinux

Returns a new instance of Selinux.



4520
4521
4522
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4520

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Is SELinux enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


4512
4513
4514
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4512

def enabled
  @enabled
end

#modeString

SELinux mode enforcing / permissive. Corresponds to the JSON property mode

Returns:

  • (String)


4518
4519
4520
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4518

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4525
4526
4527
4528
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4525

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @mode = args[:mode] if args.key?(:mode)
end