Google Cloud Storage Objects Connector: Allows to store, search, download, and delete objects in Google Cloud.
Properties
|
|
Defines the operation executed by the adapter Possible values:
|
Parameters
|
|
Adapter main class (do not change!) Possible values: de.softproject.integration.adapter.google.cloud.storage.GoogleCloudStorageObjectAdapter: Main class (default) |
|
|
Path to the JSON file containing the service account key to authenticate to the Google Cloud Storage Possible values:
|
|
|
Name of the bucket where a set of objects are organized Possible values: String containing the name Bucket names must meet the following naming rules:
|
|
|
Optional. Name of the target bucket. For operations that copy/move/rename a bucket. This parameter has the same restrictions as parameter |
|
|
Region where the buckets are defined Possible values: String containing the region Example:
|
|
|
Name of the target bucket's region. For operations that move/rename a bucket and where a target region can be specified. This parameter has the same restrictions as parameter |
|
|
Storage class of the bucket and the objects. This parameter is closely related with regions, since a storageClass value can only be assigned to a bucket or object that is related with the choosen Possible values: Combo with following values
|
|
|
Name of the object. Required for operations Possible values: String containing the name Object names must meet the following naming rules:
Examples:
|
|
|
For operations that copy/move/rename an object. This parameter has the same restrictions as parameter |
|
|
Path of the file to be uploaded to the Google Cloud Account; This parameter is only valid for the Possible values:
|
|
|
Content type of the object to be uploaded Possible values: String containing a valid mime-type for the object to be uploaded, e. g. |
|
|
Indicates if during an operation that moves/copies/renames a bucket or object, buckets or objects with the same name are overwritten. If this option is unchecked and objects/buckets with the same name exist at the target location, the output contains an error. Possible values:
|
|
|
Type of ACL permission that is created. Possible values: Combo with following values
|
|
|
Specifies if the permission grants read or write access. Possible values: Combo with following values
|
|
|
Specifies a specific value that is used in every type of permission. Possible values: depending on the value of
|
|
|
Parameter affects parameters Possible values: Combo with following values
|
Status values
|
|
The adapter operation was executed successfully |
|
|
An error occurred during the adapter's execution |
|
|
|
Input
For some operations the adapter expects any input document (binary document or a base64 document).
-
Operation
Upload: If the parameterfileLocationis specified, an input document is not required. Otherwise an input is required. -
All other operations don't require an input document.
Output
The adapter returns different kind of documents depending on the executed operation:
-
Operation
Upload:If the adapter operation was executed successfully (status 1), the adapter returns the input document.If an error occurred during the adapter's execution (status -1), the output will be a new document with the error details.If the object to be uploaded already exists (status 0), the output corresponds to the input document. -
Operation
Search:If the adapter operation was executed successfully (status 1), the adapter returns an XML document with all buckets and theirs objects:Sample output for the operation Search <?xml version="1.0" encoding="UTF-8" <ListObjects> <Bucket name="first_bucket"> <Object contentType="text/plain">example/first_blob</Object> <Object contentType="text/plain">file.xml</Object> <Object contentType="application/x-www-form-urlencoded;charset=UTF-8">newFolder</Object> <Object contentType="text/xml">newFolder/xml1 (1).xml</Object> <Object contentType="text/plain">new_object</Object> <Object contentType="application/x-www-form-urlencoded;charset=UTF-8">otherFolder</Object </Bucket> <Bucket name="second_bucket"> <Object contentType="text/plain">text/Hello</Object> </Bucket> <Bucket name="x4_upload_test_bucket"> <Object contentType="image/png">Logo.png</Object> <Object contentType="application/xml">inputDocumentX4db.xml</Object> <Object contentType="text/plain>testUploadProcess/Input/textFile</Object> <Object contentType="application/xml">testUploadProcess/Input/xmlFile.xml</Object> <Object>wordDocument2</Object> <Object contentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document>wordDocumentFromLocationFile</Object </Bucket> </ListObjects> If an error occurred during the adapter's execution (status -1), the output will be a new document with the error details. -
Operation
Download:If the adapter operation was executed successfully (status 1), the output document is the downloaded object (text, XML, binary doc etc.).If an error occurred during the adapter's execution (status -1), the output will be a new document with the error details.If the blob or container don’t exist (status 0), the output corresponds to the input document. -
Operation
Delete:If the adapter operation was executed successfully (status 1), the output corresponds to the input document.If an error occurred during the adapter's execution (status -1), the output corresponds to the input document.If the bucket or object to be deleted don't exist (status 0), the output corresponds to the input document. -
Operation
CopyObject,MoveOrRenameBucket,MoveOrRenameObject,UpdateObjectStorageClass:No output for regular execution. If the operation cannot be executed, the output contains an error.