{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/scaleway.secret_manager.v1beta1.AccessSecretVersionResponse",
  "title": "scaleway.secret_manager.v1beta1.AccessSecretVersionResponse",
  "type": "object",
  "properties": {
    "secret_id": {
      "type": "string",
      "description": "ID of the secret. (UUID format)",
      "example": "6170692e-7363-616c-6577-61792e636f6d"
    },
    "revision": {
      "type": "integer",
      "description": "Version number.\nThe first version of the secret is numbered 1, and all subsequent revisions augment by 1.",
      "format": "uint32"
    },
    "data": {
      "type": "string",
      "description": "The base64-encoded secret payload of the version."
    },
    "data_crc32": {
      "type": "integer",
      "description": "The CRC32 checksum of the data as a base-10 integer.\nThis field is only available if a CRC32 was supplied during the creation of the version.",
      "format": "uint32",
      "nullable": true
    },
    "type": {
      "type": "string",
      "description": "Type of the secret.\nSee the `Secret.Type` enum for a description of values.",
      "enum": [
        "unknown_type",
        "opaque",
        "certificate",
        "key_value",
        "basic_credentials",
        "database_credentials",
        "ssh_key"
      ],
      "x-enum-descriptions": {
        "values": {
          "opaque": "Default type.",
          "certificate": "List of concatenated PEM blocks. They can contain certificates, private keys or any other PEM block types.",
          "key_value": "Flat JSON that allows you to set as many first level keys and scalar types as values (string, numeric, boolean) as you need.",
          "basic_credentials": "Flat JSON that allows you to set a username and a password.",
          "database_credentials": "Flat JSON that allows you to set an engine, username, password, host, database name, and port.",
          "ssh_key": "Flat JSON that allows you to set an SSH key."
        }
      },
      "default": "unknown_type"
    }
  },
  "x-properties-order": [
    "secret_id",
    "revision",
    "data",
    "data_crc32",
    "type"
  ]
}