driveclient

package
v0.0.0-...-a9d0b9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package drive provides access to the Drive API.

See https://developers.google.com/drive/

Usage example:

import "camlistore.org/third_party/code.google.com/p/google-api-go-client/drive/v2"
...
driveService, err := drive.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage the files and documents in your Google Drive
	DriveScope = "https://www.googleapis.com/auth/drive"

	// View and manage its own configuration data in your Google Drive
	DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdata"

	// View your Google Drive apps
	DriveAppsReadonlyScope = "https://www.googleapis.com/auth/drive.apps.readonly"

	// View and manage Google Drive files that you have opened or created
	// with this app
	DriveFileScope = "https://www.googleapis.com/auth/drive.file"

	// View metadata for files and documents in your Google Drive
	DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/drive.metadata.readonly"

	// View the files and documents in your Google Drive
	DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"

	// Modify your Google Apps Script scripts' behavior
	DriveScriptsScope = "https://www.googleapis.com/auth/drive.scripts"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type About

type About struct {
	// AdditionalRoleInfo: Information about supported additional roles per
	// file type. The most specific type takes precedence.
	AdditionalRoleInfo []*AboutAdditionalRoleInfo `json:"additionalRoleInfo,omitempty"`

	// DomainSharingPolicy: The domain sharing policy for the current user.
	DomainSharingPolicy string `json:"domainSharingPolicy,omitempty"`

	// Etag: The ETag of the item.
	Etag string `json:"etag,omitempty"`

	// ExportFormats: The allowable export formats.
	ExportFormats []*AboutExportFormats `json:"exportFormats,omitempty"`

	// Features: List of additional features enabled on this account.
	Features []*AboutFeatures `json:"features,omitempty"`

	// ImportFormats: The allowable import formats.
	ImportFormats []*AboutImportFormats `json:"importFormats,omitempty"`

	// IsCurrentAppInstalled: A boolean indicating whether the authenticated
	// app is installed by the authenticated user.
	IsCurrentAppInstalled bool `json:"isCurrentAppInstalled,omitempty"`

	// Kind: This is always drive#about.
	Kind string `json:"kind,omitempty"`

	// LargestChangeId: The largest change id.
	LargestChangeId int64 `json:"largestChangeId,omitempty,string"`

	// MaxUploadSizes: List of max upload sizes for each file type. The most
	// specific type takes precedence.
	MaxUploadSizes []*AboutMaxUploadSizes `json:"maxUploadSizes,omitempty"`

	// Name: The name of the current user.
	Name string `json:"name,omitempty"`

	// PermissionId: The current user's ID as visible in the permissions
	// collection.
	PermissionId string `json:"permissionId,omitempty"`

	// QuotaBytesTotal: The total number of quota bytes.
	QuotaBytesTotal int64 `json:"quotaBytesTotal,omitempty,string"`

	// QuotaBytesUsed: The number of quota bytes used by Google Drive.
	QuotaBytesUsed int64 `json:"quotaBytesUsed,omitempty,string"`

	// QuotaBytesUsedAggregate: The number of quota bytes used by all Google
	// apps (Drive, Picasa, etc.).
	QuotaBytesUsedAggregate int64 `json:"quotaBytesUsedAggregate,omitempty,string"`

	// QuotaBytesUsedInTrash: The number of quota bytes used by trashed
	// items.
	QuotaBytesUsedInTrash int64 `json:"quotaBytesUsedInTrash,omitempty,string"`

	// RemainingChangeIds: The number of remaining change ids.
	RemainingChangeIds int64 `json:"remainingChangeIds,omitempty,string"`

	// RootFolderId: The id of the root folder.
	RootFolderId string `json:"rootFolderId,omitempty"`

	// SelfLink: A link back to this item.
	SelfLink string `json:"selfLink,omitempty"`

	// User: The authenticated user.
	User *User `json:"user,omitempty"`
}

type AboutAdditionalRoleInfo

type AboutAdditionalRoleInfo struct {
	// RoleSets: The supported additional roles per primary role.
	RoleSets []*AboutAdditionalRoleInfoRoleSets `json:"roleSets,omitempty"`

	// Type: The content type that this additional role info applies to.
	Type string `json:"type,omitempty"`
}

type AboutAdditionalRoleInfoRoleSets

type AboutAdditionalRoleInfoRoleSets struct {
	// AdditionalRoles: The supported additional roles with the primary
	// role.
	AdditionalRoles []string `json:"additionalRoles,omitempty"`

	// PrimaryRole: A primary permission role.
	PrimaryRole string `json:"primaryRole,omitempty"`
}

type AboutExportFormats

type AboutExportFormats struct {
	// Source: The content type to convert from.
	Source string `json:"source,omitempty"`

	// Targets: The possible content types to convert to.
	Targets []string `json:"targets,omitempty"`
}

type AboutFeatures

type AboutFeatures struct {
	// FeatureName: The name of the feature.
	FeatureName string `json:"featureName,omitempty"`

	// FeatureRate: The request limit rate for this feature, in queries per
	// second.
	FeatureRate float64 `json:"featureRate,omitempty"`
}

type AboutGetCall

type AboutGetCall struct {
	// contains filtered or unexported fields
}

func (*AboutGetCall) Do

func (c *AboutGetCall) Do() (*About, error)

func (*AboutGetCall) IncludeSubscribed

func (c *AboutGetCall) IncludeSubscribed(includeSubscribed bool) *AboutGetCall

IncludeSubscribed sets the optional parameter "includeSubscribed": When calculating the number of remaining change IDs, whether to include shared files and public files the user has opened. When set to false, this counts only change IDs for owned files and any shared or public files that the user has explictly added to a folder in Drive.

func (*AboutGetCall) MaxChangeIdCount

func (c *AboutGetCall) MaxChangeIdCount(maxChangeIdCount int64) *AboutGetCall

MaxChangeIdCount sets the optional parameter "maxChangeIdCount": Maximum number of remaining change IDs to count

func (*AboutGetCall) StartChangeId

func (c *AboutGetCall) StartChangeId(startChangeId int64) *AboutGetCall

StartChangeId sets the optional parameter "startChangeId": Change ID to start counting from when calculating number of remaining change IDs

type AboutImportFormats

type AboutImportFormats struct {
	// Source: The imported file's content type to convert from.
	Source string `json:"source,omitempty"`

	// Targets: The possible content types to convert to.
	Targets []string `json:"targets,omitempty"`
}

type AboutMaxUploadSizes

type AboutMaxUploadSizes struct {
	// Size: The max upload size for this type.
	Size int64 `json:"size,omitempty,string"`

	// Type: The file type.
	Type string `json:"type,omitempty"`
}

type AboutService

type AboutService struct {
	// contains filtered or unexported fields
}

func NewAboutService

func NewAboutService(s *Service) *AboutService

func (*AboutService) Get

func (r *AboutService) Get() *AboutGetCall

Get: Gets the information about the current user along with Drive API settings

type App

type App struct {
	// Authorized: Whether the app is authorized to access data on the
	// user's Drive.
	Authorized bool `json:"authorized,omitempty"`

	// Icons: The various icons for the app.
	Icons []*AppIcons `json:"icons,omitempty"`

	// Id: The ID of the app.
	Id string `json:"id,omitempty"`

	// Installed: Whether the app is installed.
	Installed bool `json:"installed,omitempty"`

	// Kind: This is always drive#app.
	Kind string `json:"kind,omitempty"`

	// LongDescription: A long description of the app.
	LongDescription string `json:"longDescription,omitempty"`

	// Name: The name of the app.
	Name string `json:"name,omitempty"`

	// ObjectType: The type of object this app creates (e.g. Chart). If
	// empty, the app name should be used instead.
	ObjectType string `json:"objectType,omitempty"`

	// OpenUrlTemplate: The template url for opening files with this app.
	// The template will contain {ids} and/or {exportIds} to be replaced by
	// the actual file ids.
	OpenUrlTemplate string `json:"openUrlTemplate,omitempty"`

	// PrimaryFileExtensions: The list of primary file extensions.
	PrimaryFileExtensions []string `json:"primaryFileExtensions,omitempty"`

	// PrimaryMimeTypes: The list of primary mime types.
	PrimaryMimeTypes []string `json:"primaryMimeTypes,omitempty"`

	// ProductId: The ID of the product listing for this app.
	ProductId string `json:"productId,omitempty"`

	// ProductUrl: A link to the product listing for this app.
	ProductUrl string `json:"productUrl,omitempty"`

	// SecondaryFileExtensions: The list of secondary file extensions.
	SecondaryFileExtensions []string `json:"secondaryFileExtensions,omitempty"`

	// SecondaryMimeTypes: The list of secondary mime types.
	SecondaryMimeTypes []string `json:"secondaryMimeTypes,omitempty"`

	// ShortDescription: A short description of the app.
	ShortDescription string `json:"shortDescription,omitempty"`

	// SupportsCreate: Whether this app supports creating new objects.
	SupportsCreate bool `json:"supportsCreate,omitempty"`

	// SupportsImport: Whether this app supports importing Google Docs.
	SupportsImport bool `json:"supportsImport,omitempty"`

	// SupportsMultiOpen: Whether this app supports opening more than one
	// file.
	SupportsMultiOpen bool `json:"supportsMultiOpen,omitempty"`

	// UseByDefault: Whether the app is selected as the default handler for
	// the types it supports.
	UseByDefault bool `json:"useByDefault,omitempty"`
}

type AppIcons

type AppIcons struct {
	// Category: Category of the icon. Allowed values are:
	// - application -
	// icon for the application
	// - document - icon for a file associated
	// with the app
	// - documentShared - icon for a shared file associated
	// with the app
	Category string `json:"category,omitempty"`

	// IconUrl: URL for the icon.
	IconUrl string `json:"iconUrl,omitempty"`

	// Size: Size of the icon. Represented as the maximum of the width and
	// height.
	Size int64 `json:"size,omitempty"`
}

type AppList

type AppList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of apps.
	Items []*App `json:"items,omitempty"`

	// Kind: This is always drive#appList.
	Kind string `json:"kind,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type AppsGetCall

type AppsGetCall struct {
	// contains filtered or unexported fields
}

func (*AppsGetCall) Do

func (c *AppsGetCall) Do() (*App, error)

type AppsListCall

type AppsListCall struct {
	// contains filtered or unexported fields
}

func (*AppsListCall) Do

func (c *AppsListCall) Do() (*AppList, error)

type AppsService

type AppsService struct {
	// contains filtered or unexported fields
}

func NewAppsService

func NewAppsService(s *Service) *AppsService

func (*AppsService) Get

func (r *AppsService) Get(appId string) *AppsGetCall

Get: Gets a specific app.

func (*AppsService) List

func (r *AppsService) List() *AppsListCall

List: Lists a user's installed apps.

type Change

type Change struct {
	// Deleted: Whether the file has been deleted.
	Deleted bool `json:"deleted,omitempty"`

	// File: The updated state of the file. Present if the file has not been
	// deleted.
	File *File `json:"file,omitempty"`

	// FileId: The ID of the file associated with this change.
	FileId string `json:"fileId,omitempty"`

	// Id: The ID of the change.
	Id int64 `json:"id,omitempty,string"`

	// Kind: This is always drive#change.
	Kind string `json:"kind,omitempty"`

	// SelfLink: A link back to this change.
	SelfLink string `json:"selfLink,omitempty"`
}

type ChangeList

type ChangeList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of changes.
	Items []*Change `json:"items,omitempty"`

	// Kind: This is always drive#changeList.
	Kind string `json:"kind,omitempty"`

	// LargestChangeId: The current largest change ID.
	LargestChangeId int64 `json:"largestChangeId,omitempty,string"`

	// NextLink: A link to the next page of changes.
	NextLink string `json:"nextLink,omitempty"`

	// NextPageToken: The page token for the next page of changes.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type ChangesGetCall

type ChangesGetCall struct {
	// contains filtered or unexported fields
}

func (*ChangesGetCall) Do

func (c *ChangesGetCall) Do() (*Change, error)

type ChangesListCall

type ChangesListCall struct {
	// contains filtered or unexported fields
}

func (*ChangesListCall) Do

func (c *ChangesListCall) Do() (*ChangeList, error)

func (*ChangesListCall) IncludeDeleted

func (c *ChangesListCall) IncludeDeleted(includeDeleted bool) *ChangesListCall

IncludeDeleted sets the optional parameter "includeDeleted": Whether to include deleted items.

func (*ChangesListCall) IncludeSubscribed

func (c *ChangesListCall) IncludeSubscribed(includeSubscribed bool) *ChangesListCall

IncludeSubscribed sets the optional parameter "includeSubscribed": Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.

func (*ChangesListCall) MaxResults

func (c *ChangesListCall) MaxResults(maxResults int64) *ChangesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of changes to return.

func (*ChangesListCall) PageToken

func (c *ChangesListCall) PageToken(pageToken string) *ChangesListCall

PageToken sets the optional parameter "pageToken": Page token for changes.

func (*ChangesListCall) StartChangeId

func (c *ChangesListCall) StartChangeId(startChangeId int64) *ChangesListCall

StartChangeId sets the optional parameter "startChangeId": Change ID to start listing changes from.

type ChangesService

type ChangesService struct {
	// contains filtered or unexported fields
}

func NewChangesService

func NewChangesService(s *Service) *ChangesService

func (*ChangesService) Get

func (r *ChangesService) Get(changeId string) *ChangesGetCall

Get: Gets a specific change.

func (*ChangesService) List

func (r *ChangesService) List() *ChangesListCall

List: Lists the changes for a user.

func (*ChangesService) Watch

func (r *ChangesService) Watch(channel *Channel) *ChangesWatchCall

Watch: Subscribe to changes for a user.

type ChangesWatchCall

type ChangesWatchCall struct {
	// contains filtered or unexported fields
}

func (*ChangesWatchCall) Do

func (c *ChangesWatchCall) Do() (*Channel, error)

func (*ChangesWatchCall) IncludeDeleted

func (c *ChangesWatchCall) IncludeDeleted(includeDeleted bool) *ChangesWatchCall

IncludeDeleted sets the optional parameter "includeDeleted": Whether to include deleted items.

func (*ChangesWatchCall) IncludeSubscribed

func (c *ChangesWatchCall) IncludeSubscribed(includeSubscribed bool) *ChangesWatchCall

IncludeSubscribed sets the optional parameter "includeSubscribed": Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.

func (*ChangesWatchCall) MaxResults

func (c *ChangesWatchCall) MaxResults(maxResults int64) *ChangesWatchCall

MaxResults sets the optional parameter "maxResults": Maximum number of changes to return.

func (*ChangesWatchCall) PageToken

func (c *ChangesWatchCall) PageToken(pageToken string) *ChangesWatchCall

PageToken sets the optional parameter "pageToken": Page token for changes.

func (*ChangesWatchCall) StartChangeId

func (c *ChangesWatchCall) StartChangeId(startChangeId int64) *ChangesWatchCall

StartChangeId sets the optional parameter "startChangeId": Change ID to start listing changes from.

type Channel

type Channel struct {
	// Address: The address of the receiving entity where events are
	// delivered. Specific to the channel type.
	Address string `json:"address,omitempty"`

	// Expiration: The expiration instant for this channel if it is defined.
	Expiration int64 `json:"expiration,omitempty,string"`

	// Id: A UUID for the channel
	Id string `json:"id,omitempty"`

	// Kind: A channel watching an API resource
	Kind string `json:"kind,omitempty"`

	// Params: Additional parameters controlling delivery channel behavior
	Params *ChannelParams `json:"params,omitempty"`

	// ResourceId: An opaque id that identifies the resource that is being
	// watched. Stable across different API versions
	ResourceId string `json:"resourceId,omitempty"`

	// ResourceUri: The canonicalized ID of the watched resource.
	ResourceUri string `json:"resourceUri,omitempty"`

	// Token: An arbitrary string associated with the channel that is
	// delivered to the target address with each event delivered over this
	// channel.
	Token string `json:"token,omitempty"`

	// Type: The type of delivery mechanism used by this channel
	Type string `json:"type,omitempty"`
}

type ChannelParams

type ChannelParams struct {
}

type ChannelsService

type ChannelsService struct {
	// contains filtered or unexported fields
}

func NewChannelsService

func NewChannelsService(s *Service) *ChannelsService

func (*ChannelsService) Stop

func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall

Stop:

type ChannelsStopCall

type ChannelsStopCall struct {
	// contains filtered or unexported fields
}

func (*ChannelsStopCall) Do

func (c *ChannelsStopCall) Do() error

type ChildList

type ChildList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of children.
	Items []*ChildReference `json:"items,omitempty"`

	// Kind: This is always drive#childList.
	Kind string `json:"kind,omitempty"`

	// NextLink: A link to the next page of children.
	NextLink string `json:"nextLink,omitempty"`

	// NextPageToken: The page token for the next page of children.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type ChildReference

type ChildReference struct {
	// ChildLink: A link to the child.
	ChildLink string `json:"childLink,omitempty"`

	// Id: The ID of the child.
	Id string `json:"id,omitempty"`

	// Kind: This is always drive#childReference.
	Kind string `json:"kind,omitempty"`

	// SelfLink: A link back to this reference.
	SelfLink string `json:"selfLink,omitempty"`
}

type ChildrenDeleteCall

type ChildrenDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ChildrenDeleteCall) Do

func (c *ChildrenDeleteCall) Do() error

type ChildrenGetCall

type ChildrenGetCall struct {
	// contains filtered or unexported fields
}

func (*ChildrenGetCall) Do

func (c *ChildrenGetCall) Do() (*ChildReference, error)

type ChildrenInsertCall

type ChildrenInsertCall struct {
	// contains filtered or unexported fields
}

func (*ChildrenInsertCall) Do

type ChildrenListCall

type ChildrenListCall struct {
	// contains filtered or unexported fields
}

func (*ChildrenListCall) Do

func (c *ChildrenListCall) Do() (*ChildList, error)

func (*ChildrenListCall) MaxResults

func (c *ChildrenListCall) MaxResults(maxResults int64) *ChildrenListCall

MaxResults sets the optional parameter "maxResults": Maximum number of children to return.

func (*ChildrenListCall) PageToken

func (c *ChildrenListCall) PageToken(pageToken string) *ChildrenListCall

PageToken sets the optional parameter "pageToken": Page token for children.

func (*ChildrenListCall) Q

Q sets the optional parameter "q": Query string for searching children.

type ChildrenService

type ChildrenService struct {
	// contains filtered or unexported fields
}

func NewChildrenService

func NewChildrenService(s *Service) *ChildrenService

func (*ChildrenService) Delete

func (r *ChildrenService) Delete(folderId string, childId string) *ChildrenDeleteCall

Delete: Removes a child from a folder.

func (*ChildrenService) Get

func (r *ChildrenService) Get(folderId string, childId string) *ChildrenGetCall

Get: Gets a specific child reference.

func (*ChildrenService) Insert

func (r *ChildrenService) Insert(folderId string, childreference *ChildReference) *ChildrenInsertCall

Insert: Inserts a file into a folder.

func (*ChildrenService) List

func (r *ChildrenService) List(folderId string) *ChildrenListCall

List: Lists a folder's children.

type Comment

type Comment struct {
	// Anchor: A region of the document represented as a JSON string. See
	// anchor documentation for details on how to define and interpret
	// anchor properties.
	Anchor string `json:"anchor,omitempty"`

	// Author: The user who wrote this comment.
	Author *User `json:"author,omitempty"`

	// CommentId: The ID of the comment.
	CommentId string `json:"commentId,omitempty"`

	// Content: The plain text content used to create this comment. This is
	// not HTML safe and should only be used as a starting point to make
	// edits to a comment's content.
	Content string `json:"content,omitempty"`

	// Context: The context of the file which is being commented on.
	Context *CommentContext `json:"context,omitempty"`

	// CreatedDate: The date when this comment was first created.
	CreatedDate string `json:"createdDate,omitempty"`

	// Deleted: Whether this comment has been deleted. If a comment has been
	// deleted the content will be cleared and this will only represent a
	// comment that once existed.
	Deleted bool `json:"deleted,omitempty"`

	// FileId: The file which this comment is addressing.
	FileId string `json:"fileId,omitempty"`

	// FileTitle: The title of the file which this comment is addressing.
	FileTitle string `json:"fileTitle,omitempty"`

	// HtmlContent: HTML formatted content for this comment.
	HtmlContent string `json:"htmlContent,omitempty"`

	// Kind: This is always drive#comment.
	Kind string `json:"kind,omitempty"`

	// ModifiedDate: The date when this comment or any of its replies were
	// last modified.
	ModifiedDate string `json:"modifiedDate,omitempty"`

	// Replies: Replies to this post.
	Replies []*CommentReply `json:"replies,omitempty"`

	// SelfLink: A link back to this comment.
	SelfLink string `json:"selfLink,omitempty"`

	// Status: The status of this comment. Status can be changed by posting
	// a reply to a comment with the desired status.
	// - "open" - The
	// comment is still open.
	// - "resolved" - The comment has been resolved
	// by one of its replies.
	Status string `json:"status,omitempty"`
}

type CommentContext

type CommentContext struct {
	// Type: The MIME type of the context snippet.
	Type string `json:"type,omitempty"`

	// Value: Data representation of the segment of the file being commented
	// on. In the case of a text file for example, this would be the actual
	// text that the comment is about.
	Value string `json:"value,omitempty"`
}

type CommentList

type CommentList struct {
	// Items: List of comments.
	Items []*Comment `json:"items,omitempty"`

	// Kind: This is always drive#commentList.
	Kind string `json:"kind,omitempty"`

	// NextLink: A link to the next page of comments.
	NextLink string `json:"nextLink,omitempty"`

	// NextPageToken: The token to use to request the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type CommentReply

type CommentReply struct {
	// Author: The user who wrote this reply.
	Author *User `json:"author,omitempty"`

	// Content: The plain text content used to create this reply. This is
	// not HTML safe and should only be used as a starting point to make
	// edits to a reply's content. This field is required on inserts if no
	// verb is specified (resolve/reopen).
	Content string `json:"content,omitempty"`

	// CreatedDate: The date when this reply was first created.
	CreatedDate string `json:"createdDate,omitempty"`

	// Deleted: Whether this reply has been deleted. If a reply has been
	// deleted the content will be cleared and this will only represent a
	// reply that once existed.
	Deleted bool `json:"deleted,omitempty"`

	// HtmlContent: HTML formatted content for this reply.
	HtmlContent string `json:"htmlContent,omitempty"`

	// Kind: This is always drive#commentReply.
	Kind string `json:"kind,omitempty"`

	// ModifiedDate: The date when this reply was last modified.
	ModifiedDate string `json:"modifiedDate,omitempty"`

	// ReplyId: The ID of the reply.
	ReplyId string `json:"replyId,omitempty"`

	// Verb: The action this reply performed to the parent comment. When
	// creating a new reply this is the action to be perform to the parent
	// comment. Possible values are:
	// - "resolve" - To resolve a comment.
	//
	// - "reopen" - To reopen (un-resolve) a comment.
	Verb string `json:"verb,omitempty"`
}

type CommentReplyList

type CommentReplyList struct {
	// Items: List of reply.
	Items []*CommentReply `json:"items,omitempty"`

	// Kind: This is always drive#commentReplyList.
	Kind string `json:"kind,omitempty"`

	// NextLink: A link to the next page of replies.
	NextLink string `json:"nextLink,omitempty"`

	// NextPageToken: The token to use to request the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type CommentsDeleteCall

type CommentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CommentsDeleteCall) Do

func (c *CommentsDeleteCall) Do() error

type CommentsGetCall

type CommentsGetCall struct {
	// contains filtered or unexported fields
}

func (*CommentsGetCall) Do

func (c *CommentsGetCall) Do() (*Comment, error)

func (*CommentsGetCall) IncludeDeleted

func (c *CommentsGetCall) IncludeDeleted(includeDeleted bool) *CommentsGetCall

IncludeDeleted sets the optional parameter "includeDeleted": If set, this will succeed when retrieving a deleted comment, and will include any deleted replies.

type CommentsInsertCall

type CommentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommentsInsertCall) Do

func (c *CommentsInsertCall) Do() (*Comment, error)

type CommentsListCall

type CommentsListCall struct {
	// contains filtered or unexported fields
}

func (*CommentsListCall) Do

func (c *CommentsListCall) Do() (*CommentList, error)

func (*CommentsListCall) IncludeDeleted

func (c *CommentsListCall) IncludeDeleted(includeDeleted bool) *CommentsListCall

IncludeDeleted sets the optional parameter "includeDeleted": If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.

func (*CommentsListCall) MaxResults

func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of discussions to include in the response, used for paging.

func (*CommentsListCall) PageToken

func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.

func (*CommentsListCall) UpdatedMin

func (c *CommentsListCall) UpdatedMin(updatedMin string) *CommentsListCall

UpdatedMin sets the optional parameter "updatedMin": Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.

type CommentsPatchCall

type CommentsPatchCall struct {
	// contains filtered or unexported fields
}

func (*CommentsPatchCall) Do

func (c *CommentsPatchCall) Do() (*Comment, error)

type CommentsService

type CommentsService struct {
	// contains filtered or unexported fields
}

func NewCommentsService

func NewCommentsService(s *Service) *CommentsService

func (*CommentsService) Delete

func (r *CommentsService) Delete(fileId string, commentId string) *CommentsDeleteCall

Delete: Deletes a comment.

func (*CommentsService) Get

func (r *CommentsService) Get(fileId string, commentId string) *CommentsGetCall

Get: Gets a comment by ID.

func (*CommentsService) Insert

func (r *CommentsService) Insert(fileId string, comment *Comment) *CommentsInsertCall

Insert: Creates a new comment on the given file.

func (*CommentsService) List

func (r *CommentsService) List(fileId string) *CommentsListCall

List: Lists a file's comments.

func (*CommentsService) Patch

func (r *CommentsService) Patch(fileId string, commentId string, comment *Comment) *CommentsPatchCall

Patch: Updates an existing comment. This method supports patch semantics.

func (*CommentsService) Update

func (r *CommentsService) Update(fileId string, commentId string, comment *Comment) *CommentsUpdateCall

Update: Updates an existing comment.

type CommentsUpdateCall

type CommentsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*CommentsUpdateCall) Do

func (c *CommentsUpdateCall) Do() (*Comment, error)

type File

type File struct {
	// AlternateLink: A link for opening the file in using a relevant Google
	// editor or viewer.
	AlternateLink string `json:"alternateLink,omitempty"`

	// AppDataContents: Whether this file is in the appdata folder.
	AppDataContents bool `json:"appDataContents,omitempty"`

	// CreatedDate: Create time for this file (formatted ISO8601 timestamp).
	CreatedDate string `json:"createdDate,omitempty"`

	// DefaultOpenWithLink: A link to open this file with the user's default
	// app for this file. Only populated when the drive.apps.readonly scope
	// is used.
	DefaultOpenWithLink string `json:"defaultOpenWithLink,omitempty"`

	// Description: A short description of the file.
	Description string `json:"description,omitempty"`

	// DownloadUrl: Short lived download URL for the file. This is only
	// populated for files with content stored in Drive.
	DownloadUrl string `json:"downloadUrl,omitempty"`

	// Editable: Whether the file can be edited by the current user.
	Editable bool `json:"editable,omitempty"`

	// EmbedLink: A link for embedding the file.
	EmbedLink string `json:"embedLink,omitempty"`

	// Etag: ETag of the file.
	Etag string `json:"etag,omitempty"`

	// ExplicitlyTrashed: Whether this file has been explicitly trashed, as
	// opposed to recursively trashed. This will only be populated if the
	// file is trashed.
	ExplicitlyTrashed bool `json:"explicitlyTrashed,omitempty"`

	// ExportLinks: Links for exporting Google Docs to specific formats.
	ExportLinks *FileExportLinks `json:"exportLinks,omitempty"`

	// FileExtension: The file extension used when downloading this file.
	// This field is read only. To set the extension, include it in the
	// title when creating the file. This is only populated for files with
	// content stored in Drive.
	FileExtension string `json:"fileExtension,omitempty"`

	// FileSize: The size of the file in bytes. This is only populated for
	// files with content stored in Drive.
	FileSize int64 `json:"fileSize,omitempty,string"`

	// HeadRevisionId: The ID of the file's head revision. This will only be
	// populated for files with content stored in Drive.
	HeadRevisionId string `json:"headRevisionId,omitempty"`

	// IconLink: A link to the file's icon.
	IconLink string `json:"iconLink,omitempty"`

	// Id: The ID of the file.
	Id string `json:"id,omitempty"`

	// ImageMediaMetadata: Metadata about image media. This will only be
	// present for image types, and its contents will depend on what can be
	// parsed from the image content.
	ImageMediaMetadata *FileImageMediaMetadata `json:"imageMediaMetadata,omitempty"`

	// IndexableText: Indexable text attributes for the file (can only be
	// written)
	IndexableText *FileIndexableText `json:"indexableText,omitempty"`

	// Kind: The type of file. This is always drive#file.
	Kind string `json:"kind,omitempty"`

	// Labels: A group of labels for the file.
	Labels *FileLabels `json:"labels,omitempty"`

	// LastModifyingUser: The last user to modify this file.
	LastModifyingUser *User `json:"lastModifyingUser,omitempty"`

	// LastModifyingUserName: Name of the last user to modify this file.
	LastModifyingUserName string `json:"lastModifyingUserName,omitempty"`

	// LastViewedByMeDate: Last time this file was viewed by the user
	// (formatted RFC 3339 timestamp).
	LastViewedByMeDate string `json:"lastViewedByMeDate,omitempty"`

	// Md5Checksum: An MD5 checksum for the content of this file. This is
	// populated only for files with content stored in Drive.
	Md5Checksum string `json:"md5Checksum,omitempty"`

	// MimeType: The MIME type of the file. This is only mutable on update
	// when uploading new content. This field can be left blank, and the
	// mimetype will be determined from the uploaded content's MIME type.
	MimeType string `json:"mimeType,omitempty"`

	// ModifiedByMeDate: Last time this file was modified by the user
	// (formatted RFC 3339 timestamp). Note that setting modifiedDate will
	// also update the modifiedByMe date for the user which set the date.
	ModifiedByMeDate string `json:"modifiedByMeDate,omitempty"`

	// ModifiedDate: Last time this file was modified by anyone (formatted
	// RFC 3339 timestamp). This is only mutable on update when the
	// setModifiedDate parameter is set.
	ModifiedDate string `json:"modifiedDate,omitempty"`

	// OpenWithLinks: A map of the id of each of the user's apps to a link
	// to open this file with that app. Only populated when the
	// drive.apps.readonly scope is used.
	OpenWithLinks *FileOpenWithLinks `json:"openWithLinks,omitempty"`

	// OriginalFilename: The original filename if the file was uploaded
	// manually, or the original title if the file was inserted through the
	// API. Note that renames of the title will not change the original
	// filename. This will only be populated on files with content stored in
	// Drive.
	OriginalFilename string `json:"originalFilename,omitempty"`

	// OwnerNames: Name(s) of the owner(s) of this file.
	OwnerNames []string `json:"ownerNames,omitempty"`

	// Owners: The owner(s) of this file.
	Owners []*User `json:"owners,omitempty"`

	// Parents: Collection of parent folders which contain this
	// file.
	// Setting this field will put the file in all of the provided
	// folders. On insert, if no folders are provided, the file will be
	// placed in the default root folder.
	Parents []*ParentReference `json:"parents,omitempty"`

	// QuotaBytesUsed: The number of quota bytes used by this file.
	QuotaBytesUsed int64 `json:"quotaBytesUsed,omitempty,string"`

	// SelfLink: A link back to this file.
	SelfLink string `json:"selfLink,omitempty"`

	// Shared: Whether the file has been shared.
	Shared bool `json:"shared,omitempty"`

	// SharedWithMeDate: Time at which this file was shared with the user
	// (formatted RFC 3339 timestamp).
	SharedWithMeDate string `json:"sharedWithMeDate,omitempty"`

	// Thumbnail: Thumbnail for the file. Only accepted on upload and for
	// files that are not already thumbnailed by Google.
	Thumbnail *FileThumbnail `json:"thumbnail,omitempty"`

	// ThumbnailLink: A link to the file's thumbnail.
	ThumbnailLink string `json:"thumbnailLink,omitempty"`

	// Title: The title of this file.
	Title string `json:"title,omitempty"`

	// UserPermission: The permissions for the authenticated user on this
	// file.
	UserPermission *Permission `json:"userPermission,omitempty"`

	// WebContentLink: A link for downloading the content of the file in a
	// browser using cookie based authentication. In cases where the content
	// is shared publicly, the content can be downloaded without any
	// credentials.
	WebContentLink string `json:"webContentLink,omitempty"`

	// WebViewLink: A link only available on public folders for viewing
	// their static web assets (HTML, CSS, JS, etc) via Google Drive's
	// Website Hosting.
	WebViewLink string `json:"webViewLink,omitempty"`

	// WritersCanShare: Whether writers can share the document with other
	// users.
	WritersCanShare bool `json:"writersCanShare,omitempty"`
}
type FileExportLinks struct {
}

type FileImageMediaMetadata

type FileImageMediaMetadata struct {
	// Aperture: The aperture used to create the photo (f-number).
	Aperture float64 `json:"aperture,omitempty"`

	// CameraMake: The make of the camera used to create the photo.
	CameraMake string `json:"cameraMake,omitempty"`

	// CameraModel: The model of the camera used to create the photo.
	CameraModel string `json:"cameraModel,omitempty"`

	// ColorSpace: The color space of the photo.
	ColorSpace string `json:"colorSpace,omitempty"`

	// Date: The date and time the photo was taken (EXIF format timestamp).
	Date string `json:"date,omitempty"`

	// ExposureBias: The exposure bias of the photo (APEX value).
	ExposureBias float64 `json:"exposureBias,omitempty"`

	// ExposureMode: The exposure mode used to create the photo.
	ExposureMode string `json:"exposureMode,omitempty"`

	// ExposureTime: The length of the exposure, in seconds.
	ExposureTime float64 `json:"exposureTime,omitempty"`

	// FlashUsed: Whether a flash was used to create the photo.
	FlashUsed bool `json:"flashUsed,omitempty"`

	// FocalLength: The focal length used to create the photo, in
	// millimeters.
	FocalLength float64 `json:"focalLength,omitempty"`

	// Height: The height of the image in pixels.
	Height int64 `json:"height,omitempty"`

	// IsoSpeed: The ISO speed used to create the photo.
	IsoSpeed int64 `json:"isoSpeed,omitempty"`

	// Lens: The lens used to create the photo.
	Lens string `json:"lens,omitempty"`

	// Location: Geographic location information stored in the image.
	Location *FileImageMediaMetadataLocation `json:"location,omitempty"`

	// MaxApertureValue: The smallest f-number of the lens at the focal
	// length used to create the photo (APEX value).
	MaxApertureValue float64 `json:"maxApertureValue,omitempty"`

	// MeteringMode: The metering mode used to create the photo.
	MeteringMode string `json:"meteringMode,omitempty"`

	// Rotation: The rotation in clockwise degrees from the image's original
	// orientation.
	Rotation int64 `json:"rotation,omitempty"`

	// Sensor: The type of sensor used to create the photo.
	Sensor string `json:"sensor,omitempty"`

	// SubjectDistance: The distance to the subject of the photo, in meters.
	SubjectDistance int64 `json:"subjectDistance,omitempty"`

	// WhiteBalance: The white balance mode used to create the photo.
	WhiteBalance string `json:"whiteBalance,omitempty"`

	// Width: The width of the image in pixels.
	Width int64 `json:"width,omitempty"`
}

type FileImageMediaMetadataLocation

type FileImageMediaMetadataLocation struct {
	// Altitude: The altitude stored in the image.
	Altitude float64 `json:"altitude,omitempty"`

	// Latitude: The latitude stored in the image.
	Latitude float64 `json:"latitude,omitempty"`

	// Longitude: The longitude stored in the image.
	Longitude float64 `json:"longitude,omitempty"`
}

type FileIndexableText

type FileIndexableText struct {
	// Text: The text to be indexed for this file.
	Text string `json:"text,omitempty"`
}

type FileLabels

type FileLabels struct {
	// Hidden: Whether this file is hidden from the user.
	Hidden bool `json:"hidden,omitempty"`

	// Restricted: Whether viewers are prevented from downloading this file.
	Restricted bool `json:"restricted,omitempty"`

	// Starred: Whether this file is starred by the user.
	Starred bool `json:"starred,omitempty"`

	// Trashed: Whether this file has been trashed.
	Trashed bool `json:"trashed,omitempty"`

	// Viewed: Whether this file has been viewed by this user.
	Viewed bool `json:"viewed,omitempty"`
}

type FileList

type FileList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of files.
	Items []*File `json:"items,omitempty"`

	// Kind: This is always drive#fileList.
	Kind string `json:"kind,omitempty"`

	// NextLink: A link to the next page of files.
	NextLink string `json:"nextLink,omitempty"`

	// NextPageToken: The page token for the next page of files.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}
type FileOpenWithLinks struct {
}

type FileThumbnail

type FileThumbnail struct {
	// Image: The URL-safe Base64 encoded bytes of the thumbnail image.
	Image string `json:"image,omitempty"`

	// MimeType: The MIME type of the thumbnail.
	MimeType string `json:"mimeType,omitempty"`
}

type FilesCopyCall

type FilesCopyCall struct {
	// contains filtered or unexported fields
}

func (*FilesCopyCall) Convert

func (c *FilesCopyCall) Convert(convert bool) *FilesCopyCall

Convert sets the optional parameter "convert": Whether to convert this file to the corresponding Google Docs format.

func (*FilesCopyCall) Do

func (c *FilesCopyCall) Do() (*File, error)

func (*FilesCopyCall) Ocr

func (c *FilesCopyCall) Ocr(ocr bool) *FilesCopyCall

Ocr sets the optional parameter "ocr": Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

func (*FilesCopyCall) OcrLanguage

func (c *FilesCopyCall) OcrLanguage(ocrLanguage string) *FilesCopyCall

OcrLanguage sets the optional parameter "ocrLanguage": If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

func (*FilesCopyCall) Pinned

func (c *FilesCopyCall) Pinned(pinned bool) *FilesCopyCall

Pinned sets the optional parameter "pinned": Whether to pin the head revision of the new copy.

func (*FilesCopyCall) TimedTextLanguage

func (c *FilesCopyCall) TimedTextLanguage(timedTextLanguage string) *FilesCopyCall

TimedTextLanguage sets the optional parameter "timedTextLanguage": The language of the timed text.

func (*FilesCopyCall) TimedTextTrackName

func (c *FilesCopyCall) TimedTextTrackName(timedTextTrackName string) *FilesCopyCall

TimedTextTrackName sets the optional parameter "timedTextTrackName": The timed text track name.

func (*FilesCopyCall) Visibility

func (c *FilesCopyCall) Visibility(visibility string) *FilesCopyCall

Visibility sets the optional parameter "visibility": The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false.

type FilesDeleteCall

type FilesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*FilesDeleteCall) Do

func (c *FilesDeleteCall) Do() error

type FilesGetCall

type FilesGetCall struct {
	// contains filtered or unexported fields
}

func (*FilesGetCall) Do

func (c *FilesGetCall) Do() (*File, error)

func (*FilesGetCall) Projection

func (c *FilesGetCall) Projection(projection string) *FilesGetCall

Projection sets the optional parameter "projection": This parameter is deprecated and has no function.

func (*FilesGetCall) UpdateViewedDate

func (c *FilesGetCall) UpdateViewedDate(updateViewedDate bool) *FilesGetCall

UpdateViewedDate sets the optional parameter "updateViewedDate": Whether to update the view date after successfully retrieving the file.

type FilesInsertCall

type FilesInsertCall struct {
	// contains filtered or unexported fields
}

func (*FilesInsertCall) Convert

func (c *FilesInsertCall) Convert(convert bool) *FilesInsertCall

Convert sets the optional parameter "convert": Whether to convert this file to the corresponding Google Docs format.

func (*FilesInsertCall) Do

func (c *FilesInsertCall) Do() (*File, error)

func (*FilesInsertCall) Media

func (*FilesInsertCall) Ocr

func (c *FilesInsertCall) Ocr(ocr bool) *FilesInsertCall

Ocr sets the optional parameter "ocr": Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

func (*FilesInsertCall) OcrLanguage

func (c *FilesInsertCall) OcrLanguage(ocrLanguage string) *FilesInsertCall

OcrLanguage sets the optional parameter "ocrLanguage": If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

func (*FilesInsertCall) Pinned

func (c *FilesInsertCall) Pinned(pinned bool) *FilesInsertCall

Pinned sets the optional parameter "pinned": Whether to pin the head revision of the uploaded file.

func (*FilesInsertCall) TimedTextLanguage

func (c *FilesInsertCall) TimedTextLanguage(timedTextLanguage string) *FilesInsertCall

TimedTextLanguage sets the optional parameter "timedTextLanguage": The language of the timed text.

func (*FilesInsertCall) TimedTextTrackName

func (c *FilesInsertCall) TimedTextTrackName(timedTextTrackName string) *FilesInsertCall

TimedTextTrackName sets the optional parameter "timedTextTrackName": The timed text track name.

func (*FilesInsertCall) UseContentAsIndexableText

func (c *FilesInsertCall) UseContentAsIndexableText(useContentAsIndexableText bool) *FilesInsertCall

UseContentAsIndexableText sets the optional parameter "useContentAsIndexableText": Whether to use the content as indexable text.

func (*FilesInsertCall) Visibility

func (c *FilesInsertCall) Visibility(visibility string) *FilesInsertCall

Visibility sets the optional parameter "visibility": The visibility of the new file. This parameter is only relevant when convert=false.

type FilesListCall

type FilesListCall struct {
	// contains filtered or unexported fields
}

func (*FilesListCall) Do

func (c *FilesListCall) Do() (*FileList, error)

func (*FilesListCall) MaxResults

func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of files to return.

func (*FilesListCall) PageToken

func (c *FilesListCall) PageToken(pageToken string) *FilesListCall

PageToken sets the optional parameter "pageToken": Page token for files.

func (*FilesListCall) Projection

func (c *FilesListCall) Projection(projection string) *FilesListCall

Projection sets the optional parameter "projection": This parameter is deprecated and has no function.

func (*FilesListCall) Q

Q sets the optional parameter "q": Query string for searching files.

type FilesPatchCall

type FilesPatchCall struct {
	// contains filtered or unexported fields
}

func (*FilesPatchCall) Convert

func (c *FilesPatchCall) Convert(convert bool) *FilesPatchCall

Convert sets the optional parameter "convert": Whether to convert this file to the corresponding Google Docs format.

func (*FilesPatchCall) Do

func (c *FilesPatchCall) Do() (*File, error)

func (*FilesPatchCall) NewRevision

func (c *FilesPatchCall) NewRevision(newRevision bool) *FilesPatchCall

NewRevision sets the optional parameter "newRevision": Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota).

func (*FilesPatchCall) Ocr

func (c *FilesPatchCall) Ocr(ocr bool) *FilesPatchCall

Ocr sets the optional parameter "ocr": Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

func (*FilesPatchCall) OcrLanguage

func (c *FilesPatchCall) OcrLanguage(ocrLanguage string) *FilesPatchCall

OcrLanguage sets the optional parameter "ocrLanguage": If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

func (*FilesPatchCall) Pinned

func (c *FilesPatchCall) Pinned(pinned bool) *FilesPatchCall

Pinned sets the optional parameter "pinned": Whether to pin the new revision.

func (*FilesPatchCall) SetModifiedDate

func (c *FilesPatchCall) SetModifiedDate(setModifiedDate bool) *FilesPatchCall

SetModifiedDate sets the optional parameter "setModifiedDate": Whether to set the modified date with the supplied modified date.

func (*FilesPatchCall) TimedTextLanguage

func (c *FilesPatchCall) TimedTextLanguage(timedTextLanguage string) *FilesPatchCall

TimedTextLanguage sets the optional parameter "timedTextLanguage": The language of the timed text.

func (*FilesPatchCall) TimedTextTrackName

func (c *FilesPatchCall) TimedTextTrackName(timedTextTrackName string) *FilesPatchCall

TimedTextTrackName sets the optional parameter "timedTextTrackName": The timed text track name.

func (*FilesPatchCall) UpdateViewedDate

func (c *FilesPatchCall) UpdateViewedDate(updateViewedDate bool) *FilesPatchCall

UpdateViewedDate sets the optional parameter "updateViewedDate": Whether to update the view date after successfully updating the file.

func (*FilesPatchCall) UseContentAsIndexableText

func (c *FilesPatchCall) UseContentAsIndexableText(useContentAsIndexableText bool) *FilesPatchCall

UseContentAsIndexableText sets the optional parameter "useContentAsIndexableText": Whether to use the content as indexable text.

type FilesService

type FilesService struct {
	// contains filtered or unexported fields
}

func NewFilesService

func NewFilesService(s *Service) *FilesService

func (*FilesService) Copy

func (r *FilesService) Copy(fileId string, file *File) *FilesCopyCall

Copy: Creates a copy of the specified file.

func (*FilesService) Delete

func (r *FilesService) Delete(fileId string) *FilesDeleteCall

Delete: Permanently deletes a file by ID. Skips the trash.

func (*FilesService) Get

func (r *FilesService) Get(fileId string) *FilesGetCall

Get: Gets a file's metadata by ID.

func (*FilesService) Insert

func (r *FilesService) Insert(file *File) *FilesInsertCall

Insert: Insert a new file.

func (*FilesService) List

func (r *FilesService) List() *FilesListCall

List: Lists the user's files.

func (*FilesService) Patch

func (r *FilesService) Patch(fileId string, file *File) *FilesPatchCall

Patch: Updates file metadata and/or content. This method supports patch semantics.

func (*FilesService) Touch

func (r *FilesService) Touch(fileId string) *FilesTouchCall

Touch: Set the file's updated time to the current server time.

func (*FilesService) Trash

func (r *FilesService) Trash(fileId string) *FilesTrashCall

Trash: Moves a file to the trash.

func (*FilesService) Untrash

func (r *FilesService) Untrash(fileId string) *FilesUntrashCall

Untrash: Restores a file from the trash.

func (*FilesService) Update

func (r *FilesService) Update(fileId string, file *File) *FilesUpdateCall

Update: Updates file metadata and/or content.

func (*FilesService) Watch

func (r *FilesService) Watch(fileId string, channel *Channel) *FilesWatchCall

Watch: Subscribe to changes on a file

type FilesTouchCall

type FilesTouchCall struct {
	// contains filtered or unexported fields
}

func (*FilesTouchCall) Do

func (c *FilesTouchCall) Do() (*File, error)

type FilesTrashCall

type FilesTrashCall struct {
	// contains filtered or unexported fields
}

func (*FilesTrashCall) Do

func (c *FilesTrashCall) Do() (*File, error)

type FilesUntrashCall

type FilesUntrashCall struct {
	// contains filtered or unexported fields
}

func (*FilesUntrashCall) Do

func (c *FilesUntrashCall) Do() (*File, error)

type FilesUpdateCall

type FilesUpdateCall struct {
	// contains filtered or unexported fields
}

func (*FilesUpdateCall) Convert

func (c *FilesUpdateCall) Convert(convert bool) *FilesUpdateCall

Convert sets the optional parameter "convert": Whether to convert this file to the corresponding Google Docs format.

func (*FilesUpdateCall) Do

func (c *FilesUpdateCall) Do() (*File, error)

func (*FilesUpdateCall) Media

func (*FilesUpdateCall) NewRevision

func (c *FilesUpdateCall) NewRevision(newRevision bool) *FilesUpdateCall

NewRevision sets the optional parameter "newRevision": Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota).

func (*FilesUpdateCall) Ocr

func (c *FilesUpdateCall) Ocr(ocr bool) *FilesUpdateCall

Ocr sets the optional parameter "ocr": Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.

func (*FilesUpdateCall) OcrLanguage

func (c *FilesUpdateCall) OcrLanguage(ocrLanguage string) *FilesUpdateCall

OcrLanguage sets the optional parameter "ocrLanguage": If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.

func (*FilesUpdateCall) Pinned

func (c *FilesUpdateCall) Pinned(pinned bool) *FilesUpdateCall

Pinned sets the optional parameter "pinned": Whether to pin the new revision.

func (*FilesUpdateCall) SetModifiedDate

func (c *FilesUpdateCall) SetModifiedDate(setModifiedDate bool) *FilesUpdateCall

SetModifiedDate sets the optional parameter "setModifiedDate": Whether to set the modified date with the supplied modified date.

func (*FilesUpdateCall) TimedTextLanguage

func (c *FilesUpdateCall) TimedTextLanguage(timedTextLanguage string) *FilesUpdateCall

TimedTextLanguage sets the optional parameter "timedTextLanguage": The language of the timed text.

func (*FilesUpdateCall) TimedTextTrackName

func (c *FilesUpdateCall) TimedTextTrackName(timedTextTrackName string) *FilesUpdateCall

TimedTextTrackName sets the optional parameter "timedTextTrackName": The timed text track name.

func (*FilesUpdateCall) UpdateViewedDate

func (c *FilesUpdateCall) UpdateViewedDate(updateViewedDate bool) *FilesUpdateCall

UpdateViewedDate sets the optional parameter "updateViewedDate": Whether to update the view date after successfully updating the file.

func (*FilesUpdateCall) UseContentAsIndexableText

func (c *FilesUpdateCall) UseContentAsIndexableText(useContentAsIndexableText bool) *FilesUpdateCall

UseContentAsIndexableText sets the optional parameter "useContentAsIndexableText": Whether to use the content as indexable text.

type FilesWatchCall

type FilesWatchCall struct {
	// contains filtered or unexported fields
}

func (*FilesWatchCall) Do

func (c *FilesWatchCall) Do() (*Channel, error)

func (*FilesWatchCall) Projection

func (c *FilesWatchCall) Projection(projection string) *FilesWatchCall

Projection sets the optional parameter "projection": This parameter is deprecated and has no function.

func (*FilesWatchCall) UpdateViewedDate

func (c *FilesWatchCall) UpdateViewedDate(updateViewedDate bool) *FilesWatchCall

UpdateViewedDate sets the optional parameter "updateViewedDate": Whether to update the view date after successfully retrieving the file.

type ParentList

type ParentList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of parents.
	Items []*ParentReference `json:"items,omitempty"`

	// Kind: This is always drive#parentList.
	Kind string `json:"kind,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type ParentReference

type ParentReference struct {
	// Id: The ID of the parent.
	Id string `json:"id,omitempty"`

	// IsRoot: Whether or not the parent is the root folder.
	IsRoot bool `json:"isRoot,omitempty"`

	// Kind: This is always drive#parentReference.
	Kind string `json:"kind,omitempty"`

	// ParentLink: A link to the parent.
	ParentLink string `json:"parentLink,omitempty"`

	// SelfLink: A link back to this reference.
	SelfLink string `json:"selfLink,omitempty"`
}

type ParentsDeleteCall

type ParentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ParentsDeleteCall) Do

func (c *ParentsDeleteCall) Do() error

type ParentsGetCall

type ParentsGetCall struct {
	// contains filtered or unexported fields
}

func (*ParentsGetCall) Do

func (c *ParentsGetCall) Do() (*ParentReference, error)

type ParentsInsertCall

type ParentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ParentsInsertCall) Do

type ParentsListCall

type ParentsListCall struct {
	// contains filtered or unexported fields
}

func (*ParentsListCall) Do

func (c *ParentsListCall) Do() (*ParentList, error)

type ParentsService

type ParentsService struct {
	// contains filtered or unexported fields
}

func NewParentsService

func NewParentsService(s *Service) *ParentsService

func (*ParentsService) Delete

func (r *ParentsService) Delete(fileId string, parentId string) *ParentsDeleteCall

Delete: Removes a parent from a file.

func (*ParentsService) Get

func (r *ParentsService) Get(fileId string, parentId string) *ParentsGetCall

Get: Gets a specific parent reference.

func (*ParentsService) Insert

func (r *ParentsService) Insert(fileId string, parentreference *ParentReference) *ParentsInsertCall

Insert: Adds a parent folder for a file.

func (*ParentsService) List

func (r *ParentsService) List(fileId string) *ParentsListCall

List: Lists a file's parents.

type Permission

type Permission struct {
	// AdditionalRoles: Additional roles for this user. Only commenter is
	// currently allowed.
	AdditionalRoles []string `json:"additionalRoles,omitempty"`

	// AuthKey: The authkey parameter required for this permission.
	AuthKey string `json:"authKey,omitempty"`

	// Etag: The ETag of the permission.
	Etag string `json:"etag,omitempty"`

	// Id: The ID of the permission.
	Id string `json:"id,omitempty"`

	// Kind: This is always drive#permission.
	Kind string `json:"kind,omitempty"`

	// Name: The name for this permission.
	Name string `json:"name,omitempty"`

	// PhotoLink: A link to the profile photo, if available.
	PhotoLink string `json:"photoLink,omitempty"`

	// Role: The primary role for this user. Allowed values are:
	// - owner
	//
	// - reader
	// - writer
	Role string `json:"role,omitempty"`

	// SelfLink: A link back to this permission.
	SelfLink string `json:"selfLink,omitempty"`

	// Type: The account type. Allowed values are:
	// - user
	// - group
	// -
	// domain
	// - anyone
	Type string `json:"type,omitempty"`

	// Value: The email address or domain name for the entity. This is used
	// during inserts and is not populated in responses.
	Value string `json:"value,omitempty"`

	// WithLink: Whether the link is required for this permission.
	WithLink bool `json:"withLink,omitempty"`
}

type PermissionList

type PermissionList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of permissions.
	Items []*Permission `json:"items,omitempty"`

	// Kind: This is always drive#permissionList.
	Kind string `json:"kind,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type PermissionsDeleteCall

type PermissionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsDeleteCall) Do

func (c *PermissionsDeleteCall) Do() error

type PermissionsGetCall

type PermissionsGetCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsGetCall) Do

func (c *PermissionsGetCall) Do() (*Permission, error)

type PermissionsInsertCall

type PermissionsInsertCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsInsertCall) Do

func (*PermissionsInsertCall) EmailMessage

func (c *PermissionsInsertCall) EmailMessage(emailMessage string) *PermissionsInsertCall

EmailMessage sets the optional parameter "emailMessage": A custom message to include in notification emails.

func (*PermissionsInsertCall) SendNotificationEmails

func (c *PermissionsInsertCall) SendNotificationEmails(sendNotificationEmails bool) *PermissionsInsertCall

SendNotificationEmails sets the optional parameter "sendNotificationEmails": Whether to send notification emails when sharing to users or groups.

type PermissionsListCall

type PermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsListCall) Do

type PermissionsPatchCall

type PermissionsPatchCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsPatchCall) Do

func (*PermissionsPatchCall) TransferOwnership

func (c *PermissionsPatchCall) TransferOwnership(transferOwnership bool) *PermissionsPatchCall

TransferOwnership sets the optional parameter "transferOwnership": Whether changing a role to 'owner' should also downgrade the current owners to writers.

type PermissionsService

type PermissionsService struct {
	// contains filtered or unexported fields
}

func NewPermissionsService

func NewPermissionsService(s *Service) *PermissionsService

func (*PermissionsService) Delete

func (r *PermissionsService) Delete(fileId string, permissionId string) *PermissionsDeleteCall

Delete: Deletes a permission from a file.

func (*PermissionsService) Get

func (r *PermissionsService) Get(fileId string, permissionId string) *PermissionsGetCall

Get: Gets a permission by ID.

func (*PermissionsService) Insert

func (r *PermissionsService) Insert(fileId string, permission *Permission) *PermissionsInsertCall

Insert: Inserts a permission for a file.

func (*PermissionsService) List

List: Lists a file's permissions.

func (*PermissionsService) Patch

func (r *PermissionsService) Patch(fileId string, permissionId string, permission *Permission) *PermissionsPatchCall

Patch: Updates a permission. This method supports patch semantics.

func (*PermissionsService) Update

func (r *PermissionsService) Update(fileId string, permissionId string, permission *Permission) *PermissionsUpdateCall

Update: Updates a permission.

type PermissionsUpdateCall

type PermissionsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*PermissionsUpdateCall) Do

func (*PermissionsUpdateCall) TransferOwnership

func (c *PermissionsUpdateCall) TransferOwnership(transferOwnership bool) *PermissionsUpdateCall

TransferOwnership sets the optional parameter "transferOwnership": Whether changing a role to 'owner' should also downgrade the current owners to writers.

type PropertiesDeleteCall

type PropertiesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*PropertiesDeleteCall) Do

func (c *PropertiesDeleteCall) Do() error

func (*PropertiesDeleteCall) Visibility

func (c *PropertiesDeleteCall) Visibility(visibility string) *PropertiesDeleteCall

Visibility sets the optional parameter "visibility": The visibility of the property.

type PropertiesGetCall

type PropertiesGetCall struct {
	// contains filtered or unexported fields
}

func (*PropertiesGetCall) Do

func (c *PropertiesGetCall) Do() (*Property, error)

func (*PropertiesGetCall) Visibility

func (c *PropertiesGetCall) Visibility(visibility string) *PropertiesGetCall

Visibility sets the optional parameter "visibility": The visibility of the property.

type PropertiesInsertCall

type PropertiesInsertCall struct {
	// contains filtered or unexported fields
}

func (*PropertiesInsertCall) Do

func (c *PropertiesInsertCall) Do() (*Property, error)

type PropertiesListCall

type PropertiesListCall struct {
	// contains filtered or unexported fields
}

func (*PropertiesListCall) Do

type PropertiesPatchCall

type PropertiesPatchCall struct {
	// contains filtered or unexported fields
}

func (*PropertiesPatchCall) Do

func (c *PropertiesPatchCall) Do() (*Property, error)

func (*PropertiesPatchCall) Visibility

func (c *PropertiesPatchCall) Visibility(visibility string) *PropertiesPatchCall

Visibility sets the optional parameter "visibility": The visibility of the property.

type PropertiesService

type PropertiesService struct {
	// contains filtered or unexported fields
}

func NewPropertiesService

func NewPropertiesService(s *Service) *PropertiesService

func (*PropertiesService) Delete

func (r *PropertiesService) Delete(fileId string, propertyKey string) *PropertiesDeleteCall

Delete: Deletes a property.

func (*PropertiesService) Get

func (r *PropertiesService) Get(fileId string, propertyKey string) *PropertiesGetCall

Get: Gets a property by its key.

func (*PropertiesService) Insert

func (r *PropertiesService) Insert(fileId string, property *Property) *PropertiesInsertCall

Insert: Adds a property to a file.

func (*PropertiesService) List

func (r *PropertiesService) List(fileId string) *PropertiesListCall

List: Lists a file's properties.

func (*PropertiesService) Patch

func (r *PropertiesService) Patch(fileId string, propertyKey string, property *Property) *PropertiesPatchCall

Patch: Updates a property. This method supports patch semantics.

func (*PropertiesService) Update

func (r *PropertiesService) Update(fileId string, propertyKey string, property *Property) *PropertiesUpdateCall

Update: Updates a property.

type PropertiesUpdateCall

type PropertiesUpdateCall struct {
	// contains filtered or unexported fields
}

func (*PropertiesUpdateCall) Do

func (c *PropertiesUpdateCall) Do() (*Property, error)

func (*PropertiesUpdateCall) Visibility

func (c *PropertiesUpdateCall) Visibility(visibility string) *PropertiesUpdateCall

Visibility sets the optional parameter "visibility": The visibility of the property.

type Property

type Property struct {
	// Etag: ETag of the property.
	Etag string `json:"etag,omitempty"`

	// Key: The key of this property.
	Key string `json:"key,omitempty"`

	// Kind: This is always drive#property.
	Kind string `json:"kind,omitempty"`

	// SelfLink: The link back to this property.
	SelfLink string `json:"selfLink,omitempty"`

	// Value: The value of this property.
	Value string `json:"value,omitempty"`

	// Visibility: The visibility of this property.
	Visibility string `json:"visibility,omitempty"`
}

type PropertyList

type PropertyList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The list of properties.
	Items []*Property `json:"items,omitempty"`

	// Kind: This is always drive#propertyList.
	Kind string `json:"kind,omitempty"`

	// SelfLink: The link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type RealtimeGetCall

type RealtimeGetCall struct {
	// contains filtered or unexported fields
}

func (*RealtimeGetCall) Do

func (c *RealtimeGetCall) Do() error

type RealtimeService

type RealtimeService struct {
	// contains filtered or unexported fields
}

func NewRealtimeService

func NewRealtimeService(s *Service) *RealtimeService

func (*RealtimeService) Get

func (r *RealtimeService) Get(fileId string) *RealtimeGetCall

Get: Exports the contents of the Realtime API data model associated with this file as JSON.

type RepliesDeleteCall

type RepliesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RepliesDeleteCall) Do

func (c *RepliesDeleteCall) Do() error

type RepliesGetCall

type RepliesGetCall struct {
	// contains filtered or unexported fields
}

func (*RepliesGetCall) Do

func (c *RepliesGetCall) Do() (*CommentReply, error)

func (*RepliesGetCall) IncludeDeleted

func (c *RepliesGetCall) IncludeDeleted(includeDeleted bool) *RepliesGetCall

IncludeDeleted sets the optional parameter "includeDeleted": If set, this will succeed when retrieving a deleted reply.

type RepliesInsertCall

type RepliesInsertCall struct {
	// contains filtered or unexported fields
}

func (*RepliesInsertCall) Do

func (c *RepliesInsertCall) Do() (*CommentReply, error)

type RepliesListCall

type RepliesListCall struct {
	// contains filtered or unexported fields
}

func (*RepliesListCall) Do

func (*RepliesListCall) IncludeDeleted

func (c *RepliesListCall) IncludeDeleted(includeDeleted bool) *RepliesListCall

IncludeDeleted sets the optional parameter "includeDeleted": If set, all replies, including deleted replies (with content stripped) will be returned.

func (*RepliesListCall) MaxResults

func (c *RepliesListCall) MaxResults(maxResults int64) *RepliesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of replies to include in the response, used for paging.

func (*RepliesListCall) PageToken

func (c *RepliesListCall) PageToken(pageToken string) *RepliesListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.

type RepliesPatchCall

type RepliesPatchCall struct {
	// contains filtered or unexported fields
}

func (*RepliesPatchCall) Do

func (c *RepliesPatchCall) Do() (*CommentReply, error)

type RepliesService

type RepliesService struct {
	// contains filtered or unexported fields
}

func NewRepliesService

func NewRepliesService(s *Service) *RepliesService

func (*RepliesService) Delete

func (r *RepliesService) Delete(fileId string, commentId string, replyId string) *RepliesDeleteCall

Delete: Deletes a reply.

func (*RepliesService) Get

func (r *RepliesService) Get(fileId string, commentId string, replyId string) *RepliesGetCall

Get: Gets a reply.

func (*RepliesService) Insert

func (r *RepliesService) Insert(fileId string, commentId string, commentreply *CommentReply) *RepliesInsertCall

Insert: Creates a new reply to the given comment.

func (*RepliesService) List

func (r *RepliesService) List(fileId string, commentId string) *RepliesListCall

List: Lists all of the replies to a comment.

func (*RepliesService) Patch

func (r *RepliesService) Patch(fileId string, commentId string, replyId string, commentreply *CommentReply) *RepliesPatchCall

Patch: Updates an existing reply. This method supports patch semantics.

func (*RepliesService) Update

func (r *RepliesService) Update(fileId string, commentId string, replyId string, commentreply *CommentReply) *RepliesUpdateCall

Update: Updates an existing reply.

type RepliesUpdateCall

type RepliesUpdateCall struct {
	// contains filtered or unexported fields
}

func (*RepliesUpdateCall) Do

func (c *RepliesUpdateCall) Do() (*CommentReply, error)

type Revision

type Revision struct {
	// DownloadUrl: Short term download URL for the file. This will only be
	// populated on files with content stored in Drive.
	DownloadUrl string `json:"downloadUrl,omitempty"`

	// Etag: The ETag of the revision.
	Etag string `json:"etag,omitempty"`

	// ExportLinks: Links for exporting Google Docs to specific formats.
	ExportLinks *RevisionExportLinks `json:"exportLinks,omitempty"`

	// FileSize: The size of the revision in bytes. This will only be
	// populated on files with content stored in Drive.
	FileSize int64 `json:"fileSize,omitempty,string"`

	// Id: The ID of the revision.
	Id string `json:"id,omitempty"`

	// Kind: This is always drive#revision.
	Kind string `json:"kind,omitempty"`

	// LastModifyingUser: The last user to modify this revision.
	LastModifyingUser *User `json:"lastModifyingUser,omitempty"`

	// LastModifyingUserName: Name of the last user to modify this revision.
	LastModifyingUserName string `json:"lastModifyingUserName,omitempty"`

	// Md5Checksum: An MD5 checksum for the content of this revision. This
	// will only be populated on files with content stored in Drive.
	Md5Checksum string `json:"md5Checksum,omitempty"`

	// MimeType: The MIME type of the revision.
	MimeType string `json:"mimeType,omitempty"`

	// ModifiedDate: Last time this revision was modified (formatted RFC
	// 3339 timestamp).
	ModifiedDate string `json:"modifiedDate,omitempty"`

	// OriginalFilename: The original filename when this revision was
	// created. This will only be populated on files with content stored in
	// Drive.
	OriginalFilename string `json:"originalFilename,omitempty"`

	// Pinned: Whether this revision is pinned to prevent automatic purging.
	// This will only be populated and can only be modified on files with
	// content stored in Drive which are not Google Docs. Revisions can also
	// be pinned when they are created through the
	// drive.files.insert/update/copy by using the pinned query parameter.
	Pinned bool `json:"pinned,omitempty"`

	// PublishAuto: Whether subsequent revisions will be automatically
	// republished. This is only populated and can only be modified for
	// Google Docs.
	PublishAuto bool `json:"publishAuto,omitempty"`

	// Published: Whether this revision is published. This is only populated
	// and can only be modified for Google Docs.
	Published bool `json:"published,omitempty"`

	// PublishedLink: A link to the published revision.
	PublishedLink string `json:"publishedLink,omitempty"`

	// PublishedOutsideDomain: Whether this revision is published outside
	// the domain. This is only populated and can only be modified for
	// Google Docs.
	PublishedOutsideDomain bool `json:"publishedOutsideDomain,omitempty"`

	// SelfLink: A link back to this revision.
	SelfLink string `json:"selfLink,omitempty"`
}
type RevisionExportLinks struct {
}

type RevisionList

type RevisionList struct {
	// Etag: The ETag of the list.
	Etag string `json:"etag,omitempty"`

	// Items: The actual list of revisions.
	Items []*Revision `json:"items,omitempty"`

	// Kind: This is always drive#revisionList.
	Kind string `json:"kind,omitempty"`

	// SelfLink: A link back to this list.
	SelfLink string `json:"selfLink,omitempty"`
}

type RevisionsDeleteCall

type RevisionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RevisionsDeleteCall) Do

func (c *RevisionsDeleteCall) Do() error

type RevisionsGetCall

type RevisionsGetCall struct {
	// contains filtered or unexported fields
}

func (*RevisionsGetCall) Do

func (c *RevisionsGetCall) Do() (*Revision, error)

type RevisionsListCall

type RevisionsListCall struct {
	// contains filtered or unexported fields
}

func (*RevisionsListCall) Do

func (c *RevisionsListCall) Do() (*RevisionList, error)

type RevisionsPatchCall

type RevisionsPatchCall struct {
	// contains filtered or unexported fields
}

func (*RevisionsPatchCall) Do

func (c *RevisionsPatchCall) Do() (*Revision, error)

type RevisionsService

type RevisionsService struct {
	// contains filtered or unexported fields
}

func NewRevisionsService

func NewRevisionsService(s *Service) *RevisionsService

func (*RevisionsService) Delete

func (r *RevisionsService) Delete(fileId string, revisionId string) *RevisionsDeleteCall

Delete: Removes a revision.

func (*RevisionsService) Get

func (r *RevisionsService) Get(fileId string, revisionId string) *RevisionsGetCall

Get: Gets a specific revision.

func (*RevisionsService) List

func (r *RevisionsService) List(fileId string) *RevisionsListCall

List: Lists a file's revisions.

func (*RevisionsService) Patch

func (r *RevisionsService) Patch(fileId string, revisionId string, revision *Revision) *RevisionsPatchCall

Patch: Updates a revision. This method supports patch semantics.

func (*RevisionsService) Update

func (r *RevisionsService) Update(fileId string, revisionId string, revision *Revision) *RevisionsUpdateCall

Update: Updates a revision.

type RevisionsUpdateCall

type RevisionsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*RevisionsUpdateCall) Do

func (c *RevisionsUpdateCall) Do() (*Revision, error)

type Service

type Service struct {
	About *AboutService

	Apps *AppsService

	Changes *ChangesService

	Channels *ChannelsService

	Children *ChildrenService

	Comments *CommentsService

	Files *FilesService

	Parents *ParentsService

	Permissions *PermissionsService

	Properties *PropertiesService

	Realtime *RealtimeService

	Replies *RepliesService

	Revisions *RevisionsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type User

type User struct {
	// DisplayName: A plain text displayable name for this user.
	DisplayName string `json:"displayName,omitempty"`

	// IsAuthenticatedUser: Whether this user is the same as the
	// authenticated user for whom the request was made.
	IsAuthenticatedUser bool `json:"isAuthenticatedUser,omitempty"`

	// Kind: This is always drive#user.
	Kind string `json:"kind,omitempty"`

	// PermissionId: The user's ID as visible in the permissions collection.
	PermissionId string `json:"permissionId,omitempty"`

	// Picture: The user's profile picture.
	Picture *UserPicture `json:"picture,omitempty"`
}

type UserPicture

type UserPicture struct {
	// Url: A URL that points to a profile picture of this user.
	Url string `json:"url,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL