This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit a657a03df06bff06d8ac1107d506f75a19190002 Author: Raffaele Marcello <marcelloraffa...@gmail.com> AuthorDate: Mon Feb 15 18:31:45 2021 +0100 CAMEL-15964 camel-google-storage component - improvements --- .../org/apache/camel/catalog/docs/google-storage-component.adoc | 8 +++----- components/camel-google-storage/pom.xml | 2 +- .../google/storage/GoogleCloudStorageComponentConfigurer.java | 5 +++++ .../google/storage/GoogleCloudStorageEndpointConfigurer.java | 5 +++++ .../src/generated/resources/google-storage.json | 2 +- .../org/apache/camel/component/google/storage/google-storage.json | 6 +++--- .../src/main/docs/google-storage-component.adoc | 8 +++----- .../google/storage/GoogleCloudStorageComponentConfiguration.java | 1 + .../component/google/storage/GoogleCloudStorageEndpoint.java | 2 +- .../apache/camel/builder/component/ComponentsBuilderFactory.java | 2 +- .../component/dsl/GoogleStorageComponentBuilderFactory.java | 2 +- core/camel-componentdsl/src/generated/resources/metadata.json | 2 +- .../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 4 ++-- .../endpoint/dsl/GoogleCloudStorageEndpointBuilderFactory.java | 4 ++-- docs/components/modules/ROOT/pages/google-storage-component.adoc | 8 +++----- 15 files changed, 33 insertions(+), 28 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-storage-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-storage-component.adoc index d50dd54..e63875f 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-storage-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-storage-component.adoc @@ -3,7 +3,7 @@ :docTitle: Google Storage :artifactId: camel-google-storage :description: Store and retrieve objects from Google Cloud Storage Service using the google-cloud-storage library. -:since: 3.8 +:since: 3.9 :supportLevel: Preview :component-header: Both producer and consumer are supported include::{cq-version}@camel-quarkus:ROOT:partial$reference/components/google-storage.adoc[opts=optional] @@ -89,7 +89,7 @@ The Google Storage component supports 16 options, which are listed below. | *configuration* (common) | The component configuration | | GoogleCloudStorageComponentConfiguration | *serviceAccountKey* (common) | Service account key to authenticate an application as a service account | | String | *storageClass* (common) | The Cloud Storage class to use when creating the new buckets | STANDARD | StorageClass -| *storageClient* (common) | The storage client | | Storage +| *storageClient* (common) | *Autowired* The storage client | | Storage | *storageLocation* (common) | The Cloud Storage location to use when creating the new buckets | US-EAST1 | String | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *deleteAfterRead* (consumer) | Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. | true | boolean @@ -132,7 +132,7 @@ with the following path and query parameters: | *autoCreateBucket* (common) | Setting the autocreation of the bucket bucketName. | true | boolean | *serviceAccountKey* (common) | Service account key to authenticate an application as a service account | | String | *storageClass* (common) | The Cloud Storage class to use when creating the new buckets | STANDARD | StorageClass -| *storageClient* (common) | The storage client | | Storage +| *storageClient* (common) | *Autowired* The storage client | | Storage | *storageLocation* (common) | The Cloud Storage location to use when creating the new buckets | US-EAST1 | String | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *deleteAfterRead* (consumer) | Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. | true | boolean @@ -395,5 +395,3 @@ This will require specifying the destinationBucket option. As example: -------------------------------------------------------------------------------- In this case the objects consumed will be moved to myCamelProcessedBucket bucket and deleted from the original one (because of deleteAfterRead). - - diff --git a/components/camel-google-storage/pom.xml b/components/camel-google-storage/pom.xml index d193dfa..a76b3f7 100644 --- a/components/camel-google-storage/pom.xml +++ b/components/camel-google-storage/pom.xml @@ -33,7 +33,7 @@ <description>Camel Component for Google Cloud Platform Storage</description> <properties> - <firstVersion>3.8.0</firstVersion> + <firstVersion>3.9.0</firstVersion> </properties> <dependencyManagement> diff --git a/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfigurer.java b/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfigurer.java index 951b4cf..0cba237 100644 --- a/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfigurer.java +++ b/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfigurer.java @@ -63,6 +63,11 @@ public class GoogleCloudStorageComponentConfigurer extends PropertyConfigurerSup } @Override + public String[] getAutowiredNames() { + return new String[]{"storageClient"}; + } + + @Override public Class<?> getOptionType(String name, boolean ignoreCase) { switch (ignoreCase ? name.toLowerCase() : name) { case "autocreatebucket": diff --git a/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpointConfigurer.java b/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpointConfigurer.java index 105ba9a..53d4c0f 100644 --- a/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpointConfigurer.java +++ b/components/camel-google-storage/src/generated/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpointConfigurer.java @@ -86,6 +86,11 @@ public class GoogleCloudStorageEndpointConfigurer extends PropertyConfigurerSupp } @Override + public String[] getAutowiredNames() { + return new String[]{"storageClient"}; + } + + @Override public Class<?> getOptionType(String name, boolean ignoreCase) { switch (ignoreCase ? name.toLowerCase() : name) { case "autocreatebucket": diff --git a/components/camel-google-storage/src/generated/resources/google-storage.json b/components/camel-google-storage/src/generated/resources/google-storage.json index 1ac1300..596edc1 100644 --- a/components/camel-google-storage/src/generated/resources/google-storage.json +++ b/components/camel-google-storage/src/generated/resources/google-storage.json @@ -5,7 +5,7 @@ "title": "Google Storage", "description": "Camel Component for Google Cloud Platform Storage", "deprecated": false, - "firstVersion": "3.8.0", + "firstVersion": "3.9.0", "supportLevel": "Preview", "groupId": "org.apache.camel", "artifactId": "camel-google-storage", diff --git a/components/camel-google-storage/src/generated/resources/org/apache/camel/component/google/storage/google-storage.json b/components/camel-google-storage/src/generated/resources/org/apache/camel/component/google/storage/google-storage.json index 619a6b9..b5b787c 100644 --- a/components/camel-google-storage/src/generated/resources/org/apache/camel/component/google/storage/google-storage.json +++ b/components/camel-google-storage/src/generated/resources/org/apache/camel/component/google/storage/google-storage.json @@ -5,7 +5,7 @@ "title": "Google Storage", "description": "Store and retrieve objects from Google Cloud Storage Service using the google-cloud-storage library.", "deprecated": false, - "firstVersion": "3.8.0", + "firstVersion": "3.9.0", "label": "cloud", "javaType": "org.apache.camel.component.google.storage.GoogleCloudStorageComponent", "supportLevel": "Preview", @@ -26,7 +26,7 @@ "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configuration" }, "serviceAccountKey": { "kind": "property", "displayName": "Service Account Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "Service account key to authenticate an application as a service account" }, "storageClass": { "kind": "property", "displayName": "Storage Class", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "com.google.cloud.storage.StorageClass", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "STANDARD", "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The Cloud Storage class to use when creat [...] - "storageClient": { "kind": "property", "displayName": "Storage Client", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.cloud.storage.Storage", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The storage client" }, + "storageClient": { "kind": "property", "displayName": "Storage Client", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.cloud.storage.Storage", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The storage client" }, "storageLocation": { "kind": "property", "displayName": "Storage Location", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "US-EAST1", "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The Cloud Storage location to use when creating the new [...] "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a me [...] "deleteAfterRead": { "kind": "property", "displayName": "Delete After Read", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "Delete objects from the bucket after they have been retrieved. Th [...] @@ -44,7 +44,7 @@ "autoCreateBucket": { "kind": "parameter", "displayName": "Auto Create Bucket", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "Setting the autocreation of the bucket bucketName." }, "serviceAccountKey": { "kind": "parameter", "displayName": "Service Account Key", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "Service account key to authenticate an application as a service account" }, "storageClass": { "kind": "parameter", "displayName": "Storage Class", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "com.google.cloud.storage.StorageClass", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "STANDARD", "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The Cloud Storage class to use when crea [...] - "storageClient": { "kind": "parameter", "displayName": "Storage Client", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.cloud.storage.Storage", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The storage client" }, + "storageClient": { "kind": "parameter", "displayName": "Storage Client", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.google.cloud.storage.Storage", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The storage client" }, "storageLocation": { "kind": "parameter", "displayName": "Storage Location", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "US-EAST1", "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "The Cloud Storage location to use when creating the new [...] "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a m [...] "deleteAfterRead": { "kind": "parameter", "displayName": "Delete After Read", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.google.storage.GoogleCloudStorageComponentConfiguration", "configurationField": "configuration", "description": "Delete objects from the bucket after they have been retrieved. T [...] diff --git a/components/camel-google-storage/src/main/docs/google-storage-component.adoc b/components/camel-google-storage/src/main/docs/google-storage-component.adoc index d50dd54..e63875f 100644 --- a/components/camel-google-storage/src/main/docs/google-storage-component.adoc +++ b/components/camel-google-storage/src/main/docs/google-storage-component.adoc @@ -3,7 +3,7 @@ :docTitle: Google Storage :artifactId: camel-google-storage :description: Store and retrieve objects from Google Cloud Storage Service using the google-cloud-storage library. -:since: 3.8 +:since: 3.9 :supportLevel: Preview :component-header: Both producer and consumer are supported include::{cq-version}@camel-quarkus:ROOT:partial$reference/components/google-storage.adoc[opts=optional] @@ -89,7 +89,7 @@ The Google Storage component supports 16 options, which are listed below. | *configuration* (common) | The component configuration | | GoogleCloudStorageComponentConfiguration | *serviceAccountKey* (common) | Service account key to authenticate an application as a service account | | String | *storageClass* (common) | The Cloud Storage class to use when creating the new buckets | STANDARD | StorageClass -| *storageClient* (common) | The storage client | | Storage +| *storageClient* (common) | *Autowired* The storage client | | Storage | *storageLocation* (common) | The Cloud Storage location to use when creating the new buckets | US-EAST1 | String | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *deleteAfterRead* (consumer) | Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. | true | boolean @@ -132,7 +132,7 @@ with the following path and query parameters: | *autoCreateBucket* (common) | Setting the autocreation of the bucket bucketName. | true | boolean | *serviceAccountKey* (common) | Service account key to authenticate an application as a service account | | String | *storageClass* (common) | The Cloud Storage class to use when creating the new buckets | STANDARD | StorageClass -| *storageClient* (common) | The storage client | | Storage +| *storageClient* (common) | *Autowired* The storage client | | Storage | *storageLocation* (common) | The Cloud Storage location to use when creating the new buckets | US-EAST1 | String | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *deleteAfterRead* (consumer) | Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. | true | boolean @@ -395,5 +395,3 @@ This will require specifying the destinationBucket option. As example: -------------------------------------------------------------------------------- In this case the objects consumed will be moved to myCamelProcessedBucket bucket and deleted from the original one (because of deleteAfterRead). - - diff --git a/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfiguration.java b/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfiguration.java index 7129bdb..288dec4 100644 --- a/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfiguration.java +++ b/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageComponentConfiguration.java @@ -68,6 +68,7 @@ public class GoogleCloudStorageComponentConfiguration implements Cloneable { private boolean includeFolders = true; @UriParam + @Metadata(autowired = true) private Storage storageClient; public String getBucketName() { diff --git a/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpoint.java b/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpoint.java index 0e8043b..e0a4b17 100644 --- a/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpoint.java +++ b/components/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageEndpoint.java @@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory; * behavior of Consumer and Producer. * */ -@UriEndpoint(firstVersion = "3.8.0", scheme = "google-storage", title = "Google Storage", syntax = "google-storage:bucketName", +@UriEndpoint(firstVersion = "3.9.0", scheme = "google-storage", title = "Google Storage", syntax = "google-storage:bucketName", category = { Category.CLOUD }) public class GoogleCloudStorageEndpoint extends ScheduledPollEndpoint { diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 44cfc6f..a47b8d2 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -1989,7 +1989,7 @@ public interface ComponentsBuilderFactory { * google-cloud-storage library. * * Category: cloud - * Since: 3.8 + * Since: 3.9 * Maven coordinates: org.apache.camel:camel-google-storage * * @return the dsl builder diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleStorageComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleStorageComponentBuilderFactory.java index afcec5a..47b4229 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleStorageComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleStorageComponentBuilderFactory.java @@ -37,7 +37,7 @@ public interface GoogleStorageComponentBuilderFactory { * google-cloud-storage library. * * Category: cloud - * Since: 3.8 + * Since: 3.9 * Maven coordinates: org.apache.camel:camel-google-storage * * @return the dsl builder diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json index 8eb5ae4..390ac5b 100644 --- a/core/camel-componentdsl/src/generated/resources/metadata.json +++ b/core/camel-componentdsl/src/generated/resources/metadata.json @@ -3239,7 +3239,7 @@ "title": "Google Storage", "description": "Store and retrieve objects from Google Cloud Storage Service using the google-cloud-storage library.", "deprecated": false, - "firstVersion": "3.8.0", + "firstVersion": "3.9.0", "label": "cloud", "javaType": "org.apache.camel.component.google.storage.GoogleCloudStorageComponent", "supportLevel": "Preview", diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 72fbb64..f0d50e9 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -6701,7 +6701,7 @@ public class StaticEndpointBuilders { * google-cloud-storage library. * * Category: cloud - * Since: 3.8 + * Since: 3.9 * Maven coordinates: org.apache.camel:camel-google-storage * * Syntax: <code>google-storage:bucketName</code> @@ -6722,7 +6722,7 @@ public class StaticEndpointBuilders { * google-cloud-storage library. * * Category: cloud - * Since: 3.8 + * Since: 3.9 * Maven coordinates: org.apache.camel:camel-google-storage * * Syntax: <code>google-storage:bucketName</code> diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCloudStorageEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCloudStorageEndpointBuilderFactory.java index f1eac32..1520a1a 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCloudStorageEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleCloudStorageEndpointBuilderFactory.java @@ -1460,7 +1460,7 @@ public interface GoogleCloudStorageEndpointBuilderFactory { * the google-cloud-storage library. * * Category: cloud - * Since: 3.8 + * Since: 3.9 * Maven coordinates: org.apache.camel:camel-google-storage * * Syntax: <code>google-storage:bucketName</code> @@ -1480,7 +1480,7 @@ public interface GoogleCloudStorageEndpointBuilderFactory { * the google-cloud-storage library. * * Category: cloud - * Since: 3.8 + * Since: 3.9 * Maven coordinates: org.apache.camel:camel-google-storage * * Syntax: <code>google-storage:bucketName</code> diff --git a/docs/components/modules/ROOT/pages/google-storage-component.adoc b/docs/components/modules/ROOT/pages/google-storage-component.adoc index 0a9aefa..f8348c6 100644 --- a/docs/components/modules/ROOT/pages/google-storage-component.adoc +++ b/docs/components/modules/ROOT/pages/google-storage-component.adoc @@ -5,7 +5,7 @@ :docTitle: Google Storage :artifactId: camel-google-storage :description: Store and retrieve objects from Google Cloud Storage Service using the google-cloud-storage library. -:since: 3.8 +:since: 3.9 :supportLevel: Preview :component-header: Both producer and consumer are supported include::{cq-version}@camel-quarkus:ROOT:partial$reference/components/google-storage.adoc[opts=optional] @@ -91,7 +91,7 @@ The Google Storage component supports 16 options, which are listed below. | *configuration* (common) | The component configuration | | GoogleCloudStorageComponentConfiguration | *serviceAccountKey* (common) | Service account key to authenticate an application as a service account | | String | *storageClass* (common) | The Cloud Storage class to use when creating the new buckets | STANDARD | StorageClass -| *storageClient* (common) | The storage client | | Storage +| *storageClient* (common) | *Autowired* The storage client | | Storage | *storageLocation* (common) | The Cloud Storage location to use when creating the new buckets | US-EAST1 | String | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *deleteAfterRead* (consumer) | Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. | true | boolean @@ -134,7 +134,7 @@ with the following path and query parameters: | *autoCreateBucket* (common) | Setting the autocreation of the bucket bucketName. | true | boolean | *serviceAccountKey* (common) | Service account key to authenticate an application as a service account | | String | *storageClass* (common) | The Cloud Storage class to use when creating the new buckets | STANDARD | StorageClass -| *storageClient* (common) | The storage client | | Storage +| *storageClient* (common) | *Autowired* The storage client | | Storage | *storageLocation* (common) | The Cloud Storage location to use when creating the new buckets | US-EAST1 | String | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean | *deleteAfterRead* (consumer) | Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. | true | boolean @@ -397,5 +397,3 @@ This will require specifying the destinationBucket option. As example: -------------------------------------------------------------------------------- In this case the objects consumed will be moved to myCamelProcessedBucket bucket and deleted from the original one (because of deleteAfterRead). - -