Skip to content

[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 into
apache:camel-4.14.xfrom
oscerd:backport/23467-to-camel-4.14.x
May 28, 2026

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 27, 2026

Backports the camel-google-functions and camel-google-secret-manager portions of #23467 to camel-4.14.x. The original PR also renamed camel-google-vision, camel-google-text-to-speech and camel-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 3addcc5d1 with three adaptations:

  1. docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoccamel-4x-upgrade-guide-4_14.adoc (the 4_21 file does not exist on 4.14.x).
  2. Vision / text-to-speech / speech-to-text deletions surfaced by the cherry-pick were git rm-ed because the components are absent on 4.14.x.
  3. Upgrade-guide section title trimmed to mention only the two surviving components, with a NOTE about the absent ones.

Summary

Constant Previous value New value
GoogleCloudFunctionsConstants.OPERATION GoogleCloudFunctionsOperation CamelGoogleCloudFunctionsOperation
GoogleCloudFunctionsConstants.ENTRY_POINT GoogleCloudFunctionsEntryPoint CamelGoogleCloudFunctionsEntryPoint
GoogleCloudFunctionsConstants.RUNTIME GoogleCloudFunctionsRuntime CamelGoogleCloudFunctionsRuntime
GoogleCloudFunctionsConstants.SOURCE_ARCHIVE_URL GoogleCloudFunctionsSourceArchiveUrl CamelGoogleCloudFunctionsSourceArchiveUrl
GoogleCloudFunctionsConstants.RESPONSE_OBJECT GoogleCloudFunctionsResponseObject CamelGoogleCloudFunctionsResponseObject
GoogleSecretManagerConstants.OPERATION GoogleSecretManagerOperation CamelGoogleSecretManagerOperation

GoogleSecretManagerConstants.SECRET_ID, VERSION_ID and REPLICATION were already Camel-prefixed and are unchanged.

mvn test passes for both modules on 4.14.x.

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

@oscerd oscerd force-pushed the backport/23467-to-camel-4.14.x branch from ec43756 to 9d3bf1c Compare May 28, 2026 08:48
…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>
@oscerd oscerd force-pushed the backport/23467-to-camel-4.14.x branch from 9d3bf1c to 23ff741 Compare May 28, 2026 15:05
@oscerd oscerd merged commit ae77346 into apache:camel-4.14.x May 28, 2026
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.

2 participants