DocumentsService
Object Hierarchy:
Description:
[ CCode ( type_id = "gdata_documents_service_get_type ()" ) ]
[ Version ( since = "0.4.0" ) ]
public class DocumentsService : Service, Batchable
[ Version ( since = "0.4.0" ) ]
public class DocumentsService : Service, Batchable
All the fields in the DocumentsService structure are private and should never be accessed directly.
Namespace: GData
Package: libgdata
Content:
Static methods:
- public static unowned AuthorizationDomain get_primary_authorization_domain ()
The primary AuthorizationDomain for interacting with Google Documents.
- public static unowned AuthorizationDomain get_spreadsheet_authorization_domain ()
The AuthorizationDomain for interacting with spreadsheet data.
- public static string get_upload_uri (DocumentsFolder? folder)
Gets the upload URI for documents for the service.
Creation methods:
- public DocumentsService (Authorizer? authorizer)
Creates a new DocumentsService using the given Authorizer.
Methods:
- public DocumentsEntry add_entry_to_folder (DocumentsEntry entry, DocumentsFolder folder, Cancellable? cancellable = null) throws Error
Add the given
entry
to the specifiedfolder
, and return an updated DocumentsEntry forentry
. - public async DocumentsEntry add_entry_to_folder_async (DocumentsEntry entry, DocumentsFolder folder, Cancellable? cancellable) throws Error
Add the given
entry
to the specifiedfolder
. - public DocumentsDocument copy_document (DocumentsDocument document, Cancellable? cancellable = null) throws Error
Copy the given
document
, producing a duplicate document in the same folder and returning its DocumentsDocument. - public async DocumentsDocument copy_document_async (DocumentsDocument document, Cancellable? cancellable) throws Error
Copy the given
document
, producing a duplicate document in the same folder and returning its DocumentsDocument. - public DocumentsDocument finish_upload (UploadStream upload_stream) throws Error
Finish off a document upload or update operation started by upload_document or update_document, parsing the result and returning the new or updated DocumentsDocument.
- public DocumentsMetadata get_metadata (Cancellable? cancellable = null) throws Error
Gets a DocumentsMetadata object containing metadata about the documents service itself, like how large the user quota is.
- public async DocumentsMetadata get_metadata_async (Cancellable? cancellable) throws Error
Gets a DocumentsMetadata object containing metadata about the documents service itself, like how large the user quota is.
- public DocumentsFeed query_documents (DocumentsQuery? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error
Queries the service to return a list of documents matching the given
query
. - public async void query_documents_async (DocumentsQuery? query, Cancellable? cancellable, owned QueryProgressCallback? progress_callback)
Queries the service to return a list of documents matching the given
query
. - public DocumentsFeed query_drives (DocumentsDriveQuery? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error
Queries the service to return a list of shared drives matching the given
query
. - public async void query_drives_async (DocumentsDriveQuery? query, Cancellable? cancellable, owned QueryProgressCallback? progress_callback)
Queries the service to return a list of shared drives matching the given
query
. - public DocumentsEntry remove_entry_from_folder (DocumentsEntry entry, DocumentsFolder folder, Cancellable? cancellable = null) throws Error
Remove the given
entry
fromfolder
, and return an updated DocumentsEntry forentry
. - public async DocumentsEntry remove_entry_from_folder_async (DocumentsEntry entry, DocumentsFolder folder, Cancellable? cancellable) throws Error
Remove the given
entry
from the specifiedfolder
. - public UploadStream update_document (DocumentsDocument document, string slug, string content_type, Cancellable? cancellable = null) throws Error
Update the document using the properties from
document
and the document data written to the resulting UploadStream. - public UploadStream update_document_resumable (DocumentsDocument document, string slug, string content_type, int64 content_length, Cancellable? cancellable = null) throws Error
Update the document using the properties from
document
and the document data written to the resulting UploadStream. - public UploadStream upload_document (DocumentsDocument? document, string slug, string content_type, DocumentsFolder? folder, Cancellable? cancellable = null) throws Error
Uploads a document to Google Documents, using the properties from
document
and the document data written to the resulting UploadStream. - public UploadStream upload_document_resumable (DocumentsDocument? document, string slug, string content_type, int64 content_length, DocumentsUploadQuery? query, Cancellable? cancellable = null) throws Error
Uploads a document to Google Documents, using the properties from
document
and the document data written to the resulting UploadStream.
Inherited Members:
All known members inherited from class GData.Service
All known members inherited from class GLib.Object
All known members inherited from interface GData.Batchable