k-krawczyk opened a new pull request, #30767: URL: https://github.com/apache/camel/pull/30767
https://issues.apache.org/jira/browse/CAMEL-27409 Follow-up to an optional review point on #30260 (CAMEL-27092). Seven Alibaba components have a header that replaces the operation option. The option listed its values in the catalog and the header did not. This PR adds the same `enums` to the `OPERATION` constant of each `headersClass`: | Component | Header | Values | |---|---|---| | alibaba-eventbridge | CamelAlibabaEventBridgeOperation | putEvents | | alibaba-fc | CamelAlibabaFcOperation | invokeFunction, getFunction | | alibaba-kms | CamelAlibabaKmsOperation | encrypt, decrypt, generateDataKey | | alibaba-mns | CamelAlibabaMnsOperation | sendMessage, deleteMessage, publishMessage | | alibaba-ots | CamelAlibabaOtsOperation | putRow, getRow, updateRow, deleteRow, listTables | | alibaba-sls | CamelAlibabaSlsOperation | putLogs, getLogs, listLogStores | | alibaba-sms | CamelAlibabaSmsOperation | sendSms | Each list matches the option's enums and the producer switch. For alibaba-mns, receiveMessage is left out because the producer rejects it, as the option already does. The `keySpec` option of alibaba-kms and the `CamelAlibabaKmsKeySpec` header now list `AES_256` and `AES_128`. These are the two values the descriptions already named, and the two that KMS GenerateDataKey accepts. The operation constants are Strings rather than a Java enum, so this uses `enums` on `@Metadata`, as camel-minio does for `CamelMinioOperation`. The resulting catalog JSON has the same shape as aws2-athena and azure-storage-blob. Only the catalog changes: - the generated configurer is unchanged - Camel does not check endpoint option or header values against their enums at runtime; an endpoint with `keySpec=AES_512` still starts - the endpoint DSL does not render enum values So there is no upgrade-guide entry. The catalog copies of the seven component JSON files are synced. alibaba-oss is left out (CAMEL-27388). Build: `./mvnw install -Psourcecheck -pl` on the seven modules, all tests pass. _Reported by Claude Code on behalf of Karol Krawczyk_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
