{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-admin-patch-2-schema.json",
  "title": "AdminPatch_2",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-administrators-api-openapi.yml#/components/schemas/AdminPatch_2",
  "type": "object",
  "properties": {
    "authorization_model": {
      "description": "The location for access policies mapping. Returns `static` if they're configured locally on\nthe array. Otherwise, `dynamic` is returned, indicating they're decided by an external system\ne.g. LDAP, IDP.\n",
      "type": "string"
    },
    "locked": {
      "description": "If set to `false`, the specified user is unlocked.\nSetting to `true` is not allowed.\n",
      "type": "boolean"
    },
    "management_access_policies": {
      "description": "List of management access policies associated with the statically-authorized administrator.\nIt's only used when converting remote users from dynamically- to be statically-authorized.\n",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_referenceWritable"
      }
    },
    "old_password": {
      "description": "Old user password.",
      "type": "string"
    },
    "password": {
      "description": "New user password.",
      "type": "string"
    },
    "public_key": {
      "description": "Public key for SSH access. Supported key types are `Ed25519` and `RSA`.",
      "type": "string"
    },
    "role": {
      "description": "Deprecated.\n`role` is deprecated in favor of `management_access_policies`, but remains for\nbackwards compatibility. If an administrator has exactly one access policy which\ncorresponds to a valid legacy role of the same name, `role` will be a\nreference to that role.\nOtherwise, it will be `null`. If `role` is `null`, then attempts to patch it\nwill fail in order to prevent legacy operations from overwriting administrator\nconfigurations utilizing newer policies.\n",
      "title": "ReferenceWritable",
      "allOf": [
        {
          "$ref": "#/$defs/_referenceWritable"
        }
      ]
    }
  },
  "$defs": {
    "_referenceWithoutType": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string"
        },
        "name": {
          "description": "The resource name, such as volume name, pod name,\nsnapshot name, and so on.\n",
          "type": "string"
        }
      }
    },
    "_referenceWritable": {
      "allOf": [
        {
          "$ref": "#/$defs/_referenceWithoutType"
        },
        {
          "type": "object",
          "properties": {
            "resource_type": {
              "description": "Type of the object (full name of the endpoint).\nValid values are `hosts`, `host-groups`, `network-interfaces`, `pods`,\n`ports`, `pod-replica-links`, `subnets`, `volumes`, `volume-snapshots`,\n`volume-groups`, `directories`, `policies/nfs`, `policies/smb`, `policies/snapshot`, etc.\n",
              "type": "string"
            }
          }
        }
      ],
      "x-aliases": [
        "_reference"
      ]
    }
  }
}