SecurityAction

class oci.vn_monitoring.models.SecurityAction(**kwargs)

Bases: object

Defines the security action details taken on the traffic.

Attributes

ACTION_ALLOWED A constant which can be used with the action property of a SecurityAction.
ACTION_DENIED A constant which can be used with the action property of a SecurityAction.
ACTION_TYPE_EXPLICIT A constant which can be used with the action_type property of a SecurityAction.
ACTION_TYPE_IMPLICIT A constant which can be used with the action_type property of a SecurityAction.
action [Required] Gets the action of this SecurityAction.
action_type [Required] Gets the action_type of this SecurityAction.

Methods

__init__(**kwargs) Initializes a new SecurityAction 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.
ACTION_ALLOWED = 'ALLOWED'

A constant which can be used with the action property of a SecurityAction. This constant has a value of “ALLOWED”

ACTION_DENIED = 'DENIED'

A constant which can be used with the action property of a SecurityAction. This constant has a value of “DENIED”

ACTION_TYPE_EXPLICIT = 'EXPLICIT'

A constant which can be used with the action_type property of a SecurityAction. This constant has a value of “EXPLICIT”

ACTION_TYPE_IMPLICIT = 'IMPLICIT'

A constant which can be used with the action_type property of a SecurityAction. This constant has a value of “IMPLICIT”

__init__(**kwargs)

Initializes a new SecurityAction 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:
  • action (str) – The value to assign to the action property of this SecurityAction. Allowed values for this property are: “ALLOWED”, “DENIED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • action_type (str) – The value to assign to the action_type property of this SecurityAction. Allowed values for this property are: “EXPLICIT”, “IMPLICIT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
action

[Required] Gets the action of this SecurityAction. Action taken on the traffic.

Allowed values for this property are: “ALLOWED”, “DENIED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The action of this SecurityAction.
Return type:str
action_type

[Required] Gets the action_type of this SecurityAction. Type of the SecurityAction.

Allowed values for this property are: “EXPLICIT”, “IMPLICIT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The action_type of this SecurityAction.
Return type:str
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.