davsclaus commented on code in PR #31134:
URL: https://github.com/apache/camel/pull/31134#discussion_r4741635850
##########
components/camel-google/camel-google-storage/src/main/java/org/apache/camel/component/google/storage/GoogleCloudStorageConstants.java:
##########
@@ -21,80 +21,111 @@
public final class GoogleCloudStorageConstants {
- @Metadata(label = "producer", description = "The operation to perform.",
+ @Metadata(label = "producer", description = "The operation to perform. It
takes precedence over the operation option.",
javaType =
"org.apache.camel.component.google.storage.GoogleCloudStorageOperations")
public static final String OPERATION = "CamelGoogleCloudStorageOperation";
@Metadata(label = "consumer", description = "The name of the bucket the
object was consumed from",
javaType = "String")
public static final String BUCKET_NAME =
"CamelGoogleCloudStorageBucketName";
- @Metadata(description = "The object Name which will be used for the
current operation",
+ @Metadata(description = "The name of the object. The consumer and
getObject set it. The producer takes the object of the"
+ + " operation or of the upload from it when the
objectName option is not set.",
javaType = "String")
public static final String OBJECT_NAME =
"CamelGoogleCloudStorageObjectName";
- @Metadata(label = "producer", description = "The prefix to be used in List
Objects operation",
+ @Metadata(label = "producer",
+ description = "Lists only the objects whose name starts with
this prefix, for the listObjects operation.",
javaType = "String")
public static final String PREFIX_NAME =
"CamelGoogleCloudStoragePrefixName";
- @Metadata(label = "producer", description = "The object Destination Name
which will be used for the current operation",
+ @Metadata(label = "producer", description = "The name of the copy, for the
copyObject operation, which requires it.",
javaType = "String")
public static final String DESTINATION_OBJECT_NAME =
"CamelGoogleCloudStorageDestinationObjectName";
- @Metadata(label = "producer", description = "The bucket Destination Name
which will be used for the current operation",
+ @Metadata(label = "producer",
+ description = "The bucket to copy the object to, for the
copyObject operation, which requires it. The bucket is"
+ + " created when it does not exist and
autoCreateBucket is enabled.",
javaType = "String")
public static final String DESTINATION_BUCKET_NAME =
"CamelGoogleCloudStorageDestinationBucketName";
- @Metadata(label = "producer", description = "The time in millisecond the
download link will be valid.", javaType = "Long",
+ @Metadata(label = "producer",
+ description = "How long, in milliseconds, the URL of the
createDownloadLink operation is valid. The"
+ + " operation signs a V2 URL to GET the object, so
the credentials must be"
+ + " able to sign, as service account credentials
can.",
+ javaType = "Long",
defaultValue = "300000")
public static final String DOWNLOAD_LINK_EXPIRATION_TIME =
"CamelGoogleCloudStorageDownloadLinkExpirationTime";
- @Metadata(description = "The content length of this object.", javaType =
"Long")
+ @Metadata(description = "The size of the object in bytes, set by the
consumer and getObject. On upload, the value, or the"
+ + " length of the body when it is not set, is
stored in the custom metadata of the object under"
+ + " the key Content-Length.",
+ javaType = "Long")
public static final String CONTENT_LENGTH =
"CamelGoogleCloudStorageContentLength";
- @Metadata(description = "The content type of this object.", javaType =
"String")
+ @Metadata(description = "The content type of the object, set by the
consumer and getObject. On upload, it sets the"
+ + " content type of the object.",
+ javaType = "String")
public static final String CONTENT_TYPE =
"CamelGoogleCloudStorageContentType";
- @Metadata(description = "The Cache-Control metadata can specify two
different aspects of how data is served from Cloud Storage: "
- +
- "whether the data can be cached and whether the
data can be transformed",
+ @Metadata(description = "The Cache-Control metadata of the object, which
says whether and how long its content may be"
+ + " cached when it is served. Set by the consumer
and getObject. On upload, it sets the"
+ + " Cache-Control of the object.",
javaType = "String")
public static final String CACHE_CONTROL =
"CamelGoogleCloudStorageCacheControl";
- @Metadata(description = "The content disposition of this object.",
javaType = "String")
+ @Metadata(description = "The Content-Disposition metadata of the object,
set by the consumer and getObject. On upload, it"
+ + " sets the Content-Disposition of the object.",
+ javaType = "String")
public static final String CONTENT_DISPOSITION =
"CamelGoogleCloudStorageContentDisposition";
- @Metadata(description = "The content encoding of this object.", javaType =
"String")
+ @Metadata(description = "The Content-Encoding metadata of the object, such
as gzip, set by the consumer and getObject."
+ + " On upload, it sets the Content-Encoding of the
object.",
+ javaType = "String")
public static final String CONTENT_ENCODING =
"CamelGoogleCloudStorageContentEncoding";
- @Metadata(description = "The md5 checksum of this object.", javaType =
"String")
+ @Metadata(description = "The MD5 hash of the content of the object. The
consumer and getObject set it as a hexadecimal"
+ + " string. On upload, it sets the MD5 hash of the
object, which the library expects base64"
Review Comment:
Done: the header text now ends with "As the two formats differ, do not pass
the consumed value as is to an upload."
_Claude Code on behalf of davsclaus_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]