Class: Google::Apis::RunV1alpha1::SeLinuxOptions
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::SeLinuxOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
SELinuxOptions are the labels to be applied to the container
Instance Attribute Summary collapse
-
#level ⇒ String
Level is SELinux level label that applies to the container.
-
#role ⇒ String
Role is a SELinux role label that applies to the container.
-
#type ⇒ String
Type is a SELinux type label that applies to the container.
-
#user ⇒ String
User is a SELinux user label that applies to the container.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SeLinuxOptions
constructor
A new instance of SeLinuxOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SeLinuxOptions
Returns a new instance of SeLinuxOptions
3642 3643 3644 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3642 def initialize(**args) update!(**args) end |
Instance Attribute Details
#level ⇒ String
Level is SELinux level label that applies to the container.
+optional
Corresponds to the JSON property level
3622 3623 3624 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3622 def level @level end |
#role ⇒ String
Role is a SELinux role label that applies to the container.
+optional
Corresponds to the JSON property role
3628 3629 3630 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3628 def role @role end |
#type ⇒ String
Type is a SELinux type label that applies to the container.
+optional
Corresponds to the JSON property type
3634 3635 3636 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3634 def type @type end |
#user ⇒ String
User is a SELinux user label that applies to the container.
+optional
Corresponds to the JSON property user
3640 3641 3642 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3640 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3647 3648 3649 3650 3651 3652 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3647 def update!(**args) @level = args[:level] if args.key?(:level) @role = args[:role] if args.key?(:role) @type = args[:type] if args.key?(:type) @user = args[:user] if args.key?(:user) end |