{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-license-office-office-tenant-native-with-iam-schema.json",
  "title": "license.office.OfficeTenantNativeWithIAM",
  "description": "Office tenant",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-license-office-openapi.yml#/components/schemas/license.office.OfficeTenantNativeWithIAM",
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "description": "Contact's address line"
    },
    "city": {
      "type": "string",
      "description": "Contact's city"
    },
    "creationDate": {
      "type": "string",
      "description": "Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "displayName": {
      "type": "string",
      "description": "Tenant's display name"
    },
    "firstName": {
      "type": "string",
      "description": "Contact's first name"
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "lastName": {
      "type": "string",
      "description": "Contact's last name"
    },
    "mcaAgreed": {
      "type": "boolean",
      "description": "MCA acceptance status"
    },
    "phone": {
      "allOf": [
        {
          "$ref": "#/$defs/phoneNumber"
        }
      ],
      "description": "Primary phone number"
    },
    "serviceName": {
      "type": "string",
      "description": "Internal service name",
      "readOnly": true
    },
    "serviceType": {
      "allOf": [
        {
          "$ref": "#/$defs/license.office.ServiceTypeEnum"
        }
      ],
      "description": "Tenant's service type",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/license.office.ServiceStateEnum"
        }
      ],
      "description": "Tenant's status",
      "readOnly": true
    },
    "zipCode": {
      "type": "string",
      "description": "Contact's zip code"
    }
  },
  "$defs": {
    "iam.ResourceMetadata": {
      "type": "object",
      "description": "IAM resource metadata embedded in services models",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Resource display name",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "Unique identifier of the resource",
          "format": "uuid",
          "readOnly": true
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/iam.ResourceMetadata.StateEnum"
            }
          ],
          "description": "Resource state",
          "nullable": true,
          "readOnly": true
        },
        "tags": {
          "type": [
            "object",
            "null"
          ],
          "description": "Resource tags. Tags that were internally computed are prefixed with ovh:",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "urn": {
          "type": "string",
          "description": "Unique resource name used in policies",
          "readOnly": true
        }
      }
    },
    "iam.ResourceMetadata.StateEnum": {
      "type": "string",
      "description": "Resource state",
      "enum": [
        "EXPIRED",
        "IN_CREATION",
        "OK",
        "SUSPENDED"
      ]
    },
    "license.office.ServiceStateEnum": {
      "type": "string",
      "description": "Office tenant state",
      "enum": [
        "creating",
        "inMaintenance",
        "ok",
        "reopening",
        "suspended",
        "suspending"
      ]
    },
    "license.office.ServiceTypeEnum": {
      "type": "string",
      "description": "Office tenant type",
      "enum": [
        "payAsYouGo",
        "prepaid"
      ]
    },
    "phoneNumber": {
      "type": "string",
      "description": "Phone number",
      "format": "phone-number"
    }
  }
}