Skip to content

feat: google ces deployment Add missing securitySettings fields to we…#1316

Merged
modular-magician merged 1 commit into
terraform-google-modules:masterfrom
modular-magician:downstream-pr-0eb17e0727b490bf2b513d9c66a9244b4fb506ff
May 14, 2026
Merged

feat: google ces deployment Add missing securitySettings fields to we…#1316
modular-magician merged 1 commit into
terraform-google-modules:masterfrom
modular-magician:downstream-pr-0eb17e0727b490bf2b513d9c66a9244b4fb506ff

Conversation

@modular-magician
Copy link
Copy Markdown
Collaborator

Add missing securitySettings fields to webWidgetConfig in ces_deployment

This PR adds missing fields to web_widget_config in the google_ces_deployment resource to match the REST API, and fixes some discrepancies in existing fields.

Documentation

https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/rest/v1/ChannelProfile#ChannelProfile.WebWidgetConfig

Rationale

The web_widget_config in google_ces_deployment had limited support compared to the REST API. Specifically, securitySettings and its sub-fields were missing, which are needed for configuring allowed origins and reCAPTCHA.

Technical Details

  • Added Fields: Added securitySettings with enablePublicAccess, enableOriginCheck, allowedOrigins, and enableRecaptcha to Deployment.yaml.
  • Fixed Discrepancies:
    • Updated channelType to include missing values: FIVE9 and CONTACT_CENTER_INTEGRATION.
    • Updated modality to use MODALITY_UNSPECIFIED and add CHAT_VOICE_AND_VIDEO.
    • Updated theme to use THEME_UNSPECIFIED.
  • Boolean Handling: Used send_empty_value: true for boolean fields to ensure false values are propagated to the API.
  • Testing:
    • Created a new example file ces_deployment_full.tf.tmpl to showcase the new fields.
    • Updated ces_deployment_test.go to include update tests for the new fields, specifically testing toggling from true to false.

Verification Results

  • Code generation successful for both GA and Beta.
  • Acceptance tests passed successfully in both GA and Beta providers.
  • Manual verification in a test project confirmed that the fields are correctly stored in the backend.
ces: added `security_settings` field to `google_ces_deployment` resource
ces: updated supported values for `channel_type`, `modality`, and `theme` in `google_ces_deployment`

Derived from GoogleCloudPlatform/magic-modules#17566

…… (#17566)

[upstream:0eb17e0727b490bf2b513d9c66a9244b4fb506ff]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit c9d457c into terraform-google-modules:master May 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant