/**
 * Cloud Guard APIs
 * A description of the Cloud Guard APIs
 * OpenAPI spec version: 20200131
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import * as model from "../model" ; import common = require ( "oci-common" ) ; /**
 * Composite Condition object with nested Condition
 */ export interface CompositeCondition extends model . Condition { "leftOperand" ? : model . SimpleCondition | model . CompositeCondition ; "compositeOperator" ? : CompositeCondition . CompositeOperator ; "rightOperand" ? : model . SimpleCondition | model . CompositeCondition ; "kind" : string ; } export namespace CompositeCondition { export enum CompositeOperator { And = "AND" , Or = "OR" , /**
         * This value is used if a service returns a value for this enum that is not recognized by this
         * version of the SDK.
         */ UnknownValue = "UNKNOWN_VALUE" } export function getJsonObj ( obj , isParentJsonObj ? ) { const jsonObj = { ... ( isParentJsonObj ? obj : ( model . Condition . getJsonObj ( obj ) as CompositeCondition ) ) , ... { "leftOperand" : obj . leftOperand ? model . Condition . getJsonObj ( obj . leftOperand ) : undefined , "rightOperand" : obj . rightOperand ? model . Condition . getJsonObj ( obj . rightOperand ) : undefined } } ; return jsonObj ; } export const kind = "COMPOSITE" ; export function getDeserializedJsonObj ( obj , isParentJsonObj ? ) { const jsonObj = { ... ( isParentJsonObj ? obj : ( model . Condition . getDeserializedJsonObj ( obj ) as CompositeCondition ) ) , ... { "leftOperand" : obj . leftOperand ? model . Condition . getDeserializedJsonObj ( obj . leftOperand ) : undefined , "rightOperand" : obj . rightOperand ? model . Condition . getDeserializedJsonObj ( obj . rightOperand ) : undefined } } ; return jsonObj ; } }