PutGoogleDrive
Description
Writes the contents of a FlowFile as a file in Google Drive.
Tags
drive, google, put, storage
Properties
In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
Display Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
GCP Credentials Provider Service * | gcp-credentials-provider-service | Controller Service: GCPCredentialsService Implementations: GCPCredentialsControllerService | The Controller Service used to obtain Google Cloud Platform credentials. | |
Folder ID * | folder-id | The ID of the shared folder. Please see Additional Details to set up access to Google Drive and obtain Folder ID. Supports Expression Language, using FlowFile attributes and Environment variables. | ||
Filename * | file-name | ${filename} | The name of the file to upload to the specified Google Drive folder. Supports Expression Language, using FlowFile attributes and Environment variables. | |
Conflict Resolution Strategy * | conflict-resolution-strategy | fail |
| Indicates what should happen when a file with the same name already exists in the specified Google Drive folder. |
Chunked Upload Threshold | chunked-upload-threshold | 100 MB | The maximum size of the content which is uploaded at once. FlowFiles larger than this threshold are uploaded in chunks. | |
Chunked Upload Size | chunked-upload-size | 10 MB | Defines the size of a chunk. Used when a FlowFile's size exceeds 'Chunked Upload Threshold' and content is uploaded in smaller chunks. Minimum allowed chunk size is 256 KB, maximum allowed chunk size is 1 GB. | |
Proxy Configuration Service | proxy-configuration-service | Controller Service: ProxyConfigurationService Implementations: StandardProxyConfigurationService | Specifies the Proxy Configuration Controller Service to proxy network requests. Supported proxies: HTTP + AuthN |
Dynamic Properties
This component does not support dynamic properties.
Relationships
Name | Description |
---|---|
failure | Files that could not be written to Google Drive for some reason are transferred to this relationship. |
success | Files that have been successfully written to Google Drive are transferred to this relationship. |
Reads Attributes
Name | Description |
---|---|
filename | Uses the FlowFile's filename as the filename for the Google Drive object. |
Writes Attributes
Name | Description |
---|---|
drive.id | The id of the file |
drive.size | The size of the file |
drive.timestamp | The last modified time or created time (whichever is greater) of the file. The reason for this is that the original modified date of a file is preserved when uploaded to Google Drive. 'Created time' takes the time when the upload occurs. However uploaded files can still be modified later. |
error.code | The error code returned by Google Drive |
error.message | The error message returned by Google Drive |
filename | The name of the file |
mime.type | The MIME type of the file |
State Management
This component does not store state.
Restricted
This component is not restricted.
Input Requirement
This component requires an incoming relationship.
System Resource Considerations
This component does not specify system resource considerations.