{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-hycu-state-with-iam-schema.json",
  "title": "hycu.StateWithIAM",
  "description": "HYCU license State",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-license-hycu-openapi.yml#/components/schemas/hycu.StateWithIAM",
  "type": "object",
  "properties": {
    "comment": {
      "type": "string",
      "description": "The latest comment or error message",
      "readOnly": true
    },
    "controllerId": {
      "type": "string",
      "description": "The HYCU controller ID for this license",
      "readOnly": true
    },
    "expirationDate": {
      "type": "string",
      "description": "The license expiration date",
      "format": "date-time",
      "readOnly": true
    },
    "iam": {
      "allOf": [
        {
          "$ref": "#/$defs/iam.ResourceMetadata"
        }
      ],
      "description": "IAM resource metadata",
      "nullable": true,
      "readOnly": true
    },
    "licenseStatus": {
      "allOf": [
        {
          "$ref": "#/$defs/hycu.LicenseStatusEnum"
        }
      ],
      "description": "The license status",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "description": "License ID",
      "readOnly": true
    }
  },
  "$defs": {
    "hycu.LicenseStatusEnum": {
      "type": "string",
      "description": "HYCU license status",
      "enum": [
        "active",
        "error",
        "processing",
        "toActivate"
      ]
    },
    "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"
      ]
    }
  }
}