/**
 * 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" ) ; /**
 * The configuration details for creating a service connector.
 *
 */ export interface CreateServiceConnectorDetails { /**
     * A user-friendly name. It does not have to be unique, and it is changeable.
     * Avoid entering confidential information.
     *
     */ "displayName" : string ; /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
     * comparment to create the service connector in.
     *
     */ "compartmentId" : string ; /**
     * The description of the resource. Avoid entering confidential information.
     *
     */ "description" ? : string ; "source" : model . LoggingSourceDetails | model . StreamingSourceDetails ; /**
     * The list of tasks.
     *
     */ "tasks" ? : Array < model . TaskDetails > ; "target" : model . NotificationsTargetDetails | model . ObjectStorageTargetDetails | model . MonitoringTargetDetails | model . FunctionsTargetDetails | model . LoggingAnalyticsTargetDetails | model . StreamingTargetDetails ; /**
     * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
     * Example: `{\"bar-key\": \"value\"}`
     *
     */ "freeformTags" ? : { [ key ] : string ; } ; /**
     * Defined tags for this resource. Each key is predefined and scoped to a namespace.
     * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
     *
     */ "definedTags" ? : { [ key ] : { [ key ] : any ; } ; } ; } export namespace CreateServiceConnectorDetails { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "source" : obj . source ? model . SourceDetails . getJsonObj ( obj . source ) : undefined , "tasks" : obj . tasks ? obj . tasks . map ( item => { return model . TaskDetails . getJsonObj ( item ) ; } ) : undefined , "target" : obj . target ? model . TargetDetails . getJsonObj ( obj . target ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "source" : obj . source ? model . SourceDetails . getDeserializedJsonObj ( obj . source ) : undefined , "tasks" : obj . tasks ? obj . tasks . map ( item => { return model . TaskDetails . getDeserializedJsonObj ( item ) ; } ) : undefined , "target" : obj . target ? model . TargetDetails . getDeserializedJsonObj ( obj . target ) : undefined } } ; return jsonObj ; } }