[backport camel-4.14.x] CAMEL-23583: camel-google-functions + camel-google-secret-manager - align Exchange header constant names with Camel naming convention#23572
Merged
oscerd merged 1 commit intoMay 28, 2026
Conversation
davsclaus
approved these changes
May 27, 2026
ec43756 to
9d3bf1c
Compare
…eech,speech-to-text} - align Exchange header constant names with Camel naming convention (apache#23467) Renames the Exchange header string values in the Google Cloud component constants from their GoogleCloud<Service> / GoogleSecretManager prefixes (which are outside the Camel namespace and therefore not filtered by the default HeaderFilterStrategy) to CamelGoogle<Service><Name>, following the convention used across the rest of the Camel component catalog and matching the pattern established in CAMEL-23526 (camel-cxf), CAMEL-23522 (camel-mail), CAMEL-23461 (camel-aws-bedrock), CAMEL-23532 (camel-vertx-websocket / camel-atmosphere-websocket / camel-iggy), and CAMEL-23576 (camel-jira). Renamed values: - GoogleCloudFunctions: OPERATION, ENTRY_POINT, RUNTIME, SOURCE_ARCHIVE_URL, RESPONSE_OBJECT - GoogleSecretManager: OPERATION (SECRET_ID, VERSION_ID, REPLICATION were already Camel-prefixed) - GoogleCloudVision: OPERATION, RESPONSE_OBJECT - GoogleCloudTextToSpeech: OPERATION, RESPONSE_OBJECT - GoogleCloudSpeechToText: OPERATION, RESPONSE_OBJECT The Java field names are unchanged so routes referencing the constants symbolically continue to work; routes using the literal string values must be updated (documented in the 4.21 upgrade guide). The generated Endpoint DSL header accessor names are unchanged (the Camel prefix is stripped when deriving the accessor name); the accessors now return the new values. All existing tests use symbolic constant references and continue to pass. Tracker: CAMEL-23577 Reported by Claude Code on behalf of Andrea Cosentino Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
9d3bf1c to
23ff741
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports the camel-google-functions and camel-google-secret-manager portions of #23467 to
camel-4.14.x. The original PR also renamedcamel-google-vision,camel-google-text-to-speechandcamel-google-speech-to-text, but those components were added after the 4.14.x branch point and do NOT exist on this branch — the backport is scoped down to the two components that exist (same approach as the 4.18.x backport #23539).Cherry-pick of merge commit
3addcc5d1with three adaptations:docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc→camel-4x-upgrade-guide-4_14.adoc(the 4_21 file does not exist on 4.14.x).git rm-ed because the components are absent on 4.14.x.Summary
GoogleCloudFunctionsConstants.OPERATIONGoogleCloudFunctionsOperationCamelGoogleCloudFunctionsOperationGoogleCloudFunctionsConstants.ENTRY_POINTGoogleCloudFunctionsEntryPointCamelGoogleCloudFunctionsEntryPointGoogleCloudFunctionsConstants.RUNTIMEGoogleCloudFunctionsRuntimeCamelGoogleCloudFunctionsRuntimeGoogleCloudFunctionsConstants.SOURCE_ARCHIVE_URLGoogleCloudFunctionsSourceArchiveUrlCamelGoogleCloudFunctionsSourceArchiveUrlGoogleCloudFunctionsConstants.RESPONSE_OBJECTGoogleCloudFunctionsResponseObjectCamelGoogleCloudFunctionsResponseObjectGoogleSecretManagerConstants.OPERATIONGoogleSecretManagerOperationCamelGoogleSecretManagerOperationGoogleSecretManagerConstants.SECRET_ID,VERSION_IDandREPLICATIONwere alreadyCamel-prefixed and are unchanged.mvn testpasses for both modules on 4.14.x.Tracker: CAMEL-23577
Reported by Claude Code on behalf of Andrea Cosentino