{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-licenses-list-response-schema.json",
  "title": "LicensesListResponse",
  "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/LicensesListResponse",
  "properties": {
    "selfLink": {
      "readOnly": true,
      "description": "Output only. [Output Only] Server-defined URL for this resource.",
      "type": "string"
    },
    "items": {
      "description": "A list of License resources.",
      "items": {
        "$ref": "#/$defs/License"
      },
      "type": "array"
    },
    "nextPageToken": {
      "type": "string",
      "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results."
    },
    "warning": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "CLEANUP_FAILED",
            "DEPRECATED_RESOURCE_USED",
            "DEPRECATED_TYPE_USED",
            "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
            "EXPERIMENTAL_TYPE_USED",
            "EXTERNAL_API_WARNING",
            "FIELD_VALUE_OVERRIDEN",
            "INJECTED_KERNELS_DEPRECATED",
            "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB",
            "LARGE_DEPLOYMENT_WARNING",
            "LIST_OVERHEAD_QUOTA_EXCEED",
            "MISSING_TYPE_DEPENDENCY",
            "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
            "NEXT_HOP_CANNOT_IP_FORWARD",
            "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE",
            "NEXT_HOP_INSTANCE_NOT_FOUND",
            "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
            "NEXT_HOP_NOT_RUNNING",
            "NOT_CRITICAL_ERROR",
            "NO_RESULTS_ON_PAGE",
            "PARTIAL_SUCCESS",
            "QUOTA_INFO_UNAVAILABLE",
            "REQUIRED_TOS_AGREEMENT",
            "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING",
            "RESOURCE_NOT_DELETED",
            "SCHEMA_VALIDATION_IGNORED",
            "SINGLE_INSTANCE_PROPERTY_TEMPLATE",
            "UNDECLARED_PROPERTIES",
            "UNREACHABLE"
          ],
          "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response."
        },
        "data": {
          "type": "array",
          "items": {
            "properties": {
              "value": {
                "description": "[Output Only] A warning data value corresponding to the key.",
                "type": "string"
              },
              "key": {
                "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).",
                "type": "string"
              }
            },
            "type": "object"
          },
          "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n  {\n   \"key\": \"scope\",\n   \"value\": \"zones/us-east1-d\"\n  }]"
        },
        "message": {
          "description": "[Output Only] A human-readable description of the warning code.",
          "type": "string"
        }
      },
      "description": "[Output Only] Informational warning message."
    },
    "id": {
      "type": "string",
      "description": "[Output Only] Unique identifier for the resource; defined by the server."
    }
  },
  "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."
        }
      }
    },
    "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.",
      "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"
    },
    "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"
    }
  }
}