{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vertex-ai-search/json-schema/vertex-ai-search-google-cloud-discoveryengine-v1-distribute-license-config-response-schema.json",
  "title": "GoogleCloudDiscoveryengineV1DistributeLicenseConfigResponse",
  "description": "Response message for LicenseConfigService.DistributeLicenseConfig method.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vertex-ai-search-billing-accounts-api-openapi.yml#/components/schemas/GoogleCloudDiscoveryengineV1DistributeLicenseConfigResponse",
  "properties": {
    "licenseConfig": {
      "$ref": "#/$defs/GoogleCloudDiscoveryengineV1LicenseConfig",
      "description": "The updated or created LicenseConfig."
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudDiscoveryengineV1LicenseConfig": {
      "description": "Information about users' licenses.",
      "type": "object",
      "properties": {
        "licenseCount": {
          "description": "Required. Number of licenses purchased.",
          "format": "int64",
          "type": "string"
        },
        "name": {
          "description": "Immutable. Identifier. The fully qualified resource name of the license config. Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config}`",
          "type": "string"
        },
        "subscriptionTerm": {
          "type": "string",
          "enum": [
            "SUBSCRIPTION_TERM_UNSPECIFIED",
            "SUBSCRIPTION_TERM_ONE_MONTH",
            "SUBSCRIPTION_TERM_ONE_YEAR",
            "SUBSCRIPTION_TERM_THREE_YEARS",
            "SUBSCRIPTION_TERM_CUSTOM"
          ],
          "description": "Required. Subscription term."
        },
        "lastUserUpdateTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Optional. Timestamp of the most recent user-initiated update (seat count change or subscription term change). Unlike `update_time`, this field is only stamped when a customer explicitly updates the license (e.g. via the UI), and is not touched by system-driven writes (subscription pipeline, BALC propagation, etc.)."
        },
        "endDate": {
          "$ref": "#/$defs/GoogleTypeDate",
          "description": "Optional. The planed end date."
        },
        "geminiBundle": {
          "type": "boolean",
          "description": "Output only. Whether the license config is for Gemini bundle.",
          "readOnly": true
        },
        "subscriptionTier": {
          "type": "string",
          "enum": [
            "SUBSCRIPTION_TIER_UNSPECIFIED",
            "SUBSCRIPTION_TIER_SEARCH",
            "SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT",
            "SUBSCRIPTION_TIER_NOTEBOOK_LM",
            "SUBSCRIPTION_TIER_FRONTLINE_WORKER",
            "SUBSCRIPTION_TIER_AGENTSPACE_STARTER",
            "SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS",
            "SUBSCRIPTION_TIER_ENTERPRISE",
            "SUBSCRIPTION_TIER_ENTERPRISE_EMERGING",
            "SUBSCRIPTION_TIER_EDU",
            "SUBSCRIPTION_TIER_EDU_PRO",
            "SUBSCRIPTION_TIER_EDU_EMERGING",
            "SUBSCRIPTION_TIER_EDU_PRO_EMERGING",
            "SUBSCRIPTION_TIER_FRONTLINE_STARTER",
            "SUBSCRIPTION_TIER_CONSUMPTION_ONLY",
            "SUBSCRIPTION_TIER_EDU_GOV_EMERGING"
          ],
          "description": "Required. Subscription tier information for the license config."
        },
        "startDate": {
          "$ref": "#/$defs/GoogleTypeDate",
          "description": "Required. The start date."
        },
        "freeTrial": {
          "type": "boolean",
          "description": "Optional. Whether the license config is for free trial."
        },
        "autoRenew": {
          "description": "Optional. Whether the license config should be auto renewed when it reaches the end date.",
          "type": "boolean"
        },
        "earlyTerminated": {
          "readOnly": true,
          "description": "Output only. Indication of whether the subscription is terminated earlier than the expiration date.",
          "type": "boolean"
        },
        "state": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "EXPIRED",
            "NOT_STARTED",
            "WITHDRAWN",
            "DEACTIVATING"
          ],
          "description": "Output only. The state of the license config."
        },
        "earlyTerminationDate": {
          "$ref": "#/$defs/GoogleTypeDate",
          "description": "Output only. The date when the subscription is terminated earlier than the expiration date."
        }
      }
    },
    "GoogleTypeDate": {
      "properties": {
        "day": {
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
          "type": "integer",
          "format": "int32"
        },
        "month": {
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
          "type": "integer",
          "format": "int32"
        },
        "year": {
          "type": "integer",
          "format": "int32",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year."
        }
      },
      "type": "object",
      "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp"
    }
  }
}