/**
 * Oracle Integration API
 * Oracle Integration API.
 * OpenAPI spec version: 20190131
 *
 *
 * 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 information about new IntegrationInstance.
 */ export interface CreateIntegrationInstanceDetails { /**
     * Integration Instance Identifier.
     */ "displayName" : string ; /**
     * Compartment Identifier.
     */ "compartmentId" : string ; /**
     * Standard or Enterprise type
     */ "integrationInstanceType" : CreateIntegrationInstanceDetails . IntegrationInstanceType ; /**
     * 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 ; } ; /**
     * Usage of predefined tag keys. These predefined keys are scoped to
     * namespaces.
     * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
     *
     */ "definedTags" ? : { [ key ] : { [ key ] : any ; } ; } ; /**
     * Bring your own license.
     */ "isByol" : boolean ; /**
     * IDCS Authentication token. This is required for all realms with IDCS. Its optional as its not required for non IDCS realms.
     */ "idcsAt" ? : string ; /**
     * The number of configured message packs Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
     */ "messagePacks" : number ; /**
     * Visual Builder is enabled or not.
     */ "isVisualBuilderEnabled" ? : boolean ; "customEndpoint" ? : model . CreateCustomEndpointDetails ; /**
     * A list of alternate custom endpoints to be used for the integration instance URL
     * (contact Oracle for alternateCustomEndpoints availability for a specific instance).
     *
     */ "alternateCustomEndpoints" ? : Array < model . CreateCustomEndpointDetails > ; /**
     * Optional parameter specifying which entitlement to use for billing purposes. Only required if the account possesses more than one entitlement.
     */ "consumptionModel" ? : CreateIntegrationInstanceDetails . ConsumptionModel ; /**
     * The file server is enabled or not.
     */ "isFileServerEnabled" ? : boolean ; "networkEndpointDetails" ? : model . PublicEndpointDetails ; } export namespace CreateIntegrationInstanceDetails { export enum IntegrationInstanceType { Standard = "STANDARD" , Enterprise = "ENTERPRISE" } export enum ConsumptionModel { Ucm = "UCM" , Gov = "GOV" , Oic4Saas = "OIC4SAAS" } export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "customEndpoint" : obj . customEndpoint ? model . CreateCustomEndpointDetails . getJsonObj ( obj . customEndpoint ) : undefined , "alternateCustomEndpoints" : obj . alternateCustomEndpoints ? obj . alternateCustomEndpoints . map ( item => { return model . CreateCustomEndpointDetails . getJsonObj ( item ) ; } ) : undefined , "networkEndpointDetails" : obj . networkEndpointDetails ? model . NetworkEndpointDetails . getJsonObj ( obj . networkEndpointDetails ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "customEndpoint" : obj . customEndpoint ? model . CreateCustomEndpointDetails . getDeserializedJsonObj ( obj . customEndpoint ) : undefined , "alternateCustomEndpoints" : obj . alternateCustomEndpoints ? obj . alternateCustomEndpoints . map ( item => { return model . CreateCustomEndpointDetails . getDeserializedJsonObj ( item ) ; } ) : undefined , "networkEndpointDetails" : obj . networkEndpointDetails ? model . NetworkEndpointDetails . getDeserializedJsonObj ( obj . networkEndpointDetails ) : undefined } } ; return jsonObj ; } }