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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SeLinuxOptions

Returns a new instance of SeLinuxOptions.



4057
4058
4059
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4057

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)


4037
4038
4039
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4037

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)


4043
4044
4045
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4043

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)


4049
4050
4051
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4049

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)


4055
4056
4057
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4055

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4062
4063
4064
4065
4066
4067
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4062

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