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-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 87a8c1a81b0 Regen
87a8c1a81b0 is described below
commit 87a8c1a81b03b3f9e13c6cd509e6cb660c72520f
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Sep 22 16:30:40 2023 +0200
Regen
---
.../catalog/components/azure-cosmosdb.json | 84 +++++++++++-----------
.../src/main/docs/azure-cosmosdb.json | 7 ++
.../springboot/CosmosDbComponentConfiguration.java | 14 ++++
3 files changed, 64 insertions(+), 41 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/azure-cosmosdb.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/azure-cosmosdb.json
index a2bc08777ac..20b2d340e36 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/azure-cosmosdb.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/azure-cosmosdb.json
@@ -32,26 +32,27 @@
"createContainerIfNotExists": { "index": 7, "kind": "property",
"displayName": "Create Container If Not Exists", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create Cosmos containe [...]
"createDatabaseIfNotExists": { "index": 8, "kind": "property",
"displayName": "Create Database If Not Exists", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create Cosmos database a [...]
"databaseEndpoint": { "index": 9, "kind": "property", "displayName":
"Database Endpoint", "group": "common", "label": "common", "required": true,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the Azure Cosmos
database endpoint the component will connect to." },
- "multipleWriteRegionsEnabled": { "index": 10, "kind": "property",
"displayName": "Multiple Write Regions Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the flag to enable
writes on any regions for [...]
- "preferredRegions": { "index": 11, "kind": "property", "displayName":
"Preferred Regions", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the comma separated
preferred regions for geo-replicated database accounts. For exa [...]
- "readRequestsFallbackEnabled": { "index": 12, "kind": "property",
"displayName": "Read Requests Fallback Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets whether to allow
for reads to go to multiple [...]
- "throughputProperties": { "index": 13, "kind": "property", "displayName":
"Throughput Properties", "group": "common", "label": "common", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.ThroughputProperties", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets throughput of the
resources in the Azure Cosmos [...]
- "bridgeErrorHandler": { "index": 14, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions occurred while the consumer is trying to pickup incoming
messages, or the likes, will now be proc [...]
- "changeFeedProcessorOptions": { "index": 15, "kind": "property",
"displayName": "Change Feed Processor Options", "group": "consumer", "label":
"consumer", "required": false, "type": "object", "javaType":
"com.azure.cosmos.models.ChangeFeedProcessorOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the
ChangeFeedProcessor [...]
- "createLeaseContainerIfNotExists": { "index": 16, "kind": "property",
"displayName": "Create Lease Container If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create [...]
- "createLeaseDatabaseIfNotExists": { "index": 17, "kind": "property",
"displayName": "Create Lease Database If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create C [...]
- "hostName": { "index": 18, "kind": "property", "displayName": "Host Name",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the hostname. The
host: a host is an application instance that uses the change feed processor t
[...]
- "leaseContainerName": { "index": 19, "kind": "property", "displayName":
"Lease Container Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "camel-lease",
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease container
which acts as a state s [...]
- "leaseDatabaseName": { "index": 20, "kind": "property", "displayName":
"Lease Database Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease database
where the leaseContainerName will be stored. If it is not [...]
- "itemId": { "index": 21, "kind": "property", "displayName": "Item Id",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the itemId in case
needed for operation on item like delete, replace" },
- "itemPartitionKey": { "index": 22, "kind": "property", "displayName":
"Item Partition Key", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets partition key.
Represents a partition key value in the Azure Cosmos DB databas [...]
- "lazyStartProducer": { "index": 23, "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 fai [...]
- "operation": { "index": 24, "kind": "property", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.azure.cosmosdb.CosmosDbOperationsDefinition",
"enum": [ "listDatabases", "createDatabase", "queryDatabases",
"deleteDatabase", "createContainer", "replaceDatabaseThroughput",
"listContainers", "queryContainers", "deleteContainer",
"replaceContainerThroughput", "createItem", "upsertItem", "del [...]
- "query": { "index": 25, "kind": "property", "displayName": "Query",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "An SQL query to execute
on a given resources. To learn more about Cosmos SQL API, check this link {link
htt [...]
- "queryRequestOptions": { "index": 26, "kind": "property", "displayName":
"Query Request Options", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.CosmosQueryRequestOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Set additional
QueryRequestOptions that can [...]
- "autowiredEnabled": { "index": 27, "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 [...]
- "accountKey": { "index": 28, "kind": "property", "displayName": "Account
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for ac [...]
- "useDefaultIdentity": { "index": 29, "kind": "property", "displayName":
"Use Default Identity", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Indicates whether to use
the default iden [...]
+ "indexingPolicy": { "index": 10, "kind": "property", "displayName":
"Indexing Policy", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "enum": [ "CONSISTENT",
"LAZY", "NONE" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "CONSISTENT", "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "The CosmosDB Indexin
[...]
+ "multipleWriteRegionsEnabled": { "index": 11, "kind": "property",
"displayName": "Multiple Write Regions Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the flag to enable
writes on any regions for [...]
+ "preferredRegions": { "index": 12, "kind": "property", "displayName":
"Preferred Regions", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the comma separated
preferred regions for geo-replicated database accounts. For exa [...]
+ "readRequestsFallbackEnabled": { "index": 13, "kind": "property",
"displayName": "Read Requests Fallback Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets whether to allow
for reads to go to multiple [...]
+ "throughputProperties": { "index": 14, "kind": "property", "displayName":
"Throughput Properties", "group": "common", "label": "common", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.ThroughputProperties", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets throughput of the
resources in the Azure Cosmos [...]
+ "bridgeErrorHandler": { "index": 15, "kind": "property", "displayName":
"Bridge Error Handler", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Allows for bridging the consumer to the Camel routing Error Handler, which
mean any exceptions occurred while the consumer is trying to pickup incoming
messages, or the likes, will now be proc [...]
+ "changeFeedProcessorOptions": { "index": 16, "kind": "property",
"displayName": "Change Feed Processor Options", "group": "consumer", "label":
"consumer", "required": false, "type": "object", "javaType":
"com.azure.cosmos.models.ChangeFeedProcessorOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the
ChangeFeedProcessor [...]
+ "createLeaseContainerIfNotExists": { "index": 17, "kind": "property",
"displayName": "Create Lease Container If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create [...]
+ "createLeaseDatabaseIfNotExists": { "index": 18, "kind": "property",
"displayName": "Create Lease Database If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create C [...]
+ "hostName": { "index": 19, "kind": "property", "displayName": "Host Name",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the hostname. The
host: a host is an application instance that uses the change feed processor t
[...]
+ "leaseContainerName": { "index": 20, "kind": "property", "displayName":
"Lease Container Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "camel-lease",
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease container
which acts as a state s [...]
+ "leaseDatabaseName": { "index": 21, "kind": "property", "displayName":
"Lease Database Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease database
where the leaseContainerName will be stored. If it is not [...]
+ "itemId": { "index": 22, "kind": "property", "displayName": "Item Id",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the itemId in case
needed for operation on item like delete, replace" },
+ "itemPartitionKey": { "index": 23, "kind": "property", "displayName":
"Item Partition Key", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets partition key.
Represents a partition key value in the Azure Cosmos DB databas [...]
+ "lazyStartProducer": { "index": 24, "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 fai [...]
+ "operation": { "index": 25, "kind": "property", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.azure.cosmosdb.CosmosDbOperationsDefinition",
"enum": [ "listDatabases", "createDatabase", "queryDatabases",
"deleteDatabase", "createContainer", "replaceDatabaseThroughput",
"listContainers", "queryContainers", "deleteContainer",
"replaceContainerThroughput", "createItem", "upsertItem", "del [...]
+ "query": { "index": 26, "kind": "property", "displayName": "Query",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "An SQL query to execute
on a given resources. To learn more about Cosmos SQL API, check this link {link
htt [...]
+ "queryRequestOptions": { "index": 27, "kind": "property", "displayName":
"Query Request Options", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.CosmosQueryRequestOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Set additional
QueryRequestOptions that can [...]
+ "autowiredEnabled": { "index": 28, "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 [...]
+ "accountKey": { "index": 29, "kind": "property", "displayName": "Account
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for ac [...]
+ "useDefaultIdentity": { "index": 30, "kind": "property", "displayName":
"Use Default Identity", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Indicates whether to use
the default iden [...]
},
"properties": {
"databaseName": { "index": 0, "kind": "path", "displayName": "Database
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "The name of the Cosmos
database that component should connect to. In case you are producing data and
have c [...]
@@ -65,26 +66,27 @@
"createContainerIfNotExists": { "index": 8, "kind": "parameter",
"displayName": "Create Container If Not Exists", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create Cosmos contain [...]
"createDatabaseIfNotExists": { "index": 9, "kind": "parameter",
"displayName": "Create Database If Not Exists", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create Cosmos database [...]
"databaseEndpoint": { "index": 10, "kind": "parameter", "displayName":
"Database Endpoint", "group": "common", "label": "common", "required": true,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the Azure Cosmos
database endpoint the component will connec [...]
- "multipleWriteRegionsEnabled": { "index": 11, "kind": "parameter",
"displayName": "Multiple Write Regions Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the flag to enable
writes on any regions for [...]
- "preferredRegions": { "index": 12, "kind": "parameter", "displayName":
"Preferred Regions", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the comma separated
preferred regions for geo-replicated database accounts. For ex [...]
- "readRequestsFallbackEnabled": { "index": 13, "kind": "parameter",
"displayName": "Read Requests Fallback Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets whether to allow
for reads to go to multiple [...]
- "throughputProperties": { "index": 14, "kind": "parameter", "displayName":
"Throughput Properties", "group": "common", "label": "common", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.ThroughputProperties", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets throughput of the
resources in the Azure Cosmo [...]
- "changeFeedProcessorOptions": { "index": 15, "kind": "parameter",
"displayName": "Change Feed Processor Options", "group": "consumer", "label":
"consumer", "required": false, "type": "object", "javaType":
"com.azure.cosmos.models.ChangeFeedProcessorOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the
ChangeFeedProcesso [...]
- "createLeaseContainerIfNotExists": { "index": 16, "kind": "parameter",
"displayName": "Create Lease Container If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should creat [...]
- "createLeaseDatabaseIfNotExists": { "index": 17, "kind": "parameter",
"displayName": "Create Lease Database If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create [...]
- "hostName": { "index": 18, "kind": "parameter", "displayName": "Host
Name", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the hostname. The
host: a host is an application instance that uses the change feed processor
[...]
- "leaseContainerName": { "index": 19, "kind": "parameter", "displayName":
"Lease Container Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "camel-lease",
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease container
which acts as a state [...]
- "leaseDatabaseName": { "index": 20, "kind": "parameter", "displayName":
"Lease Database Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease database
where the leaseContainerName will be stored. If it is no [...]
- "bridgeErrorHandler": { "index": 21, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions occurred while the
consumer is trying to pickup incoming messages, or the li [...]
- "exceptionHandler": { "index": 22, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
- "exchangePattern": { "index": 23, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
- "itemId": { "index": 24, "kind": "parameter", "displayName": "Item Id",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the itemId in case
needed for operation on item like delete, replace" },
- "itemPartitionKey": { "index": 25, "kind": "parameter", "displayName":
"Item Partition Key", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets partition key.
Represents a partition key value in the Azure Cosmos DB databa [...]
- "operation": { "index": 26, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.azure.cosmosdb.CosmosDbOperationsDefinition",
"enum": [ "listDatabases", "createDatabase", "queryDatabases",
"deleteDatabase", "createContainer", "replaceDatabaseThroughput",
"listContainers", "queryContainers", "deleteContainer",
"replaceContainerThroughput", "createItem", "upsertItem", "de [...]
- "query": { "index": 27, "kind": "parameter", "displayName": "Query",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "An SQL query to execute
on a given resources. To learn more about Cosmos SQL API, check this link {link
ht [...]
- "queryRequestOptions": { "index": 28, "kind": "parameter", "displayName":
"Query Request Options", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.CosmosQueryRequestOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Set additional
QueryRequestOptions that can [...]
- "lazyStartProducer": { "index": 29, "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 produ [...]
- "accountKey": { "index": 30, "kind": "parameter", "displayName": "Account
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for a [...]
- "useDefaultIdentity": { "index": 31, "kind": "parameter", "displayName":
"Use Default Identity", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Indicates whether to use
the default ide [...]
+ "indexingPolicy": { "index": 11, "kind": "parameter", "displayName":
"Indexing Policy", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "enum": [ "CONSISTENT",
"LAZY", "NONE" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "CONSISTENT", "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "The CosmosDB Indexi [...]
+ "multipleWriteRegionsEnabled": { "index": 12, "kind": "parameter",
"displayName": "Multiple Write Regions Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the flag to enable
writes on any regions for [...]
+ "preferredRegions": { "index": 13, "kind": "parameter", "displayName":
"Preferred Regions", "group": "common", "label": "common", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the comma separated
preferred regions for geo-replicated database accounts. For ex [...]
+ "readRequestsFallbackEnabled": { "index": 14, "kind": "parameter",
"displayName": "Read Requests Fallback Enabled", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets whether to allow
for reads to go to multiple [...]
+ "throughputProperties": { "index": 15, "kind": "parameter", "displayName":
"Throughput Properties", "group": "common", "label": "common", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.ThroughputProperties", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets throughput of the
resources in the Azure Cosmo [...]
+ "changeFeedProcessorOptions": { "index": 16, "kind": "parameter",
"displayName": "Change Feed Processor Options", "group": "consumer", "label":
"consumer", "required": false, "type": "object", "javaType":
"com.azure.cosmos.models.ChangeFeedProcessorOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the
ChangeFeedProcesso [...]
+ "createLeaseContainerIfNotExists": { "index": 17, "kind": "parameter",
"displayName": "Create Lease Container If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should creat [...]
+ "createLeaseDatabaseIfNotExists": { "index": 18, "kind": "parameter",
"displayName": "Create Lease Database If Not Exists", "group": "consumer",
"label": "consumer", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets if the component
should create [...]
+ "hostName": { "index": 19, "kind": "parameter", "displayName": "Host
Name", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the hostname. The
host: a host is an application instance that uses the change feed processor
[...]
+ "leaseContainerName": { "index": 20, "kind": "parameter", "displayName":
"Lease Container Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "camel-lease",
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease container
which acts as a state [...]
+ "leaseDatabaseName": { "index": 21, "kind": "parameter", "displayName":
"Lease Database Name", "group": "consumer", "label": "consumer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the lease database
where the leaseContainerName will be stored. If it is no [...]
+ "bridgeErrorHandler": { "index": 22, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions occurred while the
consumer is trying to pickup incoming messages, or the li [...]
+ "exceptionHandler": { "index": 23, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
+ "exchangePattern": { "index": 24, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
+ "itemId": { "index": 25, "kind": "parameter", "displayName": "Item Id",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets the itemId in case
needed for operation on item like delete, replace" },
+ "itemPartitionKey": { "index": 26, "kind": "parameter", "displayName":
"Item Partition Key", "group": "producer", "label": "producer", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets partition key.
Represents a partition key value in the Azure Cosmos DB databa [...]
+ "operation": { "index": 27, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "producer", "required": false,
"type": "object", "javaType":
"org.apache.camel.component.azure.cosmosdb.CosmosDbOperationsDefinition",
"enum": [ "listDatabases", "createDatabase", "queryDatabases",
"deleteDatabase", "createContainer", "replaceDatabaseThroughput",
"listContainers", "queryContainers", "deleteContainer",
"replaceContainerThroughput", "createItem", "upsertItem", "de [...]
+ "query": { "index": 28, "kind": "parameter", "displayName": "Query",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "An SQL query to execute
on a given resources. To learn more about Cosmos SQL API, check this link {link
ht [...]
+ "queryRequestOptions": { "index": 29, "kind": "parameter", "displayName":
"Query Request Options", "group": "producer", "label": "producer", "required":
false, "type": "object", "javaType":
"com.azure.cosmos.models.CosmosQueryRequestOptions", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Set additional
QueryRequestOptions that can [...]
+ "lazyStartProducer": { "index": 30, "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 produ [...]
+ "accountKey": { "index": 31, "kind": "parameter", "displayName": "Account
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for a [...]
+ "useDefaultIdentity": { "index": 32, "kind": "parameter", "displayName":
"Use Default Identity", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Indicates whether to use
the default ide [...]
}
}
diff --git
a/components-starter/camel-azure-cosmosdb-starter/src/main/docs/azure-cosmosdb.json
b/components-starter/camel-azure-cosmosdb-starter/src/main/docs/azure-cosmosdb.json
index d3c23b87f76..8b20c85bd58 100644
---
a/components-starter/camel-azure-cosmosdb-starter/src/main/docs/azure-cosmosdb.json
+++
b/components-starter/camel-azure-cosmosdb-starter/src/main/docs/azure-cosmosdb.json
@@ -135,6 +135,13 @@
"description": "Sets the hostname. The host: a host is an application
instance that uses the change feed processor to listen for changes. Multiple
instances with the same lease configuration can run in parallel, but each
instance should have a different instance name. If not specified, this will be
a generated random hostname.",
"sourceType":
"org.apache.camel.component.azure.cosmosdb.springboot.CosmosDbComponentConfiguration"
},
+ {
+ "name": "camel.component.azure-cosmosdb.indexing-policy",
+ "type": "java.lang.String",
+ "description": "The CosmosDB Indexing Policy that will be set in case of
container creation, this option is related to createLeaseContainerIfNotExists
and it will be taken into account when the latter is true.",
+ "sourceType":
"org.apache.camel.component.azure.cosmosdb.springboot.CosmosDbComponentConfiguration",
+ "defaultValue": "CONSISTENT"
+ },
{
"name": "camel.component.azure-cosmosdb.item-id",
"type": "java.lang.String",
diff --git
a/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConfiguration.java
b/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConfiguration.java
index fae4598d37b..3042ac90427 100644
---
a/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConfiguration.java
+++
b/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConfiguration.java
@@ -109,6 +109,12 @@ public class CosmosDbComponentConfiguration
* Sets the Azure Cosmos database endpoint the component will connect to.
*/
private String databaseEndpoint;
+ /**
+ * The CosmosDB Indexing Policy that will be set in case of container
+ * creation, this option is related to createLeaseContainerIfNotExists and
+ * it will be taken into account when the latter is true.
+ */
+ private String indexingPolicy = "CONSISTENT";
/**
* Sets the flag to enable writes on any regions for geo-replicated
database
* accounts in the Azure Cosmos DB service. When the value of this property
@@ -334,6 +340,14 @@ public class CosmosDbComponentConfiguration
this.databaseEndpoint = databaseEndpoint;
}
+ public String getIndexingPolicy() {
+ return indexingPolicy;
+ }
+
+ public void setIndexingPolicy(String indexingPolicy) {
+ this.indexingPolicy = indexingPolicy;
+ }
+
public Boolean getMultipleWriteRegionsEnabled() {
return multipleWriteRegionsEnabled;
}