{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/oracle/main/json-schema/oracle-analytics-instance-summary-schema.json",
  "title": "AnalyticsInstanceSummary",
  "description": "Analytics Instance metadata (summary view).\n",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-analytics-api-openapi.yml#/components/schemas/AnalyticsInstanceSummary",
  "properties": {
    "capacity": {
      "$ref": "#/$defs/Capacity"
    },
    "compartmentId": {
      "description": "The OCID of the compartment.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only the String type is supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing a defined tag key and value, scoped to a namespace.\n\nExample: `{\"CostCenter\": \"42\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a\nnamespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).\n\nExample: `{\"Operations\": {\"CostCenter\": \"42\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "Optional description.\n",
      "maxLength": 512,
      "minLength": 0,
      "type": "string"
    },
    "emailNotification": {
      "description": "Email address receiving notifications.\n",
      "maxLength": 512,
      "minLength": 0,
      "type": "string"
    },
    "featureSet": {
      "description": "Analytics feature set.\n",
      "enum": [
        "SELF_SERVICE_ANALYTICS",
        "ENTERPRISE_ANALYTICS"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/FeatureSet"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Free-form tags for this resource. Each tag is a simple key-value pair with no\npredefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).\n\nExample: `{\"Department\": \"Finance\"}`\n",
      "type": "object"
    },
    "id": {
      "description": "The resource OCID.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "licenseType": {
      "description": "The license used for the service.\n",
      "enum": [
        "LICENSE_INCLUDED",
        "BRING_YOUR_OWN_LICENSE"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/LicenseType"
    },
    "lifecycleState": {
      "description": "The current state of an instance.\n",
      "enum": [
        "ACTIVE",
        "CREATING",
        "DELETED",
        "DELETING",
        "FAILED",
        "INACTIVE",
        "UPDATING"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/AnalyticsInstanceLifecycleState"
    },
    "name": {
      "description": "The name of the Analytics instance. This name must be unique in the tenancy and cannot be changed.\n",
      "maxLength": 32,
      "minLength": 1,
      "pattern": "^[a-zA-Z](-?[a-zA-Z0-9])*$",
      "type": "string"
    },
    "networkEndpointDetails": {
      "$ref": "#/$defs/NetworkEndpointDetails"
    },
    "serviceUrl": {
      "description": "URL of the Analytics service.\n",
      "maxLength": 1024,
      "minLength": 0,
      "type": "string"
    },
    "systemTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing system tags' keys and values scoped to a namespace.\nExample: `{\"key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "System tags for this resource. These predefined keys are scoped to namespaces.\nExample: `{\"orcl-cloud\": {\"key\": \"value\"}}`\n",
      "type": "object"
    },
    "timeCreated": {
      "description": "The date and time the instance was created, in the format defined by RFC3339.\n\nExample: `2016-08-25T21:10:29.600Z`\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The date and time the instance was last updated (in the format defined by RFC3339).\nThis timestamp represents updates made through this API. External events do not\ninfluence it.\n",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "compartmentId",
    "lifecycleState",
    "capacity",
    "networkEndpointDetails",
    "featureSet",
    "timeCreated"
  ],
  "$defs": {
    "Capacity": {
      "description": "Service instance capacity metadata (e.g.: OLPU count, number of users, ...etc...).\n",
      "properties": {
        "capacityType": {
          "description": "The capacity model to use.\nAccepted values are:\nOLPU_COUNT, USER_COUNT\n",
          "enum": [
            "OLPU_COUNT",
            "USER_COUNT"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/CapacityType"
        },
        "capacityValue": {
          "description": "The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT).\nThis parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance.\n",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "capacityType",
        "capacityValue"
      ],
      "type": "object"
    },
    "NetworkEndpointDetails": {
      "description": "Base representation of a network endpoint.\n",
      "properties": {
        "networkEndpointType": {
          "description": "The type of network endpoint.\n",
          "enum": [
            "PUBLIC",
            "PRIVATE"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/NetworkEndpointType"
        }
      },
      "required": [
        "networkEndpointType"
      ],
      "type": "object"
    }
  }
}