This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push:
new 9d40582c4b7 Regen for commit 0f0d7907ecace4e869416e375c60b8e1e540c8b7
9d40582c4b7 is described below
commit 9d40582c4b72c8679e870793a84365e0bbaac274
Author: davsclaus <[email protected]>
AuthorDate: Sat May 6 08:01:51 2023 +0000
Regen for commit 0f0d7907ecace4e869416e375c60b8e1e540c8b7
Signed-off-by: GitHub <[email protected]>
---
.../camel/catalog/components/azure-cosmosdb.json | 6 ++++--
.../azure/cosmosdb/CosmosDbComponentConfigurer.java | 6 ++++++
.../azure/cosmosdb/CosmosDbEndpointConfigurer.java | 6 ++++++
.../azure/cosmosdb/CosmosDbEndpointUriFactory.java | 3 ++-
.../camel/component/azure/cosmosdb/azure-cosmosdb.json | 6 ++++--
.../apache/camel/cli/connector/LocalCliConnector.java | 2 --
.../dsl/AzureCosmosdbComponentBuilderFactory.java | 18 ++++++++++++++++++
7 files changed, 40 insertions(+), 7 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-cosmosdb.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-cosmosdb.json
index b9c8ec21d1d..6ec6db7f9e5 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-cosmosdb.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-cosmosdb.json
@@ -50,7 +50,8 @@
"query": { "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
https:\/\/docs.m [...]
"queryRequestOptions": { "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 be used with [...]
"autowiredEnabled": { "kind": "property", "displayName": "Autowired
Enabled", "group": "advanced", "label": "advanced", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Whether autowiring is
enabled. This is used for automatic autowiring options (the option must be
marked as autowired) by looking up in the registry to find if there is a single
instance of matching type, which t [...]
- "accountKey": { "kind": "property", "displayName": "Account Key", "group":
"security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for accessing resource." }
+ "accountKey": { "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 accessing resou [...]
+ "useDefaultIdentity": { "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 identity mechanis [...]
},
"properties": {
"databaseName": { "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 createDatabas [...]
@@ -83,6 +84,7 @@
"query": { "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
https:\/\/docs. [...]
"queryRequestOptions": { "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 be used with [...]
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether the producer should be started lazy (on the first
message). By starting lazy you can use this to allow CamelContext and routes to
startup in situations where a producer may other [...]
- "accountKey": { "kind": "parameter", "displayName": "Account Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for accessing resource." }
+ "accountKey": { "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 accessing reso [...]
+ "useDefaultIdentity": { "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 identity mechani [...]
}
}
diff --git
a/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbComponentConfigurer.java
b/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbComponentConfigurer.java
index b6c6af2d252..2928772486c 100644
---
a/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbComponentConfigurer.java
+++
b/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbComponentConfigurer.java
@@ -83,6 +83,8 @@ public class CosmosDbComponentConfigurer extends
PropertyConfigurerSupport imple
case "readRequestsFallbackEnabled":
getOrCreateConfiguration(target).setReadRequestsFallbackEnabled(property(camelContext,
boolean.class, value)); return true;
case "throughputproperties":
case "throughputProperties":
getOrCreateConfiguration(target).setThroughputProperties(property(camelContext,
com.azure.cosmos.models.ThroughputProperties.class, value)); return true;
+ case "usedefaultidentity":
+ case "useDefaultIdentity":
getOrCreateConfiguration(target).setUseDefaultIdentity(property(camelContext,
boolean.class, value)); return true;
default: return false;
}
}
@@ -150,6 +152,8 @@ public class CosmosDbComponentConfigurer extends
PropertyConfigurerSupport imple
case "readRequestsFallbackEnabled": return boolean.class;
case "throughputproperties":
case "throughputProperties": return
com.azure.cosmos.models.ThroughputProperties.class;
+ case "usedefaultidentity":
+ case "useDefaultIdentity": return boolean.class;
default: return null;
}
}
@@ -213,6 +217,8 @@ public class CosmosDbComponentConfigurer extends
PropertyConfigurerSupport imple
case "readRequestsFallbackEnabled": return
getOrCreateConfiguration(target).isReadRequestsFallbackEnabled();
case "throughputproperties":
case "throughputProperties": return
getOrCreateConfiguration(target).getThroughputProperties();
+ case "usedefaultidentity":
+ case "useDefaultIdentity": return
getOrCreateConfiguration(target).isUseDefaultIdentity();
default: return null;
}
}
diff --git
a/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointConfigurer.java
b/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointConfigurer.java
index 69f9ca021c6..b673dc85e9d 100644
---
a/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointConfigurer.java
+++
b/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointConfigurer.java
@@ -77,6 +77,8 @@ public class CosmosDbEndpointConfigurer extends
PropertyConfigurerSupport implem
case "readRequestsFallbackEnabled":
target.getConfiguration().setReadRequestsFallbackEnabled(property(camelContext,
boolean.class, value)); return true;
case "throughputproperties":
case "throughputProperties":
target.getConfiguration().setThroughputProperties(property(camelContext,
com.azure.cosmos.models.ThroughputProperties.class, value)); return true;
+ case "usedefaultidentity":
+ case "useDefaultIdentity":
target.getConfiguration().setUseDefaultIdentity(property(camelContext,
boolean.class, value)); return true;
default: return false;
}
}
@@ -145,6 +147,8 @@ public class CosmosDbEndpointConfigurer extends
PropertyConfigurerSupport implem
case "readRequestsFallbackEnabled": return boolean.class;
case "throughputproperties":
case "throughputProperties": return
com.azure.cosmos.models.ThroughputProperties.class;
+ case "usedefaultidentity":
+ case "useDefaultIdentity": return boolean.class;
default: return null;
}
}
@@ -209,6 +213,8 @@ public class CosmosDbEndpointConfigurer extends
PropertyConfigurerSupport implem
case "readRequestsFallbackEnabled": return
target.getConfiguration().isReadRequestsFallbackEnabled();
case "throughputproperties":
case "throughputProperties": return
target.getConfiguration().getThroughputProperties();
+ case "usedefaultidentity":
+ case "useDefaultIdentity": return
target.getConfiguration().isUseDefaultIdentity();
default: return null;
}
}
diff --git
a/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointUriFactory.java
b/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointUriFactory.java
index f5ddb2b9be1..5213b8bc710 100644
---
a/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointUriFactory.java
+++
b/components/camel-azure/camel-azure-cosmosdb/src/generated/java/org/apache/camel/component/azure/cosmosdb/CosmosDbEndpointUriFactory.java
@@ -21,7 +21,7 @@ public class CosmosDbEndpointUriFactory extends
org.apache.camel.support.compone
private static final Set<String> SECRET_PROPERTY_NAMES;
private static final Set<String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(31);
+ Set<String> props = new HashSet<>(32);
props.add("accountKey");
props.add("bridgeErrorHandler");
props.add("changeFeedProcessorOptions");
@@ -53,6 +53,7 @@ public class CosmosDbEndpointUriFactory extends
org.apache.camel.support.compone
props.add("queryRequestOptions");
props.add("readRequestsFallbackEnabled");
props.add("throughputProperties");
+ props.add("useDefaultIdentity");
PROPERTY_NAMES = Collections.unmodifiableSet(props);
Set<String> secretProps = new HashSet<>(1);
secretProps.add("accountKey");
diff --git
a/components/camel-azure/camel-azure-cosmosdb/src/generated/resources/org/apache/camel/component/azure/cosmosdb/azure-cosmosdb.json
b/components/camel-azure/camel-azure-cosmosdb/src/generated/resources/org/apache/camel/component/azure/cosmosdb/azure-cosmosdb.json
index b9c8ec21d1d..6ec6db7f9e5 100644
---
a/components/camel-azure/camel-azure-cosmosdb/src/generated/resources/org/apache/camel/component/azure/cosmosdb/azure-cosmosdb.json
+++
b/components/camel-azure/camel-azure-cosmosdb/src/generated/resources/org/apache/camel/component/azure/cosmosdb/azure-cosmosdb.json
@@ -50,7 +50,8 @@
"query": { "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
https:\/\/docs.m [...]
"queryRequestOptions": { "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 be used with [...]
"autowiredEnabled": { "kind": "property", "displayName": "Autowired
Enabled", "group": "advanced", "label": "advanced", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Whether autowiring is
enabled. This is used for automatic autowiring options (the option must be
marked as autowired) by looking up in the registry to find if there is a single
instance of matching type, which t [...]
- "accountKey": { "kind": "property", "displayName": "Account Key", "group":
"security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for accessing resource." }
+ "accountKey": { "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 accessing resou [...]
+ "useDefaultIdentity": { "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 identity mechanis [...]
},
"properties": {
"databaseName": { "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 createDatabas [...]
@@ -83,6 +84,7 @@
"query": { "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
https:\/\/docs. [...]
"queryRequestOptions": { "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 be used with [...]
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "Whether the producer should be started lazy (on the first
message). By starting lazy you can use this to allow CamelContext and routes to
startup in situations where a producer may other [...]
- "accountKey": { "kind": "parameter", "displayName": "Account Key",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": true, "configurationClass":
"org.apache.camel.component.azure.cosmosdb.CosmosDbConfiguration",
"configurationField": "configuration", "description": "Sets either a master or
readonly key used to perform authentication for accessing resource." }
+ "accountKey": { "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 accessing reso [...]
+ "useDefaultIdentity": { "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 identity mechani [...]
}
}
diff --git
a/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
b/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
index 5bda4c0790d..3814e4fcbdd 100644
---
a/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
+++
b/dsl/camel-cli-connector/src/main/java/org/apache/camel/cli/connector/LocalCliConnector.java
@@ -46,11 +46,9 @@ import org.apache.camel.console.DevConsoleRegistry;
import org.apache.camel.spi.CliConnector;
import org.apache.camel.spi.CliConnectorFactory;
import org.apache.camel.spi.ContextReloadStrategy;
-import org.apache.camel.spi.ResourceReloadStrategy;
import org.apache.camel.support.DefaultContextReloadStrategy;
import org.apache.camel.support.PatternHelper;
import org.apache.camel.support.RouteOnDemandReloadStrategy;
-import org.apache.camel.support.RouteWatcherReloadStrategy;
import org.apache.camel.support.service.ServiceHelper;
import org.apache.camel.support.service.ServiceSupport;
import org.apache.camel.util.FileUtil;
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureCosmosdbComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureCosmosdbComponentBuilderFactory.java
index 6324303d82c..6dbf93ed269 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureCosmosdbComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureCosmosdbComponentBuilderFactory.java
@@ -597,6 +597,23 @@ public interface AzureCosmosdbComponentBuilderFactory {
doSetProperty("accountKey", accountKey);
return this;
}
+ /**
+ * Indicates whether to use the default identity mechanism instead of
+ * the access key.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: security
+ *
+ * @param useDefaultIdentity the value to set
+ * @return the dsl builder
+ */
+ default AzureCosmosdbComponentBuilder useDefaultIdentity(
+ boolean useDefaultIdentity) {
+ doSetProperty("useDefaultIdentity", useDefaultIdentity);
+ return this;
+ }
}
class AzureCosmosdbComponentBuilderImpl
@@ -650,6 +667,7 @@ public interface AzureCosmosdbComponentBuilderFactory {
case "queryRequestOptions":
getOrCreateConfiguration((CosmosDbComponent)
component).setQueryRequestOptions((com.azure.cosmos.models.CosmosQueryRequestOptions)
value); return true;
case "autowiredEnabled": ((CosmosDbComponent)
component).setAutowiredEnabled((boolean) value); return true;
case "accountKey": getOrCreateConfiguration((CosmosDbComponent)
component).setAccountKey((java.lang.String) value); return true;
+ case "useDefaultIdentity":
getOrCreateConfiguration((CosmosDbComponent)
component).setUseDefaultIdentity((boolean) value); return true;
default: return false;
}
}