Skip to content

discoveryengine: add missing subscription_tier enum values - #20050

Open
Cyclenerd wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Cyclenerd:discovery_engine_license_config
Open

Cyclenerd wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Cyclenerd:discovery_engine_license_config

Conversation

@Cyclenerd

Copy link
Copy Markdown

Adds the missing values to the subscription_tier field of google_discovery_engine_license_config so it accepts every tier the Discovery Engine API supports. Right now, setting a tier such as SUBSCRIPTION_TIER_ENTERPRISE_EMERGING fails at plan time with an expected subscription_tier to be one of [...] error, even though the API accepts it.

The following values from the SubscriptionTier API reference were added to mmv1/products/discoveryengine/LicenseConfig.yaml, in the same order as the API docs:

  • SUBSCRIPTION_TIER_ENTERPRISE_EMERGING
  • SUBSCRIPTION_TIER_EDU_EMERGING
  • SUBSCRIPTION_TIER_EDU_PRO_EMERGING
  • SUBSCRIPTION_TIER_FRONTLINE_STARTER
  • SUBSCRIPTION_TIER_CONSUMPTION_ONLY
  • SUBSCRIPTION_TIER_EDU_GOV_EMERGING

The enum now matches the API's full list of 16 values.

Breaking changes: None. The change only adds allowed values to the client-side enum validation, so every existing configuration stays valid.

Versions: The field already exists in both the google and google-beta providers, so the change applies to both.

Tests: No acceptance test was added. The resource's only generated example sets exclude_test: true because creating license configs at the project level is deprecated for Gemini Enterprise, so this resource can't currently be created in the test environment. The change only adds enum values; there is no new schema, expand/flatten or custom code. Generated code was checked locally: ValidateEnum and the field documentation in resource_discovery_engine_license_config.go list all the new values.

Documentation: Field documentation is generated from the YAML, and the "Possible values" list updates automatically.

Fixes hashicorp/terraform-provider-google#30632

discoveryengine: added `SUBSCRIPTION_TIER_ENTERPRISE_EMERGING`, `SUBSCRIPTION_TIER_EDU_EMERGING`, `SUBSCRIPTION_TIER_EDU_PRO_EMERGING`, `SUBSCRIPTION_TIER_FRONTLINE_STARTER`, `SUBSCRIPTION_TIER_CONSUMPTION_ONLY`, and `SUBSCRIPTION_TIER_EDU_GOV_EMERGING` as supported values for `subscription_tier` in `google_discovery_engine_license_config` resource

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Nov 9, 2026
@github-actions
github-actions Bot requested a review from slevenick November 9, 2026 09:20
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google_discovery_engine_license_config: missing subscription_tier enum values (e.g. SUBSCRIPTION_TIER_ENTERPRISE_EMERGING)

2 participants