AdminHistoryEntry

pydantic model gafaelfawr.models.history.AdminHistoryEntry

A record of a change to the token administrators.

Parameters:

data (Any)

Show JSON schema
{
   "title": "AdminHistoryEntry",
   "description": "A record of a change to the token administrators.",
   "type": "object",
   "properties": {
      "username": {
         "description": "Username of the token administrator that was changed",
         "examples": [
            "someadmin"
         ],
         "maxLength": 64,
         "minLength": 1,
         "title": "Username",
         "type": "string"
      },
      "action": {
         "$ref": "#/$defs/AdminChange",
         "examples": [
            "add"
         ],
         "title": "Type of change"
      },
      "actor": {
         "description": "Username of the person making the change",
         "maxLength": 64,
         "minLength": 1,
         "title": "Actor",
         "type": "string"
      },
      "ip_address": {
         "anyOf": [
            {
               "$ref": "#/$defs/IpAddress"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "IP address from which the change was made. Will be missing if the change was made internally by Gafaelfawr.",
         "title": "IP address"
      },
      "event_time": {
         "$ref": "#/$defs/Timestamp",
         "description": "When the change was made",
         "examples": [
            1614986130
         ],
         "title": "Timestamp"
      }
   },
   "$defs": {
      "AdminChange": {
         "description": "Type of change made to a token admin.",
         "enum": [
            "add",
            "remove"
         ],
         "title": "AdminChange",
         "type": "string"
      },
      "IpAddress": {
         "type": "string"
      },
      "Timestamp": {
         "format": "date-time",
         "type": "string"
      }
   },
   "required": [
      "username",
      "action",
      "actor"
   ]
}

Fields:
field action: AdminChange [Required]
field actor: str [Required]

Username of the person making the change

Constraints:
  • min_length = 1

  • max_length = 64

field event_time: Timestamp [Optional]

When the change was made

field ip_address: IpAddress | None = None

IP address from which the change was made. Will be missing if the change was made internally by Gafaelfawr.

field username: str [Required]

Username of the token administrator that was changed

Constraints:
  • min_length = 1

  • max_length = 64