SimpleCondition¶
-
class
oci.cloud_guard.models.SimpleCondition(**kwargs)¶ Bases:
oci.cloud_guard.models.condition.ConditionInformation for a simple condition.
Attributes
KIND_COMPOSITEstr(object=’’) -> str KIND_SIMPLEstr(object=’’) -> str OPERATOR_EQUALSA constant which can be used with the operator property of a SimpleCondition. OPERATOR_INA constant which can be used with the operator property of a SimpleCondition. OPERATOR_NOT_EQUALSA constant which can be used with the operator property of a SimpleCondition. OPERATOR_NOT_INA constant which can be used with the operator property of a SimpleCondition. VALUE_TYPE_CUSTOMA constant which can be used with the value_type property of a SimpleCondition. VALUE_TYPE_MANAGEDA constant which can be used with the value_type property of a SimpleCondition. kind[Required] Gets the kind of this Condition. operatorGets the operator of this SimpleCondition. parameterGets the parameter of this SimpleCondition. valueGets the value of this SimpleCondition. value_typeGets 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
kindattribute of this class isSIMPLEand 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
-