{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-access-policy-response-schema.json",
  "title": "AccessPolicyResponse",
  "description": "Serializer for AccessPolicy.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-access-policies-api-openapi.yml#/components/schemas/AccessPolicyResponse",
  "type": "object",
  "properties": {
    "pulp_href": {
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "pulp_created": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Timestamp of creation."
    },
    "pulp_last_updated": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same."
    },
    "permissions_assignment": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "List of callables that define the new permissions to be created for new objects.This is deprecated. Use `creation_hooks` instead."
    },
    "creation_hooks": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "List of callables that may associate user roles for new objects."
    },
    "statements": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "List of policy statements defining the policy."
    },
    "viewset_name": {
      "type": "string",
      "readOnly": true,
      "description": "The name of ViewSet this AccessPolicy authorizes."
    },
    "customized": {
      "type": "boolean",
      "readOnly": true,
      "description": "True if the AccessPolicy has been user-modified. False otherwise."
    },
    "queryset_scoping": {
      "type": "object",
      "description": "A callable for performing queryset scoping. See plugin documentation for valid callables. Set to blank to turn off queryset scoping."
    }
  },
  "required": [
    "statements"
  ]
}