SimpleCondition¶
-
class
oci.cloud_guard.models.
SimpleCondition
(**kwargs)¶ Bases:
oci.cloud_guard.models.condition.Condition
Information for a simple condition.
Attributes
KIND_COMPOSITE
str(object=’’) -> str KIND_SIMPLE
str(object=’’) -> str OPERATOR_EQUALS
A constant which can be used with the operator property of a SimpleCondition. OPERATOR_IN
A constant which can be used with the operator property of a SimpleCondition. OPERATOR_NOT_EQUALS
A constant which can be used with the operator property of a SimpleCondition. OPERATOR_NOT_IN
A constant which can be used with the operator property of a SimpleCondition. VALUE_TYPE_CUSTOM
A constant which can be used with the value_type property of a SimpleCondition. VALUE_TYPE_MANAGED
A constant which can be used with the value_type property of a SimpleCondition. kind
[Required] Gets the kind of this Condition. operator
Gets the operator of this SimpleCondition. parameter
Gets the parameter of this SimpleCondition. value
Gets the value of this SimpleCondition. value_type
Gets the value_type of this SimpleCondition. Methods
__init__
(**kwargs)Initializes a new SimpleCondition 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. -
KIND_COMPOSITE
= 'COMPOSITE'¶
-
KIND_SIMPLE
= 'SIMPLE'¶
-
OPERATOR_EQUALS
= 'EQUALS'¶ A constant which can be used with the operator property of a SimpleCondition. This constant has a value of “EQUALS”
-
OPERATOR_IN
= 'IN'¶ A constant which can be used with the operator property of a SimpleCondition. This constant has a value of “IN”
-
OPERATOR_NOT_EQUALS
= 'NOT_EQUALS'¶ A constant which can be used with the operator property of a SimpleCondition. This constant has a value of “NOT_EQUALS”
-
OPERATOR_NOT_IN
= 'NOT_IN'¶ A constant which can be used with the operator property of a SimpleCondition. This constant has a value of “NOT_IN”
-
VALUE_TYPE_CUSTOM
= 'CUSTOM'¶ A constant which can be used with the value_type property of a SimpleCondition. This constant has a value of “CUSTOM”
-
VALUE_TYPE_MANAGED
= 'MANAGED'¶ A constant which can be used with the value_type property of a SimpleCondition. This constant has a value of “MANAGED”
-
__init__
(**kwargs)¶ Initializes a new SimpleCondition object with values from keyword arguments. The default value of the
kind
attribute of this class isSIMPLE
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - kind (str) – The value to assign to the kind property of this SimpleCondition. Allowed values for this property are: “COMPOSITE”, “SIMPLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- parameter (str) – The value to assign to the parameter property of this SimpleCondition.
- operator (str) – The value to assign to the operator property of this SimpleCondition. Allowed values for this property are: “IN”, “NOT_IN”, “EQUALS”, “NOT_EQUALS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- value (str) – The value to assign to the value property of this SimpleCondition.
- value_type (str) – The value to assign to the value_type property of this SimpleCondition. Allowed values for this property are: “MANAGED”, “CUSTOM”, ‘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.
-
kind
¶ [Required] Gets the kind of this Condition. Type of condition resource
Allowed values for this property are: “COMPOSITE”, “SIMPLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The kind of this Condition. Return type: str
-
operator
¶ Gets the operator of this SimpleCondition. Type of operator
Allowed values for this property are: “IN”, “NOT_IN”, “EQUALS”, “NOT_EQUALS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The operator of this SimpleCondition. Return type: str
-
parameter
¶ Gets the parameter of this SimpleCondition. Parameter key
Returns: The parameter of this SimpleCondition. Return type: str
-
value
¶ Gets the value of this SimpleCondition. Value of operator in condition
Returns: The value of this SimpleCondition. Return type: str
-
value_type
¶ Gets the value_type of this SimpleCondition. Type of value in condition
Allowed values for this property are: “MANAGED”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The value_type of this SimpleCondition. Return type: str
-