SimpleCondition¶
- class oci.cloud_guard.models.SimpleCondition(**kwargs)¶
Bases:
ConditionInformation for a simple condition.
Attributes:
A constant which can be used with the kind property of a Condition.
A constant which can be used with the kind property of a Condition.
A constant which can be used with the operator property of a SimpleCondition.
A constant which can be used with the operator property of a SimpleCondition.
A constant which can be used with the operator property of a SimpleCondition.
A constant which can be used with the operator property of a SimpleCondition.
A constant which can be used with the value_type property of a SimpleCondition.
A constant which can be used with the value_type property of a SimpleCondition.
[Required] Gets the kind of this Condition.
Gets the operator of this SimpleCondition.
Gets the parameter of this SimpleCondition.
Gets the value of this SimpleCondition.
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'¶
A constant which can be used with the kind property of a Condition. This constant has a value of “COMPOSITE”
- KIND_SIMPLE = 'SIMPLE'¶
A constant which can be used with the kind property of a Condition. This constant has a value of “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.
- property 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
- property 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
- property parameter¶
Gets the parameter of this SimpleCondition. Parameter key
- Returns
The parameter of this SimpleCondition.
- Return type
str
- property value¶
Gets the value of this SimpleCondition. Value of operator in condition
- Returns
The value of this SimpleCondition.
- Return type
str
- property 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