/**
 * Oracle Cloud AI Services API
 * OCI AI Service solutions can help Enterprise customers integrate AI into their products immediately by using our proven,
pre-trained/custom models or containers, and without a need to set up in house team of AI and ML experts.
This allows enterprises to focus on business drivers and development work rather than AI/ML operations, shortening the time to market.

 * OpenAPI spec version: 20210101
 *
 *
 * 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" ) ; /**
 * Possible data sources
 */ export interface DataSourceDetails { "dataSourceType" : string ; } export namespace DataSourceDetails { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; if ( "dataSourceType" in obj && obj . dataSourceType ) { switch ( obj . dataSourceType ) { case "ORACLE_OBJECT_STORAGE" : return model . DataSourceDetailsObjectStorage . getJsonObj ( < model . DataSourceDetailsObjectStorage > ( < object > jsonObj ) , true ) ; case "INFLUX" : return model . DataSourceDetailsInflux . getJsonObj ( < model . DataSourceDetailsInflux > ( < object > jsonObj ) , true ) ; case "ORACLE_ATP" : return model . DataSourceDetailsATP . getJsonObj ( < model . DataSourceDetailsATP > ( < object > jsonObj ) , true ) ; default : throw Error ( "Unknown value for: " + obj . dataSourceType ) ; } } return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; if ( "dataSourceType" in obj && obj . dataSourceType ) { switch ( obj . dataSourceType ) { case "ORACLE_OBJECT_STORAGE" : return model . DataSourceDetailsObjectStorage . getDeserializedJsonObj ( < model . DataSourceDetailsObjectStorage > ( < object > jsonObj ) , true ) ; case "INFLUX" : return model . DataSourceDetailsInflux . getDeserializedJsonObj ( < model . DataSourceDetailsInflux > ( < object > jsonObj ) , true ) ; case "ORACLE_ATP" : return model . DataSourceDetailsATP . getDeserializedJsonObj ( < model . DataSourceDetailsATP > ( < object > jsonObj ) , true ) ; default : throw Error ( "Unknown value for: " + obj . dataSourceType ) ; } } return jsonObj ; } }