Skip to main content

license_configs

Creates, updates, deletes, gets or lists a license_configs resource.

Overview

Namelicense_configs
TypeResource
Idgoogle.discoveryengine.license_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringImmutable. Identifier. The fully qualified resource name of the license config. Format: projects/{project}/locations/{location}/licenseConfigs/{license_config}
autoRenewbooleanOptional. Whether the license config should be auto renewed when it reaches the end date.
earlyTerminatedbooleanOutput only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.
earlyTerminationDateobjectOutput only. The date when the subscription is terminated earlier than the expiration date. (id: GoogleTypeDate)
endDateobjectOptional. The planed end date. (id: GoogleTypeDate)
freeTrialbooleanOptional. Whether the license config is for free trial.
geminiBundlebooleanOutput only. Whether the license config is for Gemini bundle.
lastUserUpdateTimestring (google-datetime)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.).
licenseCountstring (int64)Required. Number of licenses purchased.
startDateobjectRequired. The start date. (id: GoogleTypeDate)
statestringOutput only. The state of the license config. (STATE_UNSPECIFIED, ACTIVE, EXPIRED, NOT_STARTED, WITHDRAWN, DEACTIVATING)
subscriptionTermstringRequired. Subscription term. (SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_CUSTOM)
subscriptionTierstringRequired. Subscription tier information for the license config. (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)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_license_configs_getselectprojectsId, locationsId, licenseConfigsIdGets a LicenseConfig.
projects_locations_license_configs_listselectprojectsId, locationsIdpageToken, filter, pageSizeLists all the LicenseConfigs associated with the project.
projects_locations_license_configs_createinsertprojectsId, locationsIdlicenseConfigIdCreates a LicenseConfig This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.
projects_locations_license_configs_patchupdateprojectsId, locationsId, licenseConfigsIdupdateMaskUpdates the LicenseConfig

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
licenseConfigsIdstring
locationsIdstring
projectsIdstring
filterstring
licenseConfigIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a LicenseConfig.

SELECT
name,
autoRenew,
earlyTerminated,
earlyTerminationDate,
endDate,
freeTrial,
geminiBundle,
lastUserUpdateTime,
licenseCount,
startDate,
state,
subscriptionTerm,
subscriptionTier
FROM google.discoveryengine.license_configs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND licenseConfigsId = '{{ licenseConfigsId }}' -- required
;

INSERT examples

Creates a LicenseConfig This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

INSERT INTO google.discoveryengine.license_configs (
data__subscriptionTerm,
data__autoRenew,
data__freeTrial,
data__name,
data__licenseCount,
data__subscriptionTier,
data__endDate,
data__startDate,
data__lastUserUpdateTime,
projectsId,
locationsId,
licenseConfigId
)
SELECT
'{{ subscriptionTerm }}',
{{ autoRenew }},
{{ freeTrial }},
'{{ name }}',
'{{ licenseCount }}',
'{{ subscriptionTier }}',
'{{ endDate }}',
'{{ startDate }}',
'{{ lastUserUpdateTime }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ licenseConfigId }}'
RETURNING
name,
autoRenew,
earlyTerminated,
earlyTerminationDate,
endDate,
freeTrial,
geminiBundle,
lastUserUpdateTime,
licenseCount,
startDate,
state,
subscriptionTerm,
subscriptionTier
;

UPDATE examples

Updates the LicenseConfig

UPDATE google.discoveryengine.license_configs
SET
data__subscriptionTerm = '{{ subscriptionTerm }}',
data__autoRenew = {{ autoRenew }},
data__freeTrial = {{ freeTrial }},
data__name = '{{ name }}',
data__licenseCount = '{{ licenseCount }}',
data__subscriptionTier = '{{ subscriptionTier }}',
data__endDate = '{{ endDate }}',
data__startDate = '{{ startDate }}',
data__lastUserUpdateTime = '{{ lastUserUpdateTime }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND licenseConfigsId = '{{ licenseConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
autoRenew,
earlyTerminated,
earlyTerminationDate,
endDate,
freeTrial,
geminiBundle,
lastUserUpdateTime,
licenseCount,
startDate,
state,
subscriptionTerm,
subscriptionTier;