Class: Google::Apis::MigrationcenterV1alpha1::Selinux
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::Selinux
- 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
-
#enabled ⇒ Boolean
(also: #enabled?)
Is SELinux enabled.
-
#mode ⇒ String
SELinux mode disabled / enforcing / permissive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Selinux
constructor
A new instance of Selinux.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Selinux
Returns a new instance of Selinux.
8235 8236 8237 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Is SELinux enabled.
Corresponds to the JSON property enabled
8227 8228 8229 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8227 def enabled @enabled end |
#mode ⇒ String
SELinux mode disabled / enforcing / permissive.
Corresponds to the JSON property mode
8233 8234 8235 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8233 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8240 8241 8242 8243 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8240 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @mode = args[:mode] if args.key?(:mode) end |