SecurityContext¶
-
class
oci.container_instances.models.
SecurityContext
(**kwargs)¶ Bases:
object
Security context for container.
Attributes
SECURITY_CONTEXT_TYPE_LINUX
A constant which can be used with the security_context_type property of a SecurityContext. security_context_type
Gets the security_context_type of this SecurityContext. Methods
__init__
(**kwargs)Initializes a new SecurityContext object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
SECURITY_CONTEXT_TYPE_LINUX
= 'LINUX'¶ A constant which can be used with the security_context_type property of a SecurityContext. This constant has a value of “LINUX”
-
__init__
(**kwargs)¶ Initializes a new SecurityContext object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: security_context_type (str) – The value to assign to the security_context_type property of this SecurityContext. Allowed values for this property are: “LINUX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
security_context_type
¶ Gets the security_context_type of this SecurityContext. The type of security context
Allowed values for this property are: “LINUX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The security_context_type of this SecurityContext. Return type: str
-