Note: There is a newer version (0.10.0) of this package available. Click here to view docs for the latest version.
Ballerina library
trigger.google.drive
Module trigger.google.drive
ballerinax/trigger.google.drive Ballerina library
0.5.5
Service types
trigger.google.drive: DriveService
onFileCreate
Remote Function
Parameters
- changeInfo Change -
onFolderCreate
Remote Function
Parameters
- changeInfo Change -
onFileUpdate
Remote Function
Parameters
- changeInfo Change -
onFolderUpdate
Remote Function
Parameters
- changeInfo Change -
onDelete
Remote Function
Parameters
- changeInfo Change -
onFileTrash
Remote Function
Parameters
- changeInfo Change -
onFolderTrash
Remote Function
Parameters
- changeInfo Change -
Constants
trigger.google.drive: REFRESH_URL
Listeners
trigger.google.drive: Listener
Drive event listener
Constructor
Initializes Google Drive connector listener.
init (ListenerConfiguration config, int|Listener listenOn)- config ListenerConfiguration - Listener configuration
attach
Isolated Function
function attach(GenericServiceType serviceRef, () attachPoint) returns error?'start
Isolated Function
function 'start() returns error?detach
Isolated Function
function detach(GenericServiceType serviceRef) returns error?Parameters
- serviceRef GenericServiceType -
gracefulStop
Isolated Function
function gracefulStop() returns error?immediateStop
Isolated Function
function immediateStop() returns error?Records
trigger.google.drive: Change
A change to a file or shared drive.
Fields
- kind? string - Identifies what kind of resource this is. Value: the fixed string "change"
- changeType? string - The type of the change. Possible values are file and drive
- mimeType? string - The MIME type of the file
- time? string - The time of this change (RFC 3339 date-time)
- removed? boolean - Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access
- fileId? string - The ID of the file which has changed
- file? File - The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.
- driveId? string - The ID of the shared drive associated with this change
trigger.google.drive: ChangesListOptional
Fields
- driveId? string -
- fields? string -
- includeCorpusRemovals? boolean -
- includeItemsFromAllDrives? boolean -
- includePermissionsForView? string -
- includeRemoved? boolean -
- pageSize? int -
- restrictToMyDrive? boolean -
- spaces? string -
- supportsAllDrives boolean?(default true) -
trigger.google.drive: ChangesListResponse
Represents response from list changes request.
Fields
- kind? string - Identifies what kind of resource this is. Value: the fixed string "drive#changeList"
- nextPageToken? string - The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results
- newStartPageToken? string - The starting page token for future changes. This will be present only if the end of the current changes list has been reached
- changes? Change[] - The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched
trigger.google.drive: ChannelRenewalConfig
Channel Renewal Configuration
Fields
- retryCount? int - Maximum number of reties allowed to renew listener channel in seconds. (default : 20s)
- retryInterval? int - Time between retries to renew listener channel in seconds. (default: 100s)
- leadTime? int - Time prior to expiration that renewal should happen happen. (default: 180s)
- domainVerificationDelay? int - Initial wait time for domain verification check in seconds. (default: 300s)
trigger.google.drive: CookieConfig
Closed record
Client configuration for cookies.
Fields
- enabled boolean(default false) - User agents provide users with a mechanism for disabling or enabling cookies
- maxCookiesPerDomain int(default 50) - Maximum number of cookies per domain, which is 50
- maxTotalCookieCount int(default 3000) - Maximum number of total cookies allowed to be stored in cookie store, which is 3000
- blockThirdPartyCookies boolean(default true) - User can block cookies from third party responses and refuse to send cookies for third party requests, if needed
trigger.google.drive: ListenerConfiguration
Listener Configuration.
Fields
- clientId string - Client Id
- clientSecret string - Client Secret
- refreshUrl string - Refrest URL
- refreshToken string - Refresh Token
- callbackURL string - Callback URL registered.
- domainVerificationFileContent string - File content of HTML file used in domain verification.
- specificFolderOrFileId string?(default ()) - Folder or file Id.
- channelRenewalConfig? ChannelRenewalConfig - Channel renewal configuration.
trigger.google.drive: StringKeyValuePairs
Record Type to accpet string values
Fields
- string... - Rest field
trigger.google.drive: WatchFileOptional
Optional parameters for the watch files.
Fields
- acknowledgeAbuse? boolean - Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. (Default: false)
- fields? string - The paths of the fields you want included in the response. If not specified, the response includes a default set of fields specific to this method
- supportsAllDrives boolean?(default true) - Whether the requesting application supports both My Drives and shared drives. (Default: false)
- pageToken? string - Page token
trigger.google.drive: WatchResponse
Represents the response of watch request.
Fields
- kind? string - Identifies this as a notification channel used to watch for changes to a resource, which is
api#channel
- id? string - A UUID or similar unique string that identifies this channel
- resourceId? string - A UUID or similar unique string that identifies this channel
- resourceUri? string - A version-specific identifier for the watched resource
- token? string - An arbitrary string delivered to the target address with each notification delivered over this channel
- expiration? int - Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds
- 'type? string -
- address? string - The address where notifications are delivered for this channel
- payload? boolean - A Boolean value to indicate whether the payload is needed
- startPageToken? string - The starting page token for listing changes
- params? StringKeyValuePairs - Additional parameters controlling delivery channel behavior
Simple name reference types
trigger.google.drive: GenericServiceType
GenericServiceType
trigger.google.drive: GenericDataType
GenericDataType
Import
import ballerinax/trigger.google.drive;Metadata
Released date: over 4 years ago
Version: 0.5.5
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: slbeta6
GraalVM compatible: Yes
Pull count
Total: 383
Current verison: 3
Weekly downloads
Keywords
Communication/Team Chat
Cost/Freemium
Trigger
Contributors