CompositeCondition

class oci.cloud_guard.models.CompositeCondition(**kwargs)

Bases: oci.cloud_guard.models.condition.Condition

Composite Condition object with nested Condition

Attributes

COMPOSITE_OPERATOR_AND A constant which can be used with the composite_operator property of a CompositeCondition.
COMPOSITE_OPERATOR_OR A constant which can be used with the composite_operator property of a CompositeCondition.
KIND_COMPOSITE str(object=’’) -> str
KIND_SIMPLE str(object=’’) -> str
composite_operator Gets the composite_operator of this CompositeCondition.
kind [Required] Gets the kind of this Condition.
left_operand Gets the left_operand of this CompositeCondition.
right_operand Gets the right_operand of this CompositeCondition.

Methods

__init__(**kwargs) Initializes a new CompositeCondition 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.
COMPOSITE_OPERATOR_AND = 'AND'

A constant which can be used with the composite_operator property of a CompositeCondition. This constant has a value of “AND”

COMPOSITE_OPERATOR_OR = 'OR'

A constant which can be used with the composite_operator property of a CompositeCondition. This constant has a value of “OR”

KIND_COMPOSITE = 'COMPOSITE'
KIND_SIMPLE = 'SIMPLE'
__init__(**kwargs)

Initializes a new CompositeCondition object with values from keyword arguments. The default value of the kind attribute of this class is COMPOSITE 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 CompositeCondition. 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’.
  • left_operand (oci.cloud_guard.models.Condition) – The value to assign to the left_operand property of this CompositeCondition.
  • composite_operator (str) – The value to assign to the composite_operator property of this CompositeCondition. Allowed values for this property are: “AND”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • right_operand (oci.cloud_guard.models.Condition) – The value to assign to the right_operand property of this CompositeCondition.
composite_operator

Gets the composite_operator of this CompositeCondition. Allowed values for this property are: “AND”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The composite_operator of this CompositeCondition.
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.

kind

[Required] Gets the kind of this Condition. Type of condition object

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
left_operand

Gets the left_operand of this CompositeCondition.

Returns:The left_operand of this CompositeCondition.
Return type:oci.cloud_guard.models.Condition
right_operand

Gets the right_operand of this CompositeCondition.

Returns:The right_operand of this CompositeCondition.
Return type:oci.cloud_guard.models.Condition