You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/06/12 14:33:58 UTC
[camel] branch main updated: CAMEL-18170 - Enabling to serviceAccountKey as base64 to google-drive… (#7756)
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 f98d2f36d44 CAMEL-18170 - Enabling to serviceAccountKey as base64 to google-drive… (#7756)
f98d2f36d44 is described below
commit f98d2f36d44f3102f84a2219de39eabf9f866eae
Author: Rhuan Rocha <rh...@gmail.com>
AuthorDate: Sun Jun 12 11:33:50 2022 -0300
CAMEL-18170 - Enabling to serviceAccountKey as base64 to google-drive… (#7756)
* CAMEL-18170 - Enabling to serviceAccountKey as base64 to google-drive component
Signed-off-by: Rhuan Rocha <rh...@gmail.com>
* CAMEL-18170 - Keeping just the doc updates to serviceAccountKey as base64 to google-drive component
Signed-off-by: Rhuan Rocha <rh...@gmail.com>
* CAMEL-18170 - Renaming keyResource to serviceAccountKey
Signed-off-by: Rhuan Rocha <rh...@gmail.com>
* CAMEL-18170 - Renaming keyResource to serviceAccountKey
Signed-off-by: Rhuan Rocha <rh...@gmail.com>
---
.../DriveAboutEndpointConfigurationConfigurer.java | 14 +-
.../DriveAppsEndpointConfigurationConfigurer.java | 14 +-
...riveChangesEndpointConfigurationConfigurer.java | 14 +-
...iveChannelsEndpointConfigurationConfigurer.java | 14 +-
...iveChildrenEndpointConfigurationConfigurer.java | 14 +-
...iveCommentsEndpointConfigurationConfigurer.java | 14 +-
...DriveDrivesEndpointConfigurationConfigurer.java | 14 +-
.../DriveFilesEndpointConfigurationConfigurer.java | 14 +-
...riveParentsEndpointConfigurationConfigurer.java | 14 +-
...PermissionsEndpointConfigurationConfigurer.java | 14 +-
...ePropertiesEndpointConfigurationConfigurer.java | 14 +-
...riveRepliesEndpointConfigurationConfigurer.java | 14 +-
...veRevisionsEndpointConfigurationConfigurer.java | 14 +-
...eTeamdrivesEndpointConfigurationConfigurer.java | 14 +-
.../drive/GoogleDriveComponentConfigurer.java | 14 +-
.../drive/GoogleDriveConfigurationConfigurer.java | 14 +-
.../drive/GoogleDriveEndpointConfigurer.java | 14 +-
.../drive/GoogleDriveEndpointUriFactory.java | 2 +-
.../camel/component/google/drive/google-drive.json | 8 +-
.../drive/BatchGoogleDriveClientFactory.java | 244 +++++++++++----------
.../google/drive/GoogleDriveClientFactory.java | 3 +-
.../google/drive/GoogleDriveComponent.java | 4 +-
.../google/drive/GoogleDriveConfiguration.java | 15 +-
.../drive/InteractiveGoogleDriveClientFactory.java | 3 +-
.../drive/AbstractGoogleDriveTestSupport.java | 2 +-
.../component/google/drive/MyClientFactory.java | 3 +-
.../src/test/resources/test-options.properties | 2 +-
27 files changed, 265 insertions(+), 259 deletions(-)
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java
index 1187d0e70c1..ac392bb36f9 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfigurationConfigurer.java
@@ -26,10 +26,10 @@ public class DriveAboutEndpointConfigurationConfigurer extends org.apache.camel.
map.put("ClientId", java.lang.String.class);
map.put("ClientSecret", java.lang.String.class);
map.put("Delegate", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -49,14 +49,14 @@ public class DriveAboutEndpointConfigurationConfigurer extends org.apache.camel.
case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -81,14 +81,14 @@ public class DriveAboutEndpointConfigurationConfigurer extends org.apache.camel.
case "ClientSecret": return java.lang.String.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -109,14 +109,14 @@ public class DriveAboutEndpointConfigurationConfigurer extends org.apache.camel.
case "ClientSecret": return target.getClientSecret();
case "delegate":
case "Delegate": return target.getDelegate();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java
index d4d11c1de9e..8209052eb95 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java
@@ -27,10 +27,10 @@ public class DriveAppsEndpointConfigurationConfigurer extends org.apache.camel.s
map.put("ClientId", java.lang.String.class);
map.put("ClientSecret", java.lang.String.class);
map.put("Delegate", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -52,14 +52,14 @@ public class DriveAppsEndpointConfigurationConfigurer extends org.apache.camel.s
case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -86,14 +86,14 @@ public class DriveAppsEndpointConfigurationConfigurer extends org.apache.camel.s
case "ClientSecret": return java.lang.String.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -116,14 +116,14 @@ public class DriveAppsEndpointConfigurationConfigurer extends org.apache.camel.s
case "ClientSecret": return target.getClientSecret();
case "delegate":
case "Delegate": return target.getDelegate();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java
index ac83ceb01e4..bf2aae92b06 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfigurationConfigurer.java
@@ -28,10 +28,10 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
map.put("ClientSecret", java.lang.String.class);
map.put("ContentChannel", com.google.api.services.drive.model.Channel.class);
map.put("Delegate", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -55,14 +55,14 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "ContentChannel": target.setContentChannel(property(camelContext, com.google.api.services.drive.model.Channel.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -91,14 +91,14 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "ContentChannel": return com.google.api.services.drive.model.Channel.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -123,14 +123,14 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "ContentChannel": return target.getContentChannel();
case "delegate":
case "Delegate": return target.getDelegate();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java
index f7f18668cc8..fb9e8ee4880 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfigurationConfigurer.java
@@ -27,10 +27,10 @@ public class DriveChannelsEndpointConfigurationConfigurer extends org.apache.cam
map.put("ClientSecret", java.lang.String.class);
map.put("ContentChannel", com.google.api.services.drive.model.Channel.class);
map.put("Delegate", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -52,14 +52,14 @@ public class DriveChannelsEndpointConfigurationConfigurer extends org.apache.cam
case "ContentChannel": target.setContentChannel(property(camelContext, com.google.api.services.drive.model.Channel.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -86,14 +86,14 @@ public class DriveChannelsEndpointConfigurationConfigurer extends org.apache.cam
case "ContentChannel": return com.google.api.services.drive.model.Channel.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -116,14 +116,14 @@ public class DriveChannelsEndpointConfigurationConfigurer extends org.apache.cam
case "ContentChannel": return target.getContentChannel();
case "delegate":
case "Delegate": return target.getDelegate();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java
index 3d1c51192f0..04418a0dc34 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java
@@ -29,10 +29,10 @@ public class DriveChildrenEndpointConfigurationConfigurer extends org.apache.cam
map.put("Content", com.google.api.services.drive.model.ChildReference.class);
map.put("Delegate", java.lang.String.class);
map.put("FolderId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -58,14 +58,14 @@ public class DriveChildrenEndpointConfigurationConfigurer extends org.apache.cam
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "folderid":
case "FolderId": target.setFolderId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -96,14 +96,14 @@ public class DriveChildrenEndpointConfigurationConfigurer extends org.apache.cam
case "Delegate": return java.lang.String.class;
case "folderid":
case "FolderId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -130,14 +130,14 @@ public class DriveChildrenEndpointConfigurationConfigurer extends org.apache.cam
case "Delegate": return target.getDelegate();
case "folderid":
case "FolderId": return target.getFolderId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java
index 922a73d59e3..e4ad0ad0513 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfigurationConfigurer.java
@@ -29,10 +29,10 @@ public class DriveCommentsEndpointConfigurationConfigurer extends org.apache.cam
map.put("Content", com.google.api.services.drive.model.Comment.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -58,14 +58,14 @@ public class DriveCommentsEndpointConfigurationConfigurer extends org.apache.cam
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -96,14 +96,14 @@ public class DriveCommentsEndpointConfigurationConfigurer extends org.apache.cam
case "Delegate": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -130,14 +130,14 @@ public class DriveCommentsEndpointConfigurationConfigurer extends org.apache.cam
case "Delegate": return target.getDelegate();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfigurationConfigurer.java
index 3661f7fa505..bc8fb6b25ce 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfigurationConfigurer.java
@@ -28,11 +28,11 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
map.put("Content", com.google.api.services.drive.model.Drive.class);
map.put("Delegate", java.lang.String.class);
map.put("DriveId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("RequestId", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -56,8 +56,6 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "driveid":
case "DriveId": target.setDriveId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
@@ -66,6 +64,8 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
case "RequestId": target.setRequestId(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -94,8 +94,6 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
case "Delegate": return java.lang.String.class;
case "driveid":
case "DriveId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
@@ -104,6 +102,8 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
case "RequestId": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -128,8 +128,6 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
case "Delegate": return target.getDelegate();
case "driveid":
case "DriveId": return target.getDriveId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
@@ -138,6 +136,8 @@ public class DriveDrivesEndpointConfigurationConfigurer extends org.apache.camel
case "RequestId": return target.getRequestId();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java
index 6cd73be0c8e..9488f4c4d7b 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfigurationConfigurer.java
@@ -29,12 +29,12 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
map.put("ContentChannel", com.google.api.services.drive.model.Channel.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MediaContent", com.google.api.client.http.AbstractInputStreamContent.class);
map.put("MethodName", java.lang.String.class);
map.put("MimeType", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -60,8 +60,6 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "mediacontent":
case "MediaContent": target.setMediaContent(property(camelContext, com.google.api.client.http.AbstractInputStreamContent.class, value)); return true;
case "methodname":
@@ -72,6 +70,8 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -102,8 +102,6 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "Delegate": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "mediacontent":
case "MediaContent": return com.google.api.client.http.AbstractInputStreamContent.class;
case "methodname":
@@ -114,6 +112,8 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -140,8 +140,6 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "Delegate": return target.getDelegate();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "mediacontent":
case "MediaContent": return target.getMediaContent();
case "methodname":
@@ -152,6 +150,8 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java
index 21b7e726168..17d140880cd 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java
@@ -28,11 +28,11 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
map.put("Content", com.google.api.services.drive.model.ParentReference.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("ParentId", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -56,8 +56,6 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "parentid":
@@ -66,6 +64,8 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -94,8 +94,6 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "parentid":
@@ -104,6 +102,8 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -128,8 +128,6 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": return target.getDelegate();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "parentid":
@@ -138,6 +136,8 @@ public class DriveParentsEndpointConfigurationConfigurer extends org.apache.came
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java
index f86c6b33191..6fc64fa8abc 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfigurationConfigurer.java
@@ -29,11 +29,11 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
map.put("Delegate", java.lang.String.class);
map.put("Email", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("PermissionId", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -59,8 +59,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "Email": target.setEmail(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "permissionid":
@@ -69,6 +67,8 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -99,8 +99,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "Email": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "permissionid":
@@ -109,6 +107,8 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -135,8 +135,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "Email": return target.getEmail();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "permissionid":
@@ -145,6 +143,8 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java
index e53691b487c..f7bb8f15587 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java
@@ -28,11 +28,11 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
map.put("Content", com.google.api.services.drive.model.Property.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("PropertyKey", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -56,8 +56,6 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "propertykey":
@@ -66,6 +64,8 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -94,8 +94,6 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
case "Delegate": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "propertykey":
@@ -104,6 +102,8 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -128,8 +128,6 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
case "Delegate": return target.getDelegate();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "propertykey":
@@ -138,6 +136,8 @@ public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.c
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java
index 89def01f3f5..46eb86fbc77 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfigurationConfigurer.java
@@ -29,11 +29,11 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
map.put("Content", com.google.api.services.drive.model.CommentReply.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("ReplyId", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -59,8 +59,6 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
@@ -69,6 +67,8 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "ReplyId": target.setReplyId(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -99,8 +99,6 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
@@ -109,6 +107,8 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "ReplyId": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -135,8 +135,6 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": return target.getDelegate();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
@@ -145,6 +143,8 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "ReplyId": return target.getReplyId();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java
index db37bd32a79..dbb2a2428a8 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfigurationConfigurer.java
@@ -28,11 +28,11 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
map.put("Content", com.google.api.services.drive.model.Revision.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("RevisionId", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -56,8 +56,6 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
case "FileId": target.setFileId(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
@@ -66,6 +64,8 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
case "RevisionId": target.setRevisionId(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -94,8 +94,6 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
case "Delegate": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
@@ -104,6 +102,8 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
case "RevisionId": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -128,8 +128,6 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
case "Delegate": return target.getDelegate();
case "fileid":
case "FileId": return target.getFileId();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
@@ -138,6 +136,8 @@ public class DriveRevisionsEndpointConfigurationConfigurer extends org.apache.ca
case "RevisionId": return target.getRevisionId();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfigurationConfigurer.java
index 5d05f2b6de0..cb314b9c2c2 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfigurationConfigurer.java
@@ -27,11 +27,11 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
map.put("ClientSecret", java.lang.String.class);
map.put("Content", com.google.api.services.drive.model.TeamDrive.class);
map.put("Delegate", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("RequestId", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
map.put("TeamDriveId", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -54,8 +54,6 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.TeamDrive.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
@@ -64,6 +62,8 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
case "RequestId": target.setRequestId(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
case "teamdriveid":
case "TeamDriveId": target.setTeamDriveId(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
@@ -92,8 +92,6 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
case "Content": return com.google.api.services.drive.model.TeamDrive.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
@@ -102,6 +100,8 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
case "RequestId": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
case "teamdriveid":
case "TeamDriveId": return java.lang.String.class;
default: return null;
@@ -126,8 +126,6 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
case "Content": return target.getContent();
case "delegate":
case "Delegate": return target.getDelegate();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
@@ -136,6 +134,8 @@ public class DriveTeamdrivesEndpointConfigurationConfigurer extends org.apache.c
case "RequestId": return target.getRequestId();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
case "teamdriveid":
case "TeamDriveId": return target.getTeamDriveId();
default: return null;
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveComponentConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveComponentConfigurer.java
index 3921b35c42e..12f5d7c1a29 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveComponentConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveComponentConfigurer.java
@@ -31,8 +31,8 @@ public class GoogleDriveComponentConfigurer extends PropertyConfigurerSupport im
map.put("clientFactory", org.apache.camel.component.google.drive.GoogleDriveClientFactory.class);
map.put("accessToken", java.lang.String.class);
map.put("clientSecret", java.lang.String.class);
- map.put("keyResource", java.lang.String.class);
map.put("refreshToken", java.lang.String.class);
+ map.put("serviceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -63,13 +63,13 @@ public class GoogleDriveComponentConfigurer extends PropertyConfigurerSupport im
case "clientSecret": getOrCreateConfiguration(target).setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.google.drive.GoogleDriveConfiguration.class, value)); return true;
case "delegate": getOrCreateConfiguration(target).setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "keyResource": getOrCreateConfiguration(target).setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "refreshtoken":
case "refreshToken": getOrCreateConfiguration(target).setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes": getOrCreateConfiguration(target).setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "serviceAccountKey": getOrCreateConfiguration(target).setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -98,13 +98,13 @@ public class GoogleDriveComponentConfigurer extends PropertyConfigurerSupport im
case "clientSecret": return java.lang.String.class;
case "configuration": return org.apache.camel.component.google.drive.GoogleDriveConfiguration.class;
case "delegate": return java.lang.String.class;
- case "keyresource":
- case "keyResource": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "refreshtoken":
case "refreshToken": return java.lang.String.class;
case "scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "serviceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -129,13 +129,13 @@ public class GoogleDriveComponentConfigurer extends PropertyConfigurerSupport im
case "clientSecret": return getOrCreateConfiguration(target).getClientSecret();
case "configuration": return target.getConfiguration();
case "delegate": return getOrCreateConfiguration(target).getDelegate();
- case "keyresource":
- case "keyResource": return getOrCreateConfiguration(target).getKeyResource();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "refreshtoken":
case "refreshToken": return getOrCreateConfiguration(target).getRefreshToken();
case "scopes": return getOrCreateConfiguration(target).getScopes();
+ case "serviceaccountkey":
+ case "serviceAccountKey": return getOrCreateConfiguration(target).getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java
index 73f1ff3d704..b566d28b921 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveConfigurationConfigurer.java
@@ -26,10 +26,10 @@ public class GoogleDriveConfigurationConfigurer extends org.apache.camel.support
map.put("ClientId", java.lang.String.class);
map.put("ClientSecret", java.lang.String.class);
map.put("Delegate", java.lang.String.class);
- map.put("KeyResource", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.List.class);
+ map.put("ServiceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -49,14 +49,14 @@ public class GoogleDriveConfigurationConfigurer extends org.apache.camel.support
case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "keyresource":
- case "KeyResource": target.setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.List.class, value)); return true;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@@ -81,14 +81,14 @@ public class GoogleDriveConfigurationConfigurer extends org.apache.camel.support
case "ClientSecret": return java.lang.String.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "keyresource":
- case "KeyResource": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.List.class;
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return java.lang.String.class;
default: return null;
}
}
@@ -109,14 +109,14 @@ public class GoogleDriveConfigurationConfigurer extends org.apache.camel.support
case "ClientSecret": return target.getClientSecret();
case "delegate":
case "Delegate": return target.getDelegate();
- case "keyresource":
- case "KeyResource": return target.getKeyResource();
case "methodname":
case "MethodName": return target.getMethodName();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
case "Scopes": return target.getScopes();
+ case "serviceaccountkey":
+ case "ServiceAccountKey": return target.getServiceAccountKey();
default: return null;
}
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointConfigurer.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointConfigurer.java
index f160f921ff2..0f3c2ff9bd9 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointConfigurer.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointConfigurer.java
@@ -50,8 +50,8 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
map.put("useFixedDelay", boolean.class);
map.put("accessToken", java.lang.String.class);
map.put("clientSecret", java.lang.String.class);
- map.put("keyResource", java.lang.String.class);
map.put("refreshToken", java.lang.String.class);
+ map.put("serviceAccountKey", java.lang.String.class);
ALL_OPTIONS = map;
}
@@ -88,8 +88,6 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
case "inBody": target.setInBody(property(camelContext, java.lang.String.class, value)); return true;
case "initialdelay":
case "initialDelay": target.setInitialDelay(property(camelContext, long.class, value)); return true;
- case "keyresource":
- case "keyResource": target.getConfiguration().setKeyResource(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "pollstrategy":
@@ -108,6 +106,8 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
case "scopes": target.getConfiguration().setScopes(property(camelContext, java.util.List.class, value)); return true;
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": target.setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
+ case "serviceaccountkey":
+ case "serviceAccountKey": target.getConfiguration().setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
case "startscheduler":
case "startScheduler": target.setStartScheduler(property(camelContext, boolean.class, value)); return true;
case "timeunit":
@@ -155,8 +155,6 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
case "inBody": return java.lang.String.class;
case "initialdelay":
case "initialDelay": return long.class;
- case "keyresource":
- case "keyResource": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "pollstrategy":
@@ -175,6 +173,8 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
case "scopes": return java.util.List.class;
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": return boolean.class;
+ case "serviceaccountkey":
+ case "serviceAccountKey": return java.lang.String.class;
case "startscheduler":
case "startScheduler": return boolean.class;
case "timeunit":
@@ -218,8 +218,6 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
case "inBody": return target.getInBody();
case "initialdelay":
case "initialDelay": return target.getInitialDelay();
- case "keyresource":
- case "keyResource": return target.getConfiguration().getKeyResource();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "pollstrategy":
@@ -238,6 +236,8 @@ public class GoogleDriveEndpointConfigurer extends PropertyConfigurerSupport imp
case "scopes": return target.getConfiguration().getScopes();
case "sendemptymessagewhenidle":
case "sendEmptyMessageWhenIdle": return target.isSendEmptyMessageWhenIdle();
+ case "serviceaccountkey":
+ case "serviceAccountKey": return target.getConfiguration().getServiceAccountKey();
case "startscheduler":
case "startScheduler": return target.isStartScheduler();
case "timeunit":
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointUriFactory.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointUriFactory.java
index cd8134562c2..efbb20d3ed7 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointUriFactory.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveEndpointUriFactory.java
@@ -49,7 +49,6 @@ public class GoogleDriveEndpointUriFactory extends org.apache.camel.support.comp
props.add("greedy");
props.add("inBody");
props.add("initialDelay");
- props.add("keyResource");
props.add("lazyStartProducer");
props.add("mediaContent");
props.add("methodName");
@@ -69,6 +68,7 @@ public class GoogleDriveEndpointUriFactory extends org.apache.camel.support.comp
props.add("schedulerProperties");
props.add("scopes");
props.add("sendEmptyMessageWhenIdle");
+ props.add("serviceAccountKey");
props.add("startScheduler");
props.add("teamDriveId");
props.add("timeUnit");
diff --git a/components/camel-google/camel-google-drive/src/generated/resources/org/apache/camel/component/google/drive/google-drive.json b/components/camel-google/camel-google-drive/src/generated/resources/org/apache/camel/component/google/drive/google-drive.json
index 9b319634b94..e4f3daffdcd 100644
--- a/components/camel-google/camel-google-drive/src/generated/resources/org/apache/camel/component/google/drive/google-drive.json
+++ b/components/camel-google/camel-google-drive/src/generated/resources/org/apache/camel/component/google/drive/google-drive.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.drive.GoogleDriveClientFactory", "deprecated": false, "autowired": false, "secret": false, "description": "To use the GoogleCalendarClientFactory as factory for creating the client. Will by default use BatchGoogleDriveClientFactory" },
"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.drive.GoogleDriveConfiguration", "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "Client secret of the drive 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.drive.GoogleDriveConfiguration", "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever th [...]
+ "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever th [...]
+ "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "Service account key in json format to authenticate an application as a service account. Accep [...]
},
"properties": {
"apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.google.drive.internal.GoogleDriveApiName", "enum": [ "DRIVE_ABOUT", "DRIVE_APPS", "DRIVE_CHANGES", "DRIVE_CHANNELS", "DRIVE_CHILDREN", "DRIVE_COMMENTS", "DRIVE_FILES", "DRIVE_PARENTS", "DRIVE_PERMISSIONS", "DRIVE_PROPERTIES", "DRIVE_DRIVES", "DRIVE_TEAMDRIVES", "DRIVE_REPLIES", "DRIVE_REVISIONS" ], "deprecated": false, "de [...]
@@ -68,8 +68,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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term us [...]
"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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "Client secret of the drive 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.drive.GoogleDriveConfiguration", "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever t [...]
+ "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever t [...]
+ "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.drive.GoogleDriveConfiguration", "configurationField": "configuration", "description": "Service account key in json format to authenticate an application as a service account. Acce [...]
},
"apis": {
"drive-apps": { "consumerOnly": false, "producerOnly": false, "description": "The apps collection of methods", "methods": { "get": { "description": "Gets a specific app", "signatures": [ "com.google.api.services.drive.Drive$Apps$Get get(String appId)" ] } } },
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
index 38815310b4e..364053b6773 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/BatchGoogleDriveClientFactory.java
@@ -1,121 +1,123 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.google.drive;
-
-import java.io.IOException;
-import java.net.InetAddress;
-import java.net.InetSocketAddress;
-import java.net.Proxy;
-import java.net.UnknownHostException;
-import java.util.Collection;
-
-import com.google.api.client.auth.oauth2.Credential;
-import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
-import com.google.api.client.http.javanet.NetHttpTransport;
-import com.google.api.client.json.jackson2.JacksonFactory;
-import com.google.api.services.drive.Drive;
-import org.apache.camel.CamelContext;
-import org.apache.camel.RuntimeCamelException;
-import org.apache.camel.support.ResourceHelper;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class BatchGoogleDriveClientFactory implements GoogleDriveClientFactory {
- private static final Logger LOG = LoggerFactory.getLogger(BatchGoogleDriveClientFactory.class);
- private NetHttpTransport transport;
- private JacksonFactory jsonFactory;
-
- public BatchGoogleDriveClientFactory() {
- this.transport = new NetHttpTransport();
- this.jsonFactory = new JacksonFactory();
- }
-
- public BatchGoogleDriveClientFactory(String proxyHost, int proxyPort) {
- try {
- Proxy proxy = new Proxy(
- Proxy.Type.HTTP,
- new InetSocketAddress(InetAddress.getByName(proxyHost), proxyPort));
- this.transport = new NetHttpTransport.Builder().setProxy(proxy).build();
- this.jsonFactory = new JacksonFactory();
- } catch (UnknownHostException e) {
- LOG.error("Unknow proxy host", e);
- }
- }
-
- @Override
- public Drive makeClient(
- String clientId, String clientSecret, Collection<String> scopes, String applicationName, String refreshToken,
- String accessToken) {
- if (clientId == null || clientSecret == null) {
- throw new IllegalArgumentException("clientId and clientSecret are required to create Google Drive client.");
- }
- try {
- Credential credential = authorize(clientId, clientSecret, scopes);
-
- if (refreshToken != null && !"".equals(refreshToken)) {
- credential.setRefreshToken(refreshToken);
- }
- if (accessToken != null && !"".equals(accessToken)) {
- credential.setAccessToken(accessToken);
- }
- return new Drive.Builder(transport, jsonFactory, credential).setApplicationName(applicationName).build();
- } catch (Exception e) {
- throw new RuntimeCamelException("Could not create Google Drive client.", e);
- }
- }
-
- // Authorizes the installed application to access user's protected data.
- private Credential authorize(String clientId, String clientSecret, Collection<String> scopes) {
- // authorize
- return new GoogleCredential.Builder()
- .setJsonFactory(jsonFactory)
- .setTransport(transport)
- .setClientSecrets(clientId, clientSecret)
- .setServiceAccountScopes(scopes)
- .build();
- }
-
- @Override
- public Drive makeClient(
- CamelContext camelContext, String keyResource, Collection<String> scopes, String applicationName, String delegate) {
- if (keyResource == null) {
- throw new IllegalArgumentException("keyResource is required to create Gmail client.");
- }
- try {
- Credential credential = authorizeServiceAccount(camelContext, keyResource, delegate, scopes);
- return new Drive.Builder(transport, jsonFactory, credential).setApplicationName(applicationName).build();
- } catch (Exception e) {
- throw new RuntimeCamelException("Could not create Gmail client.", e);
- }
- }
-
- private Credential authorizeServiceAccount(
- CamelContext camelContext, String keyResource, String delegate, Collection<String> scopes) {
- // authorize
- try {
- GoogleCredential cred = GoogleCredential
- .fromStream(ResourceHelper.resolveMandatoryResourceAsInputStream(camelContext, keyResource), transport,
- jsonFactory)
- .createScoped(scopes != null && scopes.size() != 0 ? scopes : null)
- .createDelegated(delegate);
- cred.refreshToken();
- return cred;
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.google.drive;
+
+import java.io.IOException;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
+import java.net.Proxy;
+import java.net.UnknownHostException;
+import java.util.Collection;
+
+import com.google.api.client.auth.oauth2.Credential;
+import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
+import com.google.api.client.http.javanet.NetHttpTransport;
+import com.google.api.client.json.jackson2.JacksonFactory;
+import com.google.api.services.drive.Drive;
+import org.apache.camel.CamelContext;
+import org.apache.camel.RuntimeCamelException;
+import org.apache.camel.support.ResourceHelper;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class BatchGoogleDriveClientFactory implements GoogleDriveClientFactory {
+ private static final Logger LOG = LoggerFactory.getLogger(BatchGoogleDriveClientFactory.class);
+ private NetHttpTransport transport;
+ private JacksonFactory jsonFactory;
+
+ public BatchGoogleDriveClientFactory() {
+ this.transport = new NetHttpTransport();
+ this.jsonFactory = new JacksonFactory();
+ }
+
+ public BatchGoogleDriveClientFactory(String proxyHost, int proxyPort) {
+ try {
+ Proxy proxy = new Proxy(
+ Proxy.Type.HTTP,
+ new InetSocketAddress(InetAddress.getByName(proxyHost), proxyPort));
+ this.transport = new NetHttpTransport.Builder().setProxy(proxy).build();
+ this.jsonFactory = new JacksonFactory();
+ } catch (UnknownHostException e) {
+ LOG.error("Unknow proxy host", e);
+ }
+ }
+
+ @Override
+ public Drive makeClient(
+ String clientId, String clientSecret, Collection<String> scopes, String applicationName, String refreshToken,
+ String accessToken) {
+ if (clientId == null || clientSecret == null) {
+ throw new IllegalArgumentException("clientId and clientSecret are required to create Google Drive client.");
+ }
+ try {
+ Credential credential = authorize(clientId, clientSecret, scopes);
+
+ if (refreshToken != null && !"".equals(refreshToken)) {
+ credential.setRefreshToken(refreshToken);
+ }
+ if (accessToken != null && !"".equals(accessToken)) {
+ credential.setAccessToken(accessToken);
+ }
+ return new Drive.Builder(transport, jsonFactory, credential).setApplicationName(applicationName).build();
+ } catch (Exception e) {
+ throw new RuntimeCamelException("Could not create Google Drive client.", e);
+ }
+ }
+
+ // Authorizes the installed application to access user's protected data.
+ private Credential authorize(String clientId, String clientSecret, Collection<String> scopes) {
+ // authorize
+ return new GoogleCredential.Builder()
+ .setJsonFactory(jsonFactory)
+ .setTransport(transport)
+ .setClientSecrets(clientId, clientSecret)
+ .setServiceAccountScopes(scopes)
+ .build();
+ }
+
+ @Override
+ public Drive makeClient(
+ CamelContext camelContext, String serviceAccountKey, Collection<String> scopes, String applicationName,
+ String delegate) {
+ if (serviceAccountKey == null) {
+ throw new IllegalArgumentException("keyResource is required to create Gmail client.");
+ }
+ try {
+ Credential credential = authorizeServiceAccount(camelContext, serviceAccountKey, delegate, scopes);
+ return new Drive.Builder(transport, jsonFactory, credential).setApplicationName(applicationName).build();
+ } catch (Exception e) {
+ throw new RuntimeCamelException("Could not create Gmail client.", e);
+ }
+ }
+
+ private Credential authorizeServiceAccount(
+ CamelContext camelContext, String serviceAccountKey, String delegate, Collection<String> scopes) {
+ // authorize
+ try {
+ GoogleCredential cred = GoogleCredential
+ .fromStream(ResourceHelper.resolveMandatoryResourceAsInputStream(camelContext, serviceAccountKey),
+ transport,
+ jsonFactory)
+ .createScoped(scopes != null && scopes.size() != 0 ? scopes : null)
+ .createDelegated(delegate);
+ cred.refreshToken();
+ return cred;
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ }
+}
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveClientFactory.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveClientFactory.java
index a645fdc746d..015287df2cb 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveClientFactory.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveClientFactory.java
@@ -28,6 +28,7 @@ public interface GoogleDriveClientFactory {
String accessToken);
Drive makeClient(
- CamelContext camelContext, String keyResource, Collection<String> scopes, String applicationName, String delegate);
+ CamelContext camelContext, String serviceAccountKey, Collection<String> scopes, String applicationName,
+ String delegate);
}
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveComponent.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveComponent.java
index 0d75c1f6bba..f04a0191433 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveComponent.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveComponent.java
@@ -57,8 +57,8 @@ public class GoogleDriveComponent
client = getClientFactory().makeClient(config.getClientId(),
config.getClientSecret(), config.getScopes(),
config.getApplicationName(), config.getRefreshToken(), config.getAccessToken());
- } else if (config.getKeyResource() != null && !config.getKeyResource().isBlank()) {
- client = getClientFactory().makeClient(getCamelContext(), config.getKeyResource(),
+ } else if (config.getServiceAccountKey() != null && !config.getServiceAccountKey().isBlank()) {
+ client = getClientFactory().makeClient(getCamelContext(), config.getServiceAccountKey(),
config.getScopes(), config.getApplicationName(), config.getDelegate());
} else {
throw new IllegalArgumentException(
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java
index 40d420c8b71..3817659e15d 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java
@@ -51,7 +51,7 @@ public class GoogleDriveConfiguration {
private String applicationName;
/* Service account */
@UriParam(label = "security")
- private String keyResource;
+ private String serviceAccountKey;
@UriParam
private String delegate;
@@ -145,17 +145,18 @@ public class GoogleDriveConfiguration {
this.scopes = scopes;
}
- public String getKeyResource() {
- return keyResource;
+ public String getServiceAccountKey() {
+ return serviceAccountKey;
}
/**
- * Sets "*.json" file with credentials for Service account
+ * Service account key in json format to authenticate an application as a service account. Accept base64 adding the
+ * prefix "base64:"
*
- * @param keyResource String file, classpath, or http url
+ * @param serviceAccountKey String file, classpath, base64, or http url
*/
- public void setKeyResource(String keyResource) {
- this.keyResource = keyResource;
+ public void setServiceAccountKey(String serviceAccountKey) {
+ this.serviceAccountKey = serviceAccountKey;
}
public String getDelegate() {
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/InteractiveGoogleDriveClientFactory.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/InteractiveGoogleDriveClientFactory.java
index b3a8011d0bb..5de2a7ac76d 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/InteractiveGoogleDriveClientFactory.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/InteractiveGoogleDriveClientFactory.java
@@ -74,7 +74,8 @@ public class InteractiveGoogleDriveClientFactory implements GoogleDriveClientFac
@Override
public Drive makeClient(
- CamelContext camelContext, String keyResource, Collection<String> scopes, String applicationName, String delegate) {
+ CamelContext camelContext, String serviceAccountKey, Collection<String> scopes, String applicationName,
+ String delegate) {
throw new IllegalArgumentException("Not implemented");
}
}
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java
index 8bdd0f0b5c9..2b567bd9ae5 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java
@@ -60,7 +60,7 @@ public abstract class AbstractGoogleDriveTestSupport extends CamelTestSupport {
return !properties.getProperty("clientId", "").isEmpty()
&& !properties.getProperty("clientSecret").isEmpty()
- || !properties.getProperty("keyResource", "").isEmpty();
+ || !properties.getProperty("serviceAccountKey", "").isEmpty();
}
private static Properties loadProperties() {
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/MyClientFactory.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/MyClientFactory.java
index 7af782dd1e1..223930c74e5 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/MyClientFactory.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/MyClientFactory.java
@@ -37,7 +37,8 @@ public class MyClientFactory implements GoogleDriveClientFactory {
@Override
public Drive makeClient(
- CamelContext camelContext, String keyResource, Collection<String> scopes, String applicationName, String delegate) {
+ CamelContext camelContext, String serviceAccountKey, Collection<String> scopes, String applicationName,
+ String delegate) {
throw new IllegalArgumentException("Not implemented");
}
}
diff --git a/components/camel-google/camel-google-drive/src/test/resources/test-options.properties b/components/camel-google/camel-google-drive/src/test/resources/test-options.properties
index b6d69341cf9..7e587f2c3a2 100644
--- a/components/camel-google/camel-google-drive/src/test/resources/test-options.properties
+++ b/components/camel-google/camel-google-drive/src/test/resources/test-options.properties
@@ -25,6 +25,6 @@ applicationName=camel-google-drive/1.0
#accessToken=
refreshToken=
-keyResource=
+serviceAccountKey=
scopes[]=
delegate=
\ No newline at end of file