/**
 * Database Tools
 * Database Tools APIs to manage Connections and Private Endpoints.
 * OpenAPI spec version: 20201005
 *
 *
 * 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" ) ; /**
 * DatabaseToolsConnection of an Oracle Database.
 */ export interface DatabaseToolsConnectionOracleDatabase extends model . DatabaseToolsConnection { "relatedResource" ? : model . DatabaseToolsRelatedResource ; /**
     * Connect descriptor or Easy Connect Naming method to connect to the database.
     */ "connectionString" ? : string ; /**
     * Database user name.
     */ "userName" ? : string ; "userPassword" ? : model . DatabaseToolsUserPasswordSecretId ; /**
     * Advanced connection properties key-value pair (e.g., oracle.net.ssl_server_dn_match).
     */ "advancedProperties" ? : { [ key ] : string ; } ; /**
     * Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and
     * the client private key and associated certificates required for client authentication.
     *
     */ "keyStores" ? : Array < model . DatabaseToolsKeyStore > ; /**
     * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DatabaseToolsPrivateEndpoint used to access the database in the Customer VCN.
     */ "privateEndpointId" ? : string ; "type" : string ; } export namespace DatabaseToolsConnectionOracleDatabase { export function getJsonObj ( obj , isParentJsonObj ? ) { const jsonObj = { ... ( isParentJsonObj ? obj : ( model . DatabaseToolsConnection . getJsonObj ( obj ) as DatabaseToolsConnectionOracleDatabase ) ) , ... { "relatedResource" : obj . relatedResource ? model . DatabaseToolsRelatedResource . getJsonObj ( obj . relatedResource ) : undefined , "userPassword" : obj . userPassword ? model . DatabaseToolsUserPassword . getJsonObj ( obj . userPassword ) : undefined , "keyStores" : obj . keyStores ? obj . keyStores . map ( item => { return model . DatabaseToolsKeyStore . getJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } export const type = "ORACLE_DATABASE" ; export function getDeserializedJsonObj ( obj , isParentJsonObj ? ) { const jsonObj = { ... ( isParentJsonObj ? obj : ( model . DatabaseToolsConnection . getDeserializedJsonObj ( obj ) as DatabaseToolsConnectionOracleDatabase ) ) , ... { "relatedResource" : obj . relatedResource ? model . DatabaseToolsRelatedResource . getDeserializedJsonObj ( obj . relatedResource ) : undefined , "userPassword" : obj . userPassword ? model . DatabaseToolsUserPassword . getDeserializedJsonObj ( obj . userPassword ) : undefined , "keyStores" : obj . keyStores ? obj . keyStores . map ( item => { return model . DatabaseToolsKeyStore . getDeserializedJsonObj ( item ) ; } ) : undefined } } ; return jsonObj ; } }