/**
 * Analytics API
 * Analytics API.

 * OpenAPI spec version: 20190331
 *
 *
 * 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" ) ; /**
 * Analytics Instance metadata.
 *
 */ export interface AnalyticsInstance { /**
     * The resource OCID.
     *
     */ "id" : string ; /**
     * The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed.
     *
     */ "name" : string ; /**
     * Optional description.
     *
     */ "description" ? : string ; /**
     * The OCID of the compartment.
     *
     */ "compartmentId" : string ; /**
     * The current state of an instance.
     *
     */ "lifecycleState" : model . AnalyticsInstanceLifecycleState ; /**
     * Analytics feature set.
     *
     */ "featureSet" : model . FeatureSet ; "capacity" : model . Capacity ; /**
     * The license used for the service.
     *
     */ "licenseType" ? : model . LicenseType ; /**
     * Email address receiving notifications.
     *
     */ "emailNotification" ? : string ; "networkEndpointDetails" : model . PrivateEndpointDetails | model . PublicEndpointDetails ; /**
     * Map of PrivateAccessChannel unique identifier key as KEY and PrivateAccessChannel Object as VALUE.
     *
     */ "privateAccessChannels" ? : { [ key ] : model . PrivateAccessChannel ; } ; /**
     * Map of VanityUrl unique identifier key as KEY and VanityUrl Object as VALUE.
     *
     */ "vanityUrlDetails" ? : { [ key ] : model . VanityUrlDetails ; } ; /**
     * URL of the Analytics service.
     *
     */ "serviceUrl" ? : string ; /**
      * Defined tags for this resource. Each key is predefined and scoped to a
  * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
  * <p>
  Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
  *
      */ "definedTags" ? : { [ key ] : { [ key ] : any ; } ; } ; /**
      * Free-form tags for this resource. Each tag is a simple key-value pair with no
  * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
  * <p>
  Example: `{\"Department\": \"Finance\"}`
  *
      */ "freeformTags" ? : { [ key ] : string ; } ; /**
      * The date and time the instance was created, in the format defined by RFC3339.
  * <p>
  Example: `2016-08-25T21:10:29.600Z`
  *
      */ "timeCreated" : Date ; /**
     * The date and time the instance was last updated (in the format defined by RFC3339).
     * This timestamp represents updates made through this API. External events do not
     * influence it.
     *
     */ "timeUpdated" ? : Date ; } export namespace AnalyticsInstance { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "capacity" : obj . capacity ? model . Capacity . getJsonObj ( obj . capacity ) : undefined , "networkEndpointDetails" : obj . networkEndpointDetails ? model . NetworkEndpointDetails . getJsonObj ( obj . networkEndpointDetails ) : undefined , "privateAccessChannels" : obj . privateAccessChannels ? common . mapContainer ( obj . privateAccessChannels , model . PrivateAccessChannel . getJsonObj ) : undefined , "vanityUrlDetails" : obj . vanityUrlDetails ? common . mapContainer ( obj . vanityUrlDetails , model . VanityUrlDetails . getJsonObj ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "capacity" : obj . capacity ? model . Capacity . getDeserializedJsonObj ( obj . capacity ) : undefined , "networkEndpointDetails" : obj . networkEndpointDetails ? model . NetworkEndpointDetails . getDeserializedJsonObj ( obj . networkEndpointDetails ) : undefined , "privateAccessChannels" : obj . privateAccessChannels ? common . mapContainer ( obj . privateAccessChannels , model . PrivateAccessChannel . getDeserializedJsonObj ) : undefined , "vanityUrlDetails" : obj . vanityUrlDetails ? common . mapContainer ( obj . vanityUrlDetails , model . VanityUrlDetails . getDeserializedJsonObj ) : undefined } } ; return jsonObj ; } }