/**
 * Data Safe API
 * APIs for using Oracle Data Safe.
 * OpenAPI spec version: 20181201
 *
 *
 * 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" ) ; /**
 * The results of the comparison between two security assessment resources.
 *
 */ export interface SecurityAssessmentComparisonPerTarget { /**
     * The OCID of the target that is used as a baseline in this comparison.
     */ "baselineTargetId" ? : string ; /**
     * The OCID of the target to be compared against the baseline target.
     */ "currentTargetId" ? : string ; /**
     * A comparison between findings belonging to Auditing category.
     */ "auditing" ? : Array < model . Diffs > ; /**
     * A comparison between findings belonging to Authorization Control category.
     */ "authorizationControl" ? : Array < model . Diffs > ; /**
     * Comparison between findings belonging to Data Encryption category.
     */ "dataEncryption" ? : Array < model . Diffs > ; /**
     * Comparison between findings belonging to Database Configuration category.
     */ "dbConfiguration" ? : Array < model . Diffs > ; /**
     * Comparison between findings belonging to Fine-Grained Access Control category.
     */ "fineGrainedAccessControl" ? : Array < model . Diffs > ; /**
     * Comparison between findings belonging to Privileges and Roles category.
     */ "privilegesAndRoles" ? : Array < model . Diffs > ; /**
     * Comparison between findings belonging to User Accounts category.
     */ "userAccounts" ? : Array < model . Diffs > ; } export namespace SecurityAssessmentComparisonPerTarget { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "auditing" : obj . auditing ? obj . auditing . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined , "authorizationControl" : obj . authorizationControl ? obj . authorizationControl . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined , "dataEncryption" : obj . dataEncryption ? obj . dataEncryption . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined , "dbConfiguration" : obj . dbConfiguration ? obj . dbConfiguration . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined , "fineGrainedAccessControl" : obj . fineGrainedAccessControl ? obj . fineGrainedAccessControl . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined , "privilegesAndRoles" : obj . privilegesAndRoles ? obj . privilegesAndRoles . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined , "userAccounts" : obj . userAccounts ? obj . userAccounts . map ( item => { return model . Diffs . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "auditing" : obj . auditing ? obj . auditing . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined , "authorizationControl" : obj . authorizationControl ? obj . authorizationControl . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined , "dataEncryption" : obj . dataEncryption ? obj . dataEncryption . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined , "dbConfiguration" : obj . dbConfiguration ? obj . dbConfiguration . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined , "fineGrainedAccessControl" : obj . fineGrainedAccessControl ? obj . fineGrainedAccessControl . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined , "privilegesAndRoles" : obj . privilegesAndRoles ? obj . privilegesAndRoles . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined , "userAccounts" : obj . userAccounts ? obj . userAccounts . map ( item => { return model . Diffs . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }