Class: Google::Apis::RunV1alpha1::SeLinuxOptions

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

Overview

SELinuxOptions are the labels to be applied to the container

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SeLinuxOptions

Returns a new instance of SeLinuxOptions.



1692
1693
1694
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1692

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

Instance Attribute Details

#levelString

Level is SELinux level label that applies to the container. +optional Corresponds to the JSON property level

Returns:

  • (String)


1675
1676
1677
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1675

def level
  @level
end

#roleString

Role is a SELinux role label that applies to the container. +optional Corresponds to the JSON property role

Returns:

  • (String)


1680
1681
1682
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1680

def role
  @role
end

#typeString

Type is a SELinux type label that applies to the container. +optional Corresponds to the JSON property type

Returns:

  • (String)


1685
1686
1687
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1685

def type
  @type
end

#userString

User is a SELinux user label that applies to the container. +optional Corresponds to the JSON property user

Returns:

  • (String)


1690
1691
1692
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1690

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1697
1698
1699
1700
1701
1702
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1697

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