/**
 * Service Connector Hub API
 * Use the Service Connector Hub API to transfer data between services in Oracle Cloud Infrastructure.
For more information about Service Connector Hub, see
[Service Connector Hub Overview](/iaas/Content/service-connector-hub/overview.htm).

 * OpenAPI spec version: 20200909
 *
 *
 * 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" ) ; /**
 * An object that represents the source of the flow defined by the service connector.
 * An example source is the VCNFlow logs within the NetworkLogs group.
 * For more information about flows defined by service connectors, see
 * [Service Connector Hub Overview](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/overview.htm).
 * For configuration instructions, see
 * [To create a service connector](https://docs.cloud.oracle.com/iaas/Content/service-connector-hub/managingconnectors.htm#create).
 *
 */ export interface SourceDetails { "kind" : string ; } export namespace SourceDetails { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; if ( "kind" in obj && obj . kind ) { switch ( obj . kind ) { case "logging" : return model . LoggingSourceDetails . getJsonObj ( < model . LoggingSourceDetails > ( < object > jsonObj ) , true ) ; case "streaming" : return model . StreamingSourceDetails . getJsonObj ( < model . StreamingSourceDetails > ( < object > jsonObj ) , true ) ; default : throw Error ( "Unknown value for: " + obj . kind ) ; } } return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { } } ; if ( "kind" in obj && obj . kind ) { switch ( obj . kind ) { case "logging" : return model . LoggingSourceDetails . getDeserializedJsonObj ( < model . LoggingSourceDetails > ( < object > jsonObj ) , true ) ; case "streaming" : return model . StreamingSourceDetails . getDeserializedJsonObj ( < model . StreamingSourceDetails > ( < object > jsonObj ) , true ) ; default : throw Error ( "Unknown value for: " + obj . kind ) ; } } return jsonObj ; } }