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 2023/08/07 16:47:40 UTC
[camel] 01/04: CAMEL-19626: Upgrade google-drive to latest SKD and API revisions
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch google-api
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3462d402f19530b57b7aece2dacecd4e3b759178
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 7 17:08:05 2023 +0200
CAMEL-19626: Upgrade google-drive to latest SKD and API revisions
---
components/camel-google/camel-google-drive/pom.xml | 36 ++---
.../drive/DriveAboutEndpointConfiguration.java | 2 +-
.../drive/DriveAppsEndpointConfiguration.java | 33 -----
.../DriveAppsEndpointConfigurationConfigurer.java | 140 -------------------
.../drive/DriveChangesEndpointConfiguration.java | 24 ++--
...riveChangesEndpointConfigurationConfigurer.java | 14 +-
.../drive/DriveChannelsEndpointConfiguration.java | 2 +-
.../drive/DriveChildrenEndpointConfiguration.java | 55 --------
...iveChildrenEndpointConfigurationConfigurer.java | 154 ---------------------
.../drive/DriveCommentsEndpointConfiguration.java | 8 +-
.../drive/DriveDrivesEndpointConfiguration.java | 6 +-
.../drive/DriveFilesEndpointConfiguration.java | 21 ++-
.../DriveFilesEndpointConfigurationConfigurer.java | 7 +
.../drive/DriveParentsEndpointConfiguration.java | 55 --------
...riveParentsEndpointConfigurationConfigurer.java | 154 ---------------------
.../DrivePermissionsEndpointConfiguration.java | 19 +--
...PermissionsEndpointConfigurationConfigurer.java | 7 -
.../DrivePropertiesEndpointConfiguration.java | 55 --------
...ePropertiesEndpointConfigurationConfigurer.java | 154 ---------------------
.../drive/DriveRepliesEndpointConfiguration.java | 16 +--
...riveRepliesEndpointConfigurationConfigurer.java | 6 +-
.../drive/DriveRevisionsEndpointConfiguration.java | 8 +-
.../DriveTeamdrivesEndpointConfiguration.java | 6 +-
.../drive/GoogleDriveEndpointUriFactory.java | 10 +-
.../drive/GoogleDriveFilesConverterLoader.java | 6 -
.../google/drive/internal/DriveAppsApiMethod.java | 51 -------
.../drive/internal/DriveChangesApiMethod.java | 9 +-
.../drive/internal/DriveChildrenApiMethod.java | 65 ---------
.../drive/internal/DriveCommentsApiMethod.java | 19 +--
.../drive/internal/DriveDrivesApiMethod.java | 12 +-
.../google/drive/internal/DriveFilesApiMethod.java | 43 ++----
.../drive/internal/DriveParentsApiMethod.java | 65 ---------
.../drive/internal/DrivePermissionsApiMethod.java | 24 +---
.../drive/internal/DrivePropertiesApiMethod.java | 79 -----------
.../drive/internal/DriveRepliesApiMethod.java | 24 ++--
.../drive/internal/DriveRevisionsApiMethod.java | 7 -
.../drive/internal/DriveTeamdrivesApiMethod.java | 12 +-
.../drive/internal/GoogleDriveApiCollection.java | 68 +++------
.../google/drive/internal/GoogleDriveApiName.java | 18 +--
...ent.google.drive.DriveAppsEndpointConfiguration | 2 -
...google.drive.DriveChildrenEndpointConfiguration | 2 -
....google.drive.DriveParentsEndpointConfiguration | 2 -
...ogle.drive.DrivePropertiesEndpointConfiguration | 2 -
.../camel/component/google/drive/google-drive.json | 44 +++---
.../google/drive/GoogleDriveEndpoint.java | 28 ++--
.../google/drive/GoogleDriveFilesConverter.java | 75 +++++-----
.../drive/AbstractGoogleDriveTestSupport.java | 4 +-
.../camel/component/google/drive/DriveAppsIT.java | 67 ---------
.../component/google/drive/DriveChangesIT.java | 4 +-
.../component/google/drive/DriveChildrenIT.java | 140 -------------------
.../component/google/drive/DriveCommentsIT.java | 8 +-
.../camel/component/google/drive/DriveFilesIT.java | 22 +--
.../component/google/drive/DrivePropertiesIT.java | 87 ------------
.../component/google/drive/DriveRepliesIT.java | 8 +-
.../component/google/drive/FilesConsumerIT.java | 2 +-
parent/pom.xml | 10 +-
56 files changed, 236 insertions(+), 1765 deletions(-)
diff --git a/components/camel-google/camel-google-drive/pom.xml b/components/camel-google/camel-google-drive/pom.xml
index d2e6bcc37c6..4b08125783d 100644
--- a/components/camel-google/camel-google-drive/pom.xml
+++ b/components/camel-google/camel-google-drive/pom.xml
@@ -160,11 +160,6 @@
<proxyClass>com.google.api.services.drive.Drive$About</proxyClass>
<fromJavasource />
</api>
- <api>
- <apiName>drive-apps</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Apps</proxyClass>
- <fromJavasource />
- </api>
<api>
<apiName>drive-changes</apiName>
<proxyClass>com.google.api.services.drive.Drive$Changes</proxyClass>
@@ -176,13 +171,13 @@
<fromJavasource />
</api>
<api>
- <apiName>drive-children</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Children</proxyClass>
+ <apiName>drive-comments</apiName>
+ <proxyClass>com.google.api.services.drive.Drive$Comments</proxyClass>
<fromJavasource />
</api>
<api>
- <apiName>drive-comments</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Comments</proxyClass>
+ <apiName>drive-drives</apiName>
+ <proxyClass>com.google.api.services.drive.Drive$Drives</proxyClass>
<fromJavasource />
</api>
<api>
@@ -228,24 +223,19 @@
</substitution>
</substitutions>
</api>
- <api>
- <apiName>drive-parents</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Parents</proxyClass>
- <fromJavasource />
- </api>
<api>
<apiName>drive-permissions</apiName>
<proxyClass>com.google.api.services.drive.Drive$Permissions</proxyClass>
<fromJavasource />
</api>
<api>
- <apiName>drive-properties</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Properties</proxyClass>
+ <apiName>drive-replies</apiName>
+ <proxyClass>com.google.api.services.drive.Drive$Replies</proxyClass>
<fromJavasource />
</api>
<api>
- <apiName>drive-drives</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Drives</proxyClass>
+ <apiName>drive-revisions</apiName>
+ <proxyClass>com.google.api.services.drive.Drive$Revisions</proxyClass>
<fromJavasource />
</api>
<api>
@@ -253,16 +243,6 @@
<proxyClass>com.google.api.services.drive.Drive$Teamdrives</proxyClass>
<fromJavasource />
</api>
- <api>
- <apiName>drive-replies</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Replies</proxyClass>
- <fromJavasource />
- </api>
- <api>
- <apiName>drive-revisions</apiName>
- <proxyClass>com.google.api.services.drive.Drive$Revisions</proxyClass>
- <fromJavasource />
- </api>
</apis>
<substitutions>
<substitution>
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java
index 8c1819a0e58..31c0d7d9cd0 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAboutEndpointConfiguration.java
@@ -15,7 +15,7 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-about",
description = "The about collection of methods",
- apiMethods = {@ApiMethod(methodName = "get", description="Gets the information about the current user along with Drive API settings", signatures={"com.google.api.services.drive.Drive$About$Get get()"})}, aliases = {})
+ apiMethods = {@ApiMethod(methodName = "get", description="Gets information about the user, the user's Drive, and system capabilities", signatures={"com.google.api.services.drive.Drive$About$Get get()"})}, aliases = {})
@UriParams
@Configurer(extended = true)
public final class DriveAboutEndpointConfiguration extends GoogleDriveConfiguration {
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java
deleted file mode 100644
index 6c0866d484b..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfiguration.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Camel EndpointConfiguration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive;
-
-import org.apache.camel.spi.ApiMethod;
-import org.apache.camel.spi.ApiParam;
-import org.apache.camel.spi.ApiParams;
-import org.apache.camel.spi.Configurer;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriParams;
-
-/**
- * Camel endpoint configuration for {@link com.google.api.services.drive.Drive.Apps}.
- */
-@ApiParams(apiName = "drive-apps",
- description = "The apps collection of methods",
- apiMethods = {@ApiMethod(methodName = "get", description="Gets a specific app", signatures={"com.google.api.services.drive.Drive$Apps$Get get(String appId)"}), @ApiMethod(methodName = "list", description="Lists a user's installed apps", signatures={"com.google.api.services.drive.Drive$Apps$List list()"})}, aliases = {})
-@UriParams
-@Configurer(extended = true)
-public final class DriveAppsEndpointConfiguration extends GoogleDriveConfiguration {
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "get", description="The ID of the app")})
- private String appId;
-
- public String getAppId() {
- return appId;
- }
-
- public void setAppId(String appId) {
- this.appId = appId;
- }
-}
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
deleted file mode 100644
index 8209052eb95..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveAppsEndpointConfigurationConfigurer.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.google.drive;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class DriveAppsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
-
- private static final Map<String, Object> ALL_OPTIONS;
- static {
- Map<String, Object> map = new CaseInsensitiveMap();
- map.put("AccessToken", java.lang.String.class);
- map.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class);
- map.put("AppId", java.lang.String.class);
- map.put("ApplicationName", java.lang.String.class);
- map.put("ClientId", java.lang.String.class);
- map.put("ClientSecret", java.lang.String.class);
- map.put("Delegate", 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;
- }
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
- case "apiname":
- case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true;
- case "appid":
- case "AppId": target.setAppId(property(camelContext, java.lang.String.class, value)); return true;
- case "applicationname":
- case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
- case "clientid":
- case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
- case "clientsecret":
- 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 "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;
- }
- }
-
- @Override
- public Map<String, Object> getAllOptions(Object target) {
- return ALL_OPTIONS;
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return java.lang.String.class;
- case "apiname":
- case "ApiName": return org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class;
- case "appid":
- case "AppId": return java.lang.String.class;
- case "applicationname":
- case "ApplicationName": return java.lang.String.class;
- case "clientid":
- case "ClientId": return java.lang.String.class;
- case "clientsecret":
- case "ClientSecret": return java.lang.String.class;
- case "delegate":
- case "Delegate": 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;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return target.getAccessToken();
- case "apiname":
- case "ApiName": return target.getApiName();
- case "appid":
- case "AppId": return target.getAppId();
- case "applicationname":
- case "ApplicationName": return target.getApplicationName();
- case "clientid":
- case "ClientId": return target.getClientId();
- case "clientsecret":
- case "ClientSecret": return target.getClientSecret();
- case "delegate":
- case "Delegate": return target.getDelegate();
- 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;
- }
- }
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "scopes":
- case "Scopes": return java.lang.String.class;
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java
index 732f67c39ef..5b73c7ea079 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChangesEndpointConfiguration.java
@@ -15,24 +15,16 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-changes",
description = "The changes collection of methods",
- apiMethods = {@ApiMethod(methodName = "get", description="Deprecated - Use changes", signatures={"com.google.api.services.drive.Drive$Changes$Get get(String changeId)"}), @ApiMethod(methodName = "getStartPageToken", description="Gets the starting pageToken for listing future changes", signatures={"com.google.api.services.drive.Drive$Changes$GetStartPageToken getStartPageToken()"}), @ApiMethod(methodName = "list", description="Lists the changes for a user or shared drive", sign [...]
+ apiMethods = {@ApiMethod(methodName = "getStartPageToken", description="Gets the starting pageToken for listing future changes", signatures={"com.google.api.services.drive.Drive$Changes$GetStartPageToken getStartPageToken()"}), @ApiMethod(methodName = "list", description="Lists the changes for a user or shared drive", signatures={"com.google.api.services.drive.Drive$Changes$List list(String pageToken)"}), @ApiMethod(methodName = "watch", description="Subscribes to changes for [...]
@UriParams
@Configurer(extended = true)
public final class DriveChangesEndpointConfiguration extends GoogleDriveConfiguration {
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "get", description="The ID of the change")})
- private String changeId;
@UriParam
@ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "watch", description="The com.google.api.services.drive.model.Channel")})
private com.google.api.services.drive.model.Channel contentChannel;
-
- public String getChangeId() {
- return changeId;
- }
-
- public void setChangeId(String changeId) {
- this.changeId = changeId;
- }
+ @UriParam
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "list", description="The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method."), @ApiMethod(methodName = "watch", description="The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to th [...]
+ private String pageToken;
public com.google.api.services.drive.model.Channel getContentChannel() {
return contentChannel;
@@ -41,4 +33,12 @@ public final class DriveChangesEndpointConfiguration extends GoogleDriveConfigur
public void setContentChannel(com.google.api.services.drive.model.Channel contentChannel) {
this.contentChannel = contentChannel;
}
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
+ public void setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ }
}
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 bf2aae92b06..a38f906e29c 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
@@ -23,12 +23,12 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
map.put("AccessToken", java.lang.String.class);
map.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class);
map.put("ApplicationName", java.lang.String.class);
- map.put("ChangeId", java.lang.String.class);
map.put("ClientId", java.lang.String.class);
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("MethodName", java.lang.String.class);
+ map.put("PageToken", 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);
@@ -45,8 +45,6 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true;
case "applicationname":
case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
- case "changeid":
- case "ChangeId": target.setChangeId(property(camelContext, java.lang.String.class, value)); return true;
case "clientid":
case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
case "clientsecret":
@@ -57,6 +55,8 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": target.setDelegate(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 "pagetoken":
+ case "PageToken": target.setPageToken(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":
@@ -81,8 +81,6 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "ApiName": return org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class;
case "applicationname":
case "ApplicationName": return java.lang.String.class;
- case "changeid":
- case "ChangeId": return java.lang.String.class;
case "clientid":
case "ClientId": return java.lang.String.class;
case "clientsecret":
@@ -93,6 +91,8 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
+ case "pagetoken":
+ case "PageToken": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
@@ -113,8 +113,6 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "ApiName": return target.getApiName();
case "applicationname":
case "ApplicationName": return target.getApplicationName();
- case "changeid":
- case "ChangeId": return target.getChangeId();
case "clientid":
case "ClientId": return target.getClientId();
case "clientsecret":
@@ -125,6 +123,8 @@ public class DriveChangesEndpointConfigurationConfigurer extends org.apache.came
case "Delegate": return target.getDelegate();
case "methodname":
case "MethodName": return target.getMethodName();
+ case "pagetoken":
+ case "PageToken": return target.getPageToken();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java
index e2fd2f2f2a6..2876e5c4c1e 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChannelsEndpointConfiguration.java
@@ -15,7 +15,7 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-channels",
description = "The channels collection of methods",
- apiMethods = {@ApiMethod(methodName = "stop", description="Stop watching resources through this channel", signatures={"com.google.api.services.drive.Drive$Channels$Stop stop(com.google.api.services.drive.model.Channel content)"})}, aliases = {})
+ apiMethods = {@ApiMethod(methodName = "stop", description="Stops watching resources through this channel", signatures={"com.google.api.services.drive.Drive$Channels$Stop stop(com.google.api.services.drive.model.Channel content)"})}, aliases = {})
@UriParams
@Configurer(extended = true)
public final class DriveChannelsEndpointConfiguration extends GoogleDriveConfiguration {
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java
deleted file mode 100644
index 51f8d04bae5..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Camel EndpointConfiguration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive;
-
-import org.apache.camel.spi.ApiMethod;
-import org.apache.camel.spi.ApiParam;
-import org.apache.camel.spi.ApiParams;
-import org.apache.camel.spi.Configurer;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriParams;
-
-/**
- * Camel endpoint configuration for {@link com.google.api.services.drive.Drive.Children}.
- */
-@ApiParams(apiName = "drive-children",
- description = "The children collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Removes a child from a folder", signatures={"com.google.api.services.drive.Drive$Children$Delete delete(String folderId, String childId)"}), @ApiMethod(methodName = "get", description="Gets a specific child reference", signatures={"com.google.api.services.drive.Drive$Children$Get get(String folderId, String childId)"}), @ApiMethod(methodName = "insert", description="Inserts a file into a folder", signatures={"com.goo [...]
-@UriParams
-@Configurer(extended = true)
-public final class DriveChildrenEndpointConfiguration extends GoogleDriveConfiguration {
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the child"), @ApiMethod(methodName = "get", description="The ID of the child")})
- private String childId;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.ChildReference")})
- private com.google.api.services.drive.model.ChildReference content;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the folder"), @ApiMethod(methodName = "get", description="The ID of the folder"), @ApiMethod(methodName = "insert", description="The ID of the folder"), @ApiMethod(methodName = "list", description="The ID of the folder")})
- private String folderId;
-
- public String getChildId() {
- return childId;
- }
-
- public void setChildId(String childId) {
- this.childId = childId;
- }
-
- public com.google.api.services.drive.model.ChildReference getContent() {
- return content;
- }
-
- public void setContent(com.google.api.services.drive.model.ChildReference content) {
- this.content = content;
- }
-
- public String getFolderId() {
- return folderId;
- }
-
- public void setFolderId(String folderId) {
- this.folderId = folderId;
- }
-}
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
deleted file mode 100644
index 04418a0dc34..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveChildrenEndpointConfigurationConfigurer.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.google.drive;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class DriveChildrenEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
-
- private static final Map<String, Object> ALL_OPTIONS;
- static {
- Map<String, Object> map = new CaseInsensitiveMap();
- map.put("AccessToken", java.lang.String.class);
- map.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class);
- map.put("ApplicationName", java.lang.String.class);
- map.put("ChildId", java.lang.String.class);
- map.put("ClientId", java.lang.String.class);
- map.put("ClientSecret", java.lang.String.class);
- 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("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;
- }
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
- case "apiname":
- case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true;
- case "applicationname":
- case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
- case "childid":
- case "ChildId": target.setChildId(property(camelContext, java.lang.String.class, value)); return true;
- case "clientid":
- case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
- case "clientsecret":
- case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
- case "content":
- case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.ChildReference.class, value)); return true;
- case "delegate":
- 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 "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;
- }
- }
-
- @Override
- public Map<String, Object> getAllOptions(Object target) {
- return ALL_OPTIONS;
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return java.lang.String.class;
- case "apiname":
- case "ApiName": return org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class;
- case "applicationname":
- case "ApplicationName": return java.lang.String.class;
- case "childid":
- case "ChildId": return java.lang.String.class;
- case "clientid":
- case "ClientId": return java.lang.String.class;
- case "clientsecret":
- case "ClientSecret": return java.lang.String.class;
- case "content":
- case "Content": return com.google.api.services.drive.model.ChildReference.class;
- case "delegate":
- case "Delegate": return java.lang.String.class;
- case "folderid":
- case "FolderId": 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;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return target.getAccessToken();
- case "apiname":
- case "ApiName": return target.getApiName();
- case "applicationname":
- case "ApplicationName": return target.getApplicationName();
- case "childid":
- case "ChildId": return target.getChildId();
- case "clientid":
- case "ClientId": return target.getClientId();
- case "clientsecret":
- case "ClientSecret": return target.getClientSecret();
- case "content":
- case "Content": return target.getContent();
- case "delegate":
- case "Delegate": return target.getDelegate();
- case "folderid":
- case "FolderId": return target.getFolderId();
- 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;
- }
- }
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "scopes":
- case "Scopes": return java.lang.String.class;
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java
index b2e1cdaabad..9bfb8b87cdd 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveCommentsEndpointConfiguration.java
@@ -15,18 +15,18 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-comments",
description = "The comments collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Deletes a comment", signatures={"com.google.api.services.drive.Drive$Comments$Delete delete(String fileId, String commentId)"}), @ApiMethod(methodName = "get", description="Gets a comment by ID", signatures={"com.google.api.services.drive.Drive$Comments$Get get(String fileId, String commentId)"}), @ApiMethod(methodName = "insert", description="Creates a new comment on the given file", signatures={"com.google.api.serv [...]
+ apiMethods = {@ApiMethod(methodName = "create", description="Creates a comment on a file", signatures={"com.google.api.services.drive.Drive$Comments$Create create(String fileId, com.google.api.services.drive.model.Comment content)"}), @ApiMethod(methodName = "delete", description="Deletes a comment", signatures={"com.google.api.services.drive.Drive$Comments$Delete delete(String fileId, String commentId)"}), @ApiMethod(methodName = "get", description="Gets a comment by ID", sig [...]
@UriParams
@Configurer(extended = true)
public final class DriveCommentsEndpointConfiguration extends GoogleDriveConfiguration {
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the comment"), @ApiMethod(methodName = "get", description="The ID of the comment"), @ApiMethod(methodName = "patch", description="The ID of the comment"), @ApiMethod(methodName = "update", description="The ID of the comment")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the comment"), @ApiMethod(methodName = "get", description="The ID of the comment"), @ApiMethod(methodName = "update", description="The ID of the comment")})
private String commentId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.Comment"), @ApiMethod(methodName = "patch", description="The com.google.api.services.drive.model.Comment"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Comment")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The com.google.api.services.drive.model.Comment"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Comment")})
private com.google.api.services.drive.model.Comment content;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "insert", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "patch", description="The ID of the file"), @ApiMethod(methodName = "update", description="The ID of the file")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The ID of the file"), @ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "update", description="The ID of the file")})
private String fileId;
public String getCommentId() {
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfiguration.java
index 7da236adccb..31d4a6f5536 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveDrivesEndpointConfiguration.java
@@ -15,18 +15,18 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-drives",
description = "The drives collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Permanently deletes a shared drive for which the user is an organizer", signatures={"com.google.api.services.drive.Drive$Drives$Delete delete(String driveId)"}), @ApiMethod(methodName = "get", description="Gets a shared drive's metadata by ID", signatures={"com.google.api.services.drive.Drive$Drives$Get get(String driveId)"}), @ApiMethod(methodName = "hide", description="Hides a shared drive from the default view", s [...]
+ apiMethods = {@ApiMethod(methodName = "create", description="Creates a shared drive", signatures={"com.google.api.services.drive.Drive$Drives$Create create(String requestId, com.google.api.services.drive.model.Drive content)"}), @ApiMethod(methodName = "delete", description="Permanently deletes a shared drive for which the user is an organizer", signatures={"com.google.api.services.drive.Drive$Drives$Delete delete(String driveId)"}), @ApiMethod(methodName = "get", description= [...]
@UriParams
@Configurer(extended = true)
public final class DriveDrivesEndpointConfiguration extends GoogleDriveConfiguration {
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.Drive"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Drive")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The com.google.api.services.drive.model.Drive"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Drive")})
private com.google.api.services.drive.model.Drive content;
@UriParam
@ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the shared drive"), @ApiMethod(methodName = "get", description="The ID of the shared drive"), @ApiMethod(methodName = "hide", description="The ID of the shared drive"), @ApiMethod(methodName = "unhide", description="The ID of the shared drive"), @ApiMethod(methodName = "update", description="The ID of the shared drive")})
private String driveId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.")})
private String requestId;
public com.google.api.services.drive.model.Drive getContent() {
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java
index 34252bcf9f6..7e2bc813ca2 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveFilesEndpointConfiguration.java
@@ -15,7 +15,7 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-files",
description = "The files collection of methods",
- apiMethods = {@ApiMethod(methodName = "copy", description="Creates a copy of the specified file", signatures={"com.google.api.services.drive.Drive$Files$Copy copy(String fileId, com.google.api.services.drive.model.File content)"}), @ApiMethod(methodName = "delete", description="Permanently deletes a file by ID", signatures={"com.google.api.services.drive.Drive$Files$Delete delete(String fileId)"}), @ApiMethod(methodName = "emptyTrash", description="Permanently deletes all of t [...]
+ apiMethods = {@ApiMethod(methodName = "copy", description="Creates a copy of a file and applies any requested updates with patch semantics", signatures={"com.google.api.services.drive.Drive$Files$Copy copy(String fileId, com.google.api.services.drive.model.File content)"}), @ApiMethod(methodName = "create", description="Creates a new file", signatures={"com.google.api.services.drive.Drive$Files$Create create(com.google.api.services.drive.model.File content)", "com.google.api.s [...]
@UriParams
@Configurer(extended = true)
public final class DriveFilesEndpointConfiguration extends GoogleDriveConfiguration {
@@ -23,16 +23,19 @@ public final class DriveFilesEndpointConfiguration extends GoogleDriveConfigurat
@ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "watch", description="The com.google.api.services.drive.model.Channel")})
private com.google.api.services.drive.model.Channel channel;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "copy", description="The com.google.api.services.drive.model.File"), @ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.File media metadata or null if none"), @ApiMethod(methodName = "patch", description="The com.google.api.services.drive.model.File"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.File media metadata or null if none")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The com.google.api.services.drive.model.File media metadata or null if none")})
+ private com.google.api.services.drive.model.File content;
+ @UriParam
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "copy", description="The com.google.api.services.drive.model.File"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.File media metadata or null if none")})
private com.google.api.services.drive.model.File file;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "copy", description="The ID of the file to copy"), @ApiMethod(methodName = "delete", description="The ID of the file to delete"), @ApiMethod(methodName = "export", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID for the file in question"), @ApiMethod(methodName = "listLabels", description="The ID of the file"), @ApiMethod(methodName = "modifyLabels", description="The ID of the file [...]
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "copy", description="The ID of the file"), @ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "export", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "listLabels", description="The ID for the file or shared drive"), @ApiMethod(methodName = "modifyLabels", description="The ID of the file to which the [...]
private String fileId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The media HTTP content or null if none"), @ApiMethod(methodName = "update", description="The media HTTP content or null if none")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The media HTTP content or null if none"), @ApiMethod(methodName = "update", description="The media HTTP content or null if none")})
private com.google.api.client.http.AbstractInputStreamContent mediaContent;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "export", description="The MIME type of the format requested for this export")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "export", description="Required. The MIME type of the format requested for this export.")})
private String mimeType;
@UriParam
@ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "modifyLabels", description="The com.google.api.services.drive.model.ModifyLabelsRequest")})
@@ -46,6 +49,14 @@ public final class DriveFilesEndpointConfiguration extends GoogleDriveConfigurat
this.channel = channel;
}
+ public com.google.api.services.drive.model.File getContent() {
+ return content;
+ }
+
+ public void setContent(com.google.api.services.drive.model.File content) {
+ this.content = content;
+ }
+
public com.google.api.services.drive.model.File getFile() {
return file;
}
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 842b351e492..b52f0029052 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
@@ -26,6 +26,7 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
map.put("Channel", com.google.api.services.drive.model.Channel.class);
map.put("ClientId", java.lang.String.class);
map.put("ClientSecret", java.lang.String.class);
+ map.put("Content", com.google.api.services.drive.model.File.class);
map.put("Delegate", java.lang.String.class);
map.put("File", com.google.api.services.drive.model.File.class);
map.put("FileId", java.lang.String.class);
@@ -55,6 +56,8 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
case "clientsecret":
case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
+ case "content":
+ case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.File.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "file":
@@ -99,6 +102,8 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "ClientId": return java.lang.String.class;
case "clientsecret":
case "ClientSecret": return java.lang.String.class;
+ case "content":
+ case "Content": return com.google.api.services.drive.model.File.class;
case "delegate":
case "Delegate": return java.lang.String.class;
case "file":
@@ -139,6 +144,8 @@ public class DriveFilesEndpointConfigurationConfigurer extends org.apache.camel.
case "ClientId": return target.getClientId();
case "clientsecret":
case "ClientSecret": return target.getClientSecret();
+ case "content":
+ case "Content": return target.getContent();
case "delegate":
case "Delegate": return target.getDelegate();
case "file":
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java
deleted file mode 100644
index 5c5356c2993..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Camel EndpointConfiguration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive;
-
-import org.apache.camel.spi.ApiMethod;
-import org.apache.camel.spi.ApiParam;
-import org.apache.camel.spi.ApiParams;
-import org.apache.camel.spi.Configurer;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriParams;
-
-/**
- * Camel endpoint configuration for {@link com.google.api.services.drive.Drive.Parents}.
- */
-@ApiParams(apiName = "drive-parents",
- description = "The parents collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Removes a parent from a file", signatures={"com.google.api.services.drive.Drive$Parents$Delete delete(String fileId, String parentId)"}), @ApiMethod(methodName = "get", description="Gets a specific parent reference", signatures={"com.google.api.services.drive.Drive$Parents$Get get(String fileId, String parentId)"}), @ApiMethod(methodName = "insert", description="Adds a parent folder for a file", signatures={"com.goog [...]
-@UriParams
-@Configurer(extended = true)
-public final class DriveParentsEndpointConfiguration extends GoogleDriveConfiguration {
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.ParentReference")})
- private com.google.api.services.drive.model.ParentReference content;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "insert", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file")})
- private String fileId;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the parent"), @ApiMethod(methodName = "get", description="The ID of the parent")})
- private String parentId;
-
- public com.google.api.services.drive.model.ParentReference getContent() {
- return content;
- }
-
- public void setContent(com.google.api.services.drive.model.ParentReference content) {
- this.content = content;
- }
-
- public String getFileId() {
- return fileId;
- }
-
- public void setFileId(String fileId) {
- this.fileId = fileId;
- }
-
- public String getParentId() {
- return parentId;
- }
-
- public void setParentId(String parentId) {
- this.parentId = parentId;
- }
-}
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
deleted file mode 100644
index 17d140880cd..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveParentsEndpointConfigurationConfigurer.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.google.drive;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class DriveParentsEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
-
- private static final Map<String, Object> ALL_OPTIONS;
- static {
- Map<String, Object> map = new CaseInsensitiveMap();
- map.put("AccessToken", java.lang.String.class);
- map.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class);
- map.put("ApplicationName", java.lang.String.class);
- map.put("ClientId", java.lang.String.class);
- map.put("ClientSecret", java.lang.String.class);
- 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("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;
- }
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
- case "apiname":
- case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true;
- case "applicationname":
- case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
- case "clientid":
- case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
- case "clientsecret":
- case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
- case "content":
- case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.ParentReference.class, value)); return true;
- case "delegate":
- 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 "methodname":
- case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
- case "parentid":
- case "ParentId": target.setParentId(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;
- }
- }
-
- @Override
- public Map<String, Object> getAllOptions(Object target) {
- return ALL_OPTIONS;
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return java.lang.String.class;
- case "apiname":
- case "ApiName": return org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class;
- case "applicationname":
- case "ApplicationName": return java.lang.String.class;
- case "clientid":
- case "ClientId": return java.lang.String.class;
- case "clientsecret":
- case "ClientSecret": return java.lang.String.class;
- case "content":
- case "Content": return com.google.api.services.drive.model.ParentReference.class;
- case "delegate":
- case "Delegate": return java.lang.String.class;
- case "fileid":
- case "FileId": return java.lang.String.class;
- case "methodname":
- case "MethodName": return java.lang.String.class;
- case "parentid":
- case "ParentId": 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;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration target = (org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return target.getAccessToken();
- case "apiname":
- case "ApiName": return target.getApiName();
- case "applicationname":
- case "ApplicationName": return target.getApplicationName();
- case "clientid":
- case "ClientId": return target.getClientId();
- case "clientsecret":
- case "ClientSecret": return target.getClientSecret();
- case "content":
- case "Content": return target.getContent();
- case "delegate":
- case "Delegate": return target.getDelegate();
- case "fileid":
- case "FileId": return target.getFileId();
- case "methodname":
- case "MethodName": return target.getMethodName();
- case "parentid":
- case "ParentId": return target.getParentId();
- case "refreshtoken":
- case "RefreshToken": return target.getRefreshToken();
- case "scopes":
- case "Scopes": return target.getScopes();
- case "serviceaccountkey":
- case "ServiceAccountKey": return target.getServiceAccountKey();
- default: return null;
- }
- }
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "scopes":
- case "Scopes": return java.lang.String.class;
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java
index fd99f2a1f33..137e9d5b7cd 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePermissionsEndpointConfiguration.java
@@ -15,21 +15,18 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-permissions",
description = "The permissions collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Deletes a permission from a file or shared drive", signatures={"com.google.api.services.drive.Drive$Permissions$Delete delete(String fileId, String permissionId)"}), @ApiMethod(methodName = "get", description="Gets a permission by ID", signatures={"com.google.api.services.drive.Drive$Permissions$Get get(String fileId, String permissionId)"}), @ApiMethod(methodName = "getIdForEmail", description="Returns the permissio [...]
+ apiMethods = {@ApiMethod(methodName = "create", description="Creates a permission for a file or shared drive", signatures={"com.google.api.services.drive.Drive$Permissions$Create create(String fileId, com.google.api.services.drive.model.Permission content)"}), @ApiMethod(methodName = "delete", description="Deletes a permission", signatures={"com.google.api.services.drive.Drive$Permissions$Delete delete(String fileId, String permissionId)"}), @ApiMethod(methodName = "get", desc [...]
@UriParams
@Configurer(extended = true)
public final class DrivePermissionsEndpointConfiguration extends GoogleDriveConfiguration {
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.Permission"), @ApiMethod(methodName = "patch", description="The com.google.api.services.drive.model.Permission"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Permission")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The com.google.api.services.drive.model.Permission"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Permission")})
private com.google.api.services.drive.model.Permission content;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "getIdForEmail", description="The email address for which to return a permission ID")})
- private String email;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID for the file or shared drive"), @ApiMethod(methodName = "get", description="The ID for the file or shared drive"), @ApiMethod(methodName = "insert", description="The ID for the file or shared drive"), @ApiMethod(methodName = "list", description="The ID for the file or shared drive"), @ApiMethod(methodName = "patch", description="The ID for the file or shared drive"), @ApiMethod(methodName [...]
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The ID of the file or shared drive"), @ApiMethod(methodName = "delete", description="The ID of the file or shared drive"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file or shared drive"), @ApiMethod(methodName = "update", description="The ID of the file or shared drive")})
private String fileId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID for the permission"), @ApiMethod(methodName = "get", description="The ID for the permission"), @ApiMethod(methodName = "patch", description="The ID for the permission"), @ApiMethod(methodName = "update", description="The ID for the permission")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the permission"), @ApiMethod(methodName = "get", description="The ID of the permission"), @ApiMethod(methodName = "update", description="The ID of the permission")})
private String permissionId;
public com.google.api.services.drive.model.Permission getContent() {
@@ -40,14 +37,6 @@ public final class DrivePermissionsEndpointConfiguration extends GoogleDriveConf
this.content = content;
}
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
public String getFileId() {
return fileId;
}
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 6fc64fa8abc..19dddd5cf1c 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
@@ -27,7 +27,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
map.put("ClientSecret", java.lang.String.class);
map.put("Content", com.google.api.services.drive.model.Permission.class);
map.put("Delegate", java.lang.String.class);
- map.put("Email", java.lang.String.class);
map.put("FileId", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("PermissionId", java.lang.String.class);
@@ -55,8 +54,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Permission.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
- case "email":
- 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 "methodname":
@@ -95,8 +92,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "Content": return com.google.api.services.drive.model.Permission.class;
case "delegate":
case "Delegate": return java.lang.String.class;
- case "email":
- case "Email": return java.lang.String.class;
case "fileid":
case "FileId": return java.lang.String.class;
case "methodname":
@@ -131,8 +126,6 @@ public class DrivePermissionsEndpointConfigurationConfigurer extends org.apache.
case "Content": return target.getContent();
case "delegate":
case "Delegate": return target.getDelegate();
- case "email":
- case "Email": return target.getEmail();
case "fileid":
case "FileId": return target.getFileId();
case "methodname":
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java
deleted file mode 100644
index 1003d84d75b..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfiguration.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Camel EndpointConfiguration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive;
-
-import org.apache.camel.spi.ApiMethod;
-import org.apache.camel.spi.ApiParam;
-import org.apache.camel.spi.ApiParams;
-import org.apache.camel.spi.Configurer;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriParams;
-
-/**
- * Camel endpoint configuration for {@link com.google.api.services.drive.Drive.Properties}.
- */
-@ApiParams(apiName = "drive-properties",
- description = "The properties collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Deletes a property", signatures={"com.google.api.services.drive.Drive$Properties$Delete delete(String fileId, String propertyKey)"}), @ApiMethod(methodName = "get", description="Gets a property by its key", signatures={"com.google.api.services.drive.Drive$Properties$Get get(String fileId, String propertyKey)"}), @ApiMethod(methodName = "insert", description="Adds a property to a file, or updates it if it already exis [...]
-@UriParams
-@Configurer(extended = true)
-public final class DrivePropertiesEndpointConfiguration extends GoogleDriveConfiguration {
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.Property"), @ApiMethod(methodName = "patch", description="The com.google.api.services.drive.model.Property"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Property")})
- private com.google.api.services.drive.model.Property content;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "insert", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "patch", description="The ID of the file"), @ApiMethod(methodName = "update", description="The ID of the file")})
- private String fileId;
- @UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The key of the property"), @ApiMethod(methodName = "get", description="The key of the property"), @ApiMethod(methodName = "patch", description="The key of the property"), @ApiMethod(methodName = "update", description="The key of the property")})
- private String propertyKey;
-
- public com.google.api.services.drive.model.Property getContent() {
- return content;
- }
-
- public void setContent(com.google.api.services.drive.model.Property content) {
- this.content = content;
- }
-
- public String getFileId() {
- return fileId;
- }
-
- public void setFileId(String fileId) {
- this.fileId = fileId;
- }
-
- public String getPropertyKey() {
- return propertyKey;
- }
-
- public void setPropertyKey(String propertyKey) {
- this.propertyKey = propertyKey;
- }
-}
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
deleted file mode 100644
index f7bb8f15587..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DrivePropertiesEndpointConfigurationConfigurer.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.google.drive;
-
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
-import org.apache.camel.spi.PropertyConfigurerGetter;
-import org.apache.camel.spi.ConfigurerStrategy;
-import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.util.CaseInsensitiveMap;
-import org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration;
-
-/**
- * Generated by camel build tools - do NOT edit this file!
- */
-@SuppressWarnings("unchecked")
-public class DrivePropertiesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
-
- private static final Map<String, Object> ALL_OPTIONS;
- static {
- Map<String, Object> map = new CaseInsensitiveMap();
- map.put("AccessToken", java.lang.String.class);
- map.put("ApiName", org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class);
- map.put("ApplicationName", java.lang.String.class);
- map.put("ClientId", java.lang.String.class);
- map.put("ClientSecret", java.lang.String.class);
- 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("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;
- }
-
- @Override
- public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration target = (org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
- case "apiname":
- case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class, value)); return true;
- case "applicationname":
- case "ApplicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
- case "clientid":
- case "ClientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
- case "clientsecret":
- case "ClientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
- case "content":
- case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Property.class, value)); return true;
- case "delegate":
- 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 "methodname":
- case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
- case "propertykey":
- case "PropertyKey": target.setPropertyKey(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;
- }
- }
-
- @Override
- public Map<String, Object> getAllOptions(Object target) {
- return ALL_OPTIONS;
- }
-
- @Override
- public Class<?> getOptionType(String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return java.lang.String.class;
- case "apiname":
- case "ApiName": return org.apache.camel.component.google.drive.internal.GoogleDriveApiName.class;
- case "applicationname":
- case "ApplicationName": return java.lang.String.class;
- case "clientid":
- case "ClientId": return java.lang.String.class;
- case "clientsecret":
- case "ClientSecret": return java.lang.String.class;
- case "content":
- case "Content": return com.google.api.services.drive.model.Property.class;
- case "delegate":
- case "Delegate": return java.lang.String.class;
- case "fileid":
- case "FileId": return java.lang.String.class;
- case "methodname":
- case "MethodName": return java.lang.String.class;
- case "propertykey":
- case "PropertyKey": 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;
- }
- }
-
- @Override
- public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration target = (org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration) obj;
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "accesstoken":
- case "AccessToken": return target.getAccessToken();
- case "apiname":
- case "ApiName": return target.getApiName();
- case "applicationname":
- case "ApplicationName": return target.getApplicationName();
- case "clientid":
- case "ClientId": return target.getClientId();
- case "clientsecret":
- case "ClientSecret": return target.getClientSecret();
- case "content":
- case "Content": return target.getContent();
- case "delegate":
- case "Delegate": return target.getDelegate();
- case "fileid":
- case "FileId": return target.getFileId();
- case "methodname":
- case "MethodName": return target.getMethodName();
- case "propertykey":
- case "PropertyKey": return target.getPropertyKey();
- case "refreshtoken":
- case "RefreshToken": return target.getRefreshToken();
- case "scopes":
- case "Scopes": return target.getScopes();
- case "serviceaccountkey":
- case "ServiceAccountKey": return target.getServiceAccountKey();
- default: return null;
- }
- }
-
- @Override
- public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
- switch (ignoreCase ? name.toLowerCase() : name) {
- case "scopes":
- case "Scopes": return java.lang.String.class;
- default: return null;
- }
- }
-}
-
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java
index 885f8cdba64..2d37ed35e22 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRepliesEndpointConfiguration.java
@@ -15,21 +15,21 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-replies",
description = "The replies collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Deletes a reply", signatures={"com.google.api.services.drive.Drive$Replies$Delete delete(String fileId, String commentId, String replyId)"}), @ApiMethod(methodName = "get", description="Gets a reply", signatures={"com.google.api.services.drive.Drive$Replies$Get get(String fileId, String commentId, String replyId)"}), @ApiMethod(methodName = "insert", description="Creates a new reply to the given comment", signatures= [...]
+ apiMethods = {@ApiMethod(methodName = "create", description="Creates a reply to a comment", signatures={"com.google.api.services.drive.Drive$Replies$Create create(String fileId, String commentId, com.google.api.services.drive.model.Reply content)"}), @ApiMethod(methodName = "delete", description="Deletes a reply", signatures={"com.google.api.services.drive.Drive$Replies$Delete delete(String fileId, String commentId, String replyId)"}), @ApiMethod(methodName = "get", descriptio [...]
@UriParams
@Configurer(extended = true)
public final class DriveRepliesEndpointConfiguration extends GoogleDriveConfiguration {
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the comment"), @ApiMethod(methodName = "get", description="The ID of the comment"), @ApiMethod(methodName = "insert", description="The ID of the comment"), @ApiMethod(methodName = "list", description="The ID of the comment"), @ApiMethod(methodName = "patch", description="The ID of the comment"), @ApiMethod(methodName = "update", description="The ID of the comment")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The ID of the comment"), @ApiMethod(methodName = "delete", description="The ID of the comment"), @ApiMethod(methodName = "get", description="The ID of the comment"), @ApiMethod(methodName = "list", description="The ID of the comment"), @ApiMethod(methodName = "update", description="The ID of the comment")})
private String commentId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.CommentReply"), @ApiMethod(methodName = "patch", description="The com.google.api.services.drive.model.CommentReply"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.CommentReply")})
- private com.google.api.services.drive.model.CommentReply content;
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The com.google.api.services.drive.model.Reply"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Reply")})
+ private com.google.api.services.drive.model.Reply content;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "insert", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "patch", description="The ID of the file"), @ApiMethod(methodName = "update", description="The ID of the file")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The ID of the file"), @ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "update", description="The ID of the file")})
private String fileId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the reply"), @ApiMethod(methodName = "get", description="The ID of the reply"), @ApiMethod(methodName = "patch", description="The ID of the reply"), @ApiMethod(methodName = "update", description="The ID of the reply")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the reply"), @ApiMethod(methodName = "get", description="The ID of the reply"), @ApiMethod(methodName = "update", description="The ID of the reply")})
private String replyId;
public String getCommentId() {
@@ -40,11 +40,11 @@ public final class DriveRepliesEndpointConfiguration extends GoogleDriveConfigur
this.commentId = commentId;
}
- public com.google.api.services.drive.model.CommentReply getContent() {
+ public com.google.api.services.drive.model.Reply getContent() {
return content;
}
- public void setContent(com.google.api.services.drive.model.CommentReply content) {
+ public void setContent(com.google.api.services.drive.model.Reply content) {
this.content = content;
}
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 46eb86fbc77..f9ddb85bfbc 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
@@ -26,7 +26,7 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
map.put("ClientId", java.lang.String.class);
map.put("ClientSecret", java.lang.String.class);
map.put("CommentId", java.lang.String.class);
- map.put("Content", com.google.api.services.drive.model.CommentReply.class);
+ map.put("Content", com.google.api.services.drive.model.Reply.class);
map.put("Delegate", java.lang.String.class);
map.put("FileId", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
@@ -54,7 +54,7 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "commentid":
case "CommentId": target.setCommentId(property(camelContext, java.lang.String.class, value)); return true;
case "content":
- case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.CommentReply.class, value)); return true;
+ case "Content": target.setContent(property(camelContext, com.google.api.services.drive.model.Reply.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
case "fileid":
@@ -94,7 +94,7 @@ public class DriveRepliesEndpointConfigurationConfigurer extends org.apache.came
case "commentid":
case "CommentId": return java.lang.String.class;
case "content":
- case "Content": return com.google.api.services.drive.model.CommentReply.class;
+ case "Content": return com.google.api.services.drive.model.Reply.class;
case "delegate":
case "Delegate": return java.lang.String.class;
case "fileid":
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java
index 2a530f32216..b823f08a98b 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveRevisionsEndpointConfiguration.java
@@ -15,18 +15,18 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-revisions",
description = "The revisions collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Permanently deletes a file version", signatures={"com.google.api.services.drive.Drive$Revisions$Delete delete(String fileId, String revisionId)"}), @ApiMethod(methodName = "get", description="Gets a specific revision", signatures={"com.google.api.services.drive.Drive$Revisions$Get get(String fileId, String revisionId)"}), @ApiMethod(methodName = "list", description="Lists a file's revisions", signatures={"com.google. [...]
+ apiMethods = {@ApiMethod(methodName = "delete", description="Permanently deletes a file version", signatures={"com.google.api.services.drive.Drive$Revisions$Delete delete(String fileId, String revisionId)"}), @ApiMethod(methodName = "get", description="Gets a revision's metadata or content by ID", signatures={"com.google.api.services.drive.Drive$Revisions$Get get(String fileId, String revisionId)"}), @ApiMethod(methodName = "list", description="Lists a file's revisions", signa [...]
@UriParams
@Configurer(extended = true)
public final class DriveRevisionsEndpointConfiguration extends GoogleDriveConfiguration {
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "patch", description="The com.google.api.services.drive.model.Revision"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Revision")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.Revision")})
private com.google.api.services.drive.model.Revision content;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "patch", description="The ID for the file"), @ApiMethod(methodName = "update", description="The ID for the file")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the file"), @ApiMethod(methodName = "get", description="The ID of the file"), @ApiMethod(methodName = "list", description="The ID of the file"), @ApiMethod(methodName = "update", description="The ID of the file")})
private String fileId;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the revision"), @ApiMethod(methodName = "get", description="The ID of the revision"), @ApiMethod(methodName = "patch", description="The ID for the revision"), @ApiMethod(methodName = "update", description="The ID for the revision")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the revision"), @ApiMethod(methodName = "get", description="The ID of the revision"), @ApiMethod(methodName = "update", description="The ID of the revision")})
private String revisionId;
public com.google.api.services.drive.model.Revision getContent() {
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfiguration.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfiguration.java
index abeaec39b0f..4db0425aaa4 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfiguration.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/DriveTeamdrivesEndpointConfiguration.java
@@ -15,15 +15,15 @@ import org.apache.camel.spi.UriParams;
*/
@ApiParams(apiName = "drive-teamdrives",
description = "The teamdrives collection of methods",
- apiMethods = {@ApiMethod(methodName = "delete", description="Deprecated use drives", signatures={"com.google.api.services.drive.Drive$Teamdrives$Delete delete(String teamDriveId)"}), @ApiMethod(methodName = "get", description="Deprecated use drives", signatures={"com.google.api.services.drive.Drive$Teamdrives$Get get(String teamDriveId)"}), @ApiMethod(methodName = "insert", description="Deprecated use drives", signatures={"com.google.api.services.drive.Drive$Teamdrives$Insert [...]
+ apiMethods = {@ApiMethod(methodName = "create", description="Deprecated: Use drives", signatures={"com.google.api.services.drive.Drive$Teamdrives$Create create(String requestId, com.google.api.services.drive.model.TeamDrive content)"}), @ApiMethod(methodName = "delete", description="Deprecated: Use drives", signatures={"com.google.api.services.drive.Drive$Teamdrives$Delete delete(String teamDriveId)"}), @ApiMethod(methodName = "get", description="Deprecated: Use drives", signa [...]
@UriParams
@Configurer(extended = true)
public final class DriveTeamdrivesEndpointConfiguration extends GoogleDriveConfiguration {
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="The com.google.api.services.drive.model.TeamDrive"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.TeamDrive")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="The com.google.api.services.drive.model.TeamDrive"), @ApiMethod(methodName = "update", description="The com.google.api.services.drive.model.TeamDrive")})
private com.google.api.services.drive.model.TeamDrive content;
@UriParam
- @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "insert", description="An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.")})
+ @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "create", description="Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.")})
private String requestId;
@UriParam
@ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "delete", description="The ID of the Team Drive"), @ApiMethod(methodName = "get", description="The ID of the Team Drive"), @ApiMethod(methodName = "update", description="The ID of the Team Drive")})
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 1e237e34cca..fa9c0bd2b9e 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
@@ -21,18 +21,15 @@ public class GoogleDriveEndpointUriFactory extends org.apache.camel.support.comp
private static final Set<String> SECRET_PROPERTY_NAMES;
private static final Set<String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(54);
+ Set<String> props = new HashSet<>(48);
props.add("accessToken");
props.add("apiName");
- props.add("appId");
props.add("applicationName");
props.add("backoffErrorThreshold");
props.add("backoffIdleThreshold");
props.add("backoffMultiplier");
props.add("bridgeErrorHandler");
- props.add("changeId");
props.add("channel");
- props.add("childId");
props.add("clientFactory");
props.add("clientId");
props.add("clientSecret");
@@ -42,12 +39,10 @@ public class GoogleDriveEndpointUriFactory extends org.apache.camel.support.comp
props.add("delay");
props.add("delegate");
props.add("driveId");
- props.add("email");
props.add("exceptionHandler");
props.add("exchangePattern");
props.add("file");
props.add("fileId");
- props.add("folderId");
props.add("greedy");
props.add("inBody");
props.add("initialDelay");
@@ -56,10 +51,9 @@ public class GoogleDriveEndpointUriFactory extends org.apache.camel.support.comp
props.add("methodName");
props.add("mimeType");
props.add("modifyLabelsRequest");
- props.add("parentId");
+ props.add("pageToken");
props.add("permissionId");
props.add("pollStrategy");
- props.add("propertyKey");
props.add("refreshToken");
props.add("repeatCount");
props.add("replyId");
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverterLoader.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverterLoader.java
index 3d7f802adab..973b092c3fb 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverterLoader.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverterLoader.java
@@ -41,14 +41,8 @@ public final class GoogleDriveFilesConverterLoader implements TypeConverterLoade
}
private void registerConverters(TypeConverterRegistry registry) {
- addTypeConverter(registry, com.google.api.services.drive.model.ChildReference.class, java.lang.String.class, false,
- (type, exchange, value) -> org.apache.camel.component.google.drive.GoogleDriveFilesConverter.genericStringToChildReference((java.lang.String) value, exchange));
addTypeConverter(registry, com.google.api.services.drive.model.File.class, org.apache.camel.component.file.GenericFile.class, false,
(type, exchange, value) -> org.apache.camel.component.google.drive.GoogleDriveFilesConverter.genericFileToGoogleDriveFile((org.apache.camel.component.file.GenericFile) value, exchange));
- addTypeConverter(registry, java.io.InputStream.class, com.google.api.services.drive.model.File.class, true,
- (type, exchange, value) -> org.apache.camel.component.google.drive.GoogleDriveFilesConverter.download((com.google.api.services.drive.model.File) value, exchange));
- addTypeConverter(registry, java.lang.String.class, com.google.api.services.drive.model.File.class, false,
- (type, exchange, value) -> org.apache.camel.component.google.drive.GoogleDriveFilesConverter.downloadContentAsString((com.google.api.services.drive.model.File) value, exchange));
}
private static void addTypeConverter(TypeConverterRegistry registry, Class<?> toType, Class<?> fromType, boolean allowNull, SimpleTypeConverter.ConversionMethod method) {
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveAppsApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveAppsApiMethod.java
deleted file mode 100644
index eef0bde4b06..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveAppsApiMethod.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive.internal;
-
-import java.lang.reflect.Method;
-import java.util.List;
-
-import com.google.api.services.drive.Drive.Apps;
-
-import org.apache.camel.support.component.ApiMethod;
-import org.apache.camel.support.component.ApiMethodArg;
-import org.apache.camel.support.component.ApiMethodImpl;
-
-import static org.apache.camel.support.component.ApiMethodArg.arg;
-
-/**
- * Camel {@link ApiMethod} Enumeration for com.google.api.services.drive.Drive$Apps
- */
-public enum DriveAppsApiMethod implements ApiMethod {
-
- GET(
- com.google.api.services.drive.Drive.Apps.Get.class,
- "get",
- arg("appId", String.class)),
-
- LIST(
- com.google.api.services.drive.Drive.Apps.List.class,
- "list");
-
- private final ApiMethod apiMethod;
-
- private DriveAppsApiMethod(Class<?> resultType, String name, ApiMethodArg... args) {
- this.apiMethod = new ApiMethodImpl(Apps.class, resultType, name, args);
- }
-
- @Override
- public String getName() { return apiMethod.getName(); }
-
- @Override
- public Class<?> getResultType() { return apiMethod.getResultType(); }
-
- @Override
- public List<String> getArgNames() { return apiMethod.getArgNames(); }
-
- @Override
- public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }
-
- @Override
- public Method getMethod() { return apiMethod.getMethod(); }
-}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChangesApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChangesApiMethod.java
index aa1a9cb1b3a..92231ac5556 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChangesApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChangesApiMethod.java
@@ -19,22 +19,19 @@ import static org.apache.camel.support.component.ApiMethodArg.arg;
*/
public enum DriveChangesApiMethod implements ApiMethod {
- GET(
- com.google.api.services.drive.Drive.Changes.Get.class,
- "get",
- arg("changeId", String.class)),
-
GET_START_PAGE_TOKEN(
com.google.api.services.drive.Drive.Changes.GetStartPageToken.class,
"getStartPageToken"),
LIST(
com.google.api.services.drive.Drive.Changes.List.class,
- "list"),
+ "list",
+ arg("pageToken", String.class)),
WATCH(
com.google.api.services.drive.Drive.Changes.Watch.class,
"watch",
+ arg("pageToken", String.class),
arg("contentChannel", com.google.api.services.drive.model.Channel.class));
private final ApiMethod apiMethod;
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChildrenApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChildrenApiMethod.java
deleted file mode 100644
index aaf36e31dce..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveChildrenApiMethod.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive.internal;
-
-import java.lang.reflect.Method;
-import java.util.List;
-
-import com.google.api.services.drive.Drive.Children;
-
-import org.apache.camel.support.component.ApiMethod;
-import org.apache.camel.support.component.ApiMethodArg;
-import org.apache.camel.support.component.ApiMethodImpl;
-
-import static org.apache.camel.support.component.ApiMethodArg.arg;
-
-/**
- * Camel {@link ApiMethod} Enumeration for com.google.api.services.drive.Drive$Children
- */
-public enum DriveChildrenApiMethod implements ApiMethod {
-
- DELETE(
- com.google.api.services.drive.Drive.Children.Delete.class,
- "delete",
- arg("folderId", String.class),
- arg("childId", String.class)),
-
- GET(
- com.google.api.services.drive.Drive.Children.Get.class,
- "get",
- arg("folderId", String.class),
- arg("childId", String.class)),
-
- INSERT(
- com.google.api.services.drive.Drive.Children.Insert.class,
- "insert",
- arg("folderId", String.class),
- arg("content", com.google.api.services.drive.model.ChildReference.class)),
-
- LIST(
- com.google.api.services.drive.Drive.Children.List.class,
- "list",
- arg("folderId", String.class));
-
- private final ApiMethod apiMethod;
-
- private DriveChildrenApiMethod(Class<?> resultType, String name, ApiMethodArg... args) {
- this.apiMethod = new ApiMethodImpl(Children.class, resultType, name, args);
- }
-
- @Override
- public String getName() { return apiMethod.getName(); }
-
- @Override
- public Class<?> getResultType() { return apiMethod.getResultType(); }
-
- @Override
- public List<String> getArgNames() { return apiMethod.getArgNames(); }
-
- @Override
- public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }
-
- @Override
- public Method getMethod() { return apiMethod.getMethod(); }
-}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveCommentsApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveCommentsApiMethod.java
index 5f4d83a71ba..850989c169f 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveCommentsApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveCommentsApiMethod.java
@@ -19,6 +19,12 @@ import static org.apache.camel.support.component.ApiMethodArg.arg;
*/
public enum DriveCommentsApiMethod implements ApiMethod {
+ CREATE(
+ com.google.api.services.drive.Drive.Comments.Create.class,
+ "create",
+ arg("fileId", String.class),
+ arg("content", com.google.api.services.drive.model.Comment.class)),
+
DELETE(
com.google.api.services.drive.Drive.Comments.Delete.class,
"delete",
@@ -31,24 +37,11 @@ public enum DriveCommentsApiMethod implements ApiMethod {
arg("fileId", String.class),
arg("commentId", String.class)),
- INSERT(
- com.google.api.services.drive.Drive.Comments.Insert.class,
- "insert",
- arg("fileId", String.class),
- arg("content", com.google.api.services.drive.model.Comment.class)),
-
LIST(
com.google.api.services.drive.Drive.Comments.List.class,
"list",
arg("fileId", String.class)),
- PATCH(
- com.google.api.services.drive.Drive.Comments.Patch.class,
- "patch",
- arg("fileId", String.class),
- arg("commentId", String.class),
- arg("content", com.google.api.services.drive.model.Comment.class)),
-
UPDATE(
com.google.api.services.drive.Drive.Comments.Update.class,
"update",
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveDrivesApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveDrivesApiMethod.java
index ba1a6c29293..363db2f63c7 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveDrivesApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveDrivesApiMethod.java
@@ -19,6 +19,12 @@ import static org.apache.camel.support.component.ApiMethodArg.arg;
*/
public enum DriveDrivesApiMethod implements ApiMethod {
+ CREATE(
+ com.google.api.services.drive.Drive.Drives.Create.class,
+ "create",
+ arg("requestId", String.class),
+ arg("content", com.google.api.services.drive.model.Drive.class)),
+
DELETE(
com.google.api.services.drive.Drive.Drives.Delete.class,
"delete",
@@ -34,12 +40,6 @@ public enum DriveDrivesApiMethod implements ApiMethod {
"hide",
arg("driveId", String.class)),
- INSERT(
- com.google.api.services.drive.Drive.Drives.Insert.class,
- "insert",
- arg("requestId", String.class),
- arg("content", com.google.api.services.drive.model.Drive.class)),
-
LIST(
com.google.api.services.drive.Drive.Drives.List.class,
"list"),
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveFilesApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveFilesApiMethod.java
index f995dcff254..ff5e166ad43 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveFilesApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveFilesApiMethod.java
@@ -25,6 +25,17 @@ public enum DriveFilesApiMethod implements ApiMethod {
arg("fileId", String.class),
arg("file", com.google.api.services.drive.model.File.class)),
+ CREATE(
+ com.google.api.services.drive.Drive.Files.Create.class,
+ "create",
+ arg("content", com.google.api.services.drive.model.File.class)),
+
+ CREATE_1(
+ com.google.api.services.drive.Drive.Files.Create.class,
+ "create",
+ arg("content", com.google.api.services.drive.model.File.class),
+ arg("mediaContent", com.google.api.client.http.AbstractInputStreamContent.class)),
+
DELETE(
com.google.api.services.drive.Drive.Files.Delete.class,
"delete",
@@ -49,17 +60,6 @@ public enum DriveFilesApiMethod implements ApiMethod {
"get",
arg("fileId", String.class)),
- INSERT(
- com.google.api.services.drive.Drive.Files.Insert.class,
- "insert",
- arg("file", com.google.api.services.drive.model.File.class)),
-
- INSERT_1(
- com.google.api.services.drive.Drive.Files.Insert.class,
- "insert",
- arg("file", com.google.api.services.drive.model.File.class),
- arg("mediaContent", com.google.api.client.http.AbstractInputStreamContent.class)),
-
LIST(
com.google.api.services.drive.Drive.Files.List.class,
"list"),
@@ -75,27 +75,6 @@ public enum DriveFilesApiMethod implements ApiMethod {
arg("fileId", String.class),
arg("modifyLabelsRequest", com.google.api.services.drive.model.ModifyLabelsRequest.class)),
- PATCH(
- com.google.api.services.drive.Drive.Files.Patch.class,
- "patch",
- arg("fileId", String.class),
- arg("file", com.google.api.services.drive.model.File.class)),
-
- TOUCH(
- com.google.api.services.drive.Drive.Files.Touch.class,
- "touch",
- arg("fileId", String.class)),
-
- TRASH(
- com.google.api.services.drive.Drive.Files.Trash.class,
- "trash",
- arg("fileId", String.class)),
-
- UNTRASH(
- com.google.api.services.drive.Drive.Files.Untrash.class,
- "untrash",
- arg("fileId", String.class)),
-
UPDATE(
com.google.api.services.drive.Drive.Files.Update.class,
"update",
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveParentsApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveParentsApiMethod.java
deleted file mode 100644
index af4421df8ff..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveParentsApiMethod.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive.internal;
-
-import java.lang.reflect.Method;
-import java.util.List;
-
-import com.google.api.services.drive.Drive.Parents;
-
-import org.apache.camel.support.component.ApiMethod;
-import org.apache.camel.support.component.ApiMethodArg;
-import org.apache.camel.support.component.ApiMethodImpl;
-
-import static org.apache.camel.support.component.ApiMethodArg.arg;
-
-/**
- * Camel {@link ApiMethod} Enumeration for com.google.api.services.drive.Drive$Parents
- */
-public enum DriveParentsApiMethod implements ApiMethod {
-
- DELETE(
- com.google.api.services.drive.Drive.Parents.Delete.class,
- "delete",
- arg("fileId", String.class),
- arg("parentId", String.class)),
-
- GET(
- com.google.api.services.drive.Drive.Parents.Get.class,
- "get",
- arg("fileId", String.class),
- arg("parentId", String.class)),
-
- INSERT(
- com.google.api.services.drive.Drive.Parents.Insert.class,
- "insert",
- arg("fileId", String.class),
- arg("content", com.google.api.services.drive.model.ParentReference.class)),
-
- LIST(
- com.google.api.services.drive.Drive.Parents.List.class,
- "list",
- arg("fileId", String.class));
-
- private final ApiMethod apiMethod;
-
- private DriveParentsApiMethod(Class<?> resultType, String name, ApiMethodArg... args) {
- this.apiMethod = new ApiMethodImpl(Parents.class, resultType, name, args);
- }
-
- @Override
- public String getName() { return apiMethod.getName(); }
-
- @Override
- public Class<?> getResultType() { return apiMethod.getResultType(); }
-
- @Override
- public List<String> getArgNames() { return apiMethod.getArgNames(); }
-
- @Override
- public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }
-
- @Override
- public Method getMethod() { return apiMethod.getMethod(); }
-}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePermissionsApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePermissionsApiMethod.java
index 2c304abac2d..56a43e23f84 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePermissionsApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePermissionsApiMethod.java
@@ -19,6 +19,12 @@ import static org.apache.camel.support.component.ApiMethodArg.arg;
*/
public enum DrivePermissionsApiMethod implements ApiMethod {
+ CREATE(
+ com.google.api.services.drive.Drive.Permissions.Create.class,
+ "create",
+ arg("fileId", String.class),
+ arg("content", com.google.api.services.drive.model.Permission.class)),
+
DELETE(
com.google.api.services.drive.Drive.Permissions.Delete.class,
"delete",
@@ -31,29 +37,11 @@ public enum DrivePermissionsApiMethod implements ApiMethod {
arg("fileId", String.class),
arg("permissionId", String.class)),
- GET_ID_FOR_EMAIL(
- com.google.api.services.drive.Drive.Permissions.GetIdForEmail.class,
- "getIdForEmail",
- arg("email", String.class)),
-
- INSERT(
- com.google.api.services.drive.Drive.Permissions.Insert.class,
- "insert",
- arg("fileId", String.class),
- arg("content", com.google.api.services.drive.model.Permission.class)),
-
LIST(
com.google.api.services.drive.Drive.Permissions.List.class,
"list",
arg("fileId", String.class)),
- PATCH(
- com.google.api.services.drive.Drive.Permissions.Patch.class,
- "patch",
- arg("fileId", String.class),
- arg("permissionId", String.class),
- arg("content", com.google.api.services.drive.model.Permission.class)),
-
UPDATE(
com.google.api.services.drive.Drive.Permissions.Update.class,
"update",
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePropertiesApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePropertiesApiMethod.java
deleted file mode 100644
index 157a14db760..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DrivePropertiesApiMethod.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
- */
-package org.apache.camel.component.google.drive.internal;
-
-import java.lang.reflect.Method;
-import java.util.List;
-
-import com.google.api.services.drive.Drive.Properties;
-
-import org.apache.camel.support.component.ApiMethod;
-import org.apache.camel.support.component.ApiMethodArg;
-import org.apache.camel.support.component.ApiMethodImpl;
-
-import static org.apache.camel.support.component.ApiMethodArg.arg;
-
-/**
- * Camel {@link ApiMethod} Enumeration for com.google.api.services.drive.Drive$Properties
- */
-public enum DrivePropertiesApiMethod implements ApiMethod {
-
- DELETE(
- com.google.api.services.drive.Drive.Properties.Delete.class,
- "delete",
- arg("fileId", String.class),
- arg("propertyKey", String.class)),
-
- GET(
- com.google.api.services.drive.Drive.Properties.Get.class,
- "get",
- arg("fileId", String.class),
- arg("propertyKey", String.class)),
-
- INSERT(
- com.google.api.services.drive.Drive.Properties.Insert.class,
- "insert",
- arg("fileId", String.class),
- arg("content", com.google.api.services.drive.model.Property.class)),
-
- LIST(
- com.google.api.services.drive.Drive.Properties.List.class,
- "list",
- arg("fileId", String.class)),
-
- PATCH(
- com.google.api.services.drive.Drive.Properties.Patch.class,
- "patch",
- arg("fileId", String.class),
- arg("propertyKey", String.class),
- arg("content", com.google.api.services.drive.model.Property.class)),
-
- UPDATE(
- com.google.api.services.drive.Drive.Properties.Update.class,
- "update",
- arg("fileId", String.class),
- arg("propertyKey", String.class),
- arg("content", com.google.api.services.drive.model.Property.class));
-
- private final ApiMethod apiMethod;
-
- private DrivePropertiesApiMethod(Class<?> resultType, String name, ApiMethodArg... args) {
- this.apiMethod = new ApiMethodImpl(Properties.class, resultType, name, args);
- }
-
- @Override
- public String getName() { return apiMethod.getName(); }
-
- @Override
- public Class<?> getResultType() { return apiMethod.getResultType(); }
-
- @Override
- public List<String> getArgNames() { return apiMethod.getArgNames(); }
-
- @Override
- public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }
-
- @Override
- public Method getMethod() { return apiMethod.getMethod(); }
-}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRepliesApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRepliesApiMethod.java
index 6ddeb366060..90d275ab2c5 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRepliesApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRepliesApiMethod.java
@@ -19,6 +19,13 @@ import static org.apache.camel.support.component.ApiMethodArg.arg;
*/
public enum DriveRepliesApiMethod implements ApiMethod {
+ CREATE(
+ com.google.api.services.drive.Drive.Replies.Create.class,
+ "create",
+ arg("fileId", String.class),
+ arg("commentId", String.class),
+ arg("content", com.google.api.services.drive.model.Reply.class)),
+
DELETE(
com.google.api.services.drive.Drive.Replies.Delete.class,
"delete",
@@ -33,34 +40,19 @@ public enum DriveRepliesApiMethod implements ApiMethod {
arg("commentId", String.class),
arg("replyId", String.class)),
- INSERT(
- com.google.api.services.drive.Drive.Replies.Insert.class,
- "insert",
- arg("fileId", String.class),
- arg("commentId", String.class),
- arg("content", com.google.api.services.drive.model.CommentReply.class)),
-
LIST(
com.google.api.services.drive.Drive.Replies.List.class,
"list",
arg("fileId", String.class),
arg("commentId", String.class)),
- PATCH(
- com.google.api.services.drive.Drive.Replies.Patch.class,
- "patch",
- arg("fileId", String.class),
- arg("commentId", String.class),
- arg("replyId", String.class),
- arg("content", com.google.api.services.drive.model.CommentReply.class)),
-
UPDATE(
com.google.api.services.drive.Drive.Replies.Update.class,
"update",
arg("fileId", String.class),
arg("commentId", String.class),
arg("replyId", String.class),
- arg("content", com.google.api.services.drive.model.CommentReply.class));
+ arg("content", com.google.api.services.drive.model.Reply.class));
private final ApiMethod apiMethod;
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRevisionsApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRevisionsApiMethod.java
index fc5e5d2902e..b8c1bb429a9 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRevisionsApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveRevisionsApiMethod.java
@@ -36,13 +36,6 @@ public enum DriveRevisionsApiMethod implements ApiMethod {
"list",
arg("fileId", String.class)),
- PATCH(
- com.google.api.services.drive.Drive.Revisions.Patch.class,
- "patch",
- arg("fileId", String.class),
- arg("revisionId", String.class),
- arg("content", com.google.api.services.drive.model.Revision.class)),
-
UPDATE(
com.google.api.services.drive.Drive.Revisions.Update.class,
"update",
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveTeamdrivesApiMethod.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveTeamdrivesApiMethod.java
index 74f7ae12a23..991c19de788 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveTeamdrivesApiMethod.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/DriveTeamdrivesApiMethod.java
@@ -19,6 +19,12 @@ import static org.apache.camel.support.component.ApiMethodArg.arg;
*/
public enum DriveTeamdrivesApiMethod implements ApiMethod {
+ CREATE(
+ com.google.api.services.drive.Drive.Teamdrives.Create.class,
+ "create",
+ arg("requestId", String.class),
+ arg("content", com.google.api.services.drive.model.TeamDrive.class)),
+
DELETE(
com.google.api.services.drive.Drive.Teamdrives.Delete.class,
"delete",
@@ -29,12 +35,6 @@ public enum DriveTeamdrivesApiMethod implements ApiMethod {
"get",
arg("teamDriveId", String.class)),
- INSERT(
- com.google.api.services.drive.Drive.Teamdrives.Insert.class,
- "insert",
- arg("requestId", String.class),
- arg("content", com.google.api.services.drive.model.TeamDrive.class)),
-
LIST(
com.google.api.services.drive.Drive.Teamdrives.List.class,
"list"),
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiCollection.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiCollection.java
index 3e3a2b8bada..13471255dec 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiCollection.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiCollection.java
@@ -11,19 +11,15 @@ import java.util.Map;
import org.apache.camel.component.google.drive.GoogleDriveConfiguration;
import org.apache.camel.component.google.drive.DriveAboutEndpointConfiguration;
-import org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration;
import org.apache.camel.component.google.drive.DriveChangesEndpointConfiguration;
import org.apache.camel.component.google.drive.DriveChannelsEndpointConfiguration;
-import org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration;
import org.apache.camel.component.google.drive.DriveCommentsEndpointConfiguration;
+import org.apache.camel.component.google.drive.DriveDrivesEndpointConfiguration;
import org.apache.camel.component.google.drive.DriveFilesEndpointConfiguration;
-import org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration;
import org.apache.camel.component.google.drive.DrivePermissionsEndpointConfiguration;
-import org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration;
-import org.apache.camel.component.google.drive.DriveDrivesEndpointConfiguration;
-import org.apache.camel.component.google.drive.DriveTeamdrivesEndpointConfiguration;
import org.apache.camel.component.google.drive.DriveRepliesEndpointConfiguration;
import org.apache.camel.component.google.drive.DriveRevisionsEndpointConfiguration;
+import org.apache.camel.component.google.drive.DriveTeamdrivesEndpointConfiguration;
import org.apache.camel.support.component.ApiCollection;
import org.apache.camel.support.component.ApiMethod;
@@ -48,11 +44,6 @@ public final class GoogleDriveApiCollection extends ApiCollection<GoogleDriveApi
apiHelpers.put(GoogleDriveApiName.DRIVE_ABOUT, new ApiMethodHelper<>(DriveAboutApiMethod.class, aliases, nullableArgs));
apiMethods.put(DriveAboutApiMethod.class, GoogleDriveApiName.DRIVE_ABOUT);
- aliases.clear();
- nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_APPS, new ApiMethodHelper<>(DriveAppsApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveAppsApiMethod.class, GoogleDriveApiName.DRIVE_APPS);
-
aliases.clear();
nullableArgs = Arrays.asList();
apiHelpers.put(GoogleDriveApiName.DRIVE_CHANGES, new ApiMethodHelper<>(DriveChangesApiMethod.class, aliases, nullableArgs));
@@ -63,11 +54,6 @@ public final class GoogleDriveApiCollection extends ApiCollection<GoogleDriveApi
apiHelpers.put(GoogleDriveApiName.DRIVE_CHANNELS, new ApiMethodHelper<>(DriveChannelsApiMethod.class, aliases, nullableArgs));
apiMethods.put(DriveChannelsApiMethod.class, GoogleDriveApiName.DRIVE_CHANNELS);
- aliases.clear();
- nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_CHILDREN, new ApiMethodHelper<>(DriveChildrenApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveChildrenApiMethod.class, GoogleDriveApiName.DRIVE_CHILDREN);
-
aliases.clear();
nullableArgs = Arrays.asList();
apiHelpers.put(GoogleDriveApiName.DRIVE_COMMENTS, new ApiMethodHelper<>(DriveCommentsApiMethod.class, aliases, nullableArgs));
@@ -75,13 +61,13 @@ public final class GoogleDriveApiCollection extends ApiCollection<GoogleDriveApi
aliases.clear();
nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_FILES, new ApiMethodHelper<>(DriveFilesApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveFilesApiMethod.class, GoogleDriveApiName.DRIVE_FILES);
+ apiHelpers.put(GoogleDriveApiName.DRIVE_DRIVES, new ApiMethodHelper<>(DriveDrivesApiMethod.class, aliases, nullableArgs));
+ apiMethods.put(DriveDrivesApiMethod.class, GoogleDriveApiName.DRIVE_DRIVES);
aliases.clear();
nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_PARENTS, new ApiMethodHelper<>(DriveParentsApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveParentsApiMethod.class, GoogleDriveApiName.DRIVE_PARENTS);
+ apiHelpers.put(GoogleDriveApiName.DRIVE_FILES, new ApiMethodHelper<>(DriveFilesApiMethod.class, aliases, nullableArgs));
+ apiMethods.put(DriveFilesApiMethod.class, GoogleDriveApiName.DRIVE_FILES);
aliases.clear();
nullableArgs = Arrays.asList();
@@ -90,29 +76,19 @@ public final class GoogleDriveApiCollection extends ApiCollection<GoogleDriveApi
aliases.clear();
nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_PROPERTIES, new ApiMethodHelper<>(DrivePropertiesApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DrivePropertiesApiMethod.class, GoogleDriveApiName.DRIVE_PROPERTIES);
+ apiHelpers.put(GoogleDriveApiName.DRIVE_REPLIES, new ApiMethodHelper<>(DriveRepliesApiMethod.class, aliases, nullableArgs));
+ apiMethods.put(DriveRepliesApiMethod.class, GoogleDriveApiName.DRIVE_REPLIES);
aliases.clear();
nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_DRIVES, new ApiMethodHelper<>(DriveDrivesApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveDrivesApiMethod.class, GoogleDriveApiName.DRIVE_DRIVES);
+ apiHelpers.put(GoogleDriveApiName.DRIVE_REVISIONS, new ApiMethodHelper<>(DriveRevisionsApiMethod.class, aliases, nullableArgs));
+ apiMethods.put(DriveRevisionsApiMethod.class, GoogleDriveApiName.DRIVE_REVISIONS);
aliases.clear();
nullableArgs = Arrays.asList();
apiHelpers.put(GoogleDriveApiName.DRIVE_TEAMDRIVES, new ApiMethodHelper<>(DriveTeamdrivesApiMethod.class, aliases, nullableArgs));
apiMethods.put(DriveTeamdrivesApiMethod.class, GoogleDriveApiName.DRIVE_TEAMDRIVES);
- aliases.clear();
- nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_REPLIES, new ApiMethodHelper<>(DriveRepliesApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveRepliesApiMethod.class, GoogleDriveApiName.DRIVE_REPLIES);
-
- aliases.clear();
- nullableArgs = Arrays.asList();
- apiHelpers.put(GoogleDriveApiName.DRIVE_REVISIONS, new ApiMethodHelper<>(DriveRevisionsApiMethod.class, aliases, nullableArgs));
- apiMethods.put(DriveRevisionsApiMethod.class, GoogleDriveApiName.DRIVE_REVISIONS);
-
setApiHelpers(apiHelpers);
setApiMethods(apiMethods);
}
@@ -123,45 +99,33 @@ public final class GoogleDriveApiCollection extends ApiCollection<GoogleDriveApi
case DRIVE_ABOUT:
result = new DriveAboutEndpointConfiguration();
break;
- case DRIVE_APPS:
- result = new DriveAppsEndpointConfiguration();
- break;
case DRIVE_CHANGES:
result = new DriveChangesEndpointConfiguration();
break;
case DRIVE_CHANNELS:
result = new DriveChannelsEndpointConfiguration();
break;
- case DRIVE_CHILDREN:
- result = new DriveChildrenEndpointConfiguration();
- break;
case DRIVE_COMMENTS:
result = new DriveCommentsEndpointConfiguration();
break;
+ case DRIVE_DRIVES:
+ result = new DriveDrivesEndpointConfiguration();
+ break;
case DRIVE_FILES:
result = new DriveFilesEndpointConfiguration();
break;
- case DRIVE_PARENTS:
- result = new DriveParentsEndpointConfiguration();
- break;
case DRIVE_PERMISSIONS:
result = new DrivePermissionsEndpointConfiguration();
break;
- case DRIVE_PROPERTIES:
- result = new DrivePropertiesEndpointConfiguration();
- break;
- case DRIVE_DRIVES:
- result = new DriveDrivesEndpointConfiguration();
- break;
- case DRIVE_TEAMDRIVES:
- result = new DriveTeamdrivesEndpointConfiguration();
- break;
case DRIVE_REPLIES:
result = new DriveRepliesEndpointConfiguration();
break;
case DRIVE_REVISIONS:
result = new DriveRevisionsEndpointConfiguration();
break;
+ case DRIVE_TEAMDRIVES:
+ result = new DriveTeamdrivesEndpointConfiguration();
+ break;
}
return result;
}
diff --git a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java
index 15f80d5b767..b4441a3f40a 100644
--- a/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java
+++ b/components/camel-google/camel-google-drive/src/generated/java/org/apache/camel/component/google/drive/internal/GoogleDriveApiName.java
@@ -12,31 +12,23 @@ public enum GoogleDriveApiName implements ApiName {
DRIVE_ABOUT("drive-about"),
- DRIVE_APPS("drive-apps"),
-
DRIVE_CHANGES("drive-changes"),
DRIVE_CHANNELS("drive-channels"),
- DRIVE_CHILDREN("drive-children"),
-
DRIVE_COMMENTS("drive-comments"),
- DRIVE_FILES("drive-files"),
+ DRIVE_DRIVES("drive-drives"),
- DRIVE_PARENTS("drive-parents"),
+ DRIVE_FILES("drive-files"),
DRIVE_PERMISSIONS("drive-permissions"),
- DRIVE_PROPERTIES("drive-properties"),
-
- DRIVE_DRIVES("drive-drives"),
-
- DRIVE_TEAMDRIVES("drive-teamdrives"),
-
DRIVE_REPLIES("drive-replies"),
- DRIVE_REVISIONS("drive-revisions");
+ DRIVE_REVISIONS("drive-revisions"),
+
+ DRIVE_TEAMDRIVES("drive-teamdrives");
private final String name;
diff --git a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration b/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration
deleted file mode 100644
index c8cff763f4e..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveAppsEndpointConfiguration
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.google.drive.DriveAppsEndpointConfigurationConfigurer
diff --git a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration b/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration
deleted file mode 100644
index 918ae64debf..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveChildrenEndpointConfiguration
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.google.drive.DriveChildrenEndpointConfigurationConfigurer
diff --git a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration b/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration
deleted file mode 100644
index b42887d0055..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DriveParentsEndpointConfiguration
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.google.drive.DriveParentsEndpointConfigurationConfigurer
diff --git a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration b/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration
deleted file mode 100644
index 2a14370181c..00000000000
--- a/components/camel-google/camel-google-drive/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.component.google.drive.DrivePropertiesEndpointConfiguration
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.google.drive.DrivePropertiesEndpointConfigurationConfigurer
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 ef89165034f..beaf3ce34e2 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
@@ -38,7 +38,7 @@
"serviceAccountKey": { "index": 12, "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 a [...]
},
"properties": {
- "apiName": { "index": 0, "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" [...]
+ "apiName": { "index": 0, "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_CHANGES", "DRIVE_CHANNELS", "DRIVE_COMMENTS", "DRIVE_DRIVES", "DRIVE_FILES", "DRIVE_PERMISSIONS", "DRIVE_REPLIES", "DRIVE_REVISIONS", "DRIVE_TEAMDRIVES" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, [...]
"methodName": { "index": 1, "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "copy", "delete", "get", "getIdForEmail", "insert", "list", "patch", "stop", "touch", "trash", "untrash", "update", "watch" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.drive.GoogleDriveConfiguration", "confi [...]
"applicationName": { "index": 2, "kind": "parameter", "displayName": "Application Name", "group": "common", "label": "", "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": "Google drive application name. Example would be camel-google-drive\/1.0" },
"clientFactory": { "index": 3, "kind": "parameter", "displayName": "Client Factory", "group": "common", "label": "", "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" },
@@ -72,33 +72,25 @@
"serviceAccountKey": { "index": 31, "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 [...]
},
"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)" ] } } },
- "drive-changes": { "consumerOnly": false, "producerOnly": false, "description": "The changes collection of methods", "methods": { "get": { "description": "Deprecated - Use changes", "signatures": [ "com.google.api.services.drive.Drive$Changes$Get get(String changeId)" ] }, "watch": { "description": "Subscribe to changes for a user", "signatures": [ "com.google.api.services.drive.Drive$Changes$Watch watch(com.google.api.services.drive.model.Channel content)" ] } } },
- "drive-channels": { "consumerOnly": false, "producerOnly": false, "description": "The channels collection of methods", "methods": { "stop": { "description": "Stop watching resources through this channel", "signatures": [ "com.google.api.services.drive.Drive$Channels$Stop stop(com.google.api.services.drive.model.Channel content)" ] } } },
- "drive-children": { "consumerOnly": false, "producerOnly": false, "description": "The children collection of methods", "methods": { "delete": { "description": "Removes a child from a folder", "signatures": [ "com.google.api.services.drive.Drive$Children$Delete delete(String folderId, String childId)" ] }, "get": { "description": "Gets a specific child reference", "signatures": [ "com.google.api.services.drive.Drive$Children$Get get(String folderId, String childId)" ] }, "insert": { " [...]
- "drive-comments": { "consumerOnly": false, "producerOnly": false, "description": "The comments collection of methods", "methods": { "delete": { "description": "Deletes a comment", "signatures": [ "com.google.api.services.drive.Drive$Comments$Delete delete(String fileId, String commentId)" ] }, "get": { "description": "Gets a comment by ID", "signatures": [ "com.google.api.services.drive.Drive$Comments$Get get(String fileId, String commentId)" ] }, "insert": { "description": "Creates [...]
- "drive-drives": { "consumerOnly": false, "producerOnly": false, "description": "The drives collection of methods", "methods": { "delete": { "description": "Permanently deletes a shared drive for which the user is an organizer", "signatures": [ "com.google.api.services.drive.Drive$Drives$Delete delete(String driveId)" ] }, "get": { "description": "Gets a shared drive's metadata by ID", "signatures": [ "com.google.api.services.drive.Drive$Drives$Get get(String driveId)" ] }, "hide": { [...]
- "drive-files": { "consumerOnly": false, "producerOnly": false, "description": "The files collection of methods", "methods": { "copy": { "description": "Creates a copy of the specified file", "signatures": [ "com.google.api.services.drive.Drive$Files$Copy copy(String fileId, com.google.api.services.drive.model.File content)" ] }, "delete": { "description": "Permanently deletes a file by ID", "signatures": [ "com.google.api.services.drive.Drive$Files$Delete delete(String fileId)" ] }, [...]
- "drive-parents": { "consumerOnly": false, "producerOnly": false, "description": "The parents collection of methods", "methods": { "delete": { "description": "Removes a parent from a file", "signatures": [ "com.google.api.services.drive.Drive$Parents$Delete delete(String fileId, String parentId)" ] }, "get": { "description": "Gets a specific parent reference", "signatures": [ "com.google.api.services.drive.Drive$Parents$Get get(String fileId, String parentId)" ] }, "insert": { "descri [...]
- "drive-permissions": { "consumerOnly": false, "producerOnly": false, "description": "The permissions collection of methods", "methods": { "delete": { "description": "Deletes a permission from a file or shared drive", "signatures": [ "com.google.api.services.drive.Drive$Permissions$Delete delete(String fileId, String permissionId)" ] }, "get": { "description": "Gets a permission by ID", "signatures": [ "com.google.api.services.drive.Drive$Permissions$Get get(String fileId, String perm [...]
- "drive-properties": { "consumerOnly": false, "producerOnly": false, "description": "The properties collection of methods", "methods": { "delete": { "description": "Deletes a property", "signatures": [ "com.google.api.services.drive.Drive$Properties$Delete delete(String fileId, String propertyKey)" ] }, "get": { "description": "Gets a property by its key", "signatures": [ "com.google.api.services.drive.Drive$Properties$Get get(String fileId, String propertyKey)" ] }, "insert": { "desc [...]
- "drive-replies": { "consumerOnly": false, "producerOnly": false, "description": "The replies collection of methods", "methods": { "delete": { "description": "Deletes a reply", "signatures": [ "com.google.api.services.drive.Drive$Replies$Delete delete(String fileId, String commentId, String replyId)" ] }, "get": { "description": "Gets a reply", "signatures": [ "com.google.api.services.drive.Drive$Replies$Get get(String fileId, String commentId, String replyId)" ] }, "insert": { "descr [...]
- "drive-revisions": { "consumerOnly": false, "producerOnly": false, "description": "The revisions collection of methods", "methods": { "delete": { "description": "Permanently deletes a file version", "signatures": [ "com.google.api.services.drive.Drive$Revisions$Delete delete(String fileId, String revisionId)" ] }, "get": { "description": "Gets a specific revision", "signatures": [ "com.google.api.services.drive.Drive$Revisions$Get get(String fileId, String revisionId)" ] }, "list": { [...]
- "drive-teamdrives": { "consumerOnly": false, "producerOnly": false, "description": "The teamdrives collection of methods", "methods": { "delete": { "description": "Deprecated use drives", "signatures": [ "com.google.api.services.drive.Drive$Teamdrives$Delete delete(String teamDriveId)" ] }, "get": { "description": "Deprecated use drives", "signatures": [ "com.google.api.services.drive.Drive$Teamdrives$Get get(String teamDriveId)" ] }, "insert": { "description": "Deprecated use drives [...]
+ "drive-changes": { "consumerOnly": false, "producerOnly": false, "description": "The changes collection of methods", "methods": { "list": { "description": "Lists the changes for a user or shared drive", "signatures": [ "com.google.api.services.drive.Drive$Changes$List list(String pageToken)" ] }, "watch": { "description": "Subscribes to changes for a user", "signatures": [ "com.google.api.services.drive.Drive$Changes$Watch watch(String pageToken, com.google.api.services.drive.model.C [...]
+ "drive-channels": { "consumerOnly": false, "producerOnly": false, "description": "The channels collection of methods", "methods": { "stop": { "description": "Stops watching resources through this channel", "signatures": [ "com.google.api.services.drive.Drive$Channels$Stop stop(com.google.api.services.drive.model.Channel content)" ] } } },
+ "drive-comments": { "consumerOnly": false, "producerOnly": false, "description": "The comments collection of methods", "methods": { "create": { "description": "Creates a comment on a file", "signatures": [ "com.google.api.services.drive.Drive$Comments$Create create(String fileId, com.google.api.services.drive.model.Comment content)" ] }, "delete": { "description": "Deletes a comment", "signatures": [ "com.google.api.services.drive.Drive$Comments$Delete delete(String fileId, String co [...]
+ "drive-drives": { "consumerOnly": false, "producerOnly": false, "description": "The drives collection of methods", "methods": { "create": { "description": "Creates a shared drive", "signatures": [ "com.google.api.services.drive.Drive$Drives$Create create(String requestId, com.google.api.services.drive.model.Drive content)" ] }, "delete": { "description": "Permanently deletes a shared drive for which the user is an organizer", "signatures": [ "com.google.api.services.drive.Drive$Drive [...]
+ "drive-files": { "consumerOnly": false, "producerOnly": false, "description": "The files collection of methods", "methods": { "copy": { "description": "Creates a copy of a file and applies any requested updates with patch semantics", "signatures": [ "com.google.api.services.drive.Drive$Files$Copy copy(String fileId, com.google.api.services.drive.model.File content)" ] }, "create": { "description": "Creates a new file", "signatures": [ "com.google.api.services.drive.Drive$Files$Create [...]
+ "drive-permissions": { "consumerOnly": false, "producerOnly": false, "description": "The permissions collection of methods", "methods": { "create": { "description": "Creates a permission for a file or shared drive", "signatures": [ "com.google.api.services.drive.Drive$Permissions$Create create(String fileId, com.google.api.services.drive.model.Permission content)" ] }, "delete": { "description": "Deletes a permission", "signatures": [ "com.google.api.services.drive.Drive$Permissions$ [...]
+ "drive-replies": { "consumerOnly": false, "producerOnly": false, "description": "The replies collection of methods", "methods": { "create": { "description": "Creates a reply to a comment", "signatures": [ "com.google.api.services.drive.Drive$Replies$Create create(String fileId, String commentId, com.google.api.services.drive.model.Reply content)" ] }, "delete": { "description": "Deletes a reply", "signatures": [ "com.google.api.services.drive.Drive$Replies$Delete delete(String fileId [...]
+ "drive-revisions": { "consumerOnly": false, "producerOnly": false, "description": "The revisions collection of methods", "methods": { "delete": { "description": "Permanently deletes a file version", "signatures": [ "com.google.api.services.drive.Drive$Revisions$Delete delete(String fileId, String revisionId)" ] }, "get": { "description": "Gets a revision's metadata or content by ID", "signatures": [ "com.google.api.services.drive.Drive$Revisions$Get get(String fileId, String revision [...]
+ "drive-teamdrives": { "consumerOnly": false, "producerOnly": false, "description": "The teamdrives collection of methods", "methods": { "create": { "description": "Deprecated: Use drives", "signatures": [ "com.google.api.services.drive.Drive$Teamdrives$Create create(String requestId, com.google.api.services.drive.model.TeamDrive content)" ] }, "delete": { "description": "Deprecated: Use drives", "signatures": [ "com.google.api.services.drive.Drive$Teamdrives$Delete delete(String team [...]
},
"apiProperties": {
- "drive-apps": { "methods": { "get": { "properties": { "appId": { "index": 0, "kind": "parameter", "displayName": "App Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the app", "optional": false } } } } },
- "drive-changes": { "methods": { "get": { "properties": { "changeId": { "index": 0, "kind": "parameter", "displayName": "Change Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the change", "optional": false } } }, "watch": { "properties": { "contentChannel": { "index": 0, "kind": "parameter", "displayName": "Content Channel", "group": "common", [...]
+ "drive-changes": { "methods": { "list": { "properties": { "pageToken": { "index": 0, "kind": "parameter", "displayName": "Page Token", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getSt [...]
"drive-channels": { "methods": { "stop": { "properties": { "contentChannel": { "index": 0, "kind": "parameter", "displayName": "Content Channel", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.Channel", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.Channel", "optional": false } } } } },
- "drive-children": { "methods": { "delete": { "properties": { "childId": { "index": 0, "kind": "parameter", "displayName": "Child Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the child", "optional": false }, "folderId": { "index": 1, "kind": "parameter", "displayName": "Folder Id", "group": "common", "label": "", "required": false, "type": "s [...]
- "drive-comments": { "methods": { "delete": { "properties": { "commentId": { "index": 0, "kind": "parameter", "displayName": "Comment Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the comment", "optional": false }, "fileId": { "index": 1, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": [...]
- "drive-drives": { "methods": { "delete": { "properties": { "driveId": { "index": 0, "kind": "parameter", "displayName": "Drive Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the shared drive", "optional": false } } }, "get": { "properties": { "driveId": { "index": 0, "kind": "parameter", "displayName": "Drive Id", "group": "common", "label": " [...]
- "drive-files": { "methods": { "copy": { "properties": { "file": { "index": 0, "kind": "parameter", "displayName": "File", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.File", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.File", "optional": false }, "fileId": { "index": 1, "kind": "parameter", "displayName": "File Id", "group": "common", "label": [...]
- "drive-parents": { "methods": { "delete": { "properties": { "fileId": { "index": 0, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the file", "optional": false }, "parentId": { "index": 1, "kind": "parameter", "displayName": "Parent Id", "group": "common", "label": "", "required": false, "type": "strin [...]
- "drive-permissions": { "methods": { "delete": { "properties": { "fileId": { "index": 0, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID for the file or shared drive", "optional": false }, "permissionId": { "index": 1, "kind": "parameter", "displayName": "Permission Id", "group": "common", "label": "", "req [...]
- "drive-properties": { "methods": { "delete": { "properties": { "fileId": { "index": 0, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the file", "optional": false }, "propertyKey": { "index": 1, "kind": "parameter", "displayName": "Property Key", "group": "common", "label": "", "required": false, "type [...]
- "drive-replies": { "methods": { "delete": { "properties": { "commentId": { "index": 0, "kind": "parameter", "displayName": "Comment Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the comment", "optional": false }, "fileId": { "index": 1, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": " [...]
- "drive-revisions": { "methods": { "delete": { "properties": { "fileId": { "index": 0, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the file", "optional": false }, "revisionId": { "index": 1, "kind": "parameter", "displayName": "Revision Id", "group": "common", "label": "", "required": false, "type": [...]
- "drive-teamdrives": { "methods": { "delete": { "properties": { "teamDriveId": { "index": 0, "kind": "parameter", "displayName": "Team Drive Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the Team Drive", "optional": false } } }, "get": { "properties": { "teamDriveId": { "index": 0, "kind": "parameter", "displayName": "Team Drive Id", "group": [...]
+ "drive-comments": { "methods": { "create": { "properties": { "content": { "index": 0, "kind": "parameter", "displayName": "Content", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.Comment", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.Comment", "optional": false }, "fileId": { "index": 1, "kind": "parameter", "displayName": "File Id", "group": "c [...]
+ "drive-drives": { "methods": { "create": { "properties": { "content": { "index": 0, "kind": "parameter", "displayName": "Content", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.Drive", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.Drive", "optional": false }, "requestId": { "index": 1, "kind": "parameter", "displayName": "Request Id", "group": "c [...]
+ "drive-files": { "methods": { "copy": { "properties": { "file": { "index": 0, "kind": "parameter", "displayName": "File", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.File", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.File", "optional": false }, "fileId": { "index": 1, "kind": "parameter", "displayName": "File Id", "group": "common", "label": [...]
+ "drive-permissions": { "methods": { "create": { "properties": { "content": { "index": 0, "kind": "parameter", "displayName": "Content", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.Permission", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.Permission", "optional": false }, "fileId": { "index": 1, "kind": "parameter", "displayName": "File Id", "g [...]
+ "drive-replies": { "methods": { "create": { "properties": { "commentId": { "index": 0, "kind": "parameter", "displayName": "Comment Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the comment", "optional": false }, "content": { "index": 1, "kind": "parameter", "displayName": "Content", "group": "common", "label": "", "required": false, "type": [...]
+ "drive-revisions": { "methods": { "delete": { "properties": { "fileId": { "index": 0, "kind": "parameter", "displayName": "File Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the file", "optional": false }, "revisionId": { "index": 1, "kind": "parameter", "displayName": "Revision Id", "group": "common", "label": "", "required": false, "type": [...]
+ "drive-teamdrives": { "methods": { "create": { "properties": { "content": { "index": 0, "kind": "parameter", "displayName": "Content", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.api.services.drive.model.TeamDrive", "deprecated": false, "autowired": false, "secret": false, "description": "The com.google.api.services.drive.model.TeamDrive", "optional": false }, "requestId": { "index": 1, "kind": "parameter", "displayName": "Request Id", [...]
}
}
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveEndpoint.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveEndpoint.java
index d075f7c530a..834dbcc2858 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveEndpoint.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveEndpoint.java
@@ -85,45 +85,33 @@ public class GoogleDriveEndpoint extends AbstractApiEndpoint<GoogleDriveApiName,
@Override
protected void afterConfigureProperties() {
switch (apiName) {
- case DRIVE_FILES:
- apiProxy = getClient().files();
- break;
case DRIVE_ABOUT:
apiProxy = getClient().about();
break;
- case DRIVE_APPS:
- apiProxy = getClient().apps();
+ case DRIVE_CHANGES:
+ apiProxy = getClient().changes();
break;
case DRIVE_CHANNELS:
apiProxy = getClient().channels();
break;
- case DRIVE_CHANGES:
- apiProxy = getClient().changes();
- break;
case DRIVE_COMMENTS:
apiProxy = getClient().comments();
break;
- case DRIVE_PERMISSIONS:
- apiProxy = getClient().permissions();
- break;
- case DRIVE_PROPERTIES:
- apiProxy = getClient().properties();
- break;
case DRIVE_DRIVES:
apiProxy = getClient().drives();
break;
+ case DRIVE_FILES:
+ apiProxy = getClient().files();
+ break;
+ case DRIVE_PERMISSIONS:
+ apiProxy = getClient().permissions();
+ break;
case DRIVE_REPLIES:
apiProxy = getClient().replies();
break;
case DRIVE_REVISIONS:
apiProxy = getClient().revisions();
break;
- case DRIVE_CHILDREN:
- apiProxy = getClient().children();
- break;
- case DRIVE_PARENTS:
- apiProxy = getClient().parents();
- break;
case DRIVE_TEAMDRIVES:
apiProxy = getClient().teamdrives();
break;
diff --git a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverter.java b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverter.java
index 7ee9436f349..0c7a327850b 100644
--- a/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverter.java
+++ b/components/camel-google/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveFilesConverter.java
@@ -17,12 +17,9 @@
package org.apache.camel.component.google.drive;
import java.io.File;
-import java.io.IOException;
import java.io.InputStream;
import com.google.api.client.http.FileContent;
-import com.google.api.client.http.GenericUrl;
-import com.google.api.client.http.HttpResponse;
import com.google.api.client.http.InputStreamContent;
import com.google.api.services.drive.Drive;
import org.apache.camel.Converter;
@@ -44,7 +41,7 @@ public final class GoogleDriveFilesConverter {
if (file.getFile() instanceof File) {
File f = (File) file.getFile();
com.google.api.services.drive.model.File fileMetadata = new com.google.api.services.drive.model.File();
- fileMetadata.setTitle(f.getName());
+ fileMetadata.setName(f.getName());
FileContent mediaContent = new FileContent(null, f);
if (exchange != null) {
exchange.getIn().setHeader("CamelGoogleDrive.content", fileMetadata);
@@ -58,7 +55,7 @@ public final class GoogleDriveFilesConverter {
InputStream is = exchange.getContext().getTypeConverter().convertTo(InputStream.class, exchange, file.getBody());
com.google.api.services.drive.model.File fileMetadata = new com.google.api.services.drive.model.File();
- fileMetadata.setTitle(file.getFileName());
+ fileMetadata.setName(file.getFileName());
InputStreamContent mediaContent = new InputStreamContent(null, is);
exchange.getIn().setHeader("CamelGoogleDrive.content", fileMetadata);
exchange.getIn().setHeader("CamelGoogleDrive.mediaContent", mediaContent);
@@ -68,47 +65,37 @@ public final class GoogleDriveFilesConverter {
return null;
}
- // convenience method that takes google file metadata and converts that to an inputstream
- @Converter(allowNull = true)
- public static InputStream download(com.google.api.services.drive.model.File fileMetadata, Exchange exchange)
- throws Exception {
- if (fileMetadata.getDownloadUrl() != null && fileMetadata.getDownloadUrl().length() > 0) {
- try {
- // TODO maybe separate this out as custom drive API ex. google-drive://download...
- HttpResponse resp = getClient(exchange).getRequestFactory()
- .buildGetRequest(new GenericUrl(fileMetadata.getDownloadUrl())).execute();
- return resp.getContent();
- } catch (IOException e) {
- LOG.debug("Could not download file.", e);
- return null;
- }
- } else {
- // The file doesn't have any content stored on Drive.
- return null;
- }
- }
+ // TODO: how to download the file
- @Converter
- public static String downloadContentAsString(com.google.api.services.drive.model.File fileMetadata, Exchange exchange)
- throws Exception {
- InputStream is = download(fileMetadata, exchange);
- if (is != null) {
- return exchange.getContext().getTypeConverter().convertTo(String.class, exchange, is);
- }
- return null;
- }
+ // convenience method that takes google file metadata and converts that to an inputstream
+ // @Converter(allowNull = true)
+ // public static InputStream download(com.google.api.services.drive.model.File fileMetadata, Exchange exchange)
+ // throws Exception {
+ // if (fileMetadata.getDownloadUrl() != null && fileMetadata.getDownloadUrl().length() > 0) {
+ // try {
+ // TODO maybe separate this out as custom drive API ex. google-drive://download...
+ // HttpResponse resp = getClient(exchange).getRequestFactory()
+ // .buildGetRequest(new GenericUrl(fileMetadata.getDownloadUrl())).execute();
+ // return resp.getContent();
+ // } catch (IOException e) {
+ // LOG.debug("Could not download file.", e);
+ // return null;
+ // }
+ // } else {
+ // The file doesn't have any content stored on Drive.
+ // return null;
+ // }
+ // }
- @Converter
- public static com.google.api.services.drive.model.ChildReference genericStringToChildReference(
- String payload, Exchange exchange) {
- if (payload != null) {
- com.google.api.services.drive.model.ChildReference childReference
- = new com.google.api.services.drive.model.ChildReference();
- childReference.setId(payload);
- return childReference;
- }
- return null;
- }
+ // @Converter
+ // public static String downloadContentAsString(com.google.api.services.drive.model.File fileMetadata, Exchange exchange)
+ // throws Exception {
+ // InputStream is = download(fileMetadata, exchange);
+ // if (is != null) {
+ // return exchange.getContext().getTypeConverter().convertTo(String.class, exchange, is);
+ // }
+ // return null;
+ // }
private static Drive getClient(Exchange exchange) {
GoogleDriveComponent component = exchange.getContext().getComponent("google-drive", GoogleDriveComponent.class);
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 2b567bd9ae5..5c758a8eef0 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
@@ -92,7 +92,7 @@ public abstract class AbstractGoogleDriveTestSupport extends CamelTestSupport {
protected File uploadTestFile() {
File fileMetadata = new File();
- fileMetadata.setTitle(UPLOAD_FILE.getName());
+ fileMetadata.setName(UPLOAD_FILE.getName());
FileContent mediaContent = new FileContent(null, UPLOAD_FILE);
final Map<String, Object> headers = new HashMap<>();
@@ -107,7 +107,7 @@ public abstract class AbstractGoogleDriveTestSupport extends CamelTestSupport {
protected File uploadTestFolder() {
File fileMetadata = new File();
- fileMetadata.setTitle("testfolder");
+ fileMetadata.setName("testfolder");
fileMetadata.setMimeType("application/vnd.google-apps.folder");
File result = requestBody("google-drive://drive-files/insert?inBody=content", fileMetadata);
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveAppsIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveAppsIT.java
deleted file mode 100644
index c6c7be6d1bc..00000000000
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveAppsIT.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * 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 org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.google.drive.internal.DriveAppsApiMethod;
-import org.apache.camel.component.google.drive.internal.GoogleDriveApiCollection;
-import org.junit.jupiter.api.Disabled;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-/**
- * Test class for com.google.api.services.drive.Drive$Apps APIs.
- */
-@EnabledIf(value = "org.apache.camel.component.google.drive.AbstractGoogleDriveTestSupport#hasCredentials",
- disabledReason = "Google Drive credentials were not provided")
-public class DriveAppsIT extends AbstractGoogleDriveTestSupport {
-
- private static final Logger LOG = LoggerFactory.getLogger(DriveAppsIT.class);
- private static final String PATH_PREFIX
- = GoogleDriveApiCollection.getCollection().getApiName(DriveAppsApiMethod.class).getName();
-
- // TODO getting permission errors for this one
- // May have to adjust scopes used
- @Disabled
- @Test
- public void testList() {
- final com.google.api.services.drive.model.App result = requestBody("direct://LIST", null);
-
- assertNotNull(result, "list result");
- LOG.debug("list: " + result);
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- // test route for get
- from("direct://GET")
- .to("google-drive://" + PATH_PREFIX + "/get?inBody=appId");
-
- // test route for list
- from("direct://LIST")
- .to("google-drive://" + PATH_PREFIX + "/list");
-
- }
- };
- }
-}
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIT.java
index a2d23b18eb2..9759933ec70 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIT.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIT.java
@@ -44,11 +44,11 @@ public class DriveChangesIT extends AbstractGoogleDriveTestSupport {
@Test
public void testGet() {
final com.google.api.services.drive.model.ChangeList list = requestBody("direct://LIST", null);
- List<Change> items = list.getItems();
+ List<Change> items = list.getChanges();
assumeFalse(items.isEmpty());
Change change = items.get(0);
- Long id = change.getId();
+ String id = change.getDriveId();
// using String message body for single parameter "changeId"
final com.google.api.services.drive.model.Change result = requestBody("direct://GET", id);
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChildrenIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChildrenIT.java
deleted file mode 100644
index 2e9768fb428..00000000000
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChildrenIT.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * 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.util.HashMap;
-import java.util.Map;
-
-import com.google.api.services.drive.model.File;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.google.drive.internal.DriveChildrenApiMethod;
-import org.apache.camel.component.google.drive.internal.GoogleDriveApiCollection;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
-
-/**
- * Test class for {@link com.google.api.services.drive.Drive$Children} APIs.
- */
-@EnabledIf(value = "org.apache.camel.component.google.drive.AbstractGoogleDriveTestSupport#hasCredentials",
- disabledReason = "Google Drive credentials were not provided")
-public class DriveChildrenIT extends AbstractGoogleDriveTestSupport {
-
- private static final Logger LOG = LoggerFactory.getLogger(DriveChildrenIT.class);
- private static final String PATH_PREFIX
- = GoogleDriveApiCollection.getCollection().getApiName(DriveChildrenApiMethod.class).getName();
- private static final String ROOT_FOLDER = "root";
-
- @Test
- public void testUploadFileToFolder() {
- File folder = uploadTestFolder();
- File file = uploadTestFile();
-
- final Map<String, Object> headers = new HashMap<>();
- // parameter type is String
- headers.put("CamelGoogleDrive.folderId", folder.getId());
-
- com.google.api.services.drive.model.ChildReference child = new com.google.api.services.drive.model.ChildReference();
- child.setId(file.getId());
- // parameter type is com.google.api.services.drive.model.ChildReference
- headers.put("CamelGoogleDrive.content", child);
-
- requestBodyAndHeaders("direct://INSERT", null, headers);
-
- final com.google.api.services.drive.model.ChildList result = requestBody("direct://LIST", folder.getId());
- assertNotNull(result, "insert result");
- LOG.debug("insert: " + result);
- headers.put("CamelGoogleDrive.childId", child.getId());
- com.google.api.services.drive.model.ChildReference childReference
- = requestBodyAndHeaders("direct://GET", null, headers);
- assertNotNull(childReference, "inserted child");
- requestBodyAndHeaders("direct://DELETE", null, headers);
- try {
- childReference = requestBodyAndHeaders("direct://GET", null, headers);
- fail("can't fetch a child that already get deleted");
- } catch (Exception ex) {
- assertTrue(ex.getCause().getCause() instanceof com.google.api.client.googleapis.json.GoogleJsonResponseException);
- }
-
- }
-
- @Test
- public void testUploadFileToRootFolder() {
- File file = uploadTestFile();
-
- final Map<String, Object> headers = new HashMap<>();
- // parameter type is String
- headers.put("CamelGoogleDrive.folderId", ROOT_FOLDER);
-
- com.google.api.services.drive.model.ChildReference child = new com.google.api.services.drive.model.ChildReference();
- child.setId(file.getId());
- // parameter type is com.google.api.services.drive.model.ChildReference
- headers.put("CamelGoogleDrive.content", child);
-
- requestBodyAndHeaders("direct://INSERT", null, headers);
-
- headers.put("CamelGoogleDrive.childId", child.getId());
- com.google.api.services.drive.model.ChildReference childReference
- = requestBodyAndHeaders("direct://GET-BODY", child.getId(), headers);
- assertNotNull(childReference, "inserted child");
- requestBodyAndHeaders("direct://DELETE", null, headers);
- try {
- childReference = requestBodyAndHeaders("direct://GET-BODY", child.getId(), headers,
- com.google.api.services.drive.model.ChildReference.class);
- fail("can't fetch a child that already get deleted");
- } catch (Exception ex) {
- assertTrue(ex.getCause().getCause() instanceof com.google.api.client.googleapis.json.GoogleJsonResponseException);
- }
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- //set proxy if necessary
-
- //this.getContext().getGlobalOptions().put("http.proxyHost", "...");
- //this.getContext().getGlobalOptions().put("http.proxyPort", "...");
- // test route for delete
- from("direct://DELETE")
- .to("google-drive://" + PATH_PREFIX + "/delete");
-
- // test route for get
- from("direct://GET")
- .to("google-drive://" + PATH_PREFIX + "/get");
-
- // test route for get with body
- from("direct://GET-BODY")
- .to("google-drive://" + PATH_PREFIX + "/get?inBody=childId");
-
- // test route for insert
- from("direct://INSERT")
- .to("google-drive://" + PATH_PREFIX + "/insert");
-
- // test route for list
- from("direct://LIST")
- .to("google-drive://" + PATH_PREFIX + "/list?inBody=folderId");
-
- }
- };
- }
-}
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveCommentsIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveCommentsIT.java
index e5590bff712..b73991549d6 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveCommentsIT.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveCommentsIT.java
@@ -68,14 +68,14 @@ public class DriveCommentsIT extends AbstractGoogleDriveTestSupport {
assertNotNull(result1.get("items"));
LOG.debug("list: " + result1);
- Comment comment2 = result1.getItems().get(0);
+ Comment comment2 = result1.getComments().get(0);
// 4. now try and get that comment
headers = new HashMap<>();
// parameter type is String
headers.put("CamelGoogleDrive.fileId", fileId);
// parameter type is String
- headers.put("CamelGoogleDrive.commentId", comment2.getCommentId());
+ headers.put("CamelGoogleDrive.commentId", comment2.getId());
final com.google.api.services.drive.model.Comment result3 = requestBodyAndHeaders("direct://GET", null, headers);
@@ -87,7 +87,7 @@ public class DriveCommentsIT extends AbstractGoogleDriveTestSupport {
// parameter type is String
headers.put("CamelGoogleDrive.fileId", fileId);
// parameter type is String
- headers.put("CamelGoogleDrive.commentId", comment2.getCommentId());
+ headers.put("CamelGoogleDrive.commentId", comment2.getId());
requestBodyAndHeaders("direct://DELETE", null, headers);
@@ -97,7 +97,7 @@ public class DriveCommentsIT extends AbstractGoogleDriveTestSupport {
// parameter type is String
headers.put("CamelGoogleDrive.fileId", fileId);
// parameter type is String
- headers.put("CamelGoogleDrive.commentId", comment2.getCommentId());
+ headers.put("CamelGoogleDrive.commentId", comment2.getId());
try {
final com.google.api.services.drive.model.Comment result4 = requestBodyAndHeaders("direct://GET", null, headers);
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIT.java
index f811e87f081..9e6049b50fa 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIT.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIT.java
@@ -57,7 +57,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
String fromFileId = testFile.getId();
File toFile = new File();
- toFile.setTitle(UPLOAD_FILE.getName() + "_copy");
+ toFile.setName(UPLOAD_FILE.getName() + "_copy");
final Map<String, Object> headers = new HashMap<>();
// parameter type is String
@@ -68,7 +68,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
final File result = requestBodyAndHeaders("direct://COPY", null, headers);
assertNotNull(result, "copy result");
- assertEquals(toFile.getTitle(), result.getTitle());
+ assertEquals(toFile.getName(), result.getName());
LOG.debug("copy: " + result);
}
@@ -105,7 +105,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
@Test
public void testInsert() {
File file = new File();
- file.setTitle(UPLOAD_FILE.getName());
+ file.setName(UPLOAD_FILE.getName());
// using com.google.api.services.drive.model.File message body for single parameter "content"
File result = requestBody("direct://INSERT", file);
assertNotNull(result, "insert result");
@@ -127,7 +127,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
FileList result = requestBody("direct://LIST", null);
assertNotNull(result, "list result");
- assertTrue(result.getItems().size() >= 1);
+ assertTrue(result.getFiles().size() >= 1);
File testFile2 = uploadTestFile();
@@ -136,7 +136,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
result = requestBodyAndHeaders("direct://LIST", null, headers);
assertNotNull(result, "list result");
- assertEquals(1, result.getItems().size());
+ assertEquals(1, result.getFiles().size());
// test paging the list
List<File> resultList = new ArrayList<>();
@@ -145,7 +145,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
do {
result = requestBodyAndHeaders("direct://LIST", null, headers);
- resultList.addAll(result.getItems());
+ resultList.addAll(result.getFiles());
pageToken = result.getNextPageToken();
headers.put("CamelGoogleDrive.pageToken", pageToken);
@@ -163,7 +163,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
File file = uploadTestFile();
// lets update the filename
- file.setTitle(UPLOAD_FILE.getName() + "PATCHED");
+ file.setName(UPLOAD_FILE.getName() + "PATCHED");
final Map<String, Object> headers = new HashMap<>();
// parameter type is String
@@ -176,19 +176,19 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
File result = requestBodyAndHeaders("direct://PATCH", null, headers);
assertNotNull(result, "patch result");
- assertEquals(UPLOAD_FILE.getName() + "PATCHED", result.getTitle());
+ assertEquals(UPLOAD_FILE.getName() + "PATCHED", result.getName());
LOG.debug("patch: " + result);
}
@Test
public void testTouch() {
File theTestFile = uploadTestFile();
- DateTime createdDate = theTestFile.getModifiedDate();
+ DateTime createdDate = theTestFile.getModifiedByMeTime();
// using String message body for single parameter "fileId"
File result = requestBody("direct://TOUCH", theTestFile.getId());
assertNotNull(result, "touch result");
- assertTrue(result.getModifiedDate().getValue() > createdDate.getValue());
+ assertTrue(result.getModifiedByMeTime().getValue() > createdDate.getValue());
}
@Test
@@ -228,7 +228,7 @@ public class DriveFilesIT extends AbstractGoogleDriveTestSupport {
final File file = requestBody("direct://GET", fileId);
// File's new metadata.
- file.setTitle("camel.png");
+ file.setName("camel.png");
// File's new content.
java.io.File fileContent = new java.io.File(TEST_UPLOAD_IMG);
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DrivePropertiesIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DrivePropertiesIT.java
deleted file mode 100644
index fb777c79811..00000000000
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DrivePropertiesIT.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * 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 com.google.api.services.drive.model.File;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.google.drive.internal.DrivePropertiesApiMethod;
-import org.apache.camel.component.google.drive.internal.GoogleDriveApiCollection;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-
-/**
- * Test class for com.google.api.services.drive.Drive$Properties APIs.
- */
-@EnabledIf(value = "org.apache.camel.component.google.drive.AbstractGoogleDriveTestSupport#hasCredentials",
- disabledReason = "Google Drive credentials were not provided")
-public class DrivePropertiesIT extends AbstractGoogleDriveTestSupport {
-
- private static final Logger LOG = LoggerFactory.getLogger(DrivePropertiesIT.class);
- private static final String PATH_PREFIX
- = GoogleDriveApiCollection.getCollection().getApiName(DrivePropertiesApiMethod.class).getName();
-
- @Test
- public void testList() {
- File testFile = uploadTestFile();
- String fileId = testFile.getId();
-
- // using String message body for single parameter "fileId"
- final com.google.api.services.drive.model.PropertyList result = requestBody("direct://LIST", fileId);
-
- assertNotNull(result, "list result");
- LOG.debug("list: " + result);
- }
-
- @Override
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
- // test route for delete
- from("direct://DELETE")
- .to("google-drive://" + PATH_PREFIX + "/delete");
-
- // test route for get
- from("direct://GET")
- .to("google-drive://" + PATH_PREFIX + "/get");
-
- // test route for insert
- from("direct://INSERT")
- .to("google-drive://" + PATH_PREFIX + "/insert");
-
- // test route for list
- from("direct://LIST")
- .to("google-drive://" + PATH_PREFIX + "/list?inBody=fileId");
-
- // test route for patch
- from("direct://PATCH")
- .to("google-drive://" + PATH_PREFIX + "/patch");
-
- // test route for update
- from("direct://UPDATE")
- .to("google-drive://" + PATH_PREFIX + "/update");
-
- // just used to upload file for test
- from("direct://INSERT_1")
- .to("google-drive://drive-files/insert");
- }
- };
- }
-}
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveRepliesIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveRepliesIT.java
index c195c7a27b9..443c48605f5 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveRepliesIT.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveRepliesIT.java
@@ -67,8 +67,8 @@ public class DriveRepliesIT extends AbstractGoogleDriveTestSupport {
assertNotNull(result1.get("items"));
LOG.debug("list: " + result1);
- Comment comment2 = result1.getItems().get(0);
- String commentId = comment2.getCommentId();
+ Comment comment2 = result1.getComments().get(0);
+ String commentId = comment2.getId();
// 4. add reply
headers = new HashMap<>();
@@ -77,7 +77,7 @@ public class DriveRepliesIT extends AbstractGoogleDriveTestSupport {
// parameter type is String
headers.put("CamelGoogleDrive.commentId", commentId);
// parameter type is com.google.api.services.drive.model.CommentReply
- com.google.api.services.drive.model.CommentReply reply = new com.google.api.services.drive.model.CommentReply();
+ com.google.api.services.drive.model.Reply reply = new com.google.api.services.drive.model.Reply();
reply.setContent("I know :-)");
headers.put("CamelGoogleDrive.content", reply);
@@ -91,7 +91,7 @@ public class DriveRepliesIT extends AbstractGoogleDriveTestSupport {
// parameter type is String
headers.put("CamelGoogleDrive.commentId", commentId);
- final com.google.api.services.drive.model.CommentReplyList result
+ final com.google.api.services.drive.model.Reply result
= requestBodyAndHeaders("direct://LIST", null, headers);
assertNotNull(result, "list result");
diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/FilesConsumerIT.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/FilesConsumerIT.java
index fd04da92de5..18780c97862 100644
--- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/FilesConsumerIT.java
+++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/FilesConsumerIT.java
@@ -57,7 +57,7 @@ public class FilesConsumerIT extends AbstractGoogleDriveTestSupport {
}
private boolean fileInList(String fileId, FileList fileList) {
- for (File f : fileList.getItems()) {
+ for (File f : fileList.getFiles()) {
if (f.getId().equals(fileId)) {
return true;
}
diff --git a/parent/pom.xml b/parent/pom.xml
index e311c13ff99..dd388dc1133 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -170,11 +170,11 @@
<jakarta-jws-api-version>3.0.0</jakarta-jws-api-version>
<gmavenplus-plugin-version>3.0.0</gmavenplus-plugin-version>
<google-auth-library-oauth2-http-version>1.19.0</google-auth-library-oauth2-http-version>
- <google-api-client-version>1.35.2</google-api-client-version>
- <google-api-services-drive-version>v2-rev20220709-1.32.1</google-api-services-drive-version>
- <google-api-services-calendar-version>v3-rev20220715-1.32.1</google-api-services-calendar-version>
- <google-api-services-sheets-version>v4-rev20210629-1.32.1</google-api-services-sheets-version>
- <google-api-services-mail-version>v1-rev20220404-1.32.1</google-api-services-mail-version>
+ <google-api-client-version>2.2.0</google-api-client-version>
+ <google-api-services-drive-version>v3-rev20230610-2.0.0</google-api-services-drive-version>
+ <google-api-services-calendar-version>v3-rev20230602-2.0.0</google-api-services-calendar-version>
+ <google-api-services-sheets-version>v4-rev20230526-2.0.0</google-api-services-sheets-version>
+ <google-api-services-mail-version>v1-rev20230612-2.0.0</google-api-services-mail-version>
<google-oauth-client-version>1.34.1</google-oauth-client-version>
<google-cloud-bom-version>26.21.0</google-cloud-bom-version>
<google-cloud-functions-bom-version>2.24.0</google-cloud-functions-bom-version>