{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-api-client-2-schema.json",
  "title": "ApiClient_2",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-api-clients-api-openapi.yml#/components/schemas/ApiClient_2",
  "allOf": [
    {
      "$ref": "#/$defs/_builtIn"
    },
    {
      "description": "API client used for OAuth.\n",
      "type": "object",
      "properties": {
        "access_policies": {
          "description": "The access policies allowed for ID Tokens issued by this API client.\nThe bearer of an access token will be authorized to perform actions\nwithin the intersection of these policies and those of the array\nuser specified as the JWT `sub` (subject) claim.\n",
          "type": "array",
          "items": {
            "$ref": "#/$defs/_fixedReference_2"
          },
          "readOnly": true
        },
        "access_token_ttl_in_ms": {
          "description": "The TTL (Time To Live) duration for which the exchanged access token is valid.\nMeasured in milliseconds.\n",
          "type": "integer",
          "format": "int64",
          "readOnly": true,
          "x-minimum": 1000,
          "x-maximum": 86400000
        },
        "enabled": {
          "description": "If `true`, the API client is permitted to exchange ID Tokens for access tokens.\nAPI clients are disabled by default.\n",
          "type": "boolean"
        },
        "issuer": {
          "description": "The name of the identity provider that will be issuing ID Tokens for this API client.\nThis string represents the JWT `iss` (issuer) claim in ID Tokens issued for this API client.\n",
          "type": "string",
          "readOnly": true
        },
        "key_id": {
          "description": "The unique identifier for the associated public key of this API client.\nThis string must match the JWT `kid` (key ID) claim in ID Tokens issued for this API client.\n",
          "type": "string",
          "readOnly": true
        },
        "max_role": {
          "description": "Deprecated. The maximum Admin Access Policy (previously 'role') allowed for ID\nTokens issued by this API client. The bearer of an access token will be\nauthorized to perform actions within the intersection of this policy and\nthat of the array user specified as the JWT `sub` (subject) claim.\n`max_role` is deprecated in favor of `access_policies`, but remains for backwards\ncompatibility. If a client has exactly one access policy which corresponds to a\nvalid legacy role of the same name, `max_role` will be a reference to that role.\nOtherwise, it will be `null`.\n",
          "title": "FixedReference",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReference_2"
            }
          ]
        },
        "public_key": {
          "description": "The API client's PEM formatted (Base64 encoded) RSA public key.\n",
          "type": "string",
          "readOnly": true
        }
      }
    }
  ],
  "$defs": {
    "_builtIn": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A non-modifiable, globally unique ID chosen by the system.\n",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Name of the object (e.g., a file system or snapshot).",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "_fixedReferenceWithoutType": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The resource name, such as volume name, file system name,\nsnapshot name, and so on.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true
    },
    "_fixedReference_2": {
      "allOf": [
        {
          "$ref": "#/$defs/_fixedReferenceWithoutType"
        },
        {
          "type": "object",
          "properties": {
            "resource_type": {
              "description": "Type of the object (full name of the endpoint).\nValid values are the unique part of the resource's REST endpoint.\nFor example, a reference to a file system would have a\n`resource_type` of `file-systems`.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ]
    }
  }
}