This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new de0a45ef3f8 Regen
de0a45ef3f8 is described below
commit de0a45ef3f88e0b0fc2d048304975fd448d9ecf3
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jun 24 06:33:15 2022 +0200
Regen
---
.../camel/catalog/components/google-mail.json | 8 +--
.../dsl/GoogleMailComponentBuilderFactory.java | 27 +++++----
.../dsl/GoogleMailEndpointBuilderFactory.java | 70 ++++++++++++----------
3 files changed, 56 insertions(+), 49 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-mail.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-mail.json
index e398ae00545..03cd484f116 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-mail.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-mail.json
@@ -34,8 +34,8 @@
"clientFactory": { "kind": "property", "displayName": "Client Factory",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "org.apache.camel.component.google.mail.GoogleMailClientFactory",
"deprecated": false, "autowired": false, "secret": false, "description": "To
use the GoogleCalendarClientFactory as factory for creating the client. Will by
default use BatchGoogleMailClientFactory" },
"accessToken": { "kind": "property", "displayName": "Access Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "OAuth 2 access token.
This typically expires after an hour so refreshToken is recommended for long
term usage." },
"clientSecret": { "kind": "property", "displayName": "Client Secret",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "Client secret of the
mail application" },
- "keyResource": { "kind": "property", "displayName": "Key Resource",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "Sets .json file with
credentials for Service account" },
- "refreshToken": { "kind": "property", "displayName": "Refresh Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "OAuth 2 refresh token.
Using this, the Google Calendar component can obtain a new accessToken whenever
the [...]
+ "refreshToken": { "kind": "property", "displayName": "Refresh Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "OAuth 2 refresh token.
Using this, the Google Calendar component can obtain a new accessToken whenever
the [...]
+ "serviceAccountKey": { "kind": "property", "displayName": "Service Account
Key", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "Service account key in
json format to authenticate an application as a service account. Accept [...]
},
"properties": {
"apiName": { "kind": "path", "displayName": "Api Name", "group": "common",
"label": "", "required": true, "type": "object", "javaType":
"org.apache.camel.component.google.mail.internal.GoogleMailApiName", "enum": [
"THREADS", "MESSAGES", "ATTACHMENTS", "LABELS", "HISTORY", "DRAFTS", "USERS" ],
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "c [...]
@@ -67,8 +67,8 @@
"useFixedDelay": { "kind": "parameter", "displayName": "Use Fixed Delay",
"group": "scheduler", "label": "consumer,scheduler", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Controls if fixed delay
or fixed rate is used. See ScheduledExecutorService in JDK for details." },
"accessToken": { "kind": "parameter", "displayName": "Access Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "OAuth 2 access token.
This typically expires after an hour so refreshToken is recommended for long
term usage." },
"clientSecret": { "kind": "parameter", "displayName": "Client Secret",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "Client secret of the
mail application" },
- "keyResource": { "kind": "parameter", "displayName": "Key Resource",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "Sets .json file with
credentials for Service account" },
- "refreshToken": { "kind": "parameter", "displayName": "Refresh Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "OAuth 2 refresh token.
Using this, the Google Calendar component can obtain a new accessToken whenever
the [...]
+ "refreshToken": { "kind": "parameter", "displayName": "Refresh Token",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "OAuth 2 refresh token.
Using this, the Google Calendar component can obtain a new accessToken whenever
the [...]
+ "serviceAccountKey": { "kind": "parameter", "displayName": "Service
Account Key", "group": "security", "label": "security", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.google.mail.GoogleMailConfiguration",
"configurationField": "configuration", "description": "Service account key in
json format to authenticate an application as a service account. Accept [...]
},
"apis": {
"attachments": { "consumerOnly": false, "producerOnly": false,
"description": "The attachments collection of methods", "methods": { "get": {
"description": "Gets the specified message attachment", "signatures": [
"com.google.api.services.gmail.Gmail$Users$Messages$Attachments$Get get(String
userId, String messageId, String id)" ] } } },
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleMailComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleMailComponentBuilderFactory.java
index 3f4994f5531..221af7e165e 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleMailComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleMailComponentBuilderFactory.java
@@ -241,35 +241,36 @@ public interface GoogleMailComponentBuilderFactory {
return this;
}
/**
- * Sets .json file with credentials for Service account.
+ * OAuth 2 refresh token. Using this, the Google Calendar component can
+ * obtain a new accessToken whenever the current one expires - a
+ * necessity if the application is long-lived.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param keyResource the value to set
+ * @param refreshToken the value to set
* @return the dsl builder
*/
- default GoogleMailComponentBuilder keyResource(
- java.lang.String keyResource) {
- doSetProperty("keyResource", keyResource);
+ default GoogleMailComponentBuilder refreshToken(
+ java.lang.String refreshToken) {
+ doSetProperty("refreshToken", refreshToken);
return this;
}
/**
- * OAuth 2 refresh token. Using this, the Google Calendar component can
- * obtain a new accessToken whenever the current one expires - a
- * necessity if the application is long-lived.
+ * Service account key in json format to authenticate an application as
+ * a service account. Accept base64 adding the prefix base64:.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param refreshToken the value to set
+ * @param serviceAccountKey the value to set
* @return the dsl builder
*/
- default GoogleMailComponentBuilder refreshToken(
- java.lang.String refreshToken) {
- doSetProperty("refreshToken", refreshToken);
+ default GoogleMailComponentBuilder serviceAccountKey(
+ java.lang.String serviceAccountKey) {
+ doSetProperty("serviceAccountKey", serviceAccountKey);
return this;
}
}
@@ -307,8 +308,8 @@ public interface GoogleMailComponentBuilderFactory {
case "clientFactory": ((GoogleMailComponent)
component).setClientFactory((org.apache.camel.component.google.mail.GoogleMailClientFactory)
value); return true;
case "accessToken": getOrCreateConfiguration((GoogleMailComponent)
component).setAccessToken((java.lang.String) value); return true;
case "clientSecret":
getOrCreateConfiguration((GoogleMailComponent)
component).setClientSecret((java.lang.String) value); return true;
- case "keyResource": getOrCreateConfiguration((GoogleMailComponent)
component).setKeyResource((java.lang.String) value); return true;
case "refreshToken":
getOrCreateConfiguration((GoogleMailComponent)
component).setRefreshToken((java.lang.String) value); return true;
+ case "serviceAccountKey":
getOrCreateConfiguration((GoogleMailComponent)
component).setServiceAccountKey((java.lang.String) value); return true;
default: return false;
}
}
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java
index 272a4986d76..e89e65f9bd2 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleMailEndpointBuilderFactory.java
@@ -676,34 +676,36 @@ public interface GoogleMailEndpointBuilderFactory {
return this;
}
/**
- * Sets .json file with credentials for Service account.
+ * OAuth 2 refresh token. Using this, the Google Calendar component can
+ * obtain a new accessToken whenever the current one expires - a
+ * necessity if the application is long-lived.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param keyResource the value to set
+ * @param refreshToken the value to set
* @return the dsl builder
*/
- default GoogleMailEndpointConsumerBuilder keyResource(String
keyResource) {
- doSetProperty("keyResource", keyResource);
+ default GoogleMailEndpointConsumerBuilder refreshToken(
+ String refreshToken) {
+ doSetProperty("refreshToken", refreshToken);
return this;
}
/**
- * OAuth 2 refresh token. Using this, the Google Calendar component can
- * obtain a new accessToken whenever the current one expires - a
- * necessity if the application is long-lived.
+ * Service account key in json format to authenticate an application as
+ * a service account. Accept base64 adding the prefix base64:.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param refreshToken the value to set
+ * @param serviceAccountKey the value to set
* @return the dsl builder
*/
- default GoogleMailEndpointConsumerBuilder refreshToken(
- String refreshToken) {
- doSetProperty("refreshToken", refreshToken);
+ default GoogleMailEndpointConsumerBuilder serviceAccountKey(
+ String serviceAccountKey) {
+ doSetProperty("serviceAccountKey", serviceAccountKey);
return this;
}
}
@@ -1000,34 +1002,36 @@ public interface GoogleMailEndpointBuilderFactory {
return this;
}
/**
- * Sets .json file with credentials for Service account.
+ * OAuth 2 refresh token. Using this, the Google Calendar component can
+ * obtain a new accessToken whenever the current one expires - a
+ * necessity if the application is long-lived.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param keyResource the value to set
+ * @param refreshToken the value to set
* @return the dsl builder
*/
- default GoogleMailEndpointProducerBuilder keyResource(String
keyResource) {
- doSetProperty("keyResource", keyResource);
+ default GoogleMailEndpointProducerBuilder refreshToken(
+ String refreshToken) {
+ doSetProperty("refreshToken", refreshToken);
return this;
}
/**
- * OAuth 2 refresh token. Using this, the Google Calendar component can
- * obtain a new accessToken whenever the current one expires - a
- * necessity if the application is long-lived.
+ * Service account key in json format to authenticate an application as
+ * a service account. Accept base64 adding the prefix base64:.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param refreshToken the value to set
+ * @param serviceAccountKey the value to set
* @return the dsl builder
*/
- default GoogleMailEndpointProducerBuilder refreshToken(
- String refreshToken) {
- doSetProperty("refreshToken", refreshToken);
+ default GoogleMailEndpointProducerBuilder serviceAccountKey(
+ String serviceAccountKey) {
+ doSetProperty("serviceAccountKey", serviceAccountKey);
return this;
}
}
@@ -1219,33 +1223,35 @@ public interface GoogleMailEndpointBuilderFactory {
return this;
}
/**
- * Sets .json file with credentials for Service account.
+ * OAuth 2 refresh token. Using this, the Google Calendar component can
+ * obtain a new accessToken whenever the current one expires - a
+ * necessity if the application is long-lived.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param keyResource the value to set
+ * @param refreshToken the value to set
* @return the dsl builder
*/
- default GoogleMailEndpointBuilder keyResource(String keyResource) {
- doSetProperty("keyResource", keyResource);
+ default GoogleMailEndpointBuilder refreshToken(String refreshToken) {
+ doSetProperty("refreshToken", refreshToken);
return this;
}
/**
- * OAuth 2 refresh token. Using this, the Google Calendar component can
- * obtain a new accessToken whenever the current one expires - a
- * necessity if the application is long-lived.
+ * Service account key in json format to authenticate an application as
+ * a service account. Accept base64 adding the prefix base64:.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: security
*
- * @param refreshToken the value to set
+ * @param serviceAccountKey the value to set
* @return the dsl builder
*/
- default GoogleMailEndpointBuilder refreshToken(String refreshToken) {
- doSetProperty("refreshToken", refreshToken);
+ default GoogleMailEndpointBuilder serviceAccountKey(
+ String serviceAccountKey) {
+ doSetProperty("serviceAccountKey", serviceAccountKey);
return this;
}
}