{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-license-schema.json",
  "title": "License",
  "description": "Represents a License resource.\n\nA License represents billing and aggregate usage data forpublic andmarketplace images.\n *Caution* This resource is intended for\nuse only by third-party partners who are creatingCloud Marketplace\nimages.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-licenses-api-openapi.yml#/components/schemas/License",
  "properties": {
    "kind": {
      "type": "string",
      "readOnly": true,
      "default": "compute#license",
      "description": "Output only. [Output Only] Type of resource. Always compute#license for\nlicenses."
    },
    "description": {
      "description": "An optional textual description of the resource; provided by the client\nwhen the resource is created.",
      "type": "string"
    },
    "appendableToDisk": {
      "type": "boolean",
      "description": "If true, this license can be appended to an existing disk's set of\nlicenses."
    },
    "osLicense": {
      "description": "If true, indicates this is an OS license. Only one OS license can be\nattached to a disk or image at a time.",
      "type": "boolean"
    },
    "requiredCoattachedLicenses": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "Specifies the set of permissible coattached licenseCodes of licenses that\nsatisfy the coattachment requirement of this license. At least one license\nfrom the set must be attached to the same disk or image as this license."
    },
    "updateTimestamp": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. [Output Only] Last update timestamp inRFC3339\ntext format."
    },
    "params": {
      "$ref": "#/$defs/LicenseParams",
      "description": "Input only. Additional params passed with the request, but not persisted\nas part of resource payload."
    },
    "removableFromDisk": {
      "description": "If true, this license can be removed from a disk's set of licenses, with no\nreplacement license needed.",
      "type": "boolean"
    },
    "selfLinkWithId": {
      "description": "Output only. [Output Only] Server-defined URL for this resource with the resource id.",
      "readOnly": true,
      "type": "string"
    },
    "selfLink": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. [Output Only] Server-defined URL for the resource."
    },
    "resourceRequirements": {
      "$ref": "#/$defs/LicenseResourceRequirements",
      "description": "[Input Only] Deprecated."
    },
    "id": {
      "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
      "type": "string",
      "format": "uint64"
    },
    "transferable": {
      "description": "If false, licenses will not be copied from the source resource when\ncreating an image from a disk, disk from snapshot, or snapshot from disk.",
      "type": "boolean"
    },
    "licenseCode": {
      "type": "string",
      "format": "uint64",
      "description": "[Output Only] The unique code used to attach this license to images,\nsnapshots, and disks."
    },
    "multiTenantOnly": {
      "description": "If true, this license can only be used on VMs on multi tenant nodes.",
      "type": "boolean"
    },
    "chargesUseFee": {
      "description": "[Output Only] Deprecated. This field no longer reflects whether a license\ncharges a usage fee.",
      "type": "boolean"
    },
    "creationTimestamp": {
      "type": "string",
      "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
      "readOnly": true
    },
    "name": {
      "description": "Name of the resource. The name must be 1-63 characters long and\ncomply withRFC1035.",
      "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
      "type": "string"
    },
    "soleTenantOnly": {
      "type": "boolean",
      "description": "If true, this license can only be used on VMs on sole tenant nodes."
    },
    "minimumRetention": {
      "$ref": "#/$defs/Duration",
      "description": "If set, this license will be unable to be removed or replaced once attached\nto a disk until the minimum_retention period has passed."
    },
    "allowedReplacementLicenses": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specifies licenseCodes of licenses that can replace this license. Note:\nsuch replacements are allowed even if removable_from_disk is false."
    },
    "incompatibleLicenses": {
      "type": "array",
      "description": "Specifies licenseCodes of licenses that are incompatible with this license.\nIf a license is incompatible with this license, it cannot be attached to\nthe same disk or image.",
      "items": {
        "type": "string"
      }
    }
  },
  "type": "object",
  "$defs": {
    "Duration": {
      "type": "object",
      "description": "A Duration represents a fixed-length span of time represented\nas a count of seconds and fractions of seconds at nanosecond\nresolution. It is independent of any calendar and concepts like \"day\"\nor \"month\". Range is approximately 10,000 years.",
      "properties": {
        "seconds": {
          "description": "Span of time at a resolution of a second. Must be from 0\nto 315,576,000,000 inclusive. Note: these bounds are computed from:\n60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years",
          "type": "string",
          "format": "int64"
        },
        "nanos": {
          "format": "int32",
          "type": "integer",
          "description": "Span of time that's a fraction of a second at nanosecond resolution.\nDurations less than one second are represented with a 0\n`seconds` field and a positive `nanos` field. Must be from 0\nto 999,999,999 inclusive."
        }
      }
    },
    "LicenseParams": {
      "description": "Additional license params.",
      "type": "object",
      "properties": {
        "resourceManagerTags": {
          "type": "object",
          "description": "Input only. Resource manager tags to be bound to the license. Tag keys and values\nhave the same definition as resource\nmanager tags. Keys and values can be either in numeric format,\nsuch as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in\nnamespaced format such as `{org_id|project_id}/{tag_key_short_name}` and\n`{tag_value_short_name}`. The field is ignored (both PUT &\nPATCH) when empty.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "LicenseResourceRequirements": {
      "properties": {
        "minGuestCpuCount": {
          "description": "[Input Only] Deprecated. This field no longer reflects the minimum number\nof guest cpus required to use the Instance.",
          "format": "int32",
          "type": "integer"
        },
        "minMemoryMb": {
          "description": "[Input Only] Deprecated. This field no longer reflects the minimum memory\nrequired to use the Instance.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    }
  }
}