{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daon/json-schema/daon-cloud-secret-schema.json",
  "title": "CloudSecret",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daon-cloud-secrets-api-openapi.yml#/components/schemas/CloudSecret",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the Cloud Secret.",
      "readOnly": true
    },
    "tenantId": {
      "type": "string",
      "description": "The Tenant ID for the Cloud Secret.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "The unique name for the Cloud Secret.",
      "maxLength": 250,
      "minLength": 0,
      "pattern": "^[a-zA-Z0-9_]+$"
    },
    "description": {
      "type": "string",
      "description": "The text description of the Cloud Secret for informational purposes.",
      "maxLength": 2000,
      "minLength": 0
    },
    "type": {
      "type": "string",
      "description": "The type of Cloud Secret value.",
      "enum": [
        "STRING",
        "NUMBER",
        "BINARY"
      ]
    },
    "value": {
      "type": "string",
      "description": "The Cloud Secret value.",
      "maxLength": 8192,
      "minLength": 0
    },
    "createdDtm": {
      "type": "string",
      "format": "date-time",
      "description": "The time the Cloud Secret was created.",
      "readOnly": true
    },
    "lastUpdatedDtm": {
      "type": "string",
      "format": "date-time",
      "description": "The time the Cloud Secret last updated.",
      "readOnly": true
    },
    "createdBy": {
      "type": "string",
      "description": "The creator of the Cloud Secret.",
      "readOnly": true
    },
    "lastUpdatedBy": {
      "type": "string",
      "description": "The last updater of the Cloud Secret.",
      "readOnly": true
    }
  },
  "required": [
    "name"
  ]
}