Add component definition: ibm-watson-discovery
This commit is contained in:
parent
d8477065a5
commit
043d3d1f7f
564
component.json
Normal file
564
component.json
Normal file
@ -0,0 +1,564 @@
|
||||
{
|
||||
"component": {
|
||||
"kind": "component",
|
||||
"name": "ibm-watson-discovery",
|
||||
"title": "IBM Watson Discovery",
|
||||
"description": "Perform document understanding and search using IBM Watson Discovery",
|
||||
"deprecated": false,
|
||||
"firstVersion": "3.30.0",
|
||||
"label": "ai,cloud",
|
||||
"javaType": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryComponent",
|
||||
"supportLevel": "Stable",
|
||||
"nativeSupported": true,
|
||||
"metadata": {
|
||||
"quarkusVersion": "3.36.0",
|
||||
"camelArtifact": "org.apache.camel:camel-ibm-watson-discovery",
|
||||
"camelVersion": "4.20.0"
|
||||
},
|
||||
"groupId": "org.apache.camel.quarkus",
|
||||
"artifactId": "camel-quarkus-ibm-watson-discovery",
|
||||
"version": "4.20.0 (CEQ 3.36.0)",
|
||||
"scheme": "ibm-watson-discovery",
|
||||
"extendsScheme": "",
|
||||
"syntax": "ibm-watson-discovery:label",
|
||||
"async": false,
|
||||
"api": false,
|
||||
"consumerOnly": false,
|
||||
"producerOnly": true,
|
||||
"lenientProperties": false,
|
||||
"browsable": false,
|
||||
"remote": true
|
||||
},
|
||||
"componentProperties": {
|
||||
"projectId": {
|
||||
"index": 0,
|
||||
"kind": "property",
|
||||
"displayName": "Project Id",
|
||||
"group": "common",
|
||||
"label": "common",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The Watson Discovery project ID"
|
||||
},
|
||||
"serviceUrl": {
|
||||
"index": 1,
|
||||
"kind": "property",
|
||||
"displayName": "Service Url",
|
||||
"group": "common",
|
||||
"label": "common",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The service endpoint URL. If not specified, the default URL will be used."
|
||||
},
|
||||
"version": {
|
||||
"index": 2,
|
||||
"kind": "property",
|
||||
"displayName": "Version",
|
||||
"group": "common",
|
||||
"label": "common",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"defaultValue": "2023-03-31",
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The API version date (format: YYYY-MM-DD)"
|
||||
},
|
||||
"collectionId": {
|
||||
"index": 3,
|
||||
"kind": "property",
|
||||
"displayName": "Collection 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.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The collection ID for operations that require it"
|
||||
},
|
||||
"configuration": {
|
||||
"index": 4,
|
||||
"kind": "property",
|
||||
"displayName": "Configuration",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"type": "object",
|
||||
"javaType": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The component configuration"
|
||||
},
|
||||
"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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing."
|
||||
},
|
||||
"operation": {
|
||||
"index": 6,
|
||||
"kind": "property",
|
||||
"displayName": "Operation",
|
||||
"group": "producer",
|
||||
"label": "producer",
|
||||
"required": false,
|
||||
"type": "enum",
|
||||
"javaType": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryOperations",
|
||||
"enum": [
|
||||
"query",
|
||||
"listCollections",
|
||||
"createCollection",
|
||||
"deleteCollection",
|
||||
"addDocument",
|
||||
"updateDocument",
|
||||
"deleteDocument"
|
||||
],
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The operation to perform"
|
||||
},
|
||||
"autowiredEnabled": {
|
||||
"index": 7,
|
||||
"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 type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc."
|
||||
},
|
||||
"apiKey": {
|
||||
"index": 8,
|
||||
"kind": "property",
|
||||
"displayName": "Api Key",
|
||||
"group": "security",
|
||||
"label": "security",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": true,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The IBM Cloud API key for authentication"
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"CamelIBMWatsonDiscoveryOperation": {
|
||||
"index": 0,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "WatsonDiscoveryOperations",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The operation to perform",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#OPERATION"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryQuery": {
|
||||
"index": 1,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The natural language query to execute",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#QUERY"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryCount": {
|
||||
"index": 2,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "Integer",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The number of results to return",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#COUNT"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryFilter": {
|
||||
"index": 3,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The filter to apply to the query",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#FILTER"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryCollectionId": {
|
||||
"index": 4,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The collection ID",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#COLLECTION_ID"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryCollectionName": {
|
||||
"index": 5,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The collection name",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#COLLECTION_NAME"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryCollectionDescription": {
|
||||
"index": 6,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The collection description",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#COLLECTION_DESCRIPTION"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryDocumentId": {
|
||||
"index": 7,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The document ID",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#DOCUMENT_ID"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryDocumentFile": {
|
||||
"index": 8,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "java.io.InputStream",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The document file",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#DOCUMENT_FILE"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryDocumentFilename": {
|
||||
"index": 9,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The document filename",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#DOCUMENT_FILENAME"
|
||||
},
|
||||
"CamelIBMWatsonDiscoveryDocumentContentType": {
|
||||
"index": 10,
|
||||
"kind": "header",
|
||||
"displayName": "",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": false,
|
||||
"javaType": "String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "The document content type",
|
||||
"constantName": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConstants#DOCUMENT_CONTENT_TYPE"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"label": {
|
||||
"index": 0,
|
||||
"kind": "path",
|
||||
"displayName": "Label",
|
||||
"group": "producer",
|
||||
"label": "",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"description": "Logical name"
|
||||
},
|
||||
"projectId": {
|
||||
"index": 1,
|
||||
"kind": "parameter",
|
||||
"displayName": "Project Id",
|
||||
"group": "common",
|
||||
"label": "common",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The Watson Discovery project ID"
|
||||
},
|
||||
"serviceUrl": {
|
||||
"index": 2,
|
||||
"kind": "parameter",
|
||||
"displayName": "Service Url",
|
||||
"group": "common",
|
||||
"label": "common",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The service endpoint URL. If not specified, the default URL will be used."
|
||||
},
|
||||
"version": {
|
||||
"index": 3,
|
||||
"kind": "parameter",
|
||||
"displayName": "Version",
|
||||
"group": "common",
|
||||
"label": "common",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"defaultValue": "2023-03-31",
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The API version date (format: YYYY-MM-DD)"
|
||||
},
|
||||
"collectionId": {
|
||||
"index": 4,
|
||||
"kind": "parameter",
|
||||
"displayName": "Collection 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.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The collection ID for operations that require it"
|
||||
},
|
||||
"operation": {
|
||||
"index": 5,
|
||||
"kind": "parameter",
|
||||
"displayName": "Operation",
|
||||
"group": "producer",
|
||||
"label": "producer",
|
||||
"required": false,
|
||||
"type": "enum",
|
||||
"javaType": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryOperations",
|
||||
"enum": [
|
||||
"query",
|
||||
"listCollections",
|
||||
"createCollection",
|
||||
"deleteCollection",
|
||||
"addDocument",
|
||||
"updateDocument",
|
||||
"deleteDocument"
|
||||
],
|
||||
"deprecated": false,
|
||||
"autowired": false,
|
||||
"secret": false,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The operation to perform"
|
||||
},
|
||||
"lazyStartProducer": {
|
||||
"index": 6,
|
||||
"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 producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing."
|
||||
},
|
||||
"apiKey": {
|
||||
"index": 7,
|
||||
"kind": "parameter",
|
||||
"displayName": "Api Key",
|
||||
"group": "security",
|
||||
"label": "security",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"javaType": "java.lang.String",
|
||||
"deprecated": false,
|
||||
"deprecationNote": "",
|
||||
"autowired": false,
|
||||
"secret": true,
|
||||
"configurationClass": "org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration",
|
||||
"configurationField": "configuration",
|
||||
"description": "The IBM Cloud API key for authentication"
|
||||
}
|
||||
},
|
||||
"propertiesSchema": {
|
||||
"properties": {
|
||||
"label": {
|
||||
"title": "Label",
|
||||
"description": "Logical name",
|
||||
"type": "string",
|
||||
"$comment": "group:producer"
|
||||
},
|
||||
"projectId": {
|
||||
"title": "Project Id",
|
||||
"description": "The Watson Discovery project ID",
|
||||
"type": "string",
|
||||
"$comment": "group:common"
|
||||
},
|
||||
"serviceUrl": {
|
||||
"title": "Service Url",
|
||||
"description": "The service endpoint URL. If not specified, the default URL will be used.",
|
||||
"type": "string",
|
||||
"$comment": "group:common"
|
||||
},
|
||||
"version": {
|
||||
"title": "Version",
|
||||
"description": "The API version date (format: YYYY-MM-DD)",
|
||||
"type": "string",
|
||||
"$comment": "group:common",
|
||||
"default": "2023-03-31"
|
||||
},
|
||||
"collectionId": {
|
||||
"title": "Collection Id",
|
||||
"description": "The collection ID for operations that require it",
|
||||
"type": "string",
|
||||
"$comment": "group:producer"
|
||||
},
|
||||
"operation": {
|
||||
"title": "Operation",
|
||||
"description": "The operation to perform",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"query",
|
||||
"listCollections",
|
||||
"createCollection",
|
||||
"deleteCollection",
|
||||
"addDocument",
|
||||
"updateDocument",
|
||||
"deleteDocument"
|
||||
],
|
||||
"$comment": "group:producer"
|
||||
},
|
||||
"lazyStartProducer": {
|
||||
"title": "Lazy Start Producer",
|
||||
"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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.",
|
||||
"type": "boolean",
|
||||
"$comment": "group:producer (advanced)",
|
||||
"default": false
|
||||
},
|
||||
"apiKey": {
|
||||
"title": "Api Key",
|
||||
"description": "The IBM Cloud API key for authentication",
|
||||
"type": "string",
|
||||
"$comment": "group:security",
|
||||
"format": "password"
|
||||
}
|
||||
},
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"label",
|
||||
"projectId",
|
||||
"apiKey"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user