Google Drive Connector 1.1 Reference | MuleSoft Documentation
|  Specifies how the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable**. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| A retry strategy in case of connectivity errors  
### Output
Attributes Type |  Http Response Attributes  
---|---  
### For Configurations
  * Configurations


### Throws
  * GOOGLE-DRIVE:BAD_REQUEST
  * GOOGLE-DRIVE:CLIENT_ERROR
  * GOOGLE-DRIVE:CONNECTIVITY
  * GOOGLE-DRIVE:INTERNAL_SERVER_ERROR
  * GOOGLE-DRIVE:NOT_ACCEPTABLE
  * GOOGLE-DRIVE:NOT_FOUND
  * GOOGLE-DRIVE:RETRY_EXHAUSTED
  * GOOGLE-DRIVE:SERVER_ERROR
  * GOOGLE-DRIVE:SERVICE_UNAVAILABLE
  * GOOGLE-DRIVE:TIMEOUT
  * GOOGLE-DRIVE:TOO_MANY_REQUESTS
  * GOOGLE-DRIVE:UNAUTHORIZED
  * GOOGLE-DRIVE:UNSUPPORTED_MEDIA_TYPE


## Patch files permissions by file ID permission id
`<google-drive:patch-files-permissions-by-file-id-permission-id>`
Updates a permission with patch semantics. This operation makes an HTTP PATCH request to the /files/{fileId}/permissions/{permissionId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | The name of the configuration to use.  
ID of the file or shared drive.  
Permission Id | ID of the permission.  
Supports All Drives | Whether the requesting application supports both My Drives and shared drives.  
Pretty Print | Returns the response with indentations and line breaks.  
Remove Expiration | Whether to remove the expiration date.  
Quota User | An opaque string that represents a user for quota purposes. Must not exceed 40 characters.  
Transfer Ownership | Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgment of the side effect.  
API key that identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.  
Deprecated. Use quotaUser instead.  
Oauth token | OAuth 2.0 token for the current user.  
Use Domain Admin Access | Issue the request as a domain administrator. If set to true, the requester is granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.  
Enumeration, one of: | Data format for the response.  
Selector specifying which fields to include in a partial response.  
Supports Team Drives | Deprecated. Use supportsAllDrives instead.  
Content to use | #[payload]  
Config Ref |  ConfigurationProvider | The name of the configuration to use to execute this component  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | The timeout for requests to the remote service.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  Specifies how the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable**. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| A retry strategy in case of connectivity errors  
### Output
Attributes Type |  Http Response Attributes  
---|---  
### For Configurations
  * Configurations


### Throws
  * GOOGLE-DRIVE:BAD_REQUEST
  * GOOGLE-DRIVE:CLIENT_ERROR
  * GOOGLE-DRIVE:CONNECTIVITY
  * GOOGLE-DRIVE:INTERNAL_SERVER_ERROR
  * GOOGLE-DRIVE:NOT_ACCEPTABLE
  * GOOGLE-DRIVE:NOT_FOUND
  * GOOGLE-DRIVE:RETRY_EXHAUSTED
  * GOOGLE-DRIVE:SERVER_ERROR
  * GOOGLE-DRIVE:SERVICE_UNAVAILABLE
  * GOOGLE-DRIVE:TIMEOUT
  * GOOGLE-DRIVE:TOO_MANY_REQUESTS
  * GOOGLE-DRIVE:UNAUTHORIZED
  * GOOGLE-DRIVE:UNSUPPORTED_MEDIA_TYPE


## Patch files revisions by file ID revision id
`<google-drive:patch-files-revisions-by-file-id-revision-id>`
Updates a revision with patch semantics. This operation makes an HTTP PATCH request to the /files/{fileId}/revisions/{revisionId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | The name of the configuration to use.  
ID of the file.  
Revision Id | ID of the revision.  
Pretty Print | Returns the response with indentations and line breaks.  
Quota User | An opaque string that represents a user for quota purposes. Must not exceed 40 characters.  
API key that identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.  
Deprecated. Use quotaUser instead.  
Oauth token | OAuth 2.0 token for the current user.  
Enumeration, one of: | Data format for the response.  
Selector specifying which fields to include in a partial response.  
The content to use. | #[payload]  
Config Ref |  ConfigurationProvider | The name of the configuration to use to execute this component  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | The timeout for requests to the remote service.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  Specifies how the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable**. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| A retry strategy in case of connectivity errors  
### Output
Attributes Type |  Http Response Attributes  
---|---  
### For Configurations
  * Configurations


### Throws
  * GOOGLE-DRIVE:BAD_REQUEST
  * GOOGLE-DRIVE:CLIENT_ERROR
  * GOOGLE-DRIVE:CONNECTIVITY
  * GOOGLE-DRIVE:INTERNAL_SERVER_ERROR
  * GOOGLE-DRIVE:NOT_ACCEPTABLE
  * GOOGLE-DRIVE:NOT_FOUND
  * GOOGLE-DRIVE:RETRY_EXHAUSTED
  * GOOGLE-DRIVE:SERVER_ERROR
  * GOOGLE-DRIVE:SERVICE_UNAVAILABLE
  * GOOGLE-DRIVE:TIMEOUT
  * GOOGLE-DRIVE:TOO_MANY_REQUESTS
  * GOOGLE-DRIVE:UNAUTHORIZED
  * GOOGLE-DRIVE:UNSUPPORTED_MEDIA_TYPE
|  Specifies how the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable**. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| A retry strategy in case of connectivity errors  
### Output
Attributes Type |  Http Response Attributes  
---|---  
### For Configurations
  * Configurations


### Throws
  * GOOGLE-DRIVE:BAD_REQUEST
  * GOOGLE-DRIVE:CLIENT_ERROR
  * GOOGLE-DRIVE:CONNECTIVITY
  * GOOGLE-DRIVE:INTERNAL_SERVER_ERROR
  * GOOGLE-DRIVE:NOT_ACCEPTABLE
  * GOOGLE-DRIVE:NOT_FOUND
  * GOOGLE-DRIVE:RETRY_EXHAUSTED
  * GOOGLE-DRIVE:SERVER_ERROR
  * GOOGLE-DRIVE:SERVICE_UNAVAILABLE
  * GOOGLE-DRIVE:TIMEOUT
  * GOOGLE-DRIVE:TOO_MANY_REQUESTS
  * GOOGLE-DRIVE:UNAUTHORIZED
  * GOOGLE-DRIVE:UNSUPPORTED_MEDIA_TYPE


## Patch teamdrives by team drive id
`<google-drive:patch-teamdrives-by-team-drive-id>`
Deprecated. Use drives.update instead. This operation makes an HTTP PATCH request to the /teamdrives/{teamDriveId} endpoint.
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | The name of the configuration to use.  
Team Drive Id | ID of the Team Drive  
Pretty Print | Returns the response with indentations and line breaks.  
Quota User | An opaque string that represents a user for quota purposes. Must not exceed 40 characters.  
API key that identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.  
Deprecated. Use quotaUser instead.  
Oauth token | OAuth 2.0 token for the current user.  
Use Domain Admin Access | Issue the request as a domain administrator. If set to true, the requester is granted access if they are an administrator of the domain to which the Team Drive belongs.  
Enumeration, one of: | Data format for the response.  
Selector specifying which fields to include in a partial response.  
The content to use. | #[payload]  
Config Ref |  ConfigurationProvider | The name of the configuration to use to execute this component  
Streaming Strategy | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

| Configures how Mule processes streams. Repeatable streams are the default behavior.  
Custom Query Parameters | Custom query parameters to include in the request. The specified query parameters are merged with the default query parameters that are specified in the configuration.  
Custom Headers | Custom headers to include in the request. The specified custom headers are merged with the default headers that are specified in the configuration.  
Response Timeout | The timeout for requests to the remote service.  
Response Timeout Unit |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

| Time unit for the **Response Timeout** field.  
Streaming Type |  Enumeration, one of:
  * ALWAYS
  * NEVER

|  Specifies how the connector streams request content to the remote service:
  * `AUTO` (default) Connector automatically uses the best streaming strategy based on the request content.
  * `ALWAYS` Connector always streams the request content.
  * `NEVER` Connector does not stream the request content.

  
Target Variable | Name of the variable that stores the operation’s output.  
Target Value | Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable**. | #[payload]  
Reconnection Strategy | 
  *   * Reconnect Forever

| A retry strategy in case of connectivity errors  
### Output
Attributes Type |  Http Response Attributes  
---|---  
### For Configurations
  * Configurations


### Throws
  * GOOGLE-DRIVE:BAD_REQUEST
  * GOOGLE-DRIVE:CLIENT_ERROR
  * GOOGLE-DRIVE:CONNECTIVITY
  * GOOGLE-DRIVE:INTERNAL_SERVER_ERROR
  * GOOGLE-DRIVE:NOT_ACCEPTABLE
  * GOOGLE-DRIVE:NOT_FOUND
  * GOOGLE-DRIVE:RETRY_EXHAUSTED
  * GOOGLE-DRIVE:SERVER_ERROR
  * GOOGLE-DRIVE:SERVICE_UNAVAILABLE
  * GOOGLE-DRIVE:TIMEOUT
  * GOOGLE-DRIVE:TOO_MANY_REQUESTS
  * GOOGLE-DRIVE:UNAUTHORIZED
  * GOOGLE-DRIVE:UNSUPPORTED_MEDIA_TYPE


## Unauthorize
`<google-drive:unauthorize>`
Deletes all the access token information of a given resource owner ID so that it’s impossible to execute any operation for that user without doing the authorization dance again
### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
Configuration | The name of the configuration to use.  
Resource Owner Id | The ID of the resource owner which access should be invalidated  
Config Ref |  ConfigurationProvider | The name of the configuration to use to execute this component  
### For Configurations
  * Configurations


## Types
### Default Header
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
### Default Query Param
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
### Proxy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Non Proxy Hosts**  
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Enabled Protocols** |  A comma-separated list of protocols enabled for this context.  
**Enabled Cipher Suites** |  A comma-separated list of cipher suites enabled for this context.  
**Trust Store**  
**Revocation Check** | 
  * Standard Revocation Check
  * Custom Ocsp Responder

  
### Trust Store
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The location (which will be resolved relative to the current classpath and file system, if possible) of the trust store.  
The password used to protect the trust store.  
The type of store used.  
The algorithm used by the trust store.  
If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.  
### Key Store
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The location (which will be resolved relative to the current classpath and file system, if possible) of the key store.  
The type of store used.  
When the key store contains many private keys, this attribute indicates the alias of the key that should be used. If not defined, the first key in the file will be used by default.  
**Key Password** |  The password used to protect the private key.  
The password used to protect the key store.  
The algorithm used by the key store.  
### Standard Revocation Check
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Only End Entities** |  Only verify the last element of the certificate chain.  
**Prefer Crls** |  Try CRL instead of OCSP first.  
**No Fallback** |  Do not use the secondary checking method (the one not selected before).  
Avoid verification failure when the revocation server can not be reached or is busy.  
### Custom Ocsp Responder
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The URL of the OCSP responder.  
**Cert Alias** |  Alias of the signing certificate for the OCSP response (must be in the trust store), if present.  
### Crl File
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
The path to the CRL file.  
### Reconnection
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Fails Deployment** |  When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.  
**Reconnection Strategy** | 
  *   * Reconnect Forever
|  The reconnection strategy to use.  
### Reconnect
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often in milliseconds to reconnect  
If false, the reconnection strategy will run in a separate, non-blocking thread  
How many reconnection attempts to make.  
### Reconnect Forever
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often in milliseconds to reconnect  
If false, the reconnection strategy will run in a separate, non-blocking thread  
### Expiration Policy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Idle Time** |  A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration  
Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the maxIdleTime attribute  
### Http Response Attributes
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Status Code**  
**Reason Phrase**  
### Repeatable In Memory Stream
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Initial Buffer Size** |  The amount of memory that will be allocated to consume the stream and provide random access to it. If the stream contains more data than can be fit into this buffer, then the buffer expands according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize.  
**Buffer Size Increment** |  This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full.  
**Max Buffer Size** |  The maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower than or equal to zero means no limit.  
**Buffer Unit** |  Enumeration, one of: |  The unit in which all these attributes are expressed  
### Repeatable File Store Stream
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**In Memory Size** |  Defines the maximum memory that the stream should use to keep data in memory. If more than that is consumed content on the disk is buffered.  
**Buffer Unit** |  Enumeration, one of: |  The unit in which maxInMemorySize is expressed  
### Redelivery Policy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Redelivery Count** |  The maximum number of times a message can be redelivered and processed unsuccessfully before triggering process-failed-message  
**Message Digest Algorithm** |  The secure hashing algorithm to use. If not set, the default is SHA-256.  
**Message Identifier** |  Redelivery Policy Message Identifier |  Defines which strategy is used to identify the messages.  
**Object Store** |  ObjectStore |  The object store where the redelivery counter for each message is stored.  
### Redelivery Policy Message Identifier
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Use Secure Hash** |  Whether to use a secure hash algorithm to identify a redelivered message.  
**Id Expression** |  Defines one or more expressions to use to determine when a message has been redelivered. This property may only be set if useSecureHash is false.  
### Repeatable In Memory Iterable
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Initial Buffer Size** |  The number of instances to initially keep in memory to consume the stream and provide random access to it. If the stream contains more data than can fit into this buffer, then the buffer expands according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize. Default value is 100 instances.  
**Buffer Size Increment** |  This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. Default value is 100 instances.  
**Max Buffer Size** |  The maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower than or equal to zero means no limit.  
### Repeatable File Store Iterable
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**In Memory Objects** |  The maximum amount of instances to keep in memory. If more than that is required, content on the disk is buffered.  
**Buffer Unit** |  Enumeration, one of: |  The unit in which maxInMemorySize is expressed