{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-management-lock-object-schema.json",
  "title": "ManagementLockObject",
  "description": "The lock information.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-managementlocks-api-openapi.yml#/components/schemas/ManagementLockObject",
  "properties": {
    "properties": {
      "x-ms-client-flatten": true,
      "$ref": "#/$defs/ManagementLockProperties",
      "description": "The properties of the lock."
    },
    "id": {
      "readOnly": true,
      "type": "string",
      "description": "The resource ID of the lock."
    },
    "type": {
      "readOnly": true,
      "type": "string",
      "description": "The resource type of the lock - Microsoft.Authorization/locks."
    },
    "name": {
      "readOnly": true,
      "type": "string",
      "description": "The name of the lock."
    },
    "systemData": {
      "$ref": "#/$defs/systemData",
      "readOnly": true
    }
  },
  "required": [
    "properties"
  ],
  "x-ms-azure-resource": true,
  "$defs": {
    "ManagementLockOwner": {
      "properties": {
        "applicationId": {
          "type": "string",
          "description": "The application ID of the lock owner."
        }
      },
      "description": "Lock owner properties."
    },
    "ManagementLockProperties": {
      "properties": {
        "level": {
          "type": "string",
          "description": "The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.",
          "enum": [
            "NotSpecified",
            "CanNotDelete",
            "ReadOnly"
          ],
          "x-ms-enum": {
            "name": "LockLevel",
            "modelAsString": true
          }
        },
        "notes": {
          "type": "string",
          "description": "Notes about the lock. Maximum of 512 characters."
        },
        "owners": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ManagementLockOwner"
          },
          "x-ms-identifiers": [
            "applicationId"
          ],
          "description": "The owners of the lock."
        }
      },
      "required": [
        "level"
      ],
      "description": "The lock properties."
    },
    "systemData": {
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "type": "object",
      "readOnly": true,
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      }
    }
  }
}