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.
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.
licenseCountstring (int64)Required. Number of licenses purchased.
startDateobjectRequired. The start date. (id: GoogleTypeDate)
statestringOutput only. The state of the license config.
subscriptionTermstringRequired. Subscription term.
subscriptionTierstringRequired. Subscription tier information for the license config.

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_createinsertprojectsId, locationsIdlicenseConfigIdCreates a LicenseConfig
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
licenseConfigIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a LicenseConfig.

SELECT
name,
autoRenew,
endDate,
freeTrial,
geminiBundle,
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

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

UPDATE examples

Updates the LicenseConfig

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