/**
 * Database Service API
 * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm).

 * OpenAPI spec version: 20160918
 * Contact: sic_dbaas_cp_us_grp@oracle.com
 *
 * 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" ) ; /**
 * Details for converting a non-container database to pluggable database.
 *
 */ export interface ConvertToPdbDetails { /**
     * The operations used to convert a non-container database to a pluggable database.
     * - Use `PRECHECK` to run a pre-check operation on non-container database prior to converting it into a pluggable database.
     * - Use `CONVERT` to convert a non-container database into a pluggable database.
     * - Use `SYNC` if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
     * - Use `SYNC_ROLLBACK` if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
     *
     */ "action" : ConvertToPdbDetails . Action ; "convertToPdbTargetDetails" ? : model . PdbConversionToNewDatabaseDetails ; } export namespace ConvertToPdbDetails { export enum Action { Precheck = "PRECHECK" , Convert = "CONVERT" , Sync = "SYNC" , SyncRollback = "SYNC_ROLLBACK" } export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "convertToPdbTargetDetails" : obj . convertToPdbTargetDetails ? model . ConvertToPdbTargetBase . getJsonObj ( obj . convertToPdbTargetDetails ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "convertToPdbTargetDetails" : obj . convertToPdbTargetDetails ? model . ConvertToPdbTargetBase . getDeserializedJsonObj ( obj . convertToPdbTargetDetails ) : undefined } } ; return jsonObj ; } }