This is an automated email from the ASF dual-hosted git repository.
acosentino 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 b19da16b701 Regen
b19da16b701 is described below
commit b19da16b7014853c39e70379f1fd1fe24bdf80cb
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Sep 26 13:24:37 2023 +0200
Regen
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../springboot/catalog/components/aws2-ec2.json | 2 +-
.../catalog/components/azure-cosmosdb.json | 76 +++++++++++-----------
.../src/main/docs/azure-cosmosdb.json | 7 +-
.../springboot/CosmosDbComponentConfiguration.java | 30 +++++----
.../springboot/CosmosDbComponentConverter.java | 2 +
5 files changed, 60 insertions(+), 57 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
index 632d6dca595..d1c23acd8cf 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ec2.json
@@ -45,7 +45,7 @@
},
"headers": {
"CamelAwsEC2ImageId": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "An image ID of the AWS marketplace", "constantName":
"org.apache.camel.component.aws2.ec2.AWS2EC2Constants#IMAGE_ID" },
- "CamelAwsEC2InstanceType": { "index": 1, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"software.amazon.awssdk.services.ec2.model.InstanceType", "enum": [
"a1.medium", "a1.large", "a1.xlarge", "a1.2xlarge", "a1.4xlarge", "a1.metal",
"c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge",
"c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge",
"c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", [...]
+ "CamelAwsEC2InstanceType": { "index": 1, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"software.amazon.awssdk.services.ec2.model.InstanceType", "enum": [
"a1.medium", "a1.large", "a1.xlarge", "a1.2xlarge", "a1.4xlarge", "a1.metal",
"c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge",
"c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge",
"c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", [...]
"CamelAwsEC2Operation": { "index": 2, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The operation we want to perform", "constantName":
"org.apache.camel.component.aws2.ec2.AWS2EC2Constants#OPERATION" },
"CamelAwsEC2InstanceMinCount": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "The minimum number of instances we want
to run.", "constantName":
"org.apache.camel.component.aws2.ec2.AWS2EC2Constants#INSTANCE_MIN_COUNT" },
"CamelAwsEC2InstanceMaxCount": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "The maximum number of instances we want
to run.", "constantName":
"org.apache.camel.component.aws2.ec2.AWS2EC2Constants#INSTANCE_MAX_COUNT" },
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 20b2d340e36..b482e4d2597 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,24 +32,24 @@
"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." },
- "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 [...]
+ "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 [...]
+ "indexingPolicy": { "index": 27, "kind": "property", "displayName":
"Indexing Policy", "group": " advanced", "label": "common, advanced",
"required": false, "type": "object", "javaType":
"com.azure.cosmos.models.IndexingPolicy", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "The CosmosDB Indexing
Policy that will be set in case of [...]
"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 [...]
@@ -66,26 +66,26 @@
"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 [...]
- "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 [...]
+ "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 [...]
+ "indexingPolicy": { "index": 30, "kind": "parameter", "displayName":
"Indexing Policy", "group": " advanced", "label": "common, advanced",
"required": false, "type": "object", "javaType":
"com.azure.cosmos.models.IndexingPolicy", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "The CosmosDB Indexing
Policy that will be set in case of [...]
"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 8b20c85bd58..8eea8380f40 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
@@ -137,10 +137,9 @@
},
{
"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"
+ "type": "com.azure.cosmos.models.IndexingPolicy",
+ "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. The option is a
com.azure.cosmos.models.IndexingPolicy type.",
+ "sourceType":
"org.apache.camel.component.azure.cosmosdb.springboot.CosmosDbComponentConfiguration"
},
{
"name": "camel.component.azure-cosmosdb.item-id",
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 3042ac90427..6ed8c0b17e0 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
@@ -20,6 +20,7 @@ import com.azure.cosmos.ConsistencyLevel;
import com.azure.cosmos.CosmosAsyncClient;
import com.azure.cosmos.models.ChangeFeedProcessorOptions;
import com.azure.cosmos.models.CosmosQueryRequestOptions;
+import com.azure.cosmos.models.IndexingPolicy;
import com.azure.cosmos.models.ThroughputProperties;
import org.apache.camel.component.azure.cosmosdb.CosmosDbComponent;
import org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration;
@@ -109,12 +110,6 @@ 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
@@ -238,6 +233,13 @@ public class CosmosDbComponentConfiguration
* com.azure.cosmos.models.CosmosQueryRequestOptions type.
*/
private CosmosQueryRequestOptions queryRequestOptions;
+ /**
+ * 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. The option is a
+ * com.azure.cosmos.models.IndexingPolicy type.
+ */
+ private IndexingPolicy indexingPolicy;
/**
* Whether autowiring is enabled. This is used for automatic autowiring
* options (the option must be marked as autowired) by looking up in the
@@ -340,14 +342,6 @@ public class CosmosDbComponentConfiguration
this.databaseEndpoint = databaseEndpoint;
}
- public String getIndexingPolicy() {
- return indexingPolicy;
- }
-
- public void setIndexingPolicy(String indexingPolicy) {
- this.indexingPolicy = indexingPolicy;
- }
-
public Boolean getMultipleWriteRegionsEnabled() {
return multipleWriteRegionsEnabled;
}
@@ -491,6 +485,14 @@ public class CosmosDbComponentConfiguration
this.queryRequestOptions = queryRequestOptions;
}
+ public IndexingPolicy getIndexingPolicy() {
+ return indexingPolicy;
+ }
+
+ public void setIndexingPolicy(IndexingPolicy indexingPolicy) {
+ this.indexingPolicy = indexingPolicy;
+ }
+
public Boolean getAutowiredEnabled() {
return autowiredEnabled;
}
diff --git
a/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConverter.java
b/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConverter.java
index c4a29d6d1ca..d76a643ef64 100644
---
a/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConverter.java
+++
b/components-starter/camel-azure-cosmosdb-starter/src/main/java/org/apache/camel/component/azure/cosmosdb/springboot/CosmosDbComponentConverter.java
@@ -44,6 +44,7 @@ public class CosmosDbComponentConverter implements
GenericConverter {
answer.add(new ConvertiblePair(String.class,
com.azure.cosmos.models.ThroughputProperties.class));
answer.add(new ConvertiblePair(String.class,
com.azure.cosmos.models.ChangeFeedProcessorOptions.class));
answer.add(new ConvertiblePair(String.class,
com.azure.cosmos.models.CosmosQueryRequestOptions.class));
+ answer.add(new ConvertiblePair(String.class,
com.azure.cosmos.models.IndexingPolicy.class));
return answer;
}
@@ -65,6 +66,7 @@ public class CosmosDbComponentConverter implements
GenericConverter {
case "com.azure.cosmos.models.ThroughputProperties": return
applicationContext.getBean(ref,
com.azure.cosmos.models.ThroughputProperties.class);
case "com.azure.cosmos.models.ChangeFeedProcessorOptions": return
applicationContext.getBean(ref,
com.azure.cosmos.models.ChangeFeedProcessorOptions.class);
case "com.azure.cosmos.models.CosmosQueryRequestOptions": return
applicationContext.getBean(ref,
com.azure.cosmos.models.CosmosQueryRequestOptions.class);
+ case "com.azure.cosmos.models.IndexingPolicy": return
applicationContext.getBean(ref, com.azure.cosmos.models.IndexingPolicy.class);
}
return null;
}