Cloud Storage Integrator 2016 .NET Edition
Cloud Storage Integrator 2016 .NET Edition
Questions / Feedback?

GoogleDrive Component

Properties   Methods   Events   Configuration Settings   Errors  

The GDrive component provides easy file and folder management.

Syntax

nsoftware.InCloudStorage.Googledrive

Remarks

GDrive allows quick and simple management of files and folders stored in Google Drive.

To upload a file, simply call UploadFile and specify the file you wish to upload. To list files and folders, call ListResources. Resources are described by the Resource* properties. Setting ResourceIndex selects a specific resource and allows you to inspect the related properties.

Call DownloadFile to download a file. Other file and folder management functions include CreateFolder, CopyResource, DeleteResource, MoveToTrash, RestoreFromTrash, UpdateResource, and more.

In addition you can modify permissions and child-parent relationships. Please see the Methods section of the documentation for a full list of supported methods.

This service supports authentication via OAuth 2.0. First, perform OAuth authentication using the OAuth component or a separate process. Once complete you should have an authorization string which looks like:

Bearer ya29.AHES6ZSZEJzATdZYjeihDn5W-VrXSsxEZu5p0pclxGdKKQ
Assign this value to the Authorization property before attempting any operations. Consult the Google documentation for this particular service for more information about supported scope values and more details on OAuth authentication.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for further details.

AuthorizationOAuth 2.0 Authorization Token.
ChangeMarkerA marker indicating what page of changes to return next.
ChangesA collection of changes.
ChildMarkerA marker when children are paged.
CookiesCollection of cookies.
EncryptionAlgorithmThe encryption algorithm.
EncryptionPasswordThe encryption password.
FirewallA set of properties related to firewall access.
IdleThe current status of the component.
LocalFileThe location of the local file.
LocalHostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
NextChangeMarkerA marking indicating what page of changes to return in the future.
OtherHeadersOther headers as determined by the user (optional).
OverwriteDetermines if local files are overwritten.
ParsedHeadersCollection of headers returned from the last request.
PermissionAllowFileDiscoveryWhether the permission allows the file to be discovered through search.
PermissionCountThe number of permissions for the file.
PermissionDomainThe domain to which the permission applies.
PermissionEmailThe user or group to which the permission applies.
PermissionIdThe Id of the permission.
PermissionIndexSpecifies the permission.
PermissionMarkerA marker when permissions are paged.
PermissionRoleThe role specified for the permission.
PermissionTypeThe set of users to which the permission applies.
ProxyA set of properties related to proxy access.
QueryParamsAddtional query parameters to be included in the request.
ResourceChildrenA collection of child file and folders.
ResourceContentAccessibleWhether the file is accessible.
ResourceCountThe number of files and folders.
ResourceCreatedTimeThe creation date of the file or folder.
ResourceDataHolds the file data after downloading or sets the file data before uploading or updating.
ResourceDescriptionA short description of the file or folder.
ResourceExtensionThe extension of the file.
ResourceIdThe Id of the resource.
ResourceIndexSelects the file or folder.
ResourceMarkerA marker when resources are paged.
ResourceMD5ChecksumThe MD5 checksum of the file.
ResourceMIMETypeThe MIME type of the file.
ResourceModifiedTimeThe modified date of the resource.
ResourceNameThe name of the file or folder.
ResourceOriginalNameThe original name of the file.
ResourceOwnerThe name of the resource's owner.
ResourceOwnerEmailThe email address of the resource's owner.
ResourceParentsA collection of parent folders.
ResourceSizeThe size of the file in bytes.
ResourceStarredWhether the resource is starred.
ResourceTrashedWhether the resource is in the trash.
ResourceTypeIndicates whether the current entry is a folder or a file.
ResourceViewedWhether the resource has been viewed.
ResourceViewLinkA link for opening the file in a relevant Google editor or viewer in a browser.
ResumeURLThe URL for the resumable upload.
SSLAcceptServerCertInstructs the component to unconditionally accept the server certificate that matches the supplied certificate.
SSLCertThe certificate to be used during SSL negotiation.
SSLServerCertThe server certificate for the last established connection.
StartByteThe byte offset from which to start the upload or download.
TimeoutA timeout for the component.
UseResumableUploadWhether to use resumable uploads.
XChildrenCollection of child elements of the current element.
XElementThe name of the current element.
XParentThe parent of the current element.
XPathProvides a way to point to a specific element in the response.
XSubTreeA snapshot of the current element in the document.
XTextThe text of the current element.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for further details.

AddChildAdds a child file or folder to a parent folder.
AddParentAdds a parent folder for a file or folder.
AddPermissionAdds a permission to the specified file or folder.
AddQueryParamAdds a query parameter to the QueryParams properties.
ConfigSets or retrieves a configuration setting .
CopyResourceCopies a file.
CreateFolderThis method creates a new folder.
DeleteChildDeletes a child from a folder.
DeleteParentDeletes the parent from a file or folder.
DeletePermissionDeletes the specified permission.
DeleteResourceDeletes the specified file or folder permanently.
DownloadFileDownloads, and optionally converts, the currently selected file.
GetCurrentChangeMarkerGet the most current change marker.
GetResourceInfoThis method retrieves information about the file.
GetUploadStatusGet the status of a resumable upload session.
InterruptInterrupt the current method.
ListChangesLists changes for a user.
ListChildrenLists children of the current folder.
ListParentsLists the current file or folder parents.
ListPermissionsLists the permissions for the specified file or folder.
ListResourcesLists the files and folders for the current user.
MoveToTrashMoves the selected file or folder to the trash.
RestoreFromTrashRestores a file or folder from trash.
SetDownloadStreamSets the stream to which the downloaded file will be written.
SetUploadStreamSets the stream from which data is read when uploading.
UpdatePermissionUpdate the permissions on a file or folder.
UpdateResourceUpdates a file or folder.
UploadFileUploads, and optionally converts, a new file.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.

ChangeListThis event fires once for each change when ListChanges is called.
ChildListFires once for each child when calling ListChildren.
ConnectedFired immediately after a connection completes (or fails).
DisconnectedFired when a connection is closed.
EndTransferFired when a document finishes transferring.
ErrorInformation about errors during data delivery.
FragmentCompleteThis event fires after each fragment of a resumable upload is completed.
HeaderFired every time a header line comes in.
ParentListThis event fires once for each parent returned when calling ListParents.
PermissionListThis event fires once for each permission returned when calling ListPermissions.
ResourceListFires once for each resource when ListResources is called.
SetCookieFired for every cookie set by the server.
SSLServerAuthenticationFired after the server presents its certificate to the client.
SSLStatusShows the progress of the secure connection.
StartTransferFired when a document starts transferring (after the headers).
StatusFired when the HTTP status line is received from the server.
TransferFired while a document transfers (delivers document).

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.

IncludeFilesWhether files are included when calling ListResources.
IncludeFoldersWhether folders are included when calling ListResources.
IncludeFolderPropertiesWhether Resource properties apply when calling CreateFolder.
ListOnlyRootItemsWhether to list only resources in the root folder.
MaxResultsLimits the number of results.
EncryptionIVThe initialization vector to be used for encryption/decryption.
EncryptionKeyThe key to use during encryption/decryption.
FragmentSizeThe fragment size.
DownloadTempFileThe temporary file used when downloading encrypted data.
TempPathThe path to the directory where temporary files are created.
DocsExportFormatThe file format to export Google Docs files as when downloading.
DrawingsExportFormatThe file format to export Google Drawings files as when downloading.
SheetsExportFormatThe file format to export Google Sheets files as when downloading.
SlidesExportFormatThe file format to export Google Slides files as when downloading.
NormalizedFileNameFilename constructed using currently selected resource's information.
AcceptEncodingUsed to tell the server which types of content encodings the client supports.
AllowHTTPCompressionThis property enables HTTP compression for receiving data.
AllowHTTPFallbackWhether HTTP/2 connections are permitted to fallback to HTTP/1.1.
AllowNTLMFallbackWhether to allow fallback from Negotiate to NTLM when authenticating.
AppendWhether to append data to LocalFile.
AuthorizationThe Authorization string to be sent to the server.
BytesTransferredContains the number of bytes transferred in the response data.
EncodeURLIf set to true the URL will be encoded by the component.
FollowRedirectsDetermines what happens when the server issues a redirect.
GetOn302RedirectIf set to true the component will perform a GET on the new location.
HTTPVersionThe version of HTTP used by the component.
HTTP2HeadersWithoutIndexingHTTP2 headers that should not update the dynamic header table with incremental indexing.
IfModifiedSinceA date determining the maximum age of the desired document.
KeepAliveDetermines whether the HTTP connection is closed after completion of the request.
LogLevelThe level of detail that is logged.
MaxHeadersInstructs component to save the amount of headers specified that are returned by the server after a Header event has been fired.
MaxHTTPCookiesInstructs component to save the amount of cookies specified that are returned by the server when a SetCookie event is fired.
MaxRedirectAttemptsLimits the number of redirects that are followed in a request.
NegotiatedHTTPVersionThe negotiated HTTP version.
OtherHeadersOther headers as determined by the user (optional).
ProxyAuthorizationThe authorization string to be sent to the proxy server.
ProxyAuthSchemeThe authorization scheme to be used for the proxy.
ProxyPasswordA password if authentication is to be used for the proxy.
ProxyPortPort for the proxy server (default 80).
ProxyServerName or IP address of a proxy server (optional).
ProxyUserA user name if authentication is to be used for the proxy.
TransferredDataThe contents of the last response from the server.
TransferredDataLimitThe maximum number of incoming bytes to be stored by the component.
TransferredHeadersThe full set of headers as received from the server.
UseChunkedEncodingEnables or Disables HTTP chunked encoding for transfers.
ChunkSizeSpecifies the chunk size in bytes when using chunked encoding.
UsePlatformHTTPClientWhether or not to use the platform HTTP client.
UserAgentInformation about the user agent (browser).
KerberosSPNThe Service Principal Name for the Kerberos Domain Controller.
ConnectionTimeoutSets a separate timeout value for establishing a connection.
FirewallAutoDetectTells the component whether or not to automatically detect and use firewall system settings, if available.
FirewallHostName or IP address of firewall (optional).
FirewallListenerIf true, the component binds to a SOCKS firewall as a server (IPPort only).
FirewallPasswordPassword to be used if authentication is to be used when connecting through the firewall.
FirewallPortThe TCP port for the FirewallHost;.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
KeepAliveTimeThe inactivity time in milliseconds before a TCP keep-alive packet is sent.
KeepAliveIntervalThe retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.
LingerWhen set to True, connections are terminated gracefully.
LingerTimeTime in seconds to have the connection linger.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe port in the local host where the component binds.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
MaxTransferRateThe transfer rate limit in bytes per second.
ProxyExceptionsListA semicolon separated list of hosts and IPs to bypass when using a proxy.
TCPKeepAliveDetermines whether or not the keep alive socket option is enabled.
UseIPv6Whether to use IPv6.
UseNTLMv2Whether to use NTLM V2.
CloseStreamAfterTransferIf true, the component will close the upload or download stream after the transfer.
TcpNoDelayWhether or not to delay when sending packets.
CACertFilePathsThe paths to CA certificate files when using Mono on Unix/Linux.
LogSSLPacketsControls whether SSL packets are logged when using the internal security API.
ReuseSSLSessionDetermines if the SSL session is reused.
SSLCipherStrengthThe minimum cipher strength used for bulk encryption.
SSLEnabledProtocolsUsed to enable/disable the supported security protocols.
SSLIncludeCertChainWhether the entire certificate chain is included in the SSLServerAuthentication event.
SSLProviderThe name of the security provider to use.
SSLSecurityFlagsFlags that control certificate verification.
SSLCACertsA newline separated list of CA certificate to use during SSL client authentication.
SSLEnabledCipherSuitesThe cipher suite to be used in an SSL negotiation.
TLS12SignatureAlgorithmsDefines the allowed TLS 1.2 signature algorithms when UseInternalSecurityAPI is True.
TLS12SupportedGroupsThe supported groups for ECC.
TLS13KeyShareGroupsThe groups for which to pregenerate key shares.
TLS13SupportedGroupsThe supported groups for (EC)DHE key exchange.
TLS13SignatureAlgorithmsThe allowed certificate signature algorithms.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
GUIAvailableTells the component whether or not a message loop is available for processing events.
UseBackgroundThreadWhether threads created by the component are background threads.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Cloud Storage Integrator 2016 .NET Edition - Version 16.0 [Build 7239]