This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3a7c8203d694ffaeea4b0eeb9b24c990db7635d0 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 15:03:05 2026 +0100 CAMEL-23832: camel-ibm-watsonx-data - improve the component and option descriptions This commit rewrites the component description, the texts of 9 options (7 shared by the component and the endpoint) and of all 14 headers of ibm-watsonx-data. The texts now say which operations read each value and which header overrides it. The serviceUrl example pointed at /lakehouse/api/v2, while SDK 0.9.0 calls the v3 API. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-ibm-watsonx-data is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../camel/catalog/components/ibm-watsonx-data.json | 62 ++++++------ .../catalog/docs/ibm-watsonx-data-component.adoc | 2 +- .../ibm/watsonx/data/ibm-watsonx-data.json | 62 ++++++------ .../src/main/docs/ibm-watsonx-data-component.adoc | 2 +- .../ibm/watsonx/data/WatsonxDataComponent.java | 6 +- .../ibm/watsonx/data/WatsonxDataConfiguration.java | 34 +++++-- .../ibm/watsonx/data/WatsonxDataConstants.java | 51 +++++++--- .../ibm/watsonx/data/WatsonxDataEndpoint.java | 4 +- .../component/ComponentsBuilderFactory.java | 4 +- .../dsl/IbmWatsonxDataComponentBuilderFactory.java | 46 ++++++--- .../builder/endpoint/EndpointHeaderBuilders.java | 4 +- .../builder/endpoint/StaticEndpointBuilders.java | 14 +-- .../dsl/WatsonxDataEndpointBuilderFactory.java | 104 ++++++++++++++------- tasks/component-descriptions.md | 2 +- 14 files changed, 245 insertions(+), 152 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watsonx-data.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watsonx-data.json index eb85a4db4688..08b47951a8ac 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watsonx-data.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watsonx-data.json @@ -3,7 +3,7 @@ "kind": "component", "name": "ibm-watsonx-data", "title": "IBM watsonx.data", - "description": "Interact with IBM watsonx.data lakehouse for catalog, schema, table, and engine management.", + "description": "Manage the catalogs, schemas, tables, engines and storage registrations of an IBM watsonx.data lakehouse.", "deprecated": false, "firstVersion": "4.19.0", "label": "cloud,database", @@ -24,48 +24,48 @@ "remote": true }, "componentProperties": { - "authInstanceId": { "index": 0, "kind": "property", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data instance CRN for API authorization" }, - "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data service URL (e.g., https:\/\/region.lakehouse.cloud.ibm.com\/lakehouse\/api\/v2)" }, - "catalogName": { "index": 2, "kind": "property", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The catalog name for catalog, schema, and table operations" }, - "configuration": { "index": 3, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configuration" }, - "engineId": { "index": 4, "kind": "property", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The engine ID for engine operations and schema\/table queries" }, + "authInstanceId": { "index": 0, "kind": "property", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the watsonx.data instance (on IBM Cloud, the CRN of the instance), sent in th [...] + "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The base URL of the watsonx.data REST API, to which the IBM SDK appends the resource paths, for e [...] + "catalogName": { "index": 2, "kind": "property", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the catalog for getCatalog, deleteCatalog, getAllColumns and the schema and ta [...] + "configuration": { "index": 3, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration that the endpoints share. Each endpoint starts from a copy of it, and its URI options override the copied values." }, + "engineId": { "index": 4, "kind": "property", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the engine that the schema and table operations, except registerTable, run on, and of [...] "lazyStartProducer": { "index": 5, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "operation": { "index": 6, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngin [...] - "schemaName": { "index": 7, "kind": "property", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The schema name for schema and table operations" }, + "operation": { "index": 6, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngin [...] + "schemaName": { "index": 7, "kind": "property", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the schema for deleteSchema and the table operations, except registerTable; getA [...] "autowiredEnabled": { "index": 8, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...] - "apiKey": { "index": 9, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for an access [...] + "apiKey": { "index": 9, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token that is s [...] "oauthProfile": { "index": 10, "kind": "property", "displayName": "Oauth Profile", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "OAuth profile name for obtaining an access token via the OAuth 2.0 Client Credentials g [...] }, "headers": { - "CamelIBMWatsonxDataOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngines", "getPrestis [...] - "CamelIBMWatsonxDataCatalogName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The catalog name", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_NAME" }, - "CamelIBMWatsonxDataSchemaName": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The schema name", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_NAME" }, - "CamelIBMWatsonxDataCustomPath": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The custom path for schema creation", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CUSTOM_PATH" }, - "CamelIBMWatsonxDataTableName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The table name", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#TABLE_NAME" }, - "CamelIBMWatsonxDataMetadataLocation": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The metadata location for table registration (e.g., S3 path to Iceberg metadata)", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#METADATA_LOCATION" }, - "CamelIBMWatsonxDataCatalogId": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The catalog ID for table registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_ID" }, - "CamelIBMWatsonxDataSchemaId": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The schema ID for table registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_ID" }, - "CamelIBMWatsonxDataEngineId": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The engine ID", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#ENGINE_ID" }, - "CamelIBMWatsonxDataStorageDescription": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage description for registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DESCRIPTION" }, - "CamelIBMWatsonxDataStorageDisplayName": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage display name for registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DISPLAY_NAME" }, - "CamelIBMWatsonxDataStorageManagedBy": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage managed by value (e.g., ibm, customer)", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_MANAGED_BY" }, - "CamelIBMWatsonxDataStorageType": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage type (e.g., ibm_cos, aws_s3, google_cs)", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_TYPE" }, - "CamelIBMWatsonxDataAuthInstanceId": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The auth instance ID for watsonx.data API calls", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#AUTH_INSTANCE_ID" } + "CamelIBMWatsonxDataOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngines", "getPrestis [...] + "CamelIBMWatsonxDataCatalogName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the catalog. Overrides the catalogName option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_NAME" }, + "CamelIBMWatsonxDataSchemaName": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the schema. Overrides the schemaName option. createSchema takes the name of the new schema from this header only.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_NAME" }, + "CamelIBMWatsonxDataCustomPath": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path within the storage bucket where createSchema creates the schema. Required for createSchema.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CUSTOM_PATH" }, + "CamelIBMWatsonxDataTableName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the table. Required for getTable, deleteTable, updateTable and registerTable; getAllColumns returns only the columns of this table. There is no option for it.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#T [...] + "CamelIBMWatsonxDataMetadataLocation": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The location of the metadata file of the table that registerTable registers, for example the S3 path of an Iceberg metadata file. Required for registerTable.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#METADAT [...] + "CamelIBMWatsonxDataCatalogId": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the catalog that registerTable registers the table in. Required for registerTable, which ignores the catalogName option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_ID" }, + "CamelIBMWatsonxDataSchemaId": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the schema that registerTable registers the table in. Required for registerTable, which ignores the schemaName option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_ID" }, + "CamelIBMWatsonxDataEngineId": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the engine. Overrides the engineId option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#ENGINE_ID" }, + "CamelIBMWatsonxDataStorageDescription": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The description of the storage that createStorageRegistration registers. Required for createStorageRegistration.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DESCRIPTION" }, + "CamelIBMWatsonxDataStorageDisplayName": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The display name of the storage that createStorageRegistration registers. Required for createStorageRegistration.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DISPLAY_NAME" }, + "CamelIBMWatsonxDataStorageManagedBy": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Who manages the storage that createStorageRegistration registers: ibm or customer. Required for createStorageRegistration.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_MANAGED_BY" }, + "CamelIBMWatsonxDataStorageType": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The type of the storage that createStorageRegistration registers, such as ibm_cos, aws_s3, s3, minio, ibm_ceph, adls_gen1, adls_gen2, google_cs, ozone or ibm_storage_scale. Required for createStorageRegistration.", "constantName": "org.apache.camel.comp [...] + "CamelIBMWatsonxDataAuthInstanceId": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the watsonx.data instance, sent in the AuthInstanceId HTTP header. Overrides the authInstanceId option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#AUTH_INSTANCE_ID" } }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "byOption": [ { "option": "operation", "value": "updateTable", "carriers": [ "map", "text", "bytes", "stream", "file" ] } ], "description": "Only updateTable reads the body: the patch of the table, as a Map or as a JSON object in text, bytes, a stream or a file, sent as a JSON merge patch. No body, an empty patch or a body that is not a JSON object fails. The other operations take their input from the options and headers" }, "producerOut": { "carriers": [ "pojo" ], "byOption": [ { "option": "operation", "value": "deleteCatalog", "carriers": [ "null" ] }, { "option": "operation", "value": "deleteSchema", "carriers": [ "null" ] }, { "option": "operation", "value": "deleteTable", "carriers": [ "null" ] } ], "description": "The response of the IBM watsonx.data SDK, such as a CatalogCollection for listCatalogs or a Table for getTable and updateTable; converted to text, it is its JSON. The delete operations se [...] }, "properties": { - "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Logical name for the endpoint" }, - "authInstanceId": { "index": 1, "kind": "parameter", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data instance CRN for API authorization" }, - "serviceUrl": { "index": 2, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data service URL (e.g., https:\/\/region.lakehouse.cloud.ibm.com\/lakehouse\/api\/v2)" }, - "catalogName": { "index": 3, "kind": "parameter", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The catalog name for catalog, schema, and table operations" }, - "engineId": { "index": 4, "kind": "parameter", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The engine ID for engine operations and schema\/table queries" }, - "operation": { "index": 5, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngi [...] - "schemaName": { "index": 6, "kind": "parameter", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The schema name for schema and table operations" }, + "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "A logical name of your choice for the endpoint. It is not sent to watsonx.data." }, + "authInstanceId": { "index": 1, "kind": "parameter", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the watsonx.data instance (on IBM Cloud, the CRN of the instance), sent in t [...] + "serviceUrl": { "index": 2, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The base URL of the watsonx.data REST API, to which the IBM SDK appends the resource paths, for [...] + "catalogName": { "index": 3, "kind": "parameter", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the catalog for getCatalog, deleteCatalog, getAllColumns and the schema and t [...] + "engineId": { "index": 4, "kind": "parameter", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the engine that the schema and table operations, except registerTable, run on, and of [...] + "operation": { "index": 5, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngi [...] + "schemaName": { "index": 6, "kind": "parameter", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the schema for deleteSchema and the table operations, except registerTable; get [...] "lazyStartProducer": { "index": 7, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "apiKey": { "index": 8, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for an access [...] + "apiKey": { "index": 8, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token that is [...] "oauthProfile": { "index": 9, "kind": "parameter", "displayName": "Oauth Profile", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "OAuth profile name for obtaining an access token via the OAuth 2.0 Client Credentials g [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watsonx-data-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watsonx-data-component.adoc index b7df2f9c00e1..4da51a6026fa 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watsonx-data-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watsonx-data-component.adoc @@ -2,7 +2,7 @@ :doctitle: IBM watsonx.data :shortname: ibm-watsonx-data :artifactid: camel-ibm-watsonx-data -:description: Interact with IBM watsonx.data lakehouse for catalog, schema, table, and engine management. +:description: Manage the catalogs, schemas, tables, engines and storage registrations of an IBM watsonx.data lakehouse. :since: 4.19 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-ibm/camel-ibm-watsonx-data/src/generated/resources/META-INF/org/apache/camel/component/ibm/watsonx/data/ibm-watsonx-data.json b/components/camel-ibm/camel-ibm-watsonx-data/src/generated/resources/META-INF/org/apache/camel/component/ibm/watsonx/data/ibm-watsonx-data.json index eb85a4db4688..08b47951a8ac 100644 --- a/components/camel-ibm/camel-ibm-watsonx-data/src/generated/resources/META-INF/org/apache/camel/component/ibm/watsonx/data/ibm-watsonx-data.json +++ b/components/camel-ibm/camel-ibm-watsonx-data/src/generated/resources/META-INF/org/apache/camel/component/ibm/watsonx/data/ibm-watsonx-data.json @@ -3,7 +3,7 @@ "kind": "component", "name": "ibm-watsonx-data", "title": "IBM watsonx.data", - "description": "Interact with IBM watsonx.data lakehouse for catalog, schema, table, and engine management.", + "description": "Manage the catalogs, schemas, tables, engines and storage registrations of an IBM watsonx.data lakehouse.", "deprecated": false, "firstVersion": "4.19.0", "label": "cloud,database", @@ -24,48 +24,48 @@ "remote": true }, "componentProperties": { - "authInstanceId": { "index": 0, "kind": "property", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data instance CRN for API authorization" }, - "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data service URL (e.g., https:\/\/region.lakehouse.cloud.ibm.com\/lakehouse\/api\/v2)" }, - "catalogName": { "index": 2, "kind": "property", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The catalog name for catalog, schema, and table operations" }, - "configuration": { "index": 3, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configuration" }, - "engineId": { "index": 4, "kind": "property", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The engine ID for engine operations and schema\/table queries" }, + "authInstanceId": { "index": 0, "kind": "property", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the watsonx.data instance (on IBM Cloud, the CRN of the instance), sent in th [...] + "serviceUrl": { "index": 1, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The base URL of the watsonx.data REST API, to which the IBM SDK appends the resource paths, for e [...] + "catalogName": { "index": 2, "kind": "property", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the catalog for getCatalog, deleteCatalog, getAllColumns and the schema and ta [...] + "configuration": { "index": 3, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration that the endpoints share. Each endpoint starts from a copy of it, and its URI options override the copied values." }, + "engineId": { "index": 4, "kind": "property", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the engine that the schema and table operations, except registerTable, run on, and of [...] "lazyStartProducer": { "index": 5, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "operation": { "index": 6, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngin [...] - "schemaName": { "index": 7, "kind": "property", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The schema name for schema and table operations" }, + "operation": { "index": 6, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngin [...] + "schemaName": { "index": 7, "kind": "property", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the schema for deleteSchema and the table operations, except registerTable; getA [...] "autowiredEnabled": { "index": 8, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...] - "apiKey": { "index": 9, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for an access [...] + "apiKey": { "index": 9, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token that is s [...] "oauthProfile": { "index": 10, "kind": "property", "displayName": "Oauth Profile", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "OAuth profile name for obtaining an access token via the OAuth 2.0 Client Credentials g [...] }, "headers": { - "CamelIBMWatsonxDataOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngines", "getPrestis [...] - "CamelIBMWatsonxDataCatalogName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The catalog name", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_NAME" }, - "CamelIBMWatsonxDataSchemaName": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The schema name", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_NAME" }, - "CamelIBMWatsonxDataCustomPath": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The custom path for schema creation", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CUSTOM_PATH" }, - "CamelIBMWatsonxDataTableName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The table name", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#TABLE_NAME" }, - "CamelIBMWatsonxDataMetadataLocation": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The metadata location for table registration (e.g., S3 path to Iceberg metadata)", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#METADATA_LOCATION" }, - "CamelIBMWatsonxDataCatalogId": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The catalog ID for table registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_ID" }, - "CamelIBMWatsonxDataSchemaId": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The schema ID for table registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_ID" }, - "CamelIBMWatsonxDataEngineId": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The engine ID", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#ENGINE_ID" }, - "CamelIBMWatsonxDataStorageDescription": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage description for registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DESCRIPTION" }, - "CamelIBMWatsonxDataStorageDisplayName": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage display name for registration", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DISPLAY_NAME" }, - "CamelIBMWatsonxDataStorageManagedBy": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage managed by value (e.g., ibm, customer)", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_MANAGED_BY" }, - "CamelIBMWatsonxDataStorageType": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The storage type (e.g., ibm_cos, aws_s3, google_cs)", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_TYPE" }, - "CamelIBMWatsonxDataAuthInstanceId": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The auth instance ID for watsonx.data API calls", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#AUTH_INSTANCE_ID" } + "CamelIBMWatsonxDataOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngines", "getPrestis [...] + "CamelIBMWatsonxDataCatalogName": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the catalog. Overrides the catalogName option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_NAME" }, + "CamelIBMWatsonxDataSchemaName": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the schema. Overrides the schemaName option. createSchema takes the name of the new schema from this header only.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_NAME" }, + "CamelIBMWatsonxDataCustomPath": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The path within the storage bucket where createSchema creates the schema. Required for createSchema.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CUSTOM_PATH" }, + "CamelIBMWatsonxDataTableName": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the table. Required for getTable, deleteTable, updateTable and registerTable; getAllColumns returns only the columns of this table. There is no option for it.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#T [...] + "CamelIBMWatsonxDataMetadataLocation": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The location of the metadata file of the table that registerTable registers, for example the S3 path of an Iceberg metadata file. Required for registerTable.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#METADAT [...] + "CamelIBMWatsonxDataCatalogId": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the catalog that registerTable registers the table in. Required for registerTable, which ignores the catalogName option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#CATALOG_ID" }, + "CamelIBMWatsonxDataSchemaId": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the schema that registerTable registers the table in. Required for registerTable, which ignores the schemaName option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#SCHEMA_ID" }, + "CamelIBMWatsonxDataEngineId": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the engine. Overrides the engineId option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#ENGINE_ID" }, + "CamelIBMWatsonxDataStorageDescription": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The description of the storage that createStorageRegistration registers. Required for createStorageRegistration.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DESCRIPTION" }, + "CamelIBMWatsonxDataStorageDisplayName": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The display name of the storage that createStorageRegistration registers. Required for createStorageRegistration.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_DISPLAY_NAME" }, + "CamelIBMWatsonxDataStorageManagedBy": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Who manages the storage that createStorageRegistration registers: ibm or customer. Required for createStorageRegistration.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#STORAGE_MANAGED_BY" }, + "CamelIBMWatsonxDataStorageType": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The type of the storage that createStorageRegistration registers, such as ibm_cos, aws_s3, s3, minio, ibm_ceph, adls_gen1, adls_gen2, google_cs, ozone or ibm_storage_scale. Required for createStorageRegistration.", "constantName": "org.apache.camel.comp [...] + "CamelIBMWatsonxDataAuthInstanceId": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the watsonx.data instance, sent in the AuthInstanceId HTTP header. Overrides the authInstanceId option.", "constantName": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConstants#AUTH_INSTANCE_ID" } }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "byOption": [ { "option": "operation", "value": "updateTable", "carriers": [ "map", "text", "bytes", "stream", "file" ] } ], "description": "Only updateTable reads the body: the patch of the table, as a Map or as a JSON object in text, bytes, a stream or a file, sent as a JSON merge patch. No body, an empty patch or a body that is not a JSON object fails. The other operations take their input from the options and headers" }, "producerOut": { "carriers": [ "pojo" ], "byOption": [ { "option": "operation", "value": "deleteCatalog", "carriers": [ "null" ] }, { "option": "operation", "value": "deleteSchema", "carriers": [ "null" ] }, { "option": "operation", "value": "deleteTable", "carriers": [ "null" ] } ], "description": "The response of the IBM watsonx.data SDK, such as a CatalogCollection for listCatalogs or a Table for getTable and updateTable; converted to text, it is its JSON. The delete operations se [...] }, "properties": { - "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Logical name for the endpoint" }, - "authInstanceId": { "index": 1, "kind": "parameter", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data instance CRN for API authorization" }, - "serviceUrl": { "index": 2, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The watsonx.data service URL (e.g., https:\/\/region.lakehouse.cloud.ibm.com\/lakehouse\/api\/v2)" }, - "catalogName": { "index": 3, "kind": "parameter", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The catalog name for catalog, schema, and table operations" }, - "engineId": { "index": 4, "kind": "parameter", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The engine ID for engine operations and schema\/table queries" }, - "operation": { "index": 5, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngi [...] - "schemaName": { "index": 6, "kind": "parameter", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The schema name for schema and table operations" }, + "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "A logical name of your choice for the endpoint. It is not sent to watsonx.data." }, + "authInstanceId": { "index": 1, "kind": "parameter", "displayName": "Auth Instance Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the watsonx.data instance (on IBM Cloud, the CRN of the instance), sent in t [...] + "serviceUrl": { "index": 2, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The base URL of the watsonx.data REST API, to which the IBM SDK appends the resource paths, for [...] + "catalogName": { "index": 3, "kind": "parameter", "displayName": "Catalog Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the catalog for getCatalog, deleteCatalog, getAllColumns and the schema and t [...] + "engineId": { "index": 4, "kind": "parameter", "displayName": "Engine Id", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The ID of the engine that the schema and table operations, except registerTable, run on, and of [...] + "operation": { "index": 5, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations", "enum": [ "listCatalogs", "getCatalog", "deleteCatalog", "listSchemas", "createSchema", "deleteSchema", "listTables", "getTable", "deleteTable", "updateTable", "registerTable", "getAllColumns", "listPrestoEngines", "getPrestoEngine", "listPrestissimoEngi [...] + "schemaName": { "index": 6, "kind": "parameter", "displayName": "Schema Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The name of the schema for deleteSchema and the table operations, except registerTable; get [...] "lazyStartProducer": { "index": 7, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "apiKey": { "index": 8, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for an access [...] + "apiKey": { "index": 8, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token that is [...] "oauthProfile": { "index": 9, "kind": "parameter", "displayName": "Oauth Profile", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration", "configurationField": "configuration", "description": "OAuth profile name for obtaining an access token via the OAuth 2.0 Client Credentials g [...] } } diff --git a/components/camel-ibm/camel-ibm-watsonx-data/src/main/docs/ibm-watsonx-data-component.adoc b/components/camel-ibm/camel-ibm-watsonx-data/src/main/docs/ibm-watsonx-data-component.adoc index b7df2f9c00e1..4da51a6026fa 100644 --- a/components/camel-ibm/camel-ibm-watsonx-data/src/main/docs/ibm-watsonx-data-component.adoc +++ b/components/camel-ibm/camel-ibm-watsonx-data/src/main/docs/ibm-watsonx-data-component.adoc @@ -2,7 +2,7 @@ :doctitle: IBM watsonx.data :shortname: ibm-watsonx-data :artifactid: camel-ibm-watsonx-data -:description: Interact with IBM watsonx.data lakehouse for catalog, schema, table, and engine management. +:description: Manage the catalogs, schemas, tables, engines and storage registrations of an IBM watsonx.data lakehouse. :since: 4.19 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataComponent.java b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataComponent.java index 3c995d0dc902..a4e6eaa7b40a 100644 --- a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataComponent.java +++ b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataComponent.java @@ -29,7 +29,8 @@ import org.apache.camel.support.DefaultComponent; @Component("ibm-watsonx-data") public class WatsonxDataComponent extends DefaultComponent { - @Metadata + @Metadata(description = "The configuration that the endpoints share. Each endpoint starts from a copy of it, and" + + " its URI options override the copied values.") private WatsonxDataConfiguration configuration = new WatsonxDataConfiguration(); public WatsonxDataComponent() { @@ -51,9 +52,6 @@ public class WatsonxDataComponent extends DefaultComponent { return configuration; } - /** - * The component configuration - */ public void setConfiguration(WatsonxDataConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConfiguration.java b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConfiguration.java index bb8762c430f7..022e0f870f70 100644 --- a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConfiguration.java +++ b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConfiguration.java @@ -29,8 +29,9 @@ public class WatsonxDataConfiguration implements Cloneable { // Authentication @UriParam(label = "security", security = "secret", - description = "IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for an access token. Required" - + " unless oauthProfile is set.") + description = "The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token that is sent to" + + " watsonx.data. Required unless oauthProfile is set; when both are set, oauthProfile is" + + " used.") private String apiKey; @UriParam(label = "security", @@ -42,28 +43,45 @@ public class WatsonxDataConfiguration implements Cloneable { // Connection @UriParam(label = "common", - description = "The watsonx.data service URL (e.g., https://region.lakehouse.cloud.ibm.com/lakehouse/api/v2)") + description = "The base URL of the watsonx.data REST API, to which the IBM SDK appends the resource paths," + + " for example https://us-south.lakehouse.cloud.ibm.com/lakehouse/api/v3. The endpoint does" + + " not start without it.") @Metadata(required = true) private String serviceUrl; // Operation - @UriParam(label = "producer", description = "The operation to perform") + @UriParam(label = "producer", + description = "The operation to perform. The CamelIBMWatsonxDataOperation header overrides it; when neither" + + " is set, the exchange fails.") private WatsonxDataOperations operation; // Catalog - @UriParam(label = "producer", description = "The catalog name for catalog, schema, and table operations") + @UriParam(label = "producer", + description = "The name of the catalog for getCatalog, deleteCatalog, getAllColumns and the schema and" + + " table operations, except registerTable, which takes the catalog ID header instead. The" + + " CamelIBMWatsonxDataCatalogName header overrides it.") private String catalogName; // Schema - @UriParam(label = "producer", description = "The schema name for schema and table operations") + @UriParam(label = "producer", + description = "The name of the schema for deleteSchema and the table operations, except registerTable;" + + " getAllColumns returns only the columns of this schema. The" + + " CamelIBMWatsonxDataSchemaName header overrides it. createSchema ignores this option and" + + " takes the name of the new schema from the header only.") private String schemaName; // Engine - @UriParam(label = "producer", description = "The engine ID for engine operations and schema/table queries") + @UriParam(label = "producer", + description = "The ID of the engine that the schema and table operations, except registerTable, run on," + + " and of the engine that getPrestoEngine and getPrestissimoEngine return. The" + + " CamelIBMWatsonxDataEngineId header overrides it.") private String engineId; // Auth Instance ID - @UriParam(label = "common", description = "The watsonx.data instance CRN for API authorization") + @UriParam(label = "common", + description = "The ID of the watsonx.data instance (on IBM Cloud, the CRN of the instance), sent in the" + + " AuthInstanceId HTTP header of every request. The CamelIBMWatsonxDataAuthInstanceId" + + " header overrides it; when neither is set, the request has no AuthInstanceId header.") private String authInstanceId; public WatsonxDataConfiguration copy() { diff --git a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConstants.java b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConstants.java index ea7466467961..c4d6648f80de 100644 --- a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConstants.java +++ b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataConstants.java @@ -26,53 +26,76 @@ public interface WatsonxDataConstants { String HEADER_PREFIX = "CamelIBMWatsonxData"; // Operation - @Metadata(description = "The operation to perform", + @Metadata(description = "The operation to perform. Overrides the operation option.", javaType = "org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations") String OPERATION = HEADER_PREFIX + "Operation"; // Catalog - @Metadata(description = "The catalog name", javaType = "String") + @Metadata(description = "The name of the catalog. Overrides the catalogName option.", javaType = "String") String CATALOG_NAME = HEADER_PREFIX + "CatalogName"; // Schema - @Metadata(description = "The schema name", javaType = "String") + @Metadata(description = "The name of the schema. Overrides the schemaName option. createSchema takes the" + + " name of the new schema from this header only.", + javaType = "String") String SCHEMA_NAME = HEADER_PREFIX + "SchemaName"; - @Metadata(description = "The custom path for schema creation", javaType = "String") + @Metadata(description = "The path within the storage bucket where createSchema creates the schema." + + " Required for createSchema.", + javaType = "String") String CUSTOM_PATH = HEADER_PREFIX + "CustomPath"; // Table - @Metadata(description = "The table name", javaType = "String") + @Metadata(description = "The name of the table. Required for getTable, deleteTable, updateTable and" + + " registerTable; getAllColumns returns only the columns of this table. There is no" + + " option for it.", + javaType = "String") String TABLE_NAME = HEADER_PREFIX + "TableName"; - @Metadata(description = "The metadata location for table registration (e.g., S3 path to Iceberg metadata)", + @Metadata(description = "The location of the metadata file of the table that registerTable registers, for" + + " example the S3 path of an Iceberg metadata file. Required for registerTable.", javaType = "String") String METADATA_LOCATION = HEADER_PREFIX + "MetadataLocation"; - @Metadata(description = "The catalog ID for table registration", javaType = "String") + @Metadata(description = "The ID of the catalog that registerTable registers the table in. Required for" + + " registerTable, which ignores the catalogName option.", + javaType = "String") String CATALOG_ID = HEADER_PREFIX + "CatalogId"; - @Metadata(description = "The schema ID for table registration", javaType = "String") + @Metadata(description = "The ID of the schema that registerTable registers the table in. Required for" + + " registerTable, which ignores the schemaName option.", + javaType = "String") String SCHEMA_ID = HEADER_PREFIX + "SchemaId"; // Engine - @Metadata(description = "The engine ID", javaType = "String") + @Metadata(description = "The ID of the engine. Overrides the engineId option.", javaType = "String") String ENGINE_ID = HEADER_PREFIX + "EngineId"; // Storage Registration - @Metadata(description = "The storage description for registration", javaType = "String") + @Metadata(description = "The description of the storage that createStorageRegistration registers." + + " Required for createStorageRegistration.", + javaType = "String") String STORAGE_DESCRIPTION = HEADER_PREFIX + "StorageDescription"; - @Metadata(description = "The storage display name for registration", javaType = "String") + @Metadata(description = "The display name of the storage that createStorageRegistration registers." + + " Required for createStorageRegistration.", + javaType = "String") String STORAGE_DISPLAY_NAME = HEADER_PREFIX + "StorageDisplayName"; - @Metadata(description = "The storage managed by value (e.g., ibm, customer)", javaType = "String") + @Metadata(description = "Who manages the storage that createStorageRegistration registers: ibm or" + + " customer. Required for createStorageRegistration.", + javaType = "String") String STORAGE_MANAGED_BY = HEADER_PREFIX + "StorageManagedBy"; - @Metadata(description = "The storage type (e.g., ibm_cos, aws_s3, google_cs)", javaType = "String") + @Metadata(description = "The type of the storage that createStorageRegistration registers, such as" + + " ibm_cos, aws_s3, s3, minio, ibm_ceph, adls_gen1, adls_gen2, google_cs, ozone or" + + " ibm_storage_scale. Required for createStorageRegistration.", + javaType = "String") String STORAGE_TYPE = HEADER_PREFIX + "StorageType"; // Auth header - @Metadata(description = "The auth instance ID for watsonx.data API calls", javaType = "String") + @Metadata(description = "The ID of the watsonx.data instance, sent in the AuthInstanceId HTTP header." + + " Overrides the authInstanceId option.", + javaType = "String") String AUTH_INSTANCE_ID = HEADER_PREFIX + "AuthInstanceId"; } diff --git a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataEndpoint.java b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataEndpoint.java index 6a15537b9064..2c8c5b07c9a4 100644 --- a/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataEndpoint.java +++ b/components/camel-ibm/camel-ibm-watsonx-data/src/main/java/org/apache/camel/component/ibm/watsonx/data/WatsonxDataEndpoint.java @@ -35,7 +35,7 @@ import org.apache.camel.support.DefaultEndpoint; import org.apache.camel.util.ObjectHelper; /** - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations of an IBM watsonx.data lakehouse. */ @UriEndpoint(firstVersion = "4.19.0", scheme = "ibm-watsonx-data", @@ -66,7 +66,7 @@ import org.apache.camel.util.ObjectHelper; + " is its JSON. The delete operations set no body")) public class WatsonxDataEndpoint extends DefaultEndpoint implements EndpointServiceLocation { - @UriPath(description = "Logical name for the endpoint") + @UriPath(description = "A logical name of your choice for the endpoint. It is not sent to watsonx.data.") @Metadata(required = true) private String label; diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 203c4291fd58..5ca0ab7dd1d8 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -2684,8 +2684,8 @@ public interface ComponentsBuilderFactory { } /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations + * of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonxDataComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonxDataComponentBuilderFactory.java index 66745a9469d2..c0ad5581de9f 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonxDataComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonxDataComponentBuilderFactory.java @@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.ibm.watsonx.data.WatsonxDataComponent; /** - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations of an + * IBM watsonx.data lakehouse. * * Generated by camel build tools - do NOT edit this file! */ @@ -34,8 +34,8 @@ public interface IbmWatsonxDataComponentBuilderFactory { /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations + * of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 @@ -53,7 +53,10 @@ public interface IbmWatsonxDataComponentBuilderFactory { interface IbmWatsonxDataComponentBuilder extends ComponentBuilder<WatsonxDataComponent> { /** - * The watsonx.data instance CRN for API authorization. + * The ID of the watsonx.data instance (on IBM Cloud, the CRN of the + * instance), sent in the AuthInstanceId HTTP header of every request. + * The CamelIBMWatsonxDataAuthInstanceId header overrides it; when + * neither is set, the request has no AuthInstanceId header. * * The option is a: <code>java.lang.String</code> type. * @@ -68,8 +71,10 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * The watsonx.data service URL (e.g., - * https://region.lakehouse.cloud.ibm.com/lakehouse/api/v2). + * The base URL of the watsonx.data REST API, to which the IBM SDK + * appends the resource paths, for example + * https://us-south.lakehouse.cloud.ibm.com/lakehouse/api/v3. The + * endpoint does not start without it. * * The option is a: <code>java.lang.String</code> type. * @@ -84,7 +89,10 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * The catalog name for catalog, schema, and table operations. + * The name of the catalog for getCatalog, deleteCatalog, getAllColumns + * and the schema and table operations, except registerTable, which + * takes the catalog ID header instead. The + * CamelIBMWatsonxDataCatalogName header overrides it. * * The option is a: <code>java.lang.String</code> type. * @@ -99,7 +107,8 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * The component configuration. + * The configuration that the endpoints share. Each endpoint starts from + * a copy of it, and its URI options override the copied values. * * The option is a: * <code>org.apache.camel.component.ibm.watsonx.data.WatsonxDataConfiguration</code> type. @@ -115,7 +124,10 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * The engine ID for engine operations and schema/table queries. + * The ID of the engine that the schema and table operations, except + * registerTable, run on, and of the engine that getPrestoEngine and + * getPrestissimoEngine return. The CamelIBMWatsonxDataEngineId header + * overrides it. * * The option is a: <code>java.lang.String</code> type. * @@ -155,7 +167,8 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * The operation to perform. + * The operation to perform. The CamelIBMWatsonxDataOperation header + * overrides it; when neither is set, the exchange fails. * * The option is a: * <code>org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations</code> type. @@ -171,7 +184,11 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * The schema name for schema and table operations. + * The name of the schema for deleteSchema and the table operations, + * except registerTable; getAllColumns returns only the columns of this + * schema. The CamelIBMWatsonxDataSchemaName header overrides it. + * createSchema ignores this option and takes the name of the new schema + * from the header only. * * The option is a: <code>java.lang.String</code> type. * @@ -208,8 +225,9 @@ public interface IbmWatsonxDataComponentBuilderFactory { } /** - * IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for - * an access token. Required unless oauthProfile is set. + * The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token + * that is sent to watsonx.data. Required unless oauthProfile is set; + * when both are set, oauthProfile is used. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index 7224666dfead..329d9a09bada 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -2113,8 +2113,8 @@ public class EndpointHeaderBuilders { } /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations + * of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 1ef0b42d7b26..8810fc38a351 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -8862,8 +8862,8 @@ public class StaticEndpointBuilders { } /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations + * of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 @@ -8872,7 +8872,8 @@ public class StaticEndpointBuilders { * Syntax: <code>ibm-watsonx-data:label</code> * * Path parameter: label (required) - * Logical name for the endpoint + * A logical name of your choice for the endpoint. It is not sent to + * watsonx.data. * * @param path label * @return the dsl builder @@ -8882,8 +8883,8 @@ public class StaticEndpointBuilders { } /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations + * of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 @@ -8892,7 +8893,8 @@ public class StaticEndpointBuilders { * Syntax: <code>ibm-watsonx-data:label</code> * * Path parameter: label (required) - * Logical name for the endpoint + * A logical name of your choice for the endpoint. It is not sent to + * watsonx.data. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonxDataEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonxDataEndpointBuilderFactory.java index 7d21b4c472be..f85bf530be4f 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonxDataEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonxDataEndpointBuilderFactory.java @@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, and - * engine management. + * Manage the catalogs, schemas, tables, engines and storage registrations of an + * IBM watsonx.data lakehouse. * * Generated by camel build tools - do NOT edit this file! */ @@ -46,7 +46,10 @@ public interface WatsonxDataEndpointBuilderFactory { } /** - * The watsonx.data instance CRN for API authorization. + * The ID of the watsonx.data instance (on IBM Cloud, the CRN of the + * instance), sent in the AuthInstanceId HTTP header of every request. + * The CamelIBMWatsonxDataAuthInstanceId header overrides it; when + * neither is set, the request has no AuthInstanceId header. * * The option is a: <code>java.lang.String</code> type. * @@ -60,8 +63,10 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * The watsonx.data service URL (e.g., - * https://region.lakehouse.cloud.ibm.com/lakehouse/api/v2). + * The base URL of the watsonx.data REST API, to which the IBM SDK + * appends the resource paths, for example + * https://us-south.lakehouse.cloud.ibm.com/lakehouse/api/v3. The + * endpoint does not start without it. * * The option is a: <code>java.lang.String</code> type. * @@ -76,7 +81,10 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * The catalog name for catalog, schema, and table operations. + * The name of the catalog for getCatalog, deleteCatalog, getAllColumns + * and the schema and table operations, except registerTable, which + * takes the catalog ID header instead. The + * CamelIBMWatsonxDataCatalogName header overrides it. * * The option is a: <code>java.lang.String</code> type. * @@ -90,7 +98,10 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * The engine ID for engine operations and schema/table queries. + * The ID of the engine that the schema and table operations, except + * registerTable, run on, and of the engine that getPrestoEngine and + * getPrestissimoEngine return. The CamelIBMWatsonxDataEngineId header + * overrides it. * * The option is a: <code>java.lang.String</code> type. * @@ -104,7 +115,8 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * The operation to perform. + * The operation to perform. The CamelIBMWatsonxDataOperation header + * overrides it; when neither is set, the exchange fails. * * The option is a: * <code>org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations</code> type. @@ -119,7 +131,8 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * The operation to perform. + * The operation to perform. The CamelIBMWatsonxDataOperation header + * overrides it; when neither is set, the exchange fails. * * The option will be converted to a * <code>org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations</code> type. @@ -134,7 +147,11 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * The schema name for schema and table operations. + * The name of the schema for deleteSchema and the table operations, + * except registerTable; getAllColumns returns only the columns of this + * schema. The CamelIBMWatsonxDataSchemaName header overrides it. + * createSchema ignores this option and takes the name of the new schema + * from the header only. * * The option is a: <code>java.lang.String</code> type. * @@ -148,8 +165,9 @@ public interface WatsonxDataEndpointBuilderFactory { return this; } /** - * IBM Cloud API key for authentication, exchanged at IBM Cloud IAM for - * an access token. Required unless oauthProfile is set. + * The IBM Cloud API key, exchanged at IBM Cloud IAM for an access token + * that is sent to watsonx.data. Required unless oauthProfile is set; + * when both are set, oauthProfile is used. * * The option is a: <code>java.lang.String</code> type. * @@ -243,8 +261,8 @@ public interface WatsonxDataEndpointBuilderFactory { public interface WatsonxDataBuilders { /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, - * and engine management. + * Manage the catalogs, schemas, tables, engines and storage + * registrations of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 @@ -257,8 +275,8 @@ public interface WatsonxDataEndpointBuilderFactory { } /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, - * and engine management. + * Manage the catalogs, schemas, tables, engines and storage + * registrations of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 @@ -267,7 +285,8 @@ public interface WatsonxDataEndpointBuilderFactory { * Syntax: <code>ibm-watsonx-data:label</code> * * Path parameter: label (required) - * Logical name for the endpoint + * A logical name of your choice for the endpoint. It is not sent to + * watsonx.data. * * @param path label * @return the dsl builder @@ -277,8 +296,8 @@ public interface WatsonxDataEndpointBuilderFactory { } /** * IBM watsonx.data (camel-ibm-watsonx-data) - * Interact with IBM watsonx.data lakehouse for catalog, schema, table, - * and engine management. + * Manage the catalogs, schemas, tables, engines and storage + * registrations of an IBM watsonx.data lakehouse. * * Category: cloud,database * Since: 4.19 @@ -287,7 +306,8 @@ public interface WatsonxDataEndpointBuilderFactory { * Syntax: <code>ibm-watsonx-data:label</code> * * Path parameter: label (required) - * Logical name for the endpoint + * A logical name of your choice for the endpoint. It is not sent to + * watsonx.data. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -310,7 +330,7 @@ public interface WatsonxDataEndpointBuilderFactory { public static final WatsonxDataHeaderNameBuilder INSTANCE = new WatsonxDataHeaderNameBuilder(); /** - * The operation to perform. + * The operation to perform. Overrides the operation option. * * The option is a: {@code * org.apache.camel.component.ibm.watsonx.data.WatsonxDataOperations} @@ -324,7 +344,7 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataOperation"; } /** - * The catalog name. + * The name of the catalog. Overrides the catalogName option. * * The option is a: {@code String} type. * @@ -336,7 +356,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataCatalogName"; } /** - * The schema name. + * The name of the schema. Overrides the schemaName option. createSchema + * takes the name of the new schema from this header only. * * The option is a: {@code String} type. * @@ -348,7 +369,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataSchemaName"; } /** - * The custom path for schema creation. + * The path within the storage bucket where createSchema creates the + * schema. Required for createSchema. * * The option is a: {@code String} type. * @@ -360,7 +382,9 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataCustomPath"; } /** - * The table name. + * The name of the table. Required for getTable, deleteTable, + * updateTable and registerTable; getAllColumns returns only the columns + * of this table. There is no option for it. * * The option is a: {@code String} type. * @@ -372,8 +396,9 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataTableName"; } /** - * The metadata location for table registration (e.g., S3 path to - * Iceberg metadata). + * The location of the metadata file of the table that registerTable + * registers, for example the S3 path of an Iceberg metadata file. + * Required for registerTable. * * The option is a: {@code String} type. * @@ -386,7 +411,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataMetadataLocation"; } /** - * The catalog ID for table registration. + * The ID of the catalog that registerTable registers the table in. + * Required for registerTable, which ignores the catalogName option. * * The option is a: {@code String} type. * @@ -398,7 +424,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataCatalogId"; } /** - * The schema ID for table registration. + * The ID of the schema that registerTable registers the table in. + * Required for registerTable, which ignores the schemaName option. * * The option is a: {@code String} type. * @@ -410,7 +437,7 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataSchemaId"; } /** - * The engine ID. + * The ID of the engine. Overrides the engineId option. * * The option is a: {@code String} type. * @@ -422,7 +449,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataEngineId"; } /** - * The storage description for registration. + * The description of the storage that createStorageRegistration + * registers. Required for createStorageRegistration. * * The option is a: {@code String} type. * @@ -435,7 +463,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataStorageDescription"; } /** - * The storage display name for registration. + * The display name of the storage that createStorageRegistration + * registers. Required for createStorageRegistration. * * The option is a: {@code String} type. * @@ -448,7 +477,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataStorageDisplayName"; } /** - * The storage managed by value (e.g., ibm, customer). + * Who manages the storage that createStorageRegistration registers: ibm + * or customer. Required for createStorageRegistration. * * The option is a: {@code String} type. * @@ -461,7 +491,10 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataStorageManagedBy"; } /** - * The storage type (e.g., ibm_cos, aws_s3, google_cs). + * The type of the storage that createStorageRegistration registers, + * such as ibm_cos, aws_s3, s3, minio, ibm_ceph, adls_gen1, adls_gen2, + * google_cs, ozone or ibm_storage_scale. Required for + * createStorageRegistration. * * The option is a: {@code String} type. * @@ -473,7 +506,8 @@ public interface WatsonxDataEndpointBuilderFactory { return "CamelIBMWatsonxDataStorageType"; } /** - * The auth instance ID for watsonx.data API calls. + * The ID of the watsonx.data instance, sent in the AuthInstanceId HTTP + * header. Overrides the authInstanceId option. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 8d205e837719..3accea39a8ad 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -219,7 +219,7 @@ or removes its row. | camel-ibm-watson-speech-to-text | ibm-watson-speech-to-text | yes | | camel-ibm-watson-text-to-speech | ibm-watson-text-to-speech | | | camel-ibm-watsonx-ai | ibm-watsonx-ai | | -| camel-ibm-watsonx-data | ibm-watsonx-data | | +| camel-ibm-watsonx-data | ibm-watsonx-data | yes | | camel-iggy | iggy | yes | | camel-ignite | ignite-cache, ignite-compute, ignite-events, ignite-idgen, ignite-messaging, ignite-queue, ignite-set | | | camel-infinispan | infinispan | |
