{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-account-2-schema.json",
  "title": "Account_2",
  "description": "An account data transfer object.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-account-api-openapi.yml#/components/schemas/Account_2",
  "required": [
    "identity"
  ],
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/DefaultDto"
    }
  ],
  "properties": {
    "identity": {
      "$ref": "#/$defs/Identity_2",
      "description": "Identity Info on the Account"
    },
    "properties": {
      "$ref": "#/$defs/AccountProperties_2",
      "description": "Properties on the account",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "AccountProperties_2": {
      "description": "Account property bag.",
      "type": "object",
      "properties": {
        "createdAt": {
          "format": "date-time",
          "description": "Time at which the account was created.",
          "type": "string",
          "readOnly": true
        },
        "provisioningState": {
          "description": "Provisioning state of the Account",
          "enum": [
            "Succeeded",
            "Creating",
            "Deleting",
            "Moving",
            "Failed"
          ],
          "type": "string",
          "readOnly": true,
          "x-ms-enum": {
            "name": "provisioningState",
            "modelAsString": true
          }
        },
        "userEmail": {
          "description": "Email of the user who created the resource",
          "type": "string",
          "readOnly": true
        },
        "userName": {
          "description": "Name of the user who created the resource",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "DefaultDto": {
      "description": "Base data transfer object implementation for default resources.",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/ProxyDto"
        }
      ],
      "properties": {
        "location": {
          "description": "Location of the azure resource.",
          "type": "string"
        },
        "tags": {
          "description": "Tags on the azure resource.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "Identity_2": {
      "description": "Identity of resource",
      "type": "object",
      "properties": {
        "principalId": {
          "description": "service principal Id",
          "type": "string",
          "readOnly": true
        },
        "tenantId": {
          "description": "Tenant Id",
          "type": "string",
          "readOnly": true
        },
        "type": {
          "description": "Identity Type",
          "enum": [
            "SystemAssigned"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "type",
            "modelAsString": true
          }
        }
      }
    },
    "ProxyDto": {
      "description": "Base data transfer object implementation for proxy resources.",
      "type": "object",
      "properties": {
        "id": {
          "description": "The resource id of the azure resource",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Name of the azure resource",
          "type": "string",
          "readOnly": true
        },
        "type": {
          "description": "Type of the azure resource",
          "type": "string",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}