Documentation

Overview

Package drive provides access to the Drive API.

For product documentation, see: https://developers.google.com/drive/

Creating a client

Usage example:

import "google.golang.org/api/drive/v3"
...
ctx := context.Background()
driveService, err := drive.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

driveService, err := drive.NewService(ctx, option.WithScopes(drive.DriveScriptsScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

driveService, err := drive.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
driveService, err := drive.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
const (
	// See, edit, create, and delete all of your Google Drive files
	DriveScope = "https://www.googleapis.com/auth/drive"

	// See, create, and delete its own configuration data in your Google
	// Drive
	DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdata"

	// See, edit, create, and delete only the specific Google Drive files
	// you use with this app
	DriveFileScope = "https://www.googleapis.com/auth/drive.file"

	// View and manage metadata of files in your Google Drive
	DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata"

	// See information about your Google Drive files
	DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/drive.metadata.readonly"

	// View the photos, videos and albums in your Google Photos
	DrivePhotosReadonlyScope = "https://www.googleapis.com/auth/drive.photos.readonly"

	// See and download all your Google Drive files
	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 {
    	// AppInstalled: Whether the user has installed the requesting app.
    	AppInstalled bool `json:"appInstalled,omitempty"`
    
    	// CanCreateDrives: Whether the user can create shared drives.
    	CanCreateDrives bool `json:"canCreateDrives,omitempty"`
    
    	// CanCreateTeamDrives: Deprecated - use canCreateDrives instead.
    	CanCreateTeamDrives bool `json:"canCreateTeamDrives,omitempty"`
    
    	// DriveThemes: A list of themes that are supported for shared drives.
    	DriveThemes []*AboutDriveThemes `json:"driveThemes,omitempty"`
    
    	// ExportFormats: A map of source MIME type to possible targets for all
    	// supported exports.
    	ExportFormats map[string][]string `json:"exportFormats,omitempty"`
    
    	// FolderColorPalette: The currently supported folder colors as RGB hex
    	// strings.
    	FolderColorPalette []string `json:"folderColorPalette,omitempty"`
    
    	// ImportFormats: A map of source MIME type to possible targets for all
    	// supported imports.
    	ImportFormats map[string][]string `json:"importFormats,omitempty"`
    
    	// Kind: Identifies what kind of resource this is. Value: the fixed
    	// string "drive#about".
    	Kind string `json:"kind,omitempty"`
    
    	// MaxImportSizes: A map of maximum import sizes by MIME type, in bytes.
    	MaxImportSizes map[string]string `json:"maxImportSizes,omitempty"`
    
    	// MaxUploadSize: The maximum upload size in bytes.
    	MaxUploadSize int64 `json:"maxUploadSize,omitempty,string"`
    
    	// StorageQuota: The user's storage quota limits and usage. All fields
    	// are measured in bytes.
    	StorageQuota *AboutStorageQuota `json:"storageQuota,omitempty"`
    
    	// TeamDriveThemes: Deprecated - use driveThemes instead.
    	TeamDriveThemes []*AboutTeamDriveThemes `json:"teamDriveThemes,omitempty"`
    
    	// User: The authenticated user.
    	User *User `json:"user,omitempty"`
    
    	// ServerResponse contains the HTTP response code and headers from the
    	// server.
    	googleapi.ServerResponse `json:"-"`
    
    	// ForceSendFields is a list of field names (e.g. "AppInstalled") to
    	// unconditionally include in API requests. By default, fields with
    	// empty values are omitted from API requests. However, any non-pointer,
    	// non-interface field appearing in ForceSendFields will be sent to the
    	// server regardless of whether the field is empty or not. This may be
    	// used to include empty fields in Patch requests.
    	ForceSendFields []string `json:"-"`
    
    	// NullFields is a list of field names (e.g. "AppInstalled") to include
    	// in API requests with the JSON null value. By default, fields with
    	// empty values are omitted from API requests. However, any field with
    	// an empty value appearing in NullFields will be sent to the server as
    	// null. It is an error if a field in this list has a non-empty value.
    	// This may be used to include null fields in Patch requests.
    	NullFields []string `json:"-"`
    }

      About: Information about the user, the user's Drive, and system capabilities.

      func (*About) MarshalJSON

      func (s *About) MarshalJSON() ([]byte, error)

      type AboutDriveThemes

      type AboutDriveThemes struct {
      	// BackgroundImageLink: A link to this theme's background image.
      	BackgroundImageLink string `json:"backgroundImageLink,omitempty"`
      
      	// ColorRgb: The color of this theme as an RGB hex string.
      	ColorRgb string `json:"colorRgb,omitempty"`
      
      	// Id: The ID of the theme.
      	Id string `json:"id,omitempty"`
      
      	// ForceSendFields is a list of field names (e.g. "BackgroundImageLink")
      	// to unconditionally include in API requests. By default, fields with
      	// empty values are omitted from API requests. However, any non-pointer,
      	// non-interface field appearing in ForceSendFields will be sent to the
      	// server regardless of whether the field is empty or not. This may be
      	// used to include empty fields in Patch requests.
      	ForceSendFields []string `json:"-"`
      
      	// NullFields is a list of field names (e.g. "BackgroundImageLink") to
      	// include in API requests with the JSON null value. By default, fields
      	// with empty values are omitted from API requests. However, any field
      	// with an empty value appearing in NullFields will be sent to the
      	// server as null. It is an error if a field in this list has a
      	// non-empty value. This may be used to include null fields in Patch
      	// requests.
      	NullFields []string `json:"-"`
      }

      func (*AboutDriveThemes) MarshalJSON

      func (s *AboutDriveThemes) MarshalJSON() ([]byte, error)

      type AboutGetCall

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

      func (*AboutGetCall) Context

      func (c *AboutGetCall) Context(ctx context.Context) *AboutGetCall

        Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

        func (*AboutGetCall) Do

        func (c *AboutGetCall) Do(opts ...googleapi.CallOption) (*About, error)

          Do executes the "drive.about.get" call. Exactly one of *About or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *About.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

          func (*AboutGetCall) Fields

          func (c *AboutGetCall) Fields(s ...googleapi.Field) *AboutGetCall

            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

            func (*AboutGetCall) Header

            func (c *AboutGetCall) Header() http.Header

              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

              func (*AboutGetCall) IfNoneMatch

              func (c *AboutGetCall) IfNoneMatch(entityTag string) *AboutGetCall

                IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                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 information about the user, the user's Drive, and system capabilities.

                  type AboutStorageQuota

                  type AboutStorageQuota struct {
                  	// Limit: The usage limit, if applicable. This will not be present if
                  	// the user has unlimited storage.
                  	Limit int64 `json:"limit,omitempty,string"`
                  
                  	// Usage: The total usage across all services.
                  	Usage int64 `json:"usage,omitempty,string"`
                  
                  	// UsageInDrive: The usage by all files in Google Drive.
                  	UsageInDrive int64 `json:"usageInDrive,omitempty,string"`
                  
                  	// UsageInDriveTrash: The usage by trashed files in Google Drive.
                  	UsageInDriveTrash int64 `json:"usageInDriveTrash,omitempty,string"`
                  
                  	// ForceSendFields is a list of field names (e.g. "Limit") to
                  	// unconditionally include in API requests. By default, fields with
                  	// empty values are omitted from API requests. However, any non-pointer,
                  	// non-interface field appearing in ForceSendFields will be sent to the
                  	// server regardless of whether the field is empty or not. This may be
                  	// used to include empty fields in Patch requests.
                  	ForceSendFields []string `json:"-"`
                  
                  	// NullFields is a list of field names (e.g. "Limit") to include in API
                  	// requests with the JSON null value. By default, fields with empty
                  	// values are omitted from API requests. However, any field with an
                  	// empty value appearing in NullFields will be sent to the server as
                  	// null. It is an error if a field in this list has a non-empty value.
                  	// This may be used to include null fields in Patch requests.
                  	NullFields []string `json:"-"`
                  }

                    AboutStorageQuota: The user's storage quota limits and usage. All fields are measured in bytes.

                    func (*AboutStorageQuota) MarshalJSON

                    func (s *AboutStorageQuota) MarshalJSON() ([]byte, error)

                    type AboutTeamDriveThemes

                    type AboutTeamDriveThemes struct {
                    	// BackgroundImageLink: Deprecated - use driveThemes/backgroundImageLink
                    	// instead.
                    	BackgroundImageLink string `json:"backgroundImageLink,omitempty"`
                    
                    	// ColorRgb: Deprecated - use driveThemes/colorRgb instead.
                    	ColorRgb string `json:"colorRgb,omitempty"`
                    
                    	// Id: Deprecated - use driveThemes/id instead.
                    	Id string `json:"id,omitempty"`
                    
                    	// ForceSendFields is a list of field names (e.g. "BackgroundImageLink")
                    	// to unconditionally include in API requests. By default, fields with
                    	// empty values are omitted from API requests. However, any non-pointer,
                    	// non-interface field appearing in ForceSendFields will be sent to the
                    	// server regardless of whether the field is empty or not. This may be
                    	// used to include empty fields in Patch requests.
                    	ForceSendFields []string `json:"-"`
                    
                    	// NullFields is a list of field names (e.g. "BackgroundImageLink") to
                    	// include in API requests with the JSON null value. By default, fields
                    	// with empty values are omitted from API requests. However, any field
                    	// with an empty value appearing in NullFields will be sent to the
                    	// server as null. It is an error if a field in this list has a
                    	// non-empty value. This may be used to include null fields in Patch
                    	// requests.
                    	NullFields []string `json:"-"`
                    }

                    func (*AboutTeamDriveThemes) MarshalJSON

                    func (s *AboutTeamDriveThemes) MarshalJSON() ([]byte, error)

                    type Change

                    type Change struct {
                    	// ChangeType: The type of the change. Possible values are file and
                    	// drive.
                    	ChangeType string `json:"changeType,omitempty"`
                    
                    	// Drive: The updated state of the shared drive. Present if the
                    	// changeType is drive, the user is still a member of the shared drive,
                    	// and the shared drive has not been deleted.
                    	Drive *Drive `json:"drive,omitempty"`
                    
                    	// DriveId: The ID of the shared drive associated with this change.
                    	DriveId string `json:"driveId,omitempty"`
                    
                    	// File: The updated state of the file. Present if the type is file and
                    	// the file has not been removed from this list of changes.
                    	File *File `json:"file,omitempty"`
                    
                    	// FileId: The ID of the file which has changed.
                    	FileId string `json:"fileId,omitempty"`
                    
                    	// Kind: Identifies what kind of resource this is. Value: the fixed
                    	// string "drive#change".
                    	Kind string `json:"kind,omitempty"`
                    
                    	// Removed: Whether the file or shared drive has been removed from this
                    	// list of changes, for example by deletion or loss of access.
                    	Removed bool `json:"removed,omitempty"`
                    
                    	// TeamDrive: Deprecated - use drive instead.
                    	TeamDrive *TeamDrive `json:"teamDrive,omitempty"`
                    
                    	// TeamDriveId: Deprecated - use driveId instead.
                    	TeamDriveId string `json:"teamDriveId,omitempty"`
                    
                    	// Time: The time of this change (RFC 3339 date-time).
                    	Time string `json:"time,omitempty"`
                    
                    	// Type: Deprecated - use changeType instead.
                    	Type string `json:"type,omitempty"`
                    
                    	// ForceSendFields is a list of field names (e.g. "ChangeType") to
                    	// unconditionally include in API requests. By default, fields with
                    	// empty values are omitted from API requests. However, any non-pointer,
                    	// non-interface field appearing in ForceSendFields will be sent to the
                    	// server regardless of whether the field is empty or not. This may be
                    	// used to include empty fields in Patch requests.
                    	ForceSendFields []string `json:"-"`
                    
                    	// NullFields is a list of field names (e.g. "ChangeType") to include in
                    	// API requests with the JSON null value. By default, fields with empty
                    	// values are omitted from API requests. However, any field with an
                    	// empty value appearing in NullFields will be sent to the server as
                    	// null. It is an error if a field in this list has a non-empty value.
                    	// This may be used to include null fields in Patch requests.
                    	NullFields []string `json:"-"`
                    }

                      Change: A change to a file or shared drive.

                      func (*Change) MarshalJSON

                      func (s *Change) MarshalJSON() ([]byte, error)

                      type ChangeList

                      type ChangeList struct {
                      	// Changes: The list of changes. If nextPageToken is populated, then
                      	// this list may be incomplete and an additional page of results should
                      	// be fetched.
                      	Changes []*Change `json:"changes,omitempty"`
                      
                      	// Kind: Identifies what kind of resource this is. Value: the fixed
                      	// string "drive#changeList".
                      	Kind string `json:"kind,omitempty"`
                      
                      	// NewStartPageToken: The starting page token for future changes. This
                      	// will be present only if the end of the current changes list has been
                      	// reached.
                      	NewStartPageToken string `json:"newStartPageToken,omitempty"`
                      
                      	// NextPageToken: The page token for the next page of changes. This will
                      	// be absent if the end of the changes list has been reached. If the
                      	// token is rejected for any reason, it should be discarded, and
                      	// pagination should be restarted from the first page of results.
                      	NextPageToken string `json:"nextPageToken,omitempty"`
                      
                      	// ServerResponse contains the HTTP response code and headers from the
                      	// server.
                      	googleapi.ServerResponse `json:"-"`
                      
                      	// ForceSendFields is a list of field names (e.g. "Changes") to
                      	// unconditionally include in API requests. By default, fields with
                      	// empty values are omitted from API requests. However, any non-pointer,
                      	// non-interface field appearing in ForceSendFields will be sent to the
                      	// server regardless of whether the field is empty or not. This may be
                      	// used to include empty fields in Patch requests.
                      	ForceSendFields []string `json:"-"`
                      
                      	// NullFields is a list of field names (e.g. "Changes") to include in
                      	// API requests with the JSON null value. By default, fields with empty
                      	// values are omitted from API requests. However, any field with an
                      	// empty value appearing in NullFields will be sent to the server as
                      	// null. It is an error if a field in this list has a non-empty value.
                      	// This may be used to include null fields in Patch requests.
                      	NullFields []string `json:"-"`
                      }

                        ChangeList: A list of changes for a user.

                        func (*ChangeList) MarshalJSON

                        func (s *ChangeList) MarshalJSON() ([]byte, error)

                        type ChangesGetStartPageTokenCall

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

                        func (*ChangesGetStartPageTokenCall) Context

                          Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                          func (*ChangesGetStartPageTokenCall) Do

                            Do executes the "drive.changes.getStartPageToken" call. Exactly one of *StartPageToken or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StartPageToken.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                            func (*ChangesGetStartPageTokenCall) DriveId

                              DriveId sets the optional parameter "driveId": The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned.

                              func (*ChangesGetStartPageTokenCall) Fields

                                Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                func (*ChangesGetStartPageTokenCall) Header

                                  Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                  func (*ChangesGetStartPageTokenCall) IfNoneMatch

                                    IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                    func (*ChangesGetStartPageTokenCall) SupportsAllDrives

                                    func (c *ChangesGetStartPageTokenCall) SupportsAllDrives(supportsAllDrives bool) *ChangesGetStartPageTokenCall

                                      SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                      func (*ChangesGetStartPageTokenCall) SupportsTeamDrives

                                      func (c *ChangesGetStartPageTokenCall) SupportsTeamDrives(supportsTeamDrives bool) *ChangesGetStartPageTokenCall

                                        SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                        func (*ChangesGetStartPageTokenCall) TeamDriveId

                                          TeamDriveId sets the optional parameter "teamDriveId": Deprecated use driveId instead.

                                          type ChangesListCall

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

                                          func (*ChangesListCall) Context

                                            Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                            func (*ChangesListCall) Do

                                              Do executes the "drive.changes.list" call. Exactly one of *ChangeList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ChangeList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                              func (*ChangesListCall) DriveId

                                              func (c *ChangesListCall) DriveId(driveId string) *ChangesListCall

                                                DriveId sets the optional parameter "driveId": The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.

                                                func (*ChangesListCall) Fields

                                                  Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                  func (*ChangesListCall) Header

                                                  func (c *ChangesListCall) Header() http.Header

                                                    Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                    func (*ChangesListCall) IfNoneMatch

                                                    func (c *ChangesListCall) IfNoneMatch(entityTag string) *ChangesListCall

                                                      IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                      func (*ChangesListCall) IncludeCorpusRemovals

                                                      func (c *ChangesListCall) IncludeCorpusRemovals(includeCorpusRemovals bool) *ChangesListCall

                                                        IncludeCorpusRemovals sets the optional parameter "includeCorpusRemovals": Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.

                                                        func (*ChangesListCall) IncludeItemsFromAllDrives

                                                        func (c *ChangesListCall) IncludeItemsFromAllDrives(includeItemsFromAllDrives bool) *ChangesListCall

                                                          IncludeItemsFromAllDrives sets the optional parameter "includeItemsFromAllDrives": Whether both My Drive and shared drive items should be included in results.

                                                          func (*ChangesListCall) IncludePermissionsForView

                                                          func (c *ChangesListCall) IncludePermissionsForView(includePermissionsForView string) *ChangesListCall

                                                            IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                            func (*ChangesListCall) IncludeRemoved

                                                            func (c *ChangesListCall) IncludeRemoved(includeRemoved bool) *ChangesListCall

                                                              IncludeRemoved sets the optional parameter "includeRemoved": Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.

                                                              func (*ChangesListCall) IncludeTeamDriveItems

                                                              func (c *ChangesListCall) IncludeTeamDriveItems(includeTeamDriveItems bool) *ChangesListCall

                                                                IncludeTeamDriveItems sets the optional parameter "includeTeamDriveItems": Deprecated use includeItemsFromAllDrives instead.

                                                                func (*ChangesListCall) PageSize

                                                                func (c *ChangesListCall) PageSize(pageSize int64) *ChangesListCall

                                                                  PageSize sets the optional parameter "pageSize": The maximum number of changes to return per page.

                                                                  func (*ChangesListCall) RestrictToMyDrive

                                                                  func (c *ChangesListCall) RestrictToMyDrive(restrictToMyDrive bool) *ChangesListCall

                                                                    RestrictToMyDrive sets the optional parameter "restrictToMyDrive": Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.

                                                                    func (*ChangesListCall) Spaces

                                                                    func (c *ChangesListCall) Spaces(spaces string) *ChangesListCall

                                                                      Spaces sets the optional parameter "spaces": A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.

                                                                      func (*ChangesListCall) SupportsAllDrives

                                                                      func (c *ChangesListCall) SupportsAllDrives(supportsAllDrives bool) *ChangesListCall

                                                                        SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                        func (*ChangesListCall) SupportsTeamDrives

                                                                        func (c *ChangesListCall) SupportsTeamDrives(supportsTeamDrives bool) *ChangesListCall

                                                                          SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                          func (*ChangesListCall) TeamDriveId

                                                                          func (c *ChangesListCall) TeamDriveId(teamDriveId string) *ChangesListCall

                                                                            TeamDriveId sets the optional parameter "teamDriveId": Deprecated use driveId instead.

                                                                            type ChangesService

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

                                                                            func NewChangesService

                                                                            func NewChangesService(s *Service) *ChangesService

                                                                            func (*ChangesService) GetStartPageToken

                                                                            func (r *ChangesService) GetStartPageToken() *ChangesGetStartPageTokenCall

                                                                              GetStartPageToken: Gets the starting pageToken for listing future changes.

                                                                              func (*ChangesService) List

                                                                              func (r *ChangesService) List(pageToken string) *ChangesListCall

                                                                                List: Lists the changes for a user or shared drive.

                                                                                - pageToken: The token for continuing a previous list request on the

                                                                                next page. This should be set to the value of 'nextPageToken' from
                                                                                the previous response or to the response from the getStartPageToken
                                                                                method.
                                                                                

                                                                                func (*ChangesService) Watch

                                                                                func (r *ChangesService) Watch(pageToken string, channel *Channel) *ChangesWatchCall

                                                                                  Watch: Subscribes to changes for a user.

                                                                                  - pageToken: The token for continuing a previous list request on the

                                                                                  next page. This should be set to the value of 'nextPageToken' from
                                                                                  the previous response or to the response from the getStartPageToken
                                                                                  method.
                                                                                  

                                                                                  type ChangesWatchCall

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

                                                                                  func (*ChangesWatchCall) Context

                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                    func (*ChangesWatchCall) Do

                                                                                    func (c *ChangesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)

                                                                                      Do executes the "drive.changes.watch" call. Exactly one of *Channel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Channel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                      func (*ChangesWatchCall) DriveId

                                                                                      func (c *ChangesWatchCall) DriveId(driveId string) *ChangesWatchCall

                                                                                        DriveId sets the optional parameter "driveId": The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.

                                                                                        func (*ChangesWatchCall) Fields

                                                                                          Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                          func (*ChangesWatchCall) Header

                                                                                          func (c *ChangesWatchCall) Header() http.Header

                                                                                            Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                            func (*ChangesWatchCall) IncludeCorpusRemovals

                                                                                            func (c *ChangesWatchCall) IncludeCorpusRemovals(includeCorpusRemovals bool) *ChangesWatchCall

                                                                                              IncludeCorpusRemovals sets the optional parameter "includeCorpusRemovals": Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.

                                                                                              func (*ChangesWatchCall) IncludeItemsFromAllDrives

                                                                                              func (c *ChangesWatchCall) IncludeItemsFromAllDrives(includeItemsFromAllDrives bool) *ChangesWatchCall

                                                                                                IncludeItemsFromAllDrives sets the optional parameter "includeItemsFromAllDrives": Whether both My Drive and shared drive items should be included in results.

                                                                                                func (*ChangesWatchCall) IncludePermissionsForView

                                                                                                func (c *ChangesWatchCall) IncludePermissionsForView(includePermissionsForView string) *ChangesWatchCall

                                                                                                  IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                  func (*ChangesWatchCall) IncludeRemoved

                                                                                                  func (c *ChangesWatchCall) IncludeRemoved(includeRemoved bool) *ChangesWatchCall

                                                                                                    IncludeRemoved sets the optional parameter "includeRemoved": Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.

                                                                                                    func (*ChangesWatchCall) IncludeTeamDriveItems

                                                                                                    func (c *ChangesWatchCall) IncludeTeamDriveItems(includeTeamDriveItems bool) *ChangesWatchCall

                                                                                                      IncludeTeamDriveItems sets the optional parameter "includeTeamDriveItems": Deprecated use includeItemsFromAllDrives instead.

                                                                                                      func (*ChangesWatchCall) PageSize

                                                                                                      func (c *ChangesWatchCall) PageSize(pageSize int64) *ChangesWatchCall

                                                                                                        PageSize sets the optional parameter "pageSize": The maximum number of changes to return per page.

                                                                                                        func (*ChangesWatchCall) RestrictToMyDrive

                                                                                                        func (c *ChangesWatchCall) RestrictToMyDrive(restrictToMyDrive bool) *ChangesWatchCall

                                                                                                          RestrictToMyDrive sets the optional parameter "restrictToMyDrive": Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.

                                                                                                          func (*ChangesWatchCall) Spaces

                                                                                                          func (c *ChangesWatchCall) Spaces(spaces string) *ChangesWatchCall

                                                                                                            Spaces sets the optional parameter "spaces": A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.

                                                                                                            func (*ChangesWatchCall) SupportsAllDrives

                                                                                                            func (c *ChangesWatchCall) SupportsAllDrives(supportsAllDrives bool) *ChangesWatchCall

                                                                                                              SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                              func (*ChangesWatchCall) SupportsTeamDrives

                                                                                                              func (c *ChangesWatchCall) SupportsTeamDrives(supportsTeamDrives bool) *ChangesWatchCall

                                                                                                                SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                func (*ChangesWatchCall) TeamDriveId

                                                                                                                func (c *ChangesWatchCall) TeamDriveId(teamDriveId string) *ChangesWatchCall

                                                                                                                  TeamDriveId sets the optional parameter "teamDriveId": Deprecated use driveId instead.

                                                                                                                  type Channel

                                                                                                                  type Channel struct {
                                                                                                                  	// Address: The address where notifications are delivered for this
                                                                                                                  	// channel.
                                                                                                                  	Address string `json:"address,omitempty"`
                                                                                                                  
                                                                                                                  	// Expiration: Date and time of notification channel expiration,
                                                                                                                  	// expressed as a Unix timestamp, in milliseconds. Optional.
                                                                                                                  	Expiration int64 `json:"expiration,omitempty,string"`
                                                                                                                  
                                                                                                                  	// Id: A UUID or similar unique string that identifies this channel.
                                                                                                                  	Id string `json:"id,omitempty"`
                                                                                                                  
                                                                                                                  	// Kind: Identifies this as a notification channel used to watch for
                                                                                                                  	// changes to a resource, which is "api#channel".
                                                                                                                  	Kind string `json:"kind,omitempty"`
                                                                                                                  
                                                                                                                  	// Params: Additional parameters controlling delivery channel behavior.
                                                                                                                  	// Optional.
                                                                                                                  	Params map[string]string `json:"params,omitempty"`
                                                                                                                  
                                                                                                                  	// Payload: A Boolean value to indicate whether payload is wanted.
                                                                                                                  	// Optional.
                                                                                                                  	Payload bool `json:"payload,omitempty"`
                                                                                                                  
                                                                                                                  	// ResourceId: An opaque ID that identifies the resource being watched
                                                                                                                  	// on this channel. Stable across different API versions.
                                                                                                                  	ResourceId string `json:"resourceId,omitempty"`
                                                                                                                  
                                                                                                                  	// ResourceUri: A version-specific identifier for the watched resource.
                                                                                                                  	ResourceUri string `json:"resourceUri,omitempty"`
                                                                                                                  
                                                                                                                  	// Token: An arbitrary string delivered to the target address with each
                                                                                                                  	// notification delivered over this channel. Optional.
                                                                                                                  	Token string `json:"token,omitempty"`
                                                                                                                  
                                                                                                                  	// Type: The type of delivery mechanism used for this channel. Valid
                                                                                                                  	// values are "web_hook" (or "webhook"). Both values refer to a channel
                                                                                                                  	// where Http requests are used to deliver messages.
                                                                                                                  	Type string `json:"type,omitempty"`
                                                                                                                  
                                                                                                                  	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                  	// server.
                                                                                                                  	googleapi.ServerResponse `json:"-"`
                                                                                                                  
                                                                                                                  	// ForceSendFields is a list of field names (e.g. "Address") to
                                                                                                                  	// unconditionally include in API requests. By default, fields with
                                                                                                                  	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                  	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                  	// server regardless of whether the field is empty or not. This may be
                                                                                                                  	// used to include empty fields in Patch requests.
                                                                                                                  	ForceSendFields []string `json:"-"`
                                                                                                                  
                                                                                                                  	// NullFields is a list of field names (e.g. "Address") to include in
                                                                                                                  	// API requests with the JSON null value. By default, fields with empty
                                                                                                                  	// values are omitted from API requests. However, any field with an
                                                                                                                  	// empty value appearing in NullFields will be sent to the server as
                                                                                                                  	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                  	// This may be used to include null fields in Patch requests.
                                                                                                                  	NullFields []string `json:"-"`
                                                                                                                  }

                                                                                                                    Channel: An notification channel used to watch for resource changes.

                                                                                                                    func (*Channel) MarshalJSON

                                                                                                                    func (s *Channel) MarshalJSON() ([]byte, error)

                                                                                                                    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: Stop watching resources through this channel

                                                                                                                      type ChannelsStopCall

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

                                                                                                                      func (*ChannelsStopCall) Context

                                                                                                                        Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                        func (*ChannelsStopCall) Do

                                                                                                                        func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error

                                                                                                                          Do executes the "drive.channels.stop" call.

                                                                                                                          func (*ChannelsStopCall) Fields

                                                                                                                            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                            func (*ChannelsStopCall) Header

                                                                                                                            func (c *ChannelsStopCall) Header() http.Header

                                                                                                                              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                              type Comment

                                                                                                                              type Comment struct {
                                                                                                                              	// Anchor: A region of the document represented as a JSON string. For
                                                                                                                              	// details on defining anchor properties, refer to  Add comments and
                                                                                                                              	// replies.
                                                                                                                              	Anchor string `json:"anchor,omitempty"`
                                                                                                                              
                                                                                                                              	// Author: The author of the comment. The author's email address and
                                                                                                                              	// permission ID will not be populated.
                                                                                                                              	Author *User `json:"author,omitempty"`
                                                                                                                              
                                                                                                                              	// Content: The plain text content of the comment. This field is used
                                                                                                                              	// for setting the content, while htmlContent should be displayed.
                                                                                                                              	Content string `json:"content,omitempty"`
                                                                                                                              
                                                                                                                              	// CreatedTime: The time at which the comment was created (RFC 3339
                                                                                                                              	// date-time).
                                                                                                                              	CreatedTime string `json:"createdTime,omitempty"`
                                                                                                                              
                                                                                                                              	// Deleted: Whether the comment has been deleted. A deleted comment has
                                                                                                                              	// no content.
                                                                                                                              	Deleted bool `json:"deleted,omitempty"`
                                                                                                                              
                                                                                                                              	// HtmlContent: The content of the comment with HTML formatting.
                                                                                                                              	HtmlContent string `json:"htmlContent,omitempty"`
                                                                                                                              
                                                                                                                              	// Id: The ID of the comment.
                                                                                                                              	Id string `json:"id,omitempty"`
                                                                                                                              
                                                                                                                              	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                              	// string "drive#comment".
                                                                                                                              	Kind string `json:"kind,omitempty"`
                                                                                                                              
                                                                                                                              	// ModifiedTime: The last time the comment or any of its replies was
                                                                                                                              	// modified (RFC 3339 date-time).
                                                                                                                              	ModifiedTime string `json:"modifiedTime,omitempty"`
                                                                                                                              
                                                                                                                              	// QuotedFileContent: The file content to which the comment refers,
                                                                                                                              	// typically within the anchor region. For a text file, for example,
                                                                                                                              	// this would be the text at the location of the comment.
                                                                                                                              	QuotedFileContent *CommentQuotedFileContent `json:"quotedFileContent,omitempty"`
                                                                                                                              
                                                                                                                              	// Replies: The full list of replies to the comment in chronological
                                                                                                                              	// order.
                                                                                                                              	Replies []*Reply `json:"replies,omitempty"`
                                                                                                                              
                                                                                                                              	// Resolved: Whether the comment has been resolved by one of its
                                                                                                                              	// replies.
                                                                                                                              	Resolved bool `json:"resolved,omitempty"`
                                                                                                                              
                                                                                                                              	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                              	// server.
                                                                                                                              	googleapi.ServerResponse `json:"-"`
                                                                                                                              
                                                                                                                              	// ForceSendFields is a list of field names (e.g. "Anchor") to
                                                                                                                              	// unconditionally include in API requests. By default, fields with
                                                                                                                              	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                              	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                              	// server regardless of whether the field is empty or not. This may be
                                                                                                                              	// used to include empty fields in Patch requests.
                                                                                                                              	ForceSendFields []string `json:"-"`
                                                                                                                              
                                                                                                                              	// NullFields is a list of field names (e.g. "Anchor") to include in API
                                                                                                                              	// requests with the JSON null value. By default, fields with empty
                                                                                                                              	// values are omitted from API requests. However, any field with an
                                                                                                                              	// empty value appearing in NullFields will be sent to the server as
                                                                                                                              	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                              	// This may be used to include null fields in Patch requests.
                                                                                                                              	NullFields []string `json:"-"`
                                                                                                                              }

                                                                                                                                Comment: A comment on a file.

                                                                                                                                func (*Comment) MarshalJSON

                                                                                                                                func (s *Comment) MarshalJSON() ([]byte, error)

                                                                                                                                type CommentList

                                                                                                                                type CommentList struct {
                                                                                                                                	// Comments: The list of comments. If nextPageToken is populated, then
                                                                                                                                	// this list may be incomplete and an additional page of results should
                                                                                                                                	// be fetched.
                                                                                                                                	Comments []*Comment `json:"comments,omitempty"`
                                                                                                                                
                                                                                                                                	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                	// string "drive#commentList".
                                                                                                                                	Kind string `json:"kind,omitempty"`
                                                                                                                                
                                                                                                                                	// NextPageToken: The page token for the next page of comments. This
                                                                                                                                	// will be absent if the end of the comments list has been reached. If
                                                                                                                                	// the token is rejected for any reason, it should be discarded, and
                                                                                                                                	// pagination should be restarted from the first page of results.
                                                                                                                                	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                
                                                                                                                                	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                	// server.
                                                                                                                                	googleapi.ServerResponse `json:"-"`
                                                                                                                                
                                                                                                                                	// ForceSendFields is a list of field names (e.g. "Comments") to
                                                                                                                                	// unconditionally include in API requests. By default, fields with
                                                                                                                                	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                	// server regardless of whether the field is empty or not. This may be
                                                                                                                                	// used to include empty fields in Patch requests.
                                                                                                                                	ForceSendFields []string `json:"-"`
                                                                                                                                
                                                                                                                                	// NullFields is a list of field names (e.g. "Comments") to include in
                                                                                                                                	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                	// values are omitted from API requests. However, any field with an
                                                                                                                                	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                	// This may be used to include null fields in Patch requests.
                                                                                                                                	NullFields []string `json:"-"`
                                                                                                                                }

                                                                                                                                  CommentList: A list of comments on a file.

                                                                                                                                  func (*CommentList) MarshalJSON

                                                                                                                                  func (s *CommentList) MarshalJSON() ([]byte, error)

                                                                                                                                  type CommentQuotedFileContent

                                                                                                                                  type CommentQuotedFileContent struct {
                                                                                                                                  	// MimeType: The MIME type of the quoted content.
                                                                                                                                  	MimeType string `json:"mimeType,omitempty"`
                                                                                                                                  
                                                                                                                                  	// Value: The quoted content itself. This is interpreted as plain text
                                                                                                                                  	// if set through the API.
                                                                                                                                  	Value string `json:"value,omitempty"`
                                                                                                                                  
                                                                                                                                  	// ForceSendFields is a list of field names (e.g. "MimeType") to
                                                                                                                                  	// unconditionally include in API requests. By default, fields with
                                                                                                                                  	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                  	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                  	// server regardless of whether the field is empty or not. This may be
                                                                                                                                  	// used to include empty fields in Patch requests.
                                                                                                                                  	ForceSendFields []string `json:"-"`
                                                                                                                                  
                                                                                                                                  	// NullFields is a list of field names (e.g. "MimeType") to include in
                                                                                                                                  	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                  	// values are omitted from API requests. However, any field with an
                                                                                                                                  	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                  	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                  	// This may be used to include null fields in Patch requests.
                                                                                                                                  	NullFields []string `json:"-"`
                                                                                                                                  }

                                                                                                                                    CommentQuotedFileContent: The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.

                                                                                                                                    func (*CommentQuotedFileContent) MarshalJSON

                                                                                                                                    func (s *CommentQuotedFileContent) MarshalJSON() ([]byte, error)

                                                                                                                                    type CommentsCreateCall

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

                                                                                                                                    func (*CommentsCreateCall) Context

                                                                                                                                      Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                      func (*CommentsCreateCall) Do

                                                                                                                                        Do executes the "drive.comments.create" call. Exactly one of *Comment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Comment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                        func (*CommentsCreateCall) Fields

                                                                                                                                          Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                          func (*CommentsCreateCall) Header

                                                                                                                                          func (c *CommentsCreateCall) Header() http.Header

                                                                                                                                            Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                            type CommentsDeleteCall

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

                                                                                                                                            func (*CommentsDeleteCall) Context

                                                                                                                                              Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                              func (*CommentsDeleteCall) Do

                                                                                                                                                Do executes the "drive.comments.delete" call.

                                                                                                                                                func (*CommentsDeleteCall) Fields

                                                                                                                                                  Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                  func (*CommentsDeleteCall) Header

                                                                                                                                                  func (c *CommentsDeleteCall) Header() http.Header

                                                                                                                                                    Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                    type CommentsGetCall

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

                                                                                                                                                    func (*CommentsGetCall) Context

                                                                                                                                                      Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                      func (*CommentsGetCall) Do

                                                                                                                                                      func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error)

                                                                                                                                                        Do executes the "drive.comments.get" call. Exactly one of *Comment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Comment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                        func (*CommentsGetCall) Fields

                                                                                                                                                          Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                          func (*CommentsGetCall) Header

                                                                                                                                                          func (c *CommentsGetCall) Header() http.Header

                                                                                                                                                            Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                            func (*CommentsGetCall) IfNoneMatch

                                                                                                                                                            func (c *CommentsGetCall) IfNoneMatch(entityTag string) *CommentsGetCall

                                                                                                                                                              IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                              func (*CommentsGetCall) IncludeDeleted

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

                                                                                                                                                                IncludeDeleted sets the optional parameter "includeDeleted": Whether to return deleted comments. Deleted comments will not include their original content.

                                                                                                                                                                type CommentsListCall

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

                                                                                                                                                                func (*CommentsListCall) Context

                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                  func (*CommentsListCall) Do

                                                                                                                                                                    Do executes the "drive.comments.list" call. Exactly one of *CommentList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CommentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                    func (*CommentsListCall) Fields

                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                      func (*CommentsListCall) Header

                                                                                                                                                                      func (c *CommentsListCall) Header() http.Header

                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                        func (*CommentsListCall) IfNoneMatch

                                                                                                                                                                        func (c *CommentsListCall) IfNoneMatch(entityTag string) *CommentsListCall

                                                                                                                                                                          IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                          func (*CommentsListCall) IncludeDeleted

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

                                                                                                                                                                            IncludeDeleted sets the optional parameter "includeDeleted": Whether to include deleted comments. Deleted comments will not include their original content.

                                                                                                                                                                            func (*CommentsListCall) PageSize

                                                                                                                                                                            func (c *CommentsListCall) PageSize(pageSize int64) *CommentsListCall

                                                                                                                                                                              PageSize sets the optional parameter "pageSize": The maximum number of comments to return per page.

                                                                                                                                                                              func (*CommentsListCall) PageToken

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

                                                                                                                                                                                PageToken sets the optional parameter "pageToken": The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

                                                                                                                                                                                func (*CommentsListCall) Pages

                                                                                                                                                                                func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentList) error) error

                                                                                                                                                                                  Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

                                                                                                                                                                                  func (*CommentsListCall) StartModifiedTime

                                                                                                                                                                                  func (c *CommentsListCall) StartModifiedTime(startModifiedTime string) *CommentsListCall

                                                                                                                                                                                    StartModifiedTime sets the optional parameter "startModifiedTime": The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).

                                                                                                                                                                                    type CommentsService

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

                                                                                                                                                                                    func NewCommentsService

                                                                                                                                                                                    func NewCommentsService(s *Service) *CommentsService

                                                                                                                                                                                    func (*CommentsService) Create

                                                                                                                                                                                    func (r *CommentsService) Create(fileId string, comment *Comment) *CommentsCreateCall

                                                                                                                                                                                      Create: Creates a new comment on a file.

                                                                                                                                                                                      - fileId: The ID of the file.

                                                                                                                                                                                      func (*CommentsService) Delete

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

                                                                                                                                                                                        Delete: Deletes a comment.

                                                                                                                                                                                        - commentId: The ID of the comment. - fileId: The ID of the file.

                                                                                                                                                                                        func (*CommentsService) Get

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

                                                                                                                                                                                          Get: Gets a comment by ID.

                                                                                                                                                                                          - commentId: The ID of the comment. - fileId: The ID of the file.

                                                                                                                                                                                          func (*CommentsService) List

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

                                                                                                                                                                                            List: Lists a file's comments.

                                                                                                                                                                                            - fileId: The ID of the file.

                                                                                                                                                                                            func (*CommentsService) Update

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

                                                                                                                                                                                              Update: Updates a comment with patch semantics.

                                                                                                                                                                                              - commentId: The ID of the comment. - fileId: The ID of the file.

                                                                                                                                                                                              type CommentsUpdateCall

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

                                                                                                                                                                                              func (*CommentsUpdateCall) Context

                                                                                                                                                                                                Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                func (*CommentsUpdateCall) Do

                                                                                                                                                                                                  Do executes the "drive.comments.update" call. Exactly one of *Comment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Comment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                  func (*CommentsUpdateCall) Fields

                                                                                                                                                                                                    Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                    func (*CommentsUpdateCall) Header

                                                                                                                                                                                                    func (c *CommentsUpdateCall) Header() http.Header

                                                                                                                                                                                                      Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                      type ContentRestriction

                                                                                                                                                                                                      type ContentRestriction struct {
                                                                                                                                                                                                      	// ReadOnly: Whether the content of the file is read-only. If a file is
                                                                                                                                                                                                      	// read-only, a new revision of the file may not be added, comments may
                                                                                                                                                                                                      	// not be added or modified, and the title of the file may not be
                                                                                                                                                                                                      	// modified.
                                                                                                                                                                                                      	ReadOnly bool `json:"readOnly,omitempty"`
                                                                                                                                                                                                      
                                                                                                                                                                                                      	// Reason: Reason for why the content of the file is restricted. This is
                                                                                                                                                                                                      	// only mutable on requests that also set readOnly=true.
                                                                                                                                                                                                      	Reason string `json:"reason,omitempty"`
                                                                                                                                                                                                      
                                                                                                                                                                                                      	// RestrictingUser: The user who set the content restriction. Only
                                                                                                                                                                                                      	// populated if readOnly is true.
                                                                                                                                                                                                      	RestrictingUser *User `json:"restrictingUser,omitempty"`
                                                                                                                                                                                                      
                                                                                                                                                                                                      	// RestrictionTime: The time at which the content restriction was set
                                                                                                                                                                                                      	// (formatted RFC 3339 timestamp). Only populated if readOnly is true.
                                                                                                                                                                                                      	RestrictionTime string `json:"restrictionTime,omitempty"`
                                                                                                                                                                                                      
                                                                                                                                                                                                      	// Type: The type of the content restriction. Currently the only
                                                                                                                                                                                                      	// possible value is globalContentRestriction.
                                                                                                                                                                                                      	Type string `json:"type,omitempty"`
                                                                                                                                                                                                      
                                                                                                                                                                                                      	// ForceSendFields is a list of field names (e.g. "ReadOnly") to
                                                                                                                                                                                                      	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                      	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                      	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                      	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                      	// used to include empty fields in Patch requests.
                                                                                                                                                                                                      	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                      
                                                                                                                                                                                                      	// NullFields is a list of field names (e.g. "ReadOnly") to include in
                                                                                                                                                                                                      	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                      	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                      	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                      	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                      	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                      	NullFields []string `json:"-"`
                                                                                                                                                                                                      }

                                                                                                                                                                                                        ContentRestriction: A restriction for accessing the content of the file.

                                                                                                                                                                                                        func (*ContentRestriction) MarshalJSON

                                                                                                                                                                                                        func (s *ContentRestriction) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                        type Drive

                                                                                                                                                                                                        type Drive struct {
                                                                                                                                                                                                        	// BackgroundImageFile: An image file and cropping parameters from which
                                                                                                                                                                                                        	// a background image for this shared drive is set. This is a write only
                                                                                                                                                                                                        	// field; it can only be set on drive.drives.update requests that don't
                                                                                                                                                                                                        	// set themeId. When specified, all fields of the backgroundImageFile
                                                                                                                                                                                                        	// must be set.
                                                                                                                                                                                                        	BackgroundImageFile *DriveBackgroundImageFile `json:"backgroundImageFile,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// BackgroundImageLink: A short-lived link to this shared drive's
                                                                                                                                                                                                        	// background image.
                                                                                                                                                                                                        	BackgroundImageLink string `json:"backgroundImageLink,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// Capabilities: Capabilities the current user has on this shared drive.
                                                                                                                                                                                                        	Capabilities *DriveCapabilities `json:"capabilities,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// ColorRgb: The color of this shared drive as an RGB hex string. It can
                                                                                                                                                                                                        	// only be set on a drive.drives.update request that does not set
                                                                                                                                                                                                        	// themeId.
                                                                                                                                                                                                        	ColorRgb string `json:"colorRgb,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// CreatedTime: The time at which the shared drive was created (RFC 3339
                                                                                                                                                                                                        	// date-time).
                                                                                                                                                                                                        	CreatedTime string `json:"createdTime,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// Hidden: Whether the shared drive is hidden from default view.
                                                                                                                                                                                                        	Hidden bool `json:"hidden,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// Id: The ID of this shared drive which is also the ID of the top level
                                                                                                                                                                                                        	// folder of this shared drive.
                                                                                                                                                                                                        	Id string `json:"id,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                        	// string "drive#drive".
                                                                                                                                                                                                        	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// Name: The name of this shared drive.
                                                                                                                                                                                                        	Name string `json:"name,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// Restrictions: A set of restrictions that apply to this shared drive
                                                                                                                                                                                                        	// or items inside this shared drive.
                                                                                                                                                                                                        	Restrictions *DriveRestrictions `json:"restrictions,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// ThemeId: The ID of the theme from which the background image and
                                                                                                                                                                                                        	// color will be set. The set of possible driveThemes can be retrieved
                                                                                                                                                                                                        	// from a drive.about.get response. When not specified on a
                                                                                                                                                                                                        	// drive.drives.create request, a random theme is chosen from which the
                                                                                                                                                                                                        	// background image and color are set. This is a write-only field; it
                                                                                                                                                                                                        	// can only be set on requests that don't set colorRgb or
                                                                                                                                                                                                        	// backgroundImageFile.
                                                                                                                                                                                                        	ThemeId string `json:"themeId,omitempty"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                        	// server.
                                                                                                                                                                                                        	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// ForceSendFields is a list of field names (e.g. "BackgroundImageFile")
                                                                                                                                                                                                        	// to unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                        	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                        	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                        	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                        	// used to include empty fields in Patch requests.
                                                                                                                                                                                                        	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                        
                                                                                                                                                                                                        	// NullFields is a list of field names (e.g. "BackgroundImageFile") to
                                                                                                                                                                                                        	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                        	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                        	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                        	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                        	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                        	// requests.
                                                                                                                                                                                                        	NullFields []string `json:"-"`
                                                                                                                                                                                                        }

                                                                                                                                                                                                          Drive: Representation of a shared drive.

                                                                                                                                                                                                          func (*Drive) MarshalJSON

                                                                                                                                                                                                          func (s *Drive) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                          type DriveBackgroundImageFile

                                                                                                                                                                                                          type DriveBackgroundImageFile struct {
                                                                                                                                                                                                          	// Id: The ID of an image file in Google Drive to use for the background
                                                                                                                                                                                                          	// image.
                                                                                                                                                                                                          	Id string `json:"id,omitempty"`
                                                                                                                                                                                                          
                                                                                                                                                                                                          	// Width: The width of the cropped image in the closed range of 0 to 1.
                                                                                                                                                                                                          	// This value represents the width of the cropped image divided by the
                                                                                                                                                                                                          	// width of the entire image. The height is computed by applying a width
                                                                                                                                                                                                          	// to height aspect ratio of 80 to 9. The resulting image must be at
                                                                                                                                                                                                          	// least 1280 pixels wide and 144 pixels high.
                                                                                                                                                                                                          	Width float64 `json:"width,omitempty"`
                                                                                                                                                                                                          
                                                                                                                                                                                                          	// XCoordinate: The X coordinate of the upper left corner of the
                                                                                                                                                                                                          	// cropping area in the background image. This is a value in the closed
                                                                                                                                                                                                          	// range of 0 to 1. This value represents the horizontal distance from
                                                                                                                                                                                                          	// the left side of the entire image to the left side of the cropping
                                                                                                                                                                                                          	// area divided by the width of the entire image.
                                                                                                                                                                                                          	XCoordinate float64 `json:"xCoordinate,omitempty"`
                                                                                                                                                                                                          
                                                                                                                                                                                                          	// YCoordinate: The Y coordinate of the upper left corner of the
                                                                                                                                                                                                          	// cropping area in the background image. This is a value in the closed
                                                                                                                                                                                                          	// range of 0 to 1. This value represents the vertical distance from the
                                                                                                                                                                                                          	// top side of the entire image to the top side of the cropping area
                                                                                                                                                                                                          	// divided by the height of the entire image.
                                                                                                                                                                                                          	YCoordinate float64 `json:"yCoordinate,omitempty"`
                                                                                                                                                                                                          
                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "Id") to
                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                          
                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "Id") to include in API
                                                                                                                                                                                                          	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                          	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                          	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                          	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                          	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                          }

                                                                                                                                                                                                            DriveBackgroundImageFile: An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.

                                                                                                                                                                                                            func (*DriveBackgroundImageFile) MarshalJSON

                                                                                                                                                                                                            func (s *DriveBackgroundImageFile) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                            func (*DriveBackgroundImageFile) UnmarshalJSON

                                                                                                                                                                                                            func (s *DriveBackgroundImageFile) UnmarshalJSON(data []byte) error

                                                                                                                                                                                                            type DriveCapabilities

                                                                                                                                                                                                            type DriveCapabilities struct {
                                                                                                                                                                                                            	// CanAddChildren: Whether the current user can add children to folders
                                                                                                                                                                                                            	// in this shared drive.
                                                                                                                                                                                                            	CanAddChildren bool `json:"canAddChildren,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanChangeCopyRequiresWriterPermissionRestriction: Whether the current
                                                                                                                                                                                                            	// user can change the copyRequiresWriterPermission restriction of this
                                                                                                                                                                                                            	// shared drive.
                                                                                                                                                                                                            	CanChangeCopyRequiresWriterPermissionRestriction bool `json:"canChangeCopyRequiresWriterPermissionRestriction,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanChangeDomainUsersOnlyRestriction: Whether the current user can
                                                                                                                                                                                                            	// change the domainUsersOnly restriction of this shared drive.
                                                                                                                                                                                                            	CanChangeDomainUsersOnlyRestriction bool `json:"canChangeDomainUsersOnlyRestriction,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanChangeDriveBackground: Whether the current user can change the
                                                                                                                                                                                                            	// background of this shared drive.
                                                                                                                                                                                                            	CanChangeDriveBackground bool `json:"canChangeDriveBackground,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanChangeDriveMembersOnlyRestriction: Whether the current user can
                                                                                                                                                                                                            	// change the driveMembersOnly restriction of this shared drive.
                                                                                                                                                                                                            	CanChangeDriveMembersOnlyRestriction bool `json:"canChangeDriveMembersOnlyRestriction,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanComment: Whether the current user can comment on files in this
                                                                                                                                                                                                            	// shared drive.
                                                                                                                                                                                                            	CanComment bool `json:"canComment,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanCopy: Whether the current user can copy files in this shared
                                                                                                                                                                                                            	// drive.
                                                                                                                                                                                                            	CanCopy bool `json:"canCopy,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanDeleteChildren: Whether the current user can delete children from
                                                                                                                                                                                                            	// folders in this shared drive.
                                                                                                                                                                                                            	CanDeleteChildren bool `json:"canDeleteChildren,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanDeleteDrive: Whether the current user can delete this shared
                                                                                                                                                                                                            	// drive. Attempting to delete the shared drive may still fail if there
                                                                                                                                                                                                            	// are untrashed items inside the shared drive.
                                                                                                                                                                                                            	CanDeleteDrive bool `json:"canDeleteDrive,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanDownload: Whether the current user can download files in this
                                                                                                                                                                                                            	// shared drive.
                                                                                                                                                                                                            	CanDownload bool `json:"canDownload,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanEdit: Whether the current user can edit files in this shared drive
                                                                                                                                                                                                            	CanEdit bool `json:"canEdit,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanListChildren: Whether the current user can list the children of
                                                                                                                                                                                                            	// folders in this shared drive.
                                                                                                                                                                                                            	CanListChildren bool `json:"canListChildren,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanManageMembers: Whether the current user can add members to this
                                                                                                                                                                                                            	// shared drive or remove them or change their role.
                                                                                                                                                                                                            	CanManageMembers bool `json:"canManageMembers,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanReadRevisions: Whether the current user can read the revisions
                                                                                                                                                                                                            	// resource of files in this shared drive.
                                                                                                                                                                                                            	CanReadRevisions bool `json:"canReadRevisions,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanRename: Whether the current user can rename files or folders in
                                                                                                                                                                                                            	// this shared drive.
                                                                                                                                                                                                            	CanRename bool `json:"canRename,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanRenameDrive: Whether the current user can rename this shared
                                                                                                                                                                                                            	// drive.
                                                                                                                                                                                                            	CanRenameDrive bool `json:"canRenameDrive,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanShare: Whether the current user can share files or folders in this
                                                                                                                                                                                                            	// shared drive.
                                                                                                                                                                                                            	CanShare bool `json:"canShare,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// CanTrashChildren: Whether the current user can trash children from
                                                                                                                                                                                                            	// folders in this shared drive.
                                                                                                                                                                                                            	CanTrashChildren bool `json:"canTrashChildren,omitempty"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// ForceSendFields is a list of field names (e.g. "CanAddChildren") to
                                                                                                                                                                                                            	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                            	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                            	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                            	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                            	// used to include empty fields in Patch requests.
                                                                                                                                                                                                            	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                            
                                                                                                                                                                                                            	// NullFields is a list of field names (e.g. "CanAddChildren") to
                                                                                                                                                                                                            	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                            	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                            	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                            	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                            	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                            	// requests.
                                                                                                                                                                                                            	NullFields []string `json:"-"`
                                                                                                                                                                                                            }

                                                                                                                                                                                                              DriveCapabilities: Capabilities the current user has on this shared drive.

                                                                                                                                                                                                              func (*DriveCapabilities) MarshalJSON

                                                                                                                                                                                                              func (s *DriveCapabilities) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                              type DriveList

                                                                                                                                                                                                              type DriveList struct {
                                                                                                                                                                                                              	// Drives: The list of shared drives. If nextPageToken is populated,
                                                                                                                                                                                                              	// then this list may be incomplete and an additional page of results
                                                                                                                                                                                                              	// should be fetched.
                                                                                                                                                                                                              	Drives []*Drive `json:"drives,omitempty"`
                                                                                                                                                                                                              
                                                                                                                                                                                                              	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                              	// string "drive#driveList".
                                                                                                                                                                                                              	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                              
                                                                                                                                                                                                              	// NextPageToken: The page token for the next page of shared drives.
                                                                                                                                                                                                              	// This will be absent if the end of the list has been reached. If the
                                                                                                                                                                                                              	// token is rejected for any reason, it should be discarded, and
                                                                                                                                                                                                              	// pagination should be restarted from the first page of results.
                                                                                                                                                                                                              	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                                                                                              
                                                                                                                                                                                                              	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                              	// server.
                                                                                                                                                                                                              	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                              
                                                                                                                                                                                                              	// ForceSendFields is a list of field names (e.g. "Drives") to
                                                                                                                                                                                                              	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                              	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                              	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                              	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                              	// used to include empty fields in Patch requests.
                                                                                                                                                                                                              	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                              
                                                                                                                                                                                                              	// NullFields is a list of field names (e.g. "Drives") to include in API
                                                                                                                                                                                                              	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                              	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                              	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                              	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                              	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                              	NullFields []string `json:"-"`
                                                                                                                                                                                                              }

                                                                                                                                                                                                                DriveList: A list of shared drives.

                                                                                                                                                                                                                func (*DriveList) MarshalJSON

                                                                                                                                                                                                                func (s *DriveList) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                type DriveRestrictions

                                                                                                                                                                                                                type DriveRestrictions struct {
                                                                                                                                                                                                                	// AdminManagedRestrictions: Whether administrative privileges on this
                                                                                                                                                                                                                	// shared drive are required to modify restrictions.
                                                                                                                                                                                                                	AdminManagedRestrictions bool `json:"adminManagedRestrictions,omitempty"`
                                                                                                                                                                                                                
                                                                                                                                                                                                                	// CopyRequiresWriterPermission: Whether the options to copy, print, or
                                                                                                                                                                                                                	// download files inside this shared drive, should be disabled for
                                                                                                                                                                                                                	// readers and commenters. When this restriction is set to true, it will
                                                                                                                                                                                                                	// override the similarly named field to true for any file inside this
                                                                                                                                                                                                                	// shared drive.
                                                                                                                                                                                                                	CopyRequiresWriterPermission bool `json:"copyRequiresWriterPermission,omitempty"`
                                                                                                                                                                                                                
                                                                                                                                                                                                                	// DomainUsersOnly: Whether access to this shared drive and items inside
                                                                                                                                                                                                                	// this shared drive is restricted to users of the domain to which this
                                                                                                                                                                                                                	// shared drive belongs. This restriction may be overridden by other
                                                                                                                                                                                                                	// sharing policies controlled outside of this shared drive.
                                                                                                                                                                                                                	DomainUsersOnly bool `json:"domainUsersOnly,omitempty"`
                                                                                                                                                                                                                
                                                                                                                                                                                                                	// DriveMembersOnly: Whether access to items inside this shared drive is
                                                                                                                                                                                                                	// restricted to its members.
                                                                                                                                                                                                                	DriveMembersOnly bool `json:"driveMembersOnly,omitempty"`
                                                                                                                                                                                                                
                                                                                                                                                                                                                	// ForceSendFields is a list of field names (e.g.
                                                                                                                                                                                                                	// "AdminManagedRestrictions") to unconditionally include in API
                                                                                                                                                                                                                	// requests. By default, fields with empty values are omitted from API
                                                                                                                                                                                                                	// requests. However, any non-pointer, non-interface field appearing in
                                                                                                                                                                                                                	// ForceSendFields will be sent to the server regardless of whether the
                                                                                                                                                                                                                	// field is empty or not. This may be used to include empty fields in
                                                                                                                                                                                                                	// Patch requests.
                                                                                                                                                                                                                	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                
                                                                                                                                                                                                                	// NullFields is a list of field names (e.g. "AdminManagedRestrictions")
                                                                                                                                                                                                                	// to include in API requests with the JSON null value. By default,
                                                                                                                                                                                                                	// fields with empty values are omitted from API requests. However, any
                                                                                                                                                                                                                	// field with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                	// requests.
                                                                                                                                                                                                                	NullFields []string `json:"-"`
                                                                                                                                                                                                                }

                                                                                                                                                                                                                  DriveRestrictions: A set of restrictions that apply to this shared drive or items inside this shared drive.

                                                                                                                                                                                                                  func (*DriveRestrictions) MarshalJSON

                                                                                                                                                                                                                  func (s *DriveRestrictions) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                  type DrivesCreateCall

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

                                                                                                                                                                                                                  func (*DrivesCreateCall) Context

                                                                                                                                                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                    func (*DrivesCreateCall) Do

                                                                                                                                                                                                                    func (c *DrivesCreateCall) Do(opts ...googleapi.CallOption) (*Drive, error)

                                                                                                                                                                                                                      Do executes the "drive.drives.create" call. Exactly one of *Drive or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Drive.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                      func (*DrivesCreateCall) Fields

                                                                                                                                                                                                                        Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                        func (*DrivesCreateCall) Header

                                                                                                                                                                                                                        func (c *DrivesCreateCall) Header() http.Header

                                                                                                                                                                                                                          Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                          type DrivesDeleteCall

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

                                                                                                                                                                                                                          func (*DrivesDeleteCall) Context

                                                                                                                                                                                                                            Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                            func (*DrivesDeleteCall) Do

                                                                                                                                                                                                                            func (c *DrivesDeleteCall) Do(opts ...googleapi.CallOption) error

                                                                                                                                                                                                                              Do executes the "drive.drives.delete" call.

                                                                                                                                                                                                                              func (*DrivesDeleteCall) Fields

                                                                                                                                                                                                                                Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                func (*DrivesDeleteCall) Header

                                                                                                                                                                                                                                func (c *DrivesDeleteCall) Header() http.Header

                                                                                                                                                                                                                                  Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                  type DrivesGetCall

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

                                                                                                                                                                                                                                  func (*DrivesGetCall) Context

                                                                                                                                                                                                                                  func (c *DrivesGetCall) Context(ctx context.Context) *DrivesGetCall

                                                                                                                                                                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                    func (*DrivesGetCall) Do

                                                                                                                                                                                                                                    func (c *DrivesGetCall) Do(opts ...googleapi.CallOption) (*Drive, error)

                                                                                                                                                                                                                                      Do executes the "drive.drives.get" call. Exactly one of *Drive or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Drive.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                      func (*DrivesGetCall) Fields

                                                                                                                                                                                                                                      func (c *DrivesGetCall) Fields(s ...googleapi.Field) *DrivesGetCall

                                                                                                                                                                                                                                        Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                        func (*DrivesGetCall) Header

                                                                                                                                                                                                                                        func (c *DrivesGetCall) Header() http.Header

                                                                                                                                                                                                                                          Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                          func (*DrivesGetCall) IfNoneMatch

                                                                                                                                                                                                                                          func (c *DrivesGetCall) IfNoneMatch(entityTag string) *DrivesGetCall

                                                                                                                                                                                                                                            IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                            func (*DrivesGetCall) UseDomainAdminAccess

                                                                                                                                                                                                                                            func (c *DrivesGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *DrivesGetCall

                                                                                                                                                                                                                                              UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                              type DrivesHideCall

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

                                                                                                                                                                                                                                              func (*DrivesHideCall) Context

                                                                                                                                                                                                                                              func (c *DrivesHideCall) Context(ctx context.Context) *DrivesHideCall

                                                                                                                                                                                                                                                Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                func (*DrivesHideCall) Do

                                                                                                                                                                                                                                                func (c *DrivesHideCall) Do(opts ...googleapi.CallOption) (*Drive, error)

                                                                                                                                                                                                                                                  Do executes the "drive.drives.hide" call. Exactly one of *Drive or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Drive.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                  func (*DrivesHideCall) Fields

                                                                                                                                                                                                                                                  func (c *DrivesHideCall) Fields(s ...googleapi.Field) *DrivesHideCall

                                                                                                                                                                                                                                                    Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                    func (*DrivesHideCall) Header

                                                                                                                                                                                                                                                    func (c *DrivesHideCall) Header() http.Header

                                                                                                                                                                                                                                                      Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                      type DrivesListCall

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

                                                                                                                                                                                                                                                      func (*DrivesListCall) Context

                                                                                                                                                                                                                                                      func (c *DrivesListCall) Context(ctx context.Context) *DrivesListCall

                                                                                                                                                                                                                                                        Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                        func (*DrivesListCall) Do

                                                                                                                                                                                                                                                        func (c *DrivesListCall) Do(opts ...googleapi.CallOption) (*DriveList, error)

                                                                                                                                                                                                                                                          Do executes the "drive.drives.list" call. Exactly one of *DriveList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DriveList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                          func (*DrivesListCall) Fields

                                                                                                                                                                                                                                                          func (c *DrivesListCall) Fields(s ...googleapi.Field) *DrivesListCall

                                                                                                                                                                                                                                                            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                            func (*DrivesListCall) Header

                                                                                                                                                                                                                                                            func (c *DrivesListCall) Header() http.Header

                                                                                                                                                                                                                                                              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                              func (*DrivesListCall) IfNoneMatch

                                                                                                                                                                                                                                                              func (c *DrivesListCall) IfNoneMatch(entityTag string) *DrivesListCall

                                                                                                                                                                                                                                                                IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                func (*DrivesListCall) PageSize

                                                                                                                                                                                                                                                                func (c *DrivesListCall) PageSize(pageSize int64) *DrivesListCall

                                                                                                                                                                                                                                                                  PageSize sets the optional parameter "pageSize": Maximum number of shared drives to return.

                                                                                                                                                                                                                                                                  func (*DrivesListCall) PageToken

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

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

                                                                                                                                                                                                                                                                    func (*DrivesListCall) Pages

                                                                                                                                                                                                                                                                    func (c *DrivesListCall) Pages(ctx context.Context, f func(*DriveList) error) error

                                                                                                                                                                                                                                                                      Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

                                                                                                                                                                                                                                                                      func (*DrivesListCall) Q

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

                                                                                                                                                                                                                                                                        func (*DrivesListCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                        func (c *DrivesListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *DrivesListCall

                                                                                                                                                                                                                                                                          UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned.

                                                                                                                                                                                                                                                                          type DrivesService

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

                                                                                                                                                                                                                                                                          func NewDrivesService

                                                                                                                                                                                                                                                                          func NewDrivesService(s *Service) *DrivesService

                                                                                                                                                                                                                                                                          func (*DrivesService) Create

                                                                                                                                                                                                                                                                          func (r *DrivesService) Create(requestId string, drive *Drive) *DrivesCreateCall

                                                                                                                                                                                                                                                                            Create: Creates a new shared drive.

                                                                                                                                                                                                                                                                            - requestId: An ID, such as a random UUID, which uniquely identifies

                                                                                                                                                                                                                                                                            this user's request for idempotent creation of a shared drive. A
                                                                                                                                                                                                                                                                            repeated request by the same user and with the same request ID will
                                                                                                                                                                                                                                                                            avoid creating duplicates by attempting to create the same shared
                                                                                                                                                                                                                                                                            drive. If the shared drive already exists a 409 error will be
                                                                                                                                                                                                                                                                            returned.
                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                            func (*DrivesService) Delete

                                                                                                                                                                                                                                                                            func (r *DrivesService) Delete(driveId string) *DrivesDeleteCall

                                                                                                                                                                                                                                                                              Delete: Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.

                                                                                                                                                                                                                                                                              - driveId: The ID of the shared drive.

                                                                                                                                                                                                                                                                              func (*DrivesService) Get

                                                                                                                                                                                                                                                                              func (r *DrivesService) Get(driveId string) *DrivesGetCall

                                                                                                                                                                                                                                                                                Get: Gets a shared drive's metadata by ID.

                                                                                                                                                                                                                                                                                - driveId: The ID of the shared drive.

                                                                                                                                                                                                                                                                                func (*DrivesService) Hide

                                                                                                                                                                                                                                                                                func (r *DrivesService) Hide(driveId string) *DrivesHideCall

                                                                                                                                                                                                                                                                                  Hide: Hides a shared drive from the default view.

                                                                                                                                                                                                                                                                                  - driveId: The ID of the shared drive.

                                                                                                                                                                                                                                                                                  func (*DrivesService) List

                                                                                                                                                                                                                                                                                  func (r *DrivesService) List() *DrivesListCall

                                                                                                                                                                                                                                                                                    List: Lists the user's shared drives.

                                                                                                                                                                                                                                                                                    func (*DrivesService) Unhide

                                                                                                                                                                                                                                                                                    func (r *DrivesService) Unhide(driveId string) *DrivesUnhideCall

                                                                                                                                                                                                                                                                                      Unhide: Restores a shared drive to the default view.

                                                                                                                                                                                                                                                                                      - driveId: The ID of the shared drive.

                                                                                                                                                                                                                                                                                      func (*DrivesService) Update

                                                                                                                                                                                                                                                                                      func (r *DrivesService) Update(driveId string, drive *Drive) *DrivesUpdateCall

                                                                                                                                                                                                                                                                                        Update: Updates the metadate for a shared drive.

                                                                                                                                                                                                                                                                                        - driveId: The ID of the shared drive.

                                                                                                                                                                                                                                                                                        type DrivesUnhideCall

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

                                                                                                                                                                                                                                                                                        func (*DrivesUnhideCall) Context

                                                                                                                                                                                                                                                                                          Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                          func (*DrivesUnhideCall) Do

                                                                                                                                                                                                                                                                                          func (c *DrivesUnhideCall) Do(opts ...googleapi.CallOption) (*Drive, error)

                                                                                                                                                                                                                                                                                            Do executes the "drive.drives.unhide" call. Exactly one of *Drive or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Drive.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                            func (*DrivesUnhideCall) Fields

                                                                                                                                                                                                                                                                                              Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                              func (*DrivesUnhideCall) Header

                                                                                                                                                                                                                                                                                              func (c *DrivesUnhideCall) Header() http.Header

                                                                                                                                                                                                                                                                                                Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                type DrivesUpdateCall

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

                                                                                                                                                                                                                                                                                                func (*DrivesUpdateCall) Context

                                                                                                                                                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                  func (*DrivesUpdateCall) Do

                                                                                                                                                                                                                                                                                                  func (c *DrivesUpdateCall) Do(opts ...googleapi.CallOption) (*Drive, error)

                                                                                                                                                                                                                                                                                                    Do executes the "drive.drives.update" call. Exactly one of *Drive or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Drive.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                    func (*DrivesUpdateCall) Fields

                                                                                                                                                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                      func (*DrivesUpdateCall) Header

                                                                                                                                                                                                                                                                                                      func (c *DrivesUpdateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                        func (*DrivesUpdateCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                                                        func (c *DrivesUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *DrivesUpdateCall

                                                                                                                                                                                                                                                                                                          UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                                                                                          type File

                                                                                                                                                                                                                                                                                                          type File struct {
                                                                                                                                                                                                                                                                                                          	// AppProperties: A collection of arbitrary key-value pairs which are
                                                                                                                                                                                                                                                                                                          	// private to the requesting app.
                                                                                                                                                                                                                                                                                                          	// Entries with null values are cleared in update and copy requests.
                                                                                                                                                                                                                                                                                                          	// These properties can only be retrieved using an authenticated
                                                                                                                                                                                                                                                                                                          	// request. An authenticated request uses an access token obtained with
                                                                                                                                                                                                                                                                                                          	// a OAuth 2 client ID. You cannot use an API key to retrieve private
                                                                                                                                                                                                                                                                                                          	// properties.
                                                                                                                                                                                                                                                                                                          	AppProperties map[string]string `json:"appProperties,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Capabilities: Capabilities the current user has on this file. Each
                                                                                                                                                                                                                                                                                                          	// capability corresponds to a fine-grained action that a user may take.
                                                                                                                                                                                                                                                                                                          	Capabilities *FileCapabilities `json:"capabilities,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ContentHints: Additional information about the content of the file.
                                                                                                                                                                                                                                                                                                          	// These fields are never populated in responses.
                                                                                                                                                                                                                                                                                                          	ContentHints *FileContentHints `json:"contentHints,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ContentRestrictions: Restrictions for accessing the content of the
                                                                                                                                                                                                                                                                                                          	// file. Only populated if such a restriction exists.
                                                                                                                                                                                                                                                                                                          	ContentRestrictions []*ContentRestriction `json:"contentRestrictions,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// CopyRequiresWriterPermission: Whether the options to copy, print, or
                                                                                                                                                                                                                                                                                                          	// download this file, should be disabled for readers and commenters.
                                                                                                                                                                                                                                                                                                          	CopyRequiresWriterPermission bool `json:"copyRequiresWriterPermission,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// CreatedTime: The time at which the file was created (RFC 3339
                                                                                                                                                                                                                                                                                                          	// date-time).
                                                                                                                                                                                                                                                                                                          	CreatedTime string `json:"createdTime,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Description: A short description of the file.
                                                                                                                                                                                                                                                                                                          	Description string `json:"description,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// DriveId: ID of the shared drive the file resides in. Only populated
                                                                                                                                                                                                                                                                                                          	// for items in shared drives.
                                                                                                                                                                                                                                                                                                          	DriveId string `json:"driveId,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ExplicitlyTrashed: Whether the file has been explicitly trashed, as
                                                                                                                                                                                                                                                                                                          	// opposed to recursively trashed from a parent folder.
                                                                                                                                                                                                                                                                                                          	ExplicitlyTrashed bool `json:"explicitlyTrashed,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ExportLinks: Links for exporting Docs Editors files to specific
                                                                                                                                                                                                                                                                                                          	// formats.
                                                                                                                                                                                                                                                                                                          	ExportLinks map[string]string `json:"exportLinks,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// FileExtension: The final component of fullFileExtension. This is only
                                                                                                                                                                                                                                                                                                          	// available for files with binary content in Google Drive.
                                                                                                                                                                                                                                                                                                          	FileExtension string `json:"fileExtension,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// FolderColorRgb: The color for a folder as an RGB hex string. The
                                                                                                                                                                                                                                                                                                          	// supported colors are published in the folderColorPalette field of the
                                                                                                                                                                                                                                                                                                          	// About resource.
                                                                                                                                                                                                                                                                                                          	// If an unsupported color is specified, the closest color in the
                                                                                                                                                                                                                                                                                                          	// palette will be used instead.
                                                                                                                                                                                                                                                                                                          	FolderColorRgb string `json:"folderColorRgb,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// FullFileExtension: The full file extension extracted from the name
                                                                                                                                                                                                                                                                                                          	// field. May contain multiple concatenated extensions, such as
                                                                                                                                                                                                                                                                                                          	// "tar.gz". This is only available for files with binary content in
                                                                                                                                                                                                                                                                                                          	// Google Drive.
                                                                                                                                                                                                                                                                                                          	// This is automatically updated when the name field changes, however it
                                                                                                                                                                                                                                                                                                          	// is not cleared if the new name does not contain a valid extension.
                                                                                                                                                                                                                                                                                                          	FullFileExtension string `json:"fullFileExtension,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// HasAugmentedPermissions: Whether there are permissions directly on
                                                                                                                                                                                                                                                                                                          	// this file. This field is only populated for items in shared drives.
                                                                                                                                                                                                                                                                                                          	HasAugmentedPermissions bool `json:"hasAugmentedPermissions,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// HasThumbnail: Whether this file has a thumbnail. This does not
                                                                                                                                                                                                                                                                                                          	// indicate whether the requesting app has access to the thumbnail. To
                                                                                                                                                                                                                                                                                                          	// check access, look for the presence of the thumbnailLink field.
                                                                                                                                                                                                                                                                                                          	HasThumbnail bool `json:"hasThumbnail,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// HeadRevisionId: The ID of the file's head revision. This is currently
                                                                                                                                                                                                                                                                                                          	// only available for files with binary content in Google Drive.
                                                                                                                                                                                                                                                                                                          	HeadRevisionId string `json:"headRevisionId,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// IconLink: A static, unauthenticated link to the file's icon.
                                                                                                                                                                                                                                                                                                          	IconLink string `json:"iconLink,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Id: The ID of the file.
                                                                                                                                                                                                                                                                                                          	Id string `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ImageMediaMetadata: Additional metadata about image media, if
                                                                                                                                                                                                                                                                                                          	// available.
                                                                                                                                                                                                                                                                                                          	ImageMediaMetadata *FileImageMediaMetadata `json:"imageMediaMetadata,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// IsAppAuthorized: Whether the file was created or opened by the
                                                                                                                                                                                                                                                                                                          	// requesting app.
                                                                                                                                                                                                                                                                                                          	IsAppAuthorized bool `json:"isAppAuthorized,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                          	// string "drive#file".
                                                                                                                                                                                                                                                                                                          	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// LastModifyingUser: The last user to modify the file.
                                                                                                                                                                                                                                                                                                          	LastModifyingUser *User `json:"lastModifyingUser,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Md5Checksum: The MD5 checksum for the content of the file. This is
                                                                                                                                                                                                                                                                                                          	// only applicable to files with binary content in Google Drive.
                                                                                                                                                                                                                                                                                                          	Md5Checksum string `json:"md5Checksum,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// MimeType: The MIME type of the file.
                                                                                                                                                                                                                                                                                                          	// Google Drive will attempt to automatically detect an appropriate
                                                                                                                                                                                                                                                                                                          	// value from uploaded content if no value is provided. The value cannot
                                                                                                                                                                                                                                                                                                          	// be changed unless a new revision is uploaded.
                                                                                                                                                                                                                                                                                                          	// If a file is created with a Google Doc MIME type, the uploaded
                                                                                                                                                                                                                                                                                                          	// content will be imported if possible. The supported import formats
                                                                                                                                                                                                                                                                                                          	// are published in the About resource.
                                                                                                                                                                                                                                                                                                          	MimeType string `json:"mimeType,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ModifiedByMe: Whether the file has been modified by this user.
                                                                                                                                                                                                                                                                                                          	ModifiedByMe bool `json:"modifiedByMe,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ModifiedByMeTime: The last time the file was modified by the user
                                                                                                                                                                                                                                                                                                          	// (RFC 3339 date-time).
                                                                                                                                                                                                                                                                                                          	ModifiedByMeTime string `json:"modifiedByMeTime,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ModifiedTime: The last time the file was modified by anyone (RFC 3339
                                                                                                                                                                                                                                                                                                          	// date-time).
                                                                                                                                                                                                                                                                                                          	// Note that setting modifiedTime will also update modifiedByMeTime for
                                                                                                                                                                                                                                                                                                          	// the user.
                                                                                                                                                                                                                                                                                                          	ModifiedTime string `json:"modifiedTime,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Name: The name of the file. This is not necessarily unique within a
                                                                                                                                                                                                                                                                                                          	// folder. Note that for immutable items such as the top level folders
                                                                                                                                                                                                                                                                                                          	// of shared drives, My Drive root folder, and Application Data folder
                                                                                                                                                                                                                                                                                                          	// the name is constant.
                                                                                                                                                                                                                                                                                                          	Name string `json:"name,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// OriginalFilename: The original filename of the uploaded content if
                                                                                                                                                                                                                                                                                                          	// available, or else the original value of the name field. This is only
                                                                                                                                                                                                                                                                                                          	// available for files with binary content in Google Drive.
                                                                                                                                                                                                                                                                                                          	OriginalFilename string `json:"originalFilename,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// OwnedByMe: Whether the user owns the file. Not populated for items in
                                                                                                                                                                                                                                                                                                          	// shared drives.
                                                                                                                                                                                                                                                                                                          	OwnedByMe bool `json:"ownedByMe,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Owners: The owners of the file. Currently, only certain legacy files
                                                                                                                                                                                                                                                                                                          	// may have more than one owner. Not populated for items in shared
                                                                                                                                                                                                                                                                                                          	// drives.
                                                                                                                                                                                                                                                                                                          	Owners []*User `json:"owners,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Parents: The IDs of the parent folders which contain the file.
                                                                                                                                                                                                                                                                                                          	// If not specified as part of a create request, the file will be placed
                                                                                                                                                                                                                                                                                                          	// directly in the user's My Drive folder. If not specified as part of a
                                                                                                                                                                                                                                                                                                          	// copy request, the file will inherit any discoverable parents of the
                                                                                                                                                                                                                                                                                                          	// source file. Update requests must use the addParents and
                                                                                                                                                                                                                                                                                                          	// removeParents parameters to modify the parents list.
                                                                                                                                                                                                                                                                                                          	Parents []string `json:"parents,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// PermissionIds: List of permission IDs for users with access to this
                                                                                                                                                                                                                                                                                                          	// file.
                                                                                                                                                                                                                                                                                                          	PermissionIds []string `json:"permissionIds,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Permissions: The full list of permissions for the file. This is only
                                                                                                                                                                                                                                                                                                          	// available if the requesting user can share the file. Not populated
                                                                                                                                                                                                                                                                                                          	// for items in shared drives.
                                                                                                                                                                                                                                                                                                          	Permissions []*Permission `json:"permissions,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Properties: A collection of arbitrary key-value pairs which are
                                                                                                                                                                                                                                                                                                          	// visible to all apps.
                                                                                                                                                                                                                                                                                                          	// Entries with null values are cleared in update and copy requests.
                                                                                                                                                                                                                                                                                                          	Properties map[string]string `json:"properties,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// QuotaBytesUsed: The number of storage quota bytes used by the file.
                                                                                                                                                                                                                                                                                                          	// This includes the head revision as well as previous revisions with
                                                                                                                                                                                                                                                                                                          	// keepForever enabled.
                                                                                                                                                                                                                                                                                                          	QuotaBytesUsed int64 `json:"quotaBytesUsed,omitempty,string"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Shared: Whether the file has been shared. Not populated for items in
                                                                                                                                                                                                                                                                                                          	// shared drives.
                                                                                                                                                                                                                                                                                                          	Shared bool `json:"shared,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// SharedWithMeTime: The time at which the file was shared with the
                                                                                                                                                                                                                                                                                                          	// user, if applicable (RFC 3339 date-time).
                                                                                                                                                                                                                                                                                                          	SharedWithMeTime string `json:"sharedWithMeTime,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// SharingUser: The user who shared the file with the requesting user,
                                                                                                                                                                                                                                                                                                          	// if applicable.
                                                                                                                                                                                                                                                                                                          	SharingUser *User `json:"sharingUser,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ShortcutDetails: Shortcut file details. Only populated for shortcut
                                                                                                                                                                                                                                                                                                          	// files, which have the mimeType field set to
                                                                                                                                                                                                                                                                                                          	// application/vnd.google-apps.shortcut.
                                                                                                                                                                                                                                                                                                          	ShortcutDetails *FileShortcutDetails `json:"shortcutDetails,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Size: The size of the file's content in bytes. This is applicable to
                                                                                                                                                                                                                                                                                                          	// binary files in Google Drive and Google Docs files.
                                                                                                                                                                                                                                                                                                          	Size int64 `json:"size,omitempty,string"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Spaces: The list of spaces which contain the file. The currently
                                                                                                                                                                                                                                                                                                          	// supported values are 'drive', 'appDataFolder' and 'photos'.
                                                                                                                                                                                                                                                                                                          	Spaces []string `json:"spaces,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Starred: Whether the user has starred the file.
                                                                                                                                                                                                                                                                                                          	Starred bool `json:"starred,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// TeamDriveId: Deprecated - use driveId instead.
                                                                                                                                                                                                                                                                                                          	TeamDriveId string `json:"teamDriveId,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ThumbnailLink: A short-lived link to the file's thumbnail, if
                                                                                                                                                                                                                                                                                                          	// available. Typically lasts on the order of hours. Only populated when
                                                                                                                                                                                                                                                                                                          	// the requesting app can access the file's content. If the file isn't
                                                                                                                                                                                                                                                                                                          	// shared publicly, the URL returned in Files.thumbnailLink must be
                                                                                                                                                                                                                                                                                                          	// fetched using a credentialed request.
                                                                                                                                                                                                                                                                                                          	ThumbnailLink string `json:"thumbnailLink,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ThumbnailVersion: The thumbnail version for use in thumbnail cache
                                                                                                                                                                                                                                                                                                          	// invalidation.
                                                                                                                                                                                                                                                                                                          	ThumbnailVersion int64 `json:"thumbnailVersion,omitempty,string"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Trashed: Whether the file has been trashed, either explicitly or from
                                                                                                                                                                                                                                                                                                          	// a trashed parent folder. Only the owner may trash a file. The trashed
                                                                                                                                                                                                                                                                                                          	// item is excluded from all files.list responses returned for any user
                                                                                                                                                                                                                                                                                                          	// who does not own the file. However, all users with access to the file
                                                                                                                                                                                                                                                                                                          	// can see the trashed item metadata in an API response. All users with
                                                                                                                                                                                                                                                                                                          	// access can copy, download, export, and share the file.
                                                                                                                                                                                                                                                                                                          	Trashed bool `json:"trashed,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// TrashedTime: The time that the item was trashed (RFC 3339 date-time).
                                                                                                                                                                                                                                                                                                          	// Only populated for items in shared drives.
                                                                                                                                                                                                                                                                                                          	TrashedTime string `json:"trashedTime,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// TrashingUser: If the file has been explicitly trashed, the user who
                                                                                                                                                                                                                                                                                                          	// trashed it. Only populated for items in shared drives.
                                                                                                                                                                                                                                                                                                          	TrashingUser *User `json:"trashingUser,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// Version: A monotonically increasing version number for the file. This
                                                                                                                                                                                                                                                                                                          	// reflects every change made to the file on the server, even those not
                                                                                                                                                                                                                                                                                                          	// visible to the user.
                                                                                                                                                                                                                                                                                                          	Version int64 `json:"version,omitempty,string"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// VideoMediaMetadata: Additional metadata about video media. This may
                                                                                                                                                                                                                                                                                                          	// not be available immediately upon upload.
                                                                                                                                                                                                                                                                                                          	VideoMediaMetadata *FileVideoMediaMetadata `json:"videoMediaMetadata,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ViewedByMe: Whether the file has been viewed by this user.
                                                                                                                                                                                                                                                                                                          	ViewedByMe bool `json:"viewedByMe,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ViewedByMeTime: The last time the file was viewed by the user (RFC
                                                                                                                                                                                                                                                                                                          	// 3339 date-time).
                                                                                                                                                                                                                                                                                                          	ViewedByMeTime string `json:"viewedByMeTime,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ViewersCanCopyContent: Deprecated - use copyRequiresWriterPermission
                                                                                                                                                                                                                                                                                                          	// instead.
                                                                                                                                                                                                                                                                                                          	ViewersCanCopyContent bool `json:"viewersCanCopyContent,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// WebContentLink: A link for downloading the content of the file in a
                                                                                                                                                                                                                                                                                                          	// browser. This is only available for files with binary content in
                                                                                                                                                                                                                                                                                                          	// Google Drive.
                                                                                                                                                                                                                                                                                                          	WebContentLink string `json:"webContentLink,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// WebViewLink: A link for opening the file in a relevant Google editor
                                                                                                                                                                                                                                                                                                          	// or viewer in a browser.
                                                                                                                                                                                                                                                                                                          	WebViewLink string `json:"webViewLink,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// WritersCanShare: Whether users with only writer permission can modify
                                                                                                                                                                                                                                                                                                          	// the file's permissions. Not populated for items in shared drives.
                                                                                                                                                                                                                                                                                                          	WritersCanShare bool `json:"writersCanShare,omitempty"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                          	// server.
                                                                                                                                                                                                                                                                                                          	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "AppProperties") to
                                                                                                                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "AppProperties") to include
                                                                                                                                                                                                                                                                                                          	// in API requests with the JSON null value. By default, fields with
                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any field with
                                                                                                                                                                                                                                                                                                          	// an empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                          	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                          	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                            File: The metadata for a file.

                                                                                                                                                                                                                                                                                                            func (*File) MarshalJSON

                                                                                                                                                                                                                                                                                                            func (s *File) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                            type FileCapabilities

                                                                                                                                                                                                                                                                                                            type FileCapabilities struct {
                                                                                                                                                                                                                                                                                                            	// CanAddChildren: Whether the current user can add children to this
                                                                                                                                                                                                                                                                                                            	// folder. This is always false when the item is not a folder.
                                                                                                                                                                                                                                                                                                            	CanAddChildren bool `json:"canAddChildren,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanAddFolderFromAnotherDrive: Whether the current user can add a
                                                                                                                                                                                                                                                                                                            	// folder from another drive (different shared drive or My Drive) to
                                                                                                                                                                                                                                                                                                            	// this folder. This is false when the item is not a folder. Only
                                                                                                                                                                                                                                                                                                            	// populated for items in shared drives.
                                                                                                                                                                                                                                                                                                            	CanAddFolderFromAnotherDrive bool `json:"canAddFolderFromAnotherDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanAddMyDriveParent: Whether the current user can add a parent for
                                                                                                                                                                                                                                                                                                            	// the item without removing an existing parent in the same request. Not
                                                                                                                                                                                                                                                                                                            	// populated for shared drive files.
                                                                                                                                                                                                                                                                                                            	CanAddMyDriveParent bool `json:"canAddMyDriveParent,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanChangeCopyRequiresWriterPermission: Whether the current user can
                                                                                                                                                                                                                                                                                                            	// change the copyRequiresWriterPermission restriction of this file.
                                                                                                                                                                                                                                                                                                            	CanChangeCopyRequiresWriterPermission bool `json:"canChangeCopyRequiresWriterPermission,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanChangeViewersCanCopyContent: Deprecated
                                                                                                                                                                                                                                                                                                            	CanChangeViewersCanCopyContent bool `json:"canChangeViewersCanCopyContent,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanComment: Whether the current user can comment on this file.
                                                                                                                                                                                                                                                                                                            	CanComment bool `json:"canComment,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanCopy: Whether the current user can copy this file. For an item in
                                                                                                                                                                                                                                                                                                            	// a shared drive, whether the current user can copy non-folder
                                                                                                                                                                                                                                                                                                            	// descendants of this item, or this item itself if it is not a folder.
                                                                                                                                                                                                                                                                                                            	CanCopy bool `json:"canCopy,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanDelete: Whether the current user can delete this file.
                                                                                                                                                                                                                                                                                                            	CanDelete bool `json:"canDelete,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanDeleteChildren: Whether the current user can delete children of
                                                                                                                                                                                                                                                                                                            	// this folder. This is false when the item is not a folder. Only
                                                                                                                                                                                                                                                                                                            	// populated for items in shared drives.
                                                                                                                                                                                                                                                                                                            	CanDeleteChildren bool `json:"canDeleteChildren,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanDownload: Whether the current user can download this file.
                                                                                                                                                                                                                                                                                                            	CanDownload bool `json:"canDownload,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanEdit: Whether the current user can edit this file. Other factors
                                                                                                                                                                                                                                                                                                            	// may limit the type of changes a user can make to a file. For example,
                                                                                                                                                                                                                                                                                                            	// see canChangeCopyRequiresWriterPermission or canModifyContent.
                                                                                                                                                                                                                                                                                                            	CanEdit bool `json:"canEdit,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanListChildren: Whether the current user can list the children of
                                                                                                                                                                                                                                                                                                            	// this folder. This is always false when the item is not a folder.
                                                                                                                                                                                                                                                                                                            	CanListChildren bool `json:"canListChildren,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanModifyContent: Whether the current user can modify the content of
                                                                                                                                                                                                                                                                                                            	// this file.
                                                                                                                                                                                                                                                                                                            	CanModifyContent bool `json:"canModifyContent,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanModifyContentRestriction: Whether the current user can modify
                                                                                                                                                                                                                                                                                                            	// restrictions on content of this file.
                                                                                                                                                                                                                                                                                                            	CanModifyContentRestriction bool `json:"canModifyContentRestriction,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveChildrenOutOfDrive: Whether the current user can move children
                                                                                                                                                                                                                                                                                                            	// of this folder outside of the shared drive. This is false when the
                                                                                                                                                                                                                                                                                                            	// item is not a folder. Only populated for items in shared drives.
                                                                                                                                                                                                                                                                                                            	CanMoveChildrenOutOfDrive bool `json:"canMoveChildrenOutOfDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveChildrenOutOfTeamDrive: Deprecated - use
                                                                                                                                                                                                                                                                                                            	// canMoveChildrenOutOfDrive instead.
                                                                                                                                                                                                                                                                                                            	CanMoveChildrenOutOfTeamDrive bool `json:"canMoveChildrenOutOfTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveChildrenWithinDrive: Whether the current user can move
                                                                                                                                                                                                                                                                                                            	// children of this folder within this drive. This is false when the
                                                                                                                                                                                                                                                                                                            	// item is not a folder. Note that a request to move the child may still
                                                                                                                                                                                                                                                                                                            	// fail depending on the current user's access to the child and to the
                                                                                                                                                                                                                                                                                                            	// destination folder.
                                                                                                                                                                                                                                                                                                            	CanMoveChildrenWithinDrive bool `json:"canMoveChildrenWithinDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveChildrenWithinTeamDrive: Deprecated - use
                                                                                                                                                                                                                                                                                                            	// canMoveChildrenWithinDrive instead.
                                                                                                                                                                                                                                                                                                            	CanMoveChildrenWithinTeamDrive bool `json:"canMoveChildrenWithinTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveItemIntoTeamDrive: Deprecated - use canMoveItemOutOfDrive
                                                                                                                                                                                                                                                                                                            	// instead.
                                                                                                                                                                                                                                                                                                            	CanMoveItemIntoTeamDrive bool `json:"canMoveItemIntoTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveItemOutOfDrive: Whether the current user can move this item
                                                                                                                                                                                                                                                                                                            	// outside of this drive by changing its parent. Note that a request to
                                                                                                                                                                                                                                                                                                            	// change the parent of the item may still fail depending on the new
                                                                                                                                                                                                                                                                                                            	// parent that is being added.
                                                                                                                                                                                                                                                                                                            	CanMoveItemOutOfDrive bool `json:"canMoveItemOutOfDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveItemOutOfTeamDrive: Deprecated - use canMoveItemOutOfDrive
                                                                                                                                                                                                                                                                                                            	// instead.
                                                                                                                                                                                                                                                                                                            	CanMoveItemOutOfTeamDrive bool `json:"canMoveItemOutOfTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveItemWithinDrive: Whether the current user can move this item
                                                                                                                                                                                                                                                                                                            	// within this drive. Note that a request to change the parent of the
                                                                                                                                                                                                                                                                                                            	// item may still fail depending on the new parent that is being added
                                                                                                                                                                                                                                                                                                            	// and the parent that is being removed.
                                                                                                                                                                                                                                                                                                            	CanMoveItemWithinDrive bool `json:"canMoveItemWithinDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveItemWithinTeamDrive: Deprecated - use canMoveItemWithinDrive
                                                                                                                                                                                                                                                                                                            	// instead.
                                                                                                                                                                                                                                                                                                            	CanMoveItemWithinTeamDrive bool `json:"canMoveItemWithinTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanMoveTeamDriveItem: Deprecated - use canMoveItemWithinDrive or
                                                                                                                                                                                                                                                                                                            	// canMoveItemOutOfDrive instead.
                                                                                                                                                                                                                                                                                                            	CanMoveTeamDriveItem bool `json:"canMoveTeamDriveItem,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanReadDrive: Whether the current user can read the shared drive to
                                                                                                                                                                                                                                                                                                            	// which this file belongs. Only populated for items in shared drives.
                                                                                                                                                                                                                                                                                                            	CanReadDrive bool `json:"canReadDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanReadRevisions: Whether the current user can read the revisions
                                                                                                                                                                                                                                                                                                            	// resource of this file. For a shared drive item, whether revisions of
                                                                                                                                                                                                                                                                                                            	// non-folder descendants of this item, or this item itself if it is not
                                                                                                                                                                                                                                                                                                            	// a folder, can be read.
                                                                                                                                                                                                                                                                                                            	CanReadRevisions bool `json:"canReadRevisions,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanReadTeamDrive: Deprecated - use canReadDrive instead.
                                                                                                                                                                                                                                                                                                            	CanReadTeamDrive bool `json:"canReadTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanRemoveChildren: Whether the current user can remove children from
                                                                                                                                                                                                                                                                                                            	// this folder. This is always false when the item is not a folder. For
                                                                                                                                                                                                                                                                                                            	// a folder in a shared drive, use canDeleteChildren or canTrashChildren
                                                                                                                                                                                                                                                                                                            	// instead.
                                                                                                                                                                                                                                                                                                            	CanRemoveChildren bool `json:"canRemoveChildren,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanRemoveMyDriveParent: Whether the current user can remove a parent
                                                                                                                                                                                                                                                                                                            	// from the item without adding another parent in the same request. Not
                                                                                                                                                                                                                                                                                                            	// populated for shared drive files.
                                                                                                                                                                                                                                                                                                            	CanRemoveMyDriveParent bool `json:"canRemoveMyDriveParent,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanRename: Whether the current user can rename this file.
                                                                                                                                                                                                                                                                                                            	CanRename bool `json:"canRename,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanShare: Whether the current user can modify the sharing settings
                                                                                                                                                                                                                                                                                                            	// for this file.
                                                                                                                                                                                                                                                                                                            	CanShare bool `json:"canShare,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanTrash: Whether the current user can move this file to trash.
                                                                                                                                                                                                                                                                                                            	CanTrash bool `json:"canTrash,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanTrashChildren: Whether the current user can trash children of this
                                                                                                                                                                                                                                                                                                            	// folder. This is false when the item is not a folder. Only populated
                                                                                                                                                                                                                                                                                                            	// for items in shared drives.
                                                                                                                                                                                                                                                                                                            	CanTrashChildren bool `json:"canTrashChildren,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// CanUntrash: Whether the current user can restore this file from
                                                                                                                                                                                                                                                                                                            	// trash.
                                                                                                                                                                                                                                                                                                            	CanUntrash bool `json:"canUntrash,omitempty"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// ForceSendFields is a list of field names (e.g. "CanAddChildren") to
                                                                                                                                                                                                                                                                                                            	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                            	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                            	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                            	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                            	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                            	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            	// NullFields is a list of field names (e.g. "CanAddChildren") to
                                                                                                                                                                                                                                                                                                            	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                                                                                                                            	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                                                                                                                            	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                                                                                                            	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                                                                                                            	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                                                                                                            	// requests.
                                                                                                                                                                                                                                                                                                            	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                              FileCapabilities: Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

                                                                                                                                                                                                                                                                                                              func (*FileCapabilities) MarshalJSON

                                                                                                                                                                                                                                                                                                              func (s *FileCapabilities) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                              type FileContentHints

                                                                                                                                                                                                                                                                                                              type FileContentHints struct {
                                                                                                                                                                                                                                                                                                              	// IndexableText: Text to be indexed for the file to improve fullText
                                                                                                                                                                                                                                                                                                              	// queries. This is limited to 128KB in length and may contain HTML
                                                                                                                                                                                                                                                                                                              	// elements.
                                                                                                                                                                                                                                                                                                              	IndexableText string `json:"indexableText,omitempty"`
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              	// Thumbnail: A thumbnail for the file. This will only be used if Google
                                                                                                                                                                                                                                                                                                              	// Drive cannot generate a standard thumbnail.
                                                                                                                                                                                                                                                                                                              	Thumbnail *FileContentHintsThumbnail `json:"thumbnail,omitempty"`
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              	// ForceSendFields is a list of field names (e.g. "IndexableText") to
                                                                                                                                                                                                                                                                                                              	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                              	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                              	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                              	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                              	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                              	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              	// NullFields is a list of field names (e.g. "IndexableText") to include
                                                                                                                                                                                                                                                                                                              	// in API requests with the JSON null value. By default, fields with
                                                                                                                                                                                                                                                                                                              	// empty values are omitted from API requests. However, any field with
                                                                                                                                                                                                                                                                                                              	// an empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                              	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                              	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                              	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                FileContentHints: Additional information about the content of the file. These fields are never populated in responses.

                                                                                                                                                                                                                                                                                                                func (*FileContentHints) MarshalJSON

                                                                                                                                                                                                                                                                                                                func (s *FileContentHints) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                type FileContentHintsThumbnail

                                                                                                                                                                                                                                                                                                                type FileContentHintsThumbnail struct {
                                                                                                                                                                                                                                                                                                                	// Image: The thumbnail data encoded with URL-safe Base64 (RFC 4648
                                                                                                                                                                                                                                                                                                                	// section 5).
                                                                                                                                                                                                                                                                                                                	Image string `json:"image,omitempty"`
                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                	// MimeType: The MIME type of the thumbnail.
                                                                                                                                                                                                                                                                                                                	MimeType string `json:"mimeType,omitempty"`
                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                	// ForceSendFields is a list of field names (e.g. "Image") to
                                                                                                                                                                                                                                                                                                                	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                	// NullFields is a list of field names (e.g. "Image") to include in API
                                                                                                                                                                                                                                                                                                                	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                  FileContentHintsThumbnail: A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.

                                                                                                                                                                                                                                                                                                                  func (*FileContentHintsThumbnail) MarshalJSON

                                                                                                                                                                                                                                                                                                                  func (s *FileContentHintsThumbnail) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                  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"`
                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                  	// 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 number of clockwise 90 degree rotations applied 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"`
                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                  	// Time: The date and time the photo was taken (EXIF DateTime).
                                                                                                                                                                                                                                                                                                                  	Time string `json:"time,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"`
                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                  	// ForceSendFields is a list of field names (e.g. "Aperture") to
                                                                                                                                                                                                                                                                                                                  	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                  	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                  	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                  	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                  	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                  	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                  	// NullFields is a list of field names (e.g. "Aperture") to include in
                                                                                                                                                                                                                                                                                                                  	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                  	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                  	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                  	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                  	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                  	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                    FileImageMediaMetadata: Additional metadata about image media, if available.

                                                                                                                                                                                                                                                                                                                    func (*FileImageMediaMetadata) MarshalJSON

                                                                                                                                                                                                                                                                                                                    func (s *FileImageMediaMetadata) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                    func (*FileImageMediaMetadata) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                    func (s *FileImageMediaMetadata) UnmarshalJSON(data []byte) error

                                                                                                                                                                                                                                                                                                                    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"`
                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                    	// ForceSendFields is a list of field names (e.g. "Altitude") to
                                                                                                                                                                                                                                                                                                                    	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                    	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                    	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                    	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                    	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                    	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                    	// NullFields is a list of field names (e.g. "Altitude") to include in
                                                                                                                                                                                                                                                                                                                    	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                    	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                    	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                    	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                    	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                    	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                      FileImageMediaMetadataLocation: Geographic location information stored in the image.

                                                                                                                                                                                                                                                                                                                      func (*FileImageMediaMetadataLocation) MarshalJSON

                                                                                                                                                                                                                                                                                                                      func (s *FileImageMediaMetadataLocation) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                      func (*FileImageMediaMetadataLocation) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                      func (s *FileImageMediaMetadataLocation) UnmarshalJSON(data []byte) error

                                                                                                                                                                                                                                                                                                                      type FileList

                                                                                                                                                                                                                                                                                                                      type FileList struct {
                                                                                                                                                                                                                                                                                                                      	// Files: The list of files. If nextPageToken is populated, then this
                                                                                                                                                                                                                                                                                                                      	// list may be incomplete and an additional page of results should be
                                                                                                                                                                                                                                                                                                                      	// fetched.
                                                                                                                                                                                                                                                                                                                      	Files []*File `json:"files,omitempty"`
                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                      	// IncompleteSearch: Whether the search process was incomplete. If true,
                                                                                                                                                                                                                                                                                                                      	// then some search results may be missing, since all documents were not
                                                                                                                                                                                                                                                                                                                      	// searched. This may occur when searching multiple drives with the
                                                                                                                                                                                                                                                                                                                      	// "allDrives" corpora, but all corpora could not be searched. When this
                                                                                                                                                                                                                                                                                                                      	// happens, it is suggested that clients narrow their query by choosing
                                                                                                                                                                                                                                                                                                                      	// a different corpus such as "user" or "drive".
                                                                                                                                                                                                                                                                                                                      	IncompleteSearch bool `json:"incompleteSearch,omitempty"`
                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                      	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                      	// string "drive#fileList".
                                                                                                                                                                                                                                                                                                                      	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                      	// NextPageToken: The page token for the next page of files. This will
                                                                                                                                                                                                                                                                                                                      	// be absent if the end of the files list has been reached. If the token
                                                                                                                                                                                                                                                                                                                      	// is rejected for any reason, it should be discarded, and pagination
                                                                                                                                                                                                                                                                                                                      	// should be restarted from the first page of results.
                                                                                                                                                                                                                                                                                                                      	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                      	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                      	// server.
                                                                                                                                                                                                                                                                                                                      	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                      	// ForceSendFields is a list of field names (e.g. "Files") to
                                                                                                                                                                                                                                                                                                                      	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                      	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                      	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                      	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                      	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                      	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                      	// NullFields is a list of field names (e.g. "Files") to include in API
                                                                                                                                                                                                                                                                                                                      	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                      	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                      	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                      	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                      	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                      	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                        FileList: A list of files.

                                                                                                                                                                                                                                                                                                                        func (*FileList) MarshalJSON

                                                                                                                                                                                                                                                                                                                        func (s *FileList) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                        type FileShortcutDetails

                                                                                                                                                                                                                                                                                                                        type FileShortcutDetails struct {
                                                                                                                                                                                                                                                                                                                        	// TargetId: The ID of the file that this shortcut points to.
                                                                                                                                                                                                                                                                                                                        	TargetId string `json:"targetId,omitempty"`
                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                        	// TargetMimeType: The MIME type of the file that this shortcut points
                                                                                                                                                                                                                                                                                                                        	// to. The value of this field is a snapshot of the target's MIME type,
                                                                                                                                                                                                                                                                                                                        	// captured when the shortcut is created.
                                                                                                                                                                                                                                                                                                                        	TargetMimeType string `json:"targetMimeType,omitempty"`
                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                        	// ForceSendFields is a list of field names (e.g. "TargetId") to
                                                                                                                                                                                                                                                                                                                        	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                        	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                        	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                        	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                        	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                        	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                        	// NullFields is a list of field names (e.g. "TargetId") to include in
                                                                                                                                                                                                                                                                                                                        	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                        	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                        	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                        	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                        	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                        	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                          FileShortcutDetails: Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.

                                                                                                                                                                                                                                                                                                                          func (*FileShortcutDetails) MarshalJSON

                                                                                                                                                                                                                                                                                                                          func (s *FileShortcutDetails) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                          type FileVideoMediaMetadata

                                                                                                                                                                                                                                                                                                                          type FileVideoMediaMetadata struct {
                                                                                                                                                                                                                                                                                                                          	// DurationMillis: The duration of the video in milliseconds.
                                                                                                                                                                                                                                                                                                                          	DurationMillis int64 `json:"durationMillis,omitempty,string"`
                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                          	// Height: The height of the video in pixels.
                                                                                                                                                                                                                                                                                                                          	Height int64 `json:"height,omitempty"`
                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                          	// Width: The width of the video in pixels.
                                                                                                                                                                                                                                                                                                                          	Width int64 `json:"width,omitempty"`
                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "DurationMillis") to
                                                                                                                                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "DurationMillis") to
                                                                                                                                                                                                                                                                                                                          	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                                                                                                                                          	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                                                                                                                                          	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                                                                                                                          	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                                                                                                                          	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                                                                                                                          	// requests.
                                                                                                                                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                            FileVideoMediaMetadata: Additional metadata about video media. This may not be available immediately upon upload.

                                                                                                                                                                                                                                                                                                                            func (*FileVideoMediaMetadata) MarshalJSON

                                                                                                                                                                                                                                                                                                                            func (s *FileVideoMediaMetadata) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                            type FilesCopyCall

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

                                                                                                                                                                                                                                                                                                                            func (*FilesCopyCall) Context

                                                                                                                                                                                                                                                                                                                            func (c *FilesCopyCall) Context(ctx context.Context) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                              Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                              func (*FilesCopyCall) Do

                                                                                                                                                                                                                                                                                                                              func (c *FilesCopyCall) Do(opts ...googleapi.CallOption) (*File, error)

                                                                                                                                                                                                                                                                                                                                Do executes the "drive.files.copy" call. Exactly one of *File or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *File.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                func (*FilesCopyCall) EnforceSingleParent

                                                                                                                                                                                                                                                                                                                                func (c *FilesCopyCall) EnforceSingleParent(enforceSingleParent bool) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                  EnforceSingleParent sets the optional parameter "enforceSingleParent": Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.

                                                                                                                                                                                                                                                                                                                                  func (*FilesCopyCall) Fields

                                                                                                                                                                                                                                                                                                                                  func (c *FilesCopyCall) Fields(s ...googleapi.Field) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                    Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                    func (*FilesCopyCall) Header

                                                                                                                                                                                                                                                                                                                                    func (c *FilesCopyCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                      Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                      func (*FilesCopyCall) IgnoreDefaultVisibility

                                                                                                                                                                                                                                                                                                                                      func (c *FilesCopyCall) IgnoreDefaultVisibility(ignoreDefaultVisibility bool) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                        IgnoreDefaultVisibility sets the optional parameter "ignoreDefaultVisibility": Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.

                                                                                                                                                                                                                                                                                                                                        func (*FilesCopyCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                        func (c *FilesCopyCall) IncludePermissionsForView(includePermissionsForView string) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                          IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                          func (*FilesCopyCall) KeepRevisionForever

                                                                                                                                                                                                                                                                                                                                          func (c *FilesCopyCall) KeepRevisionForever(keepRevisionForever bool) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                            KeepRevisionForever sets the optional parameter "keepRevisionForever": Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.

                                                                                                                                                                                                                                                                                                                                            func (*FilesCopyCall) OcrLanguage

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

                                                                                                                                                                                                                                                                                                                                              OcrLanguage sets the optional parameter "ocrLanguage": A language hint for OCR processing during image import (ISO 639-1 code).

                                                                                                                                                                                                                                                                                                                                              func (*FilesCopyCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                              func (c *FilesCopyCall) SupportsAllDrives(supportsAllDrives bool) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                                SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                func (*FilesCopyCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                func (c *FilesCopyCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesCopyCall

                                                                                                                                                                                                                                                                                                                                                  SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                  type FilesCreateCall

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

                                                                                                                                                                                                                                                                                                                                                  func (*FilesCreateCall) Context

                                                                                                                                                                                                                                                                                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

                                                                                                                                                                                                                                                                                                                                                    func (*FilesCreateCall) Do

                                                                                                                                                                                                                                                                                                                                                    func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error)

                                                                                                                                                                                                                                                                                                                                                      Do executes the "drive.files.create" call. Exactly one of *File or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *File.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                      func (*FilesCreateCall) EnforceSingleParent

                                                                                                                                                                                                                                                                                                                                                      func (c *FilesCreateCall) EnforceSingleParent(enforceSingleParent bool) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                        EnforceSingleParent sets the optional parameter "enforceSingleParent": Deprecated. Creating files in multiple folders is no longer supported.

                                                                                                                                                                                                                                                                                                                                                        func (*FilesCreateCall) Fields

                                                                                                                                                                                                                                                                                                                                                          Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                          func (*FilesCreateCall) Header

                                                                                                                                                                                                                                                                                                                                                          func (c *FilesCreateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                            Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                            func (*FilesCreateCall) IgnoreDefaultVisibility

                                                                                                                                                                                                                                                                                                                                                            func (c *FilesCreateCall) IgnoreDefaultVisibility(ignoreDefaultVisibility bool) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                              IgnoreDefaultVisibility sets the optional parameter "ignoreDefaultVisibility": Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.

                                                                                                                                                                                                                                                                                                                                                              func (*FilesCreateCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                                              func (c *FilesCreateCall) IncludePermissionsForView(includePermissionsForView string) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                                                func (*FilesCreateCall) KeepRevisionForever

                                                                                                                                                                                                                                                                                                                                                                func (c *FilesCreateCall) KeepRevisionForever(keepRevisionForever bool) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                  KeepRevisionForever sets the optional parameter "keepRevisionForever": Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.

                                                                                                                                                                                                                                                                                                                                                                  func (*FilesCreateCall) Media

                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesCreateCall) Media(r io.Reader, options ...googleapi.MediaOption) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                    Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

                                                                                                                                                                                                                                                                                                                                                                    func (*FilesCreateCall) OcrLanguage

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

                                                                                                                                                                                                                                                                                                                                                                      OcrLanguage sets the optional parameter "ocrLanguage": A language hint for OCR processing during image import (ISO 639-1 code).

                                                                                                                                                                                                                                                                                                                                                                      func (*FilesCreateCall) ProgressUpdater

                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesCreateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                        ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

                                                                                                                                                                                                                                                                                                                                                                        func (*FilesCreateCall) ResumableMedia

                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesCreateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                          ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

                                                                                                                                                                                                                                                                                                                                                                          Deprecated: use Media instead.

                                                                                                                                                                                                                                                                                                                                                                          At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

                                                                                                                                                                                                                                                                                                                                                                          func (*FilesCreateCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesCreateCall) SupportsAllDrives(supportsAllDrives bool) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                            SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                            func (*FilesCreateCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesCreateCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                              SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                              func (*FilesCreateCall) UseContentAsIndexableText

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

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

                                                                                                                                                                                                                                                                                                                                                                                type FilesDeleteCall

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

                                                                                                                                                                                                                                                                                                                                                                                func (*FilesDeleteCall) Context

                                                                                                                                                                                                                                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesDeleteCall) Do

                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesDeleteCall) Do(opts ...googleapi.CallOption) error

                                                                                                                                                                                                                                                                                                                                                                                    Do executes the "drive.files.delete" call.

                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesDeleteCall) EnforceSingleParent

                                                                                                                                                                                                                                                                                                                                                                                    func (c *FilesDeleteCall) EnforceSingleParent(enforceSingleParent bool) *FilesDeleteCall

                                                                                                                                                                                                                                                                                                                                                                                      EnforceSingleParent sets the optional parameter "enforceSingleParent": Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.

                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesDeleteCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                        Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesDeleteCall) Header

                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesDeleteCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                          Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesDeleteCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesDeleteCall) SupportsAllDrives(supportsAllDrives bool) *FilesDeleteCall

                                                                                                                                                                                                                                                                                                                                                                                            SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesDeleteCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesDeleteCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesDeleteCall

                                                                                                                                                                                                                                                                                                                                                                                              SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                              type FilesEmptyTrashCall

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

                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesEmptyTrashCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesEmptyTrashCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                  Do executes the "drive.files.emptyTrash" call.

                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesEmptyTrashCall) EnforceSingleParent

                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesEmptyTrashCall) EnforceSingleParent(enforceSingleParent bool) *FilesEmptyTrashCall

                                                                                                                                                                                                                                                                                                                                                                                                    EnforceSingleParent sets the optional parameter "enforceSingleParent": Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.

                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesEmptyTrashCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesEmptyTrashCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesEmptyTrashCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                        type FilesExportCall

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

                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesExportCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                          Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesExportCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesExportCall) Do(opts ...googleapi.CallOption) error

                                                                                                                                                                                                                                                                                                                                                                                                            Do executes the "drive.files.export" call.

                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesExportCall) Download

                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesExportCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

                                                                                                                                                                                                                                                                                                                                                                                                              Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesExportCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesExportCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                func (c *FilesExportCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                  Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesExportCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesExportCall) IfNoneMatch(entityTag string) *FilesExportCall

                                                                                                                                                                                                                                                                                                                                                                                                                    IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                    type FilesGenerateIdsCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesGenerateIdsCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                      Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesGenerateIdsCall) Count

                                                                                                                                                                                                                                                                                                                                                                                                                        Count sets the optional parameter "count": The number of IDs to return.

                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesGenerateIdsCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                          Do executes the "drive.files.generateIds" call. Exactly one of *GeneratedIds or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GeneratedIds.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesGenerateIdsCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesGenerateIdsCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesGenerateIdsCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesGenerateIdsCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesGenerateIdsCall) IfNoneMatch(entityTag string) *FilesGenerateIdsCall

                                                                                                                                                                                                                                                                                                                                                                                                                                IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesGenerateIdsCall) Space

                                                                                                                                                                                                                                                                                                                                                                                                                                  Space sets the optional parameter "space": The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.

                                                                                                                                                                                                                                                                                                                                                                                                                                  type FilesGetCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesGetCall) AcknowledgeAbuse

                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesGetCall) AcknowledgeAbuse(acknowledgeAbuse bool) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                    AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesGetCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *FilesGetCall) Context(ctx context.Context) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                      Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesGetCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                        Do executes the "drive.files.get" call. Exactly one of *File or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *File.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesGetCall) Download

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                          Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesGetCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesGetCall) Fields(s ...googleapi.Field) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesGetCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesGetCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesGetCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesGetCall) IfNoneMatch(entityTag string) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesGetCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *FilesGetCall) IncludePermissionsForView(includePermissionsForView string) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                  IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesGetCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesGetCall) SupportsAllDrives(supportsAllDrives bool) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                    SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesGetCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *FilesGetCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                      SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      type FilesListCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesListCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesListCall) Context(ctx context.Context) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesListCall) Corpora

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesListCall) Corpora(corpora string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Corpora sets the optional parameter "corpora": Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.

                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesListCall) Corpus

                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesListCall) Corpus(corpus string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Corpus sets the optional parameter "corpus": The source of files to list. Deprecated: use 'corpora' instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Possible values:

                                                                                                                                                                                                                                                                                                                                                                                                                                                            "domain" - Files shared to the user's domain.
                                                                                                                                                                                                                                                                                                                                                                                                                                                            "user" - Files owned by or shared to the user. If a user has
                                                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                                                            permissions on a Shared Drive, the files inside it won't be retrieved unless the user has created, opened, or shared the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesListCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Do executes the "drive.files.list" call. Exactly one of *FileList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FileList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesListCall) DriveId

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesListCall) DriveId(driveId string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                DriveId sets the optional parameter "driveId": ID of the shared drive to search.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesListCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *FilesListCall) Fields(s ...googleapi.Field) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesListCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesListCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesListCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *FilesListCall) IfNoneMatch(entityTag string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesListCall) IncludeItemsFromAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesListCall) IncludeItemsFromAllDrives(includeItemsFromAllDrives bool) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        IncludeItemsFromAllDrives sets the optional parameter "includeItemsFromAllDrives": Whether both My Drive and shared drive items should be included in results.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesListCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesListCall) IncludePermissionsForView(includePermissionsForView string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesListCall) IncludeTeamDriveItems

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesListCall) IncludeTeamDriveItems(includeTeamDriveItems bool) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IncludeTeamDriveItems sets the optional parameter "includeTeamDriveItems": Deprecated use includeItemsFromAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesListCall) OrderBy

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesListCall) OrderBy(orderBy string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              OrderBy sets the optional parameter "orderBy": A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesListCall) PageSize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesListCall) PageSize(pageSize int64) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                PageSize sets the optional parameter "pageSize": The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesListCall) PageToken

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  PageToken sets the optional parameter "pageToken": The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesListCall) Pages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesListCall) Pages(ctx context.Context, f func(*FileList) error) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesListCall) Q

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Q sets the optional parameter "q": A query for filtering the file results. See the "Search for Files" guide for supported syntax.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesListCall) Spaces

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesListCall) Spaces(spaces string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Spaces sets the optional parameter "spaces": A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesListCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesListCall) SupportsAllDrives(supportsAllDrives bool) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesListCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesListCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesListCall) TeamDriveId

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesListCall) TeamDriveId(teamDriveId string) *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TeamDriveId sets the optional parameter "teamDriveId": Deprecated use driveId instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              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 a file and applies any requested updates with patch semantics. Folders cannot be copied.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesService) Create

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (r *FilesService) Create(file *File) *FilesCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Create: Creates a new file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesService) Delete

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Delete: Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesService) EmptyTrash

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (r *FilesService) EmptyTrash() *FilesEmptyTrashCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      EmptyTrash: Permanently deletes all of the user's trashed files.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesService) Export

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (r *FilesService) Export(fileId string, mimeType string) *FilesExportCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Export: Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - fileId: The ID of the file. - mimeType: The MIME type of the format requested for this export.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesService) GenerateIds

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (r *FilesService) GenerateIds() *FilesGenerateIdsCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          GenerateIds: Generates a set of file IDs which can be provided in create or copy requests.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesService) Get

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Get: Gets a file's metadata or content by ID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesService) List

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (r *FilesService) List() *FilesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              List: Lists or searches files.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesService) Update

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Update: Updates a file's metadata and/or content. This method supports patch semantics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesService) Watch

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Watch: Subscribes to changes to a file

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type FilesUpdateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesUpdateCall) AddParents

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesUpdateCall) AddParents(addParents string) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    AddParents sets the optional parameter "addParents": A comma-separated list of parent IDs to add.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesUpdateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesUpdateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesUpdateCall) Do(opts ...googleapi.CallOption) (*File, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Do executes the "drive.files.update" call. Exactly one of *File or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *File.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesUpdateCall) EnforceSingleParent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesUpdateCall) EnforceSingleParent(enforceSingleParent bool) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          EnforceSingleParent sets the optional parameter "enforceSingleParent": Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesUpdateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesUpdateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesUpdateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesUpdateCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesUpdateCall) IncludePermissionsForView(includePermissionsForView string) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesUpdateCall) KeepRevisionForever

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *FilesUpdateCall) KeepRevisionForever(keepRevisionForever bool) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  KeepRevisionForever sets the optional parameter "keepRevisionForever": Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesUpdateCall) Media

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesUpdateCall) OcrLanguage

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      OcrLanguage sets the optional parameter "ocrLanguage": A language hint for OCR processing during image import (ISO 639-1 code).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesUpdateCall) ProgressUpdater

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesUpdateCall) RemoveParents

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesUpdateCall) RemoveParents(removeParents string) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          RemoveParents sets the optional parameter "removeParents": A comma-separated list of parent IDs to remove.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesUpdateCall) ResumableMedia

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated: use Media instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesUpdateCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesUpdateCall) SupportsAllDrives(supportsAllDrives bool) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesUpdateCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesUpdateCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesUpdateCall) UseContentAsIndexableText

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type FilesWatchCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesWatchCall) AcknowledgeAbuse

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesWatchCall) AcknowledgeAbuse(acknowledgeAbuse bool) *FilesWatchCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*FilesWatchCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *FilesWatchCall) Context(ctx context.Context) *FilesWatchCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*FilesWatchCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *FilesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Do executes the "drive.files.watch" call. Exactly one of *Channel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Channel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*FilesWatchCall) Download

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *FilesWatchCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*FilesWatchCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *FilesWatchCall) Fields(s ...googleapi.Field) *FilesWatchCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*FilesWatchCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *FilesWatchCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*FilesWatchCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *FilesWatchCall) IncludePermissionsForView(includePermissionsForView string) *FilesWatchCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*FilesWatchCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *FilesWatchCall) SupportsAllDrives(supportsAllDrives bool) *FilesWatchCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*FilesWatchCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *FilesWatchCall) SupportsTeamDrives(supportsTeamDrives bool) *FilesWatchCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GeneratedIds

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GeneratedIds struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Ids: The IDs generated for the requesting user in the specified
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// space.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Ids []string `json:"ids,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// string "drive#generatedIds".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Space: The type of file that can be created with these IDs.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Space string `json:"space,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// ForceSendFields is a list of field names (e.g. "Ids") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// NullFields is a list of field names (e.g. "Ids") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      GeneratedIds: A list of generated file IDs which can be provided in create requests.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*GeneratedIds) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (s *GeneratedIds) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Permission

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Permission struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// AllowFileDiscovery: Whether the permission allows the file to be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// discovered through search. This is only applicable for permissions of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// type domain or anyone.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	AllowFileDiscovery bool `json:"allowFileDiscovery,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Deleted: Whether the account associated with this permission has been
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// deleted. This field only pertains to user and group permissions.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Deleted bool `json:"deleted,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// DisplayName: The "pretty" name of the value of the permission. The
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// following is a list of examples for each type of permission:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - user - User's full name, as defined for their Google account, such
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// as "Joe Smith."
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - group - Name of the Google Group, such as "The Company
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Administrators."
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - domain - String domain name, such as "thecompany.com."
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - anyone - No displayName is present.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	DisplayName string `json:"displayName,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Domain: The domain to which this permission refers.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Domain string `json:"domain,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// EmailAddress: The email address of the user or group to which this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// permission refers.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	EmailAddress string `json:"emailAddress,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ExpirationTime: The time at which this permission will expire (RFC
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// 3339 date-time). Expiration times have the following restrictions:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	//
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - They can only be set on user and group permissions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - The time must be in the future
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - The time cannot be more than a year in the future
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ExpirationTime string `json:"expirationTime,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Id: The ID of this permission. This is a unique identifier for the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// grantee, and is published in User resources as permissionId. IDs
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// should be treated as opaque values.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Id string `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// string "drive#permission".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// PermissionDetails: Details of whether the permissions on this shared
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// drive item are inherited or directly on this item. This is an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// output-only field which is present only for shared drive items.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	PermissionDetails []*PermissionPermissionDetails `json:"permissionDetails,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// PhotoLink: A link to the user's profile photo, if available.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	PhotoLink string `json:"photoLink,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Role: The role granted by this permission. While new values may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// supported in the future, the following are currently allowed:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - owner
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - organizer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - fileOrganizer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - writer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - commenter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - reader
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Role string `json:"role,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// TeamDrivePermissionDetails: Deprecated - use permissionDetails
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// instead.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	TeamDrivePermissionDetails []*PermissionTeamDrivePermissionDetails `json:"teamDrivePermissionDetails,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Type: The type of the grantee. Valid values are:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - user
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - group
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - domain
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// - anyone  When creating a permission, if type is user or group, you
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// must provide an emailAddress for the user or group. When type is
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// domain, you must provide a domain. There isn't extra information
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// required for a anyone type.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Type string `json:"type,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// View: Indicates the view for this permission. Only populated for
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// permissions that belong to a view. published is the only supported
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	View string `json:"view,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ForceSendFields is a list of field names (e.g. "AllowFileDiscovery")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// to unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// NullFields is a list of field names (e.g. "AllowFileDiscovery") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Permission: A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Permission) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (s *Permission) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type PermissionList

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type PermissionList struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// string "drive#permissionList".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// NextPageToken: The page token for the next page of permissions. This
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// field will be absent if the end of the permissions list has been
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// reached. If the token is rejected for any reason, it should be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// discarded, and pagination should be restarted from the first page of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// results.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Permissions: The list of permissions. If nextPageToken is populated,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// then this list may be incomplete and an additional page of results
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// should be fetched.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Permissions []*Permission `json:"permissions,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ForceSendFields is a list of field names (e.g. "Kind") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// NullFields is a list of field names (e.g. "Kind") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          PermissionList: A list of permissions for a file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionList) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (s *PermissionList) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type PermissionPermissionDetails

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type PermissionPermissionDetails struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Inherited: Whether this permission is inherited. This field is always
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// populated. This is an output-only field.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Inherited bool `json:"inherited,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// InheritedFrom: The ID of the item from which this permission is
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// inherited. This is an output-only field.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	InheritedFrom string `json:"inheritedFrom,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// PermissionType: The permission type for this user. While new values
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// may be added in future, the following are currently possible:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - file
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - member
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	PermissionType string `json:"permissionType,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Role: The primary role for this user. While new values may be added
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// in the future, the following are currently possible:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - organizer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - fileOrganizer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - writer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - commenter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// - reader
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Role string `json:"role,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "Inherited") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "Inherited") to include in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionPermissionDetails) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (s *PermissionPermissionDetails) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type PermissionTeamDrivePermissionDetails

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type PermissionTeamDrivePermissionDetails struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Inherited: Deprecated - use permissionDetails/inherited instead.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Inherited bool `json:"inherited,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// InheritedFrom: Deprecated - use permissionDetails/inheritedFrom
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// instead.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	InheritedFrom string `json:"inheritedFrom,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Role: Deprecated - use permissionDetails/role instead.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Role string `json:"role,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// TeamDrivePermissionType: Deprecated - use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// permissionDetails/permissionType instead.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	TeamDrivePermissionType string `json:"teamDrivePermissionType,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "Inherited") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "Inherited") to include in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// API requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionTeamDrivePermissionDetails) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (s *PermissionTeamDrivePermissionDetails) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type PermissionsCreateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsCreateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsCreateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Do executes the "drive.permissions.create" call. Exactly one of *Permission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Permission.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsCreateCall) EmailMessage

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

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsCreateCall) EnforceSingleParent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *PermissionsCreateCall) EnforceSingleParent(enforceSingleParent bool) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  EnforceSingleParent sets the optional parameter "enforceSingleParent": Deprecated. See moveToNewOwnersRoot for details.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsCreateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*PermissionsCreateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *PermissionsCreateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*PermissionsCreateCall) MoveToNewOwnersRoot

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *PermissionsCreateCall) MoveToNewOwnersRoot(moveToNewOwnersRoot bool) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MoveToNewOwnersRoot sets the optional parameter "moveToNewOwnersRoot": This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*PermissionsCreateCall) SendNotificationEmail

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *PermissionsCreateCall) SendNotificationEmail(sendNotificationEmail bool) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SendNotificationEmail sets the optional parameter "sendNotificationEmail": Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsCreateCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *PermissionsCreateCall) SupportsAllDrives(supportsAllDrives bool) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsCreateCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *PermissionsCreateCall) SupportsTeamDrives(supportsTeamDrives bool) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsCreateCall) TransferOwnership

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TransferOwnership sets the optional parameter "transferOwnership": Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsCreateCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *PermissionsCreateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type PermissionsDeleteCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsDeleteCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*PermissionsDeleteCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Do executes the "drive.permissions.delete" call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*PermissionsDeleteCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*PermissionsDeleteCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *PermissionsDeleteCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsDeleteCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *PermissionsDeleteCall) SupportsAllDrives(supportsAllDrives bool) *PermissionsDeleteCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsDeleteCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *PermissionsDeleteCall) SupportsTeamDrives(supportsTeamDrives bool) *PermissionsDeleteCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsDeleteCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *PermissionsDeleteCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsDeleteCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type PermissionsGetCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsGetCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsGetCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Do executes the "drive.permissions.get" call. Exactly one of *Permission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Permission.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*PermissionsGetCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*PermissionsGetCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *PermissionsGetCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*PermissionsGetCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsGetCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *PermissionsGetCall) SupportsAllDrives(supportsAllDrives bool) *PermissionsGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsGetCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *PermissionsGetCall) SupportsTeamDrives(supportsTeamDrives bool) *PermissionsGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsGetCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *PermissionsGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type PermissionsListCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsListCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsListCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Do executes the "drive.permissions.list" call. Exactly one of *PermissionList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*PermissionsListCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*PermissionsListCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *PermissionsListCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*PermissionsListCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *PermissionsListCall) IfNoneMatch(entityTag string) *PermissionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsListCall) IncludePermissionsForView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *PermissionsListCall) IncludePermissionsForView(includePermissionsForView string) *PermissionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IncludePermissionsForView sets the optional parameter "includePermissionsForView": Specifies which additional view's permissions to include in the response. Only 'published' is supported.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsListCall) PageSize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *PermissionsListCall) PageSize(pageSize int64) *PermissionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              PageSize sets the optional parameter "pageSize": The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsListCall) PageToken

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                PageToken sets the optional parameter "pageToken": The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsListCall) Pages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *PermissionsListCall) Pages(ctx context.Context, f func(*PermissionList) error) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsListCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *PermissionsListCall) SupportsAllDrives(supportsAllDrives bool) *PermissionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*PermissionsListCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *PermissionsListCall) SupportsTeamDrives(supportsTeamDrives bool) *PermissionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*PermissionsListCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *PermissionsListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type PermissionsService

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewPermissionsService

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewPermissionsService(s *Service) *PermissionsService

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*PermissionsService) Create

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (r *PermissionsService) Create(fileId string, permission *Permission) *PermissionsCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Create: Creates a permission for a file or shared drive.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - fileId: The ID of the file or shared drive.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsService) Delete

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Delete: Deletes a permission.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - fileId: The ID of the file or shared drive. - permissionId: The ID of the permission.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsService) Get

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Get: Gets a permission by ID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              - fileId: The ID of the file. - permissionId: The ID of the permission.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsService) List

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                List: Lists a file's or shared drive's permissions.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                - fileId: The ID of the file or shared drive.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsService) Update

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Update: Updates a permission with patch semantics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  - fileId: The ID of the file or shared drive. - permissionId: The ID of the permission.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type PermissionsUpdateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsUpdateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*PermissionsUpdateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Do executes the "drive.permissions.update" call. Exactly one of *Permission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Permission.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*PermissionsUpdateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*PermissionsUpdateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *PermissionsUpdateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*PermissionsUpdateCall) RemoveExpiration

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *PermissionsUpdateCall) RemoveExpiration(removeExpiration bool) *PermissionsUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            RemoveExpiration sets the optional parameter "removeExpiration": Whether to remove the expiration date.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*PermissionsUpdateCall) SupportsAllDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *PermissionsUpdateCall) SupportsAllDrives(supportsAllDrives bool) *PermissionsUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SupportsAllDrives sets the optional parameter "supportsAllDrives": Whether the requesting application supports both My Drives and shared drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*PermissionsUpdateCall) SupportsTeamDrives

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *PermissionsUpdateCall) SupportsTeamDrives(supportsTeamDrives bool) *PermissionsUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SupportsTeamDrives sets the optional parameter "supportsTeamDrives": Deprecated use supportsAllDrives instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*PermissionsUpdateCall) TransferOwnership

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  TransferOwnership sets the optional parameter "transferOwnership": Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*PermissionsUpdateCall) UseDomainAdminAccess

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *PermissionsUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    UseDomainAdminAccess sets the optional parameter "useDomainAdminAccess": Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type RepliesCreateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RepliesCreateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RepliesCreateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *RepliesCreateCall) Do(opts ...googleapi.CallOption) (*Reply, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Do executes the "drive.replies.create" call. Exactly one of *Reply or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Reply.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RepliesCreateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RepliesCreateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *RepliesCreateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type RepliesDeleteCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RepliesDeleteCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RepliesDeleteCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Do executes the "drive.replies.delete" call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RepliesDeleteCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*RepliesDeleteCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *RepliesDeleteCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type RepliesGetCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RepliesGetCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *RepliesGetCall) Context(ctx context.Context) *RepliesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RepliesGetCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *RepliesGetCall) Do(opts ...googleapi.CallOption) (*Reply, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Do executes the "drive.replies.get" call. Exactly one of *Reply or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Reply.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RepliesGetCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *RepliesGetCall) Fields(s ...googleapi.Field) *RepliesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RepliesGetCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *RepliesGetCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RepliesGetCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *RepliesGetCall) IfNoneMatch(entityTag string) *RepliesGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RepliesGetCall) IncludeDeleted

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IncludeDeleted sets the optional parameter "includeDeleted": Whether to return deleted replies. Deleted replies will not include their original content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type RepliesListCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RepliesListCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*RepliesListCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *RepliesListCall) Do(opts ...googleapi.CallOption) (*ReplyList, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Do executes the "drive.replies.list" call. Exactly one of *ReplyList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReplyList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RepliesListCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RepliesListCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *RepliesListCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RepliesListCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *RepliesListCall) IfNoneMatch(entityTag string) *RepliesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RepliesListCall) IncludeDeleted

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IncludeDeleted sets the optional parameter "includeDeleted": Whether to include deleted replies. Deleted replies will not include their original content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RepliesListCall) PageSize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *RepliesListCall) PageSize(pageSize int64) *RepliesListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              PageSize sets the optional parameter "pageSize": The maximum number of replies to return per page.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RepliesListCall) PageToken

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                PageToken sets the optional parameter "pageToken": The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RepliesListCall) Pages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *RepliesListCall) Pages(ctx context.Context, f func(*ReplyList) error) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type RepliesService

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewRepliesService

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewRepliesService(s *Service) *RepliesService

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*RepliesService) Create

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (r *RepliesService) Create(fileId string, commentId string, reply *Reply) *RepliesCreateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Create: Creates a new reply to a comment.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - commentId: The ID of the comment. - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RepliesService) Delete

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Delete: Deletes a reply.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - commentId: The ID of the comment. - fileId: The ID of the file. - replyId: The ID of the reply.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RepliesService) Get

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Get: Gets a reply by ID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - commentId: The ID of the comment. - fileId: The ID of the file. - replyId: The ID of the reply.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RepliesService) List

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          List: Lists a comment's replies.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - commentId: The ID of the comment. - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RepliesService) Update

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (r *RepliesService) Update(fileId string, commentId string, replyId string, reply *Reply) *RepliesUpdateCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Update: Updates a reply with patch semantics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            - commentId: The ID of the comment. - fileId: The ID of the file. - replyId: The ID of the reply.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type RepliesUpdateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RepliesUpdateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RepliesUpdateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *RepliesUpdateCall) Do(opts ...googleapi.CallOption) (*Reply, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Do executes the "drive.replies.update" call. Exactly one of *Reply or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Reply.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RepliesUpdateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*RepliesUpdateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *RepliesUpdateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Reply

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Reply struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Action: The action the reply performed to the parent comment. Valid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// values are:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// - resolve
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// - reopen
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Action string `json:"action,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Author: The author of the reply. The author's email address and
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// permission ID will not be populated.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Author *User `json:"author,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Content: The plain text content of the reply. This field is used for
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// setting the content, while htmlContent should be displayed. This is
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// required on creates if no action is specified.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Content string `json:"content,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// CreatedTime: The time at which the reply was created (RFC 3339
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// date-time).
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	CreatedTime string `json:"createdTime,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Deleted: Whether the reply has been deleted. A deleted reply has no
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// content.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Deleted bool `json:"deleted,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// HtmlContent: The content of the reply with HTML formatting.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	HtmlContent string `json:"htmlContent,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Id: The ID of the reply.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Id string `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// string "drive#reply".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// ModifiedTime: The last time the reply was modified (RFC 3339
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// date-time).
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ModifiedTime string `json:"modifiedTime,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// ForceSendFields is a list of field names (e.g. "Action") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// NullFields is a list of field names (e.g. "Action") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Reply: A reply to a comment on a file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Reply) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (s *Reply) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ReplyList

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ReplyList struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// string "drive#replyList".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// NextPageToken: The page token for the next page of replies. This will
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// be absent if the end of the replies list has been reached. If the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// token is rejected for any reason, it should be discarded, and
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// pagination should be restarted from the first page of results.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Replies: The list of replies. If nextPageToken is populated, then
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// this list may be incomplete and an additional page of results should
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// be fetched.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Replies []*Reply `json:"replies,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ForceSendFields is a list of field names (e.g. "Kind") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// NullFields is a list of field names (e.g. "Kind") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ReplyList: A list of replies to a comment on a file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*ReplyList) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (s *ReplyList) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type Revision

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type Revision struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ExportLinks: Links for exporting Docs Editors files to specific
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// formats.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ExportLinks map[string]string `json:"exportLinks,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Id: The ID of the revision.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Id string `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// KeepForever: Whether to keep this revision forever, even if it is no
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// longer the head revision. If not set, the revision will be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// automatically purged 30 days after newer content is uploaded. This
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// can be set on a maximum of 200 revisions for a file.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// This field is only applicable to files with binary content in Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	KeepForever bool `json:"keepForever,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// string "drive#revision".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// LastModifyingUser: The last user to modify this revision.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	LastModifyingUser *User `json:"lastModifyingUser,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Md5Checksum: The MD5 checksum of the revision's content. This is only
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// applicable to files with binary content in Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Md5Checksum string `json:"md5Checksum,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// MimeType: The MIME type of the revision.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	MimeType string `json:"mimeType,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ModifiedTime: The last time the revision was modified (RFC 3339
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// date-time).
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ModifiedTime string `json:"modifiedTime,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// OriginalFilename: The original filename used to create this revision.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// This is only applicable to files with binary content in Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	OriginalFilename string `json:"originalFilename,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// PublishAuto: Whether subsequent revisions will be automatically
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// republished. This is only applicable to Docs Editors files.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	PublishAuto bool `json:"publishAuto,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Published: Whether this revision is published. This is only
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// applicable to Docs Editors files.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Published bool `json:"published,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// PublishedLink: A link to the published revision. This is only
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// populated for Google Sites files.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	PublishedLink string `json:"publishedLink,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// PublishedOutsideDomain: Whether this revision is published outside
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// the domain. This is only applicable to Docs Editors files.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	PublishedOutsideDomain bool `json:"publishedOutsideDomain,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Size: The size of the revision's content in bytes. This is only
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// applicable to files with binary content in Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Size int64 `json:"size,omitempty,string"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ForceSendFields is a list of field names (e.g. "ExportLinks") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// NullFields is a list of field names (e.g. "ExportLinks") to include
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// in API requests with the JSON null value. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// empty values are omitted from API requests. However, any field with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// an empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Revision: The metadata for a revision to a file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Revision) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (s *Revision) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type RevisionList

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type RevisionList struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// string "drive#revisionList".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// NextPageToken: The page token for the next page of revisions. This
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// will be absent if the end of the revisions list has been reached. If
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// the token is rejected for any reason, it should be discarded, and
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// pagination should be restarted from the first page of results.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Revisions: The list of revisions. If nextPageToken is populated, then
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// this list may be incomplete and an additional page of results should
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// be fetched.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Revisions []*Revision `json:"revisions,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "Kind") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "Kind") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            RevisionList: A list of revisions of a file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RevisionList) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (s *RevisionList) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type RevisionsDeleteCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RevisionsDeleteCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RevisionsDeleteCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Do executes the "drive.revisions.delete" call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RevisionsDeleteCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*RevisionsDeleteCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *RevisionsDeleteCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type RevisionsGetCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RevisionsGetCall) AcknowledgeAbuse

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *RevisionsGetCall) AcknowledgeAbuse(acknowledgeAbuse bool) *RevisionsGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      AcknowledgeAbuse sets the optional parameter "acknowledgeAbuse": Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RevisionsGetCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RevisionsGetCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *RevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Do executes the "drive.revisions.get" call. Exactly one of *Revision or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Revision.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RevisionsGetCall) Download

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *RevisionsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RevisionsGetCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RevisionsGetCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *RevisionsGetCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RevisionsGetCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *RevisionsGetCall) IfNoneMatch(entityTag string) *RevisionsGetCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type RevisionsListCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*RevisionsListCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RevisionsListCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Do executes the "drive.revisions.list" call. Exactly one of *RevisionList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RevisionList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RevisionsListCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RevisionsListCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *RevisionsListCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RevisionsListCall) IfNoneMatch

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *RevisionsListCall) IfNoneMatch(entityTag string) *RevisionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RevisionsListCall) PageSize

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *RevisionsListCall) PageSize(pageSize int64) *RevisionsListCall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              PageSize sets the optional parameter "pageSize": The maximum number of revisions to return per page.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RevisionsListCall) PageToken

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                PageToken sets the optional parameter "pageToken": The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RevisionsListCall) Pages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *RevisionsListCall) Pages(ctx context.Context, f func(*RevisionList) error) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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: Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    - fileId: The ID of the file. - revisionId: The ID of the revision.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*RevisionsService) Get

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Get: Gets a revision's metadata or content by ID.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      - fileId: The ID of the file. - revisionId: The ID of the revision.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*RevisionsService) List

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        List: Lists a file's revisions.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - fileId: The ID of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RevisionsService) Update

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Update: Updates a revision with patch semantics.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          - fileId: The ID of the file. - revisionId: The ID of the revision.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type RevisionsUpdateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RevisionsUpdateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*RevisionsUpdateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Do executes the "drive.revisions.update" call. Exactly one of *Revision or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Revision.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*RevisionsUpdateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*RevisionsUpdateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *RevisionsUpdateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type Service

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type Service struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	BasePath  string // API endpoint base URL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	UserAgent string // optional additional User-Agent fragment
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	About *AboutService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Changes *ChangesService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Channels *ChannelsService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Comments *CommentsService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Drives *DrivesService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Files *FilesService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Permissions *PermissionsService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Replies *RepliesService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Revisions *RevisionsService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Teamdrives *TeamdrivesService
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func New

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    New creates a new Service. It uses the provided http.Client for requests.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewService

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NewService creates a new Service.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type StartPageToken

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type StartPageToken struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// string "drive#startPageToken".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// StartPageToken: The starting page token for listing changes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	StartPageToken string `json:"startPageToken,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ForceSendFields is a list of field names (e.g. "Kind") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// NullFields is a list of field names (e.g. "Kind") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*StartPageToken) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (s *StartPageToken) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type TeamDrive

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type TeamDrive struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// BackgroundImageFile: An image file and cropping parameters from which
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// a background image for this Team Drive is set. This is a write only
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// field; it can only be set on drive.teamdrives.update requests that
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// don't set themeId. When specified, all fields of the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// backgroundImageFile must be set.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	BackgroundImageFile *TeamDriveBackgroundImageFile `json:"backgroundImageFile,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// BackgroundImageLink: A short-lived link to this Team Drive's
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// background image.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	BackgroundImageLink string `json:"backgroundImageLink,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Capabilities: Capabilities the current user has on this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Capabilities *TeamDriveCapabilities `json:"capabilities,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ColorRgb: The color of this Team Drive as an RGB hex string. It can
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// only be set on a drive.teamdrives.update request that does not set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// themeId.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ColorRgb string `json:"colorRgb,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// CreatedTime: The time at which the Team Drive was created (RFC 3339
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// date-time).
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	CreatedTime string `json:"createdTime,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Id: The ID of this Team Drive which is also the ID of the top level
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// folder of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Id string `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// string "drive#teamDrive".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Name: The name of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Name string `json:"name,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// Restrictions: A set of restrictions that apply to this Team Drive or
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// items inside this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Restrictions *TeamDriveRestrictions `json:"restrictions,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ThemeId: The ID of the theme from which the background image and
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// color will be set. The set of possible teamDriveThemes can be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// retrieved from a drive.about.get response. When not specified on a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// drive.teamdrives.create request, a random theme is chosen from which
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// the background image and color are set. This is a write-only field;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// it can only be set on requests that don't set colorRgb or
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// backgroundImageFile.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ThemeId string `json:"themeId,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// ForceSendFields is a list of field names (e.g. "BackgroundImageFile")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// to unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// NullFields is a list of field names (e.g. "BackgroundImageFile") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TeamDrive: Deprecated: use the drive collection instead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*TeamDrive) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (s *TeamDrive) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type TeamDriveBackgroundImageFile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type TeamDriveBackgroundImageFile struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Id: The ID of an image file in Drive to use for the background image.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Id string `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// Width: The width of the cropped image in the closed range of 0 to 1.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// This value represents the width of the cropped image divided by the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// width of the entire image. The height is computed by applying a width
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// to height aspect ratio of 80 to 9. The resulting image must be at
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// least 1280 pixels wide and 144 pixels high.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Width float64 `json:"width,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// XCoordinate: The X coordinate of the upper left corner of the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// cropping area in the background image. This is a value in the closed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// range of 0 to 1. This value represents the horizontal distance from
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// the left side of the entire image to the left side of the cropping
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// area divided by the width of the entire image.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	XCoordinate float64 `json:"xCoordinate,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// YCoordinate: The Y coordinate of the upper left corner of the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// cropping area in the background image. This is a value in the closed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// range of 0 to 1. This value represents the vertical distance from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// top side of the entire image to the top side of the cropping area
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// divided by the height of the entire image.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	YCoordinate float64 `json:"yCoordinate,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// ForceSendFields is a list of field names (e.g. "Id") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// NullFields is a list of field names (e.g. "Id") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TeamDriveBackgroundImageFile: An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*TeamDriveBackgroundImageFile) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (s *TeamDriveBackgroundImageFile) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*TeamDriveBackgroundImageFile) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (s *TeamDriveBackgroundImageFile) UnmarshalJSON(data []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type TeamDriveCapabilities

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type TeamDriveCapabilities struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanAddChildren: Whether the current user can add children to folders
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// in this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanAddChildren bool `json:"canAddChildren,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanChangeCopyRequiresWriterPermissionRestriction: Whether the current
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// user can change the copyRequiresWriterPermission restriction of this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanChangeCopyRequiresWriterPermissionRestriction bool `json:"canChangeCopyRequiresWriterPermissionRestriction,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanChangeDomainUsersOnlyRestriction: Whether the current user can
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// change the domainUsersOnly restriction of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanChangeDomainUsersOnlyRestriction bool `json:"canChangeDomainUsersOnlyRestriction,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanChangeTeamDriveBackground: Whether the current user can change the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// background of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanChangeTeamDriveBackground bool `json:"canChangeTeamDriveBackground,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanChangeTeamMembersOnlyRestriction: Whether the current user can
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// change the teamMembersOnly restriction of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanChangeTeamMembersOnlyRestriction bool `json:"canChangeTeamMembersOnlyRestriction,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanComment: Whether the current user can comment on files in this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanComment bool `json:"canComment,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanCopy: Whether the current user can copy files in this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanCopy bool `json:"canCopy,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanDeleteChildren: Whether the current user can delete children from
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// folders in this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanDeleteChildren bool `json:"canDeleteChildren,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanDeleteTeamDrive: Whether the current user can delete this Team
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Drive. Attempting to delete the Team Drive may still fail if there
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// are untrashed items inside the Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanDeleteTeamDrive bool `json:"canDeleteTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanDownload: Whether the current user can download files in this Team
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanDownload bool `json:"canDownload,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanEdit: Whether the current user can edit files in this Team Drive
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanEdit bool `json:"canEdit,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanListChildren: Whether the current user can list the children of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// folders in this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanListChildren bool `json:"canListChildren,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanManageMembers: Whether the current user can add members to this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Team Drive or remove them or change their role.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanManageMembers bool `json:"canManageMembers,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanReadRevisions: Whether the current user can read the revisions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// resource of files in this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanReadRevisions bool `json:"canReadRevisions,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanRemoveChildren: Deprecated - use canDeleteChildren or
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// canTrashChildren instead.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanRemoveChildren bool `json:"canRemoveChildren,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanRename: Whether the current user can rename files or folders in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanRename bool `json:"canRename,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanRenameTeamDrive: Whether the current user can rename this Team
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanRenameTeamDrive bool `json:"canRenameTeamDrive,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanShare: Whether the current user can share files or folders in this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanShare bool `json:"canShare,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// CanTrashChildren: Whether the current user can trash children from
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// folders in this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CanTrashChildren bool `json:"canTrashChildren,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// ForceSendFields is a list of field names (e.g. "CanAddChildren") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// NullFields is a list of field names (e.g. "CanAddChildren") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// include in API requests with the JSON null value. By default, fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// with empty values are omitted from API requests. However, any field
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TeamDriveCapabilities: Capabilities the current user has on this Team Drive.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*TeamDriveCapabilities) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (s *TeamDriveCapabilities) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type TeamDriveList

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type TeamDriveList struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// Kind: Identifies what kind of resource this is. Value: the fixed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// string "drive#teamDriveList".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Kind string `json:"kind,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// NextPageToken: The page token for the next page of Team Drives. This
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// will be absent if the end of the Team Drives list has been reached.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// If the token is rejected for any reason, it should be discarded, and
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// pagination should be restarted from the first page of results.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	NextPageToken string `json:"nextPageToken,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// TeamDrives: The list of Team Drives. If nextPageToken is populated,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// then this list may be incomplete and an additional page of results
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// should be fetched.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	TeamDrives []*TeamDrive `json:"teamDrives,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// ServerResponse contains the HTTP response code and headers from the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// server.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	googleapi.ServerResponse `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// ForceSendFields is a list of field names (e.g. "Kind") to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// unconditionally include in API requests. By default, fields with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// empty values are omitted from API requests. However, any non-pointer,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// non-interface field appearing in ForceSendFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// server regardless of whether the field is empty or not. This may be
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// used to include empty fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// NullFields is a list of field names (e.g. "Kind") to include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// requests with the JSON null value. By default, fields with empty
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// values are omitted from API requests. However, any field with an
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// empty value appearing in NullFields will be sent to the server as
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// null. It is an error if a field in this list has a non-empty value.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// This may be used to include null fields in Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TeamDriveList: A list of Team Drives.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*TeamDriveList) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (s *TeamDriveList) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type TeamDriveRestrictions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type TeamDriveRestrictions struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// AdminManagedRestrictions: Whether administrative privileges on this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// Team Drive are required to modify restrictions.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	AdminManagedRestrictions bool `json:"adminManagedRestrictions,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// CopyRequiresWriterPermission: Whether the options to copy, print, or
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// download files inside this Team Drive, should be disabled for readers
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// and commenters. When this restriction is set to true, it will
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// override the similarly named field to true for any file inside this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	CopyRequiresWriterPermission bool `json:"copyRequiresWriterPermission,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// DomainUsersOnly: Whether access to this Team Drive and items inside
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// this Team Drive is restricted to users of the domain to which this
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// Team Drive belongs. This restriction may be overridden by other
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// sharing policies controlled outside of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DomainUsersOnly bool `json:"domainUsersOnly,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// TeamMembersOnly: Whether access to items inside this Team Drive is
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// restricted to members of this Team Drive.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	TeamMembersOnly bool `json:"teamMembersOnly,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// ForceSendFields is a list of field names (e.g.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// "AdminManagedRestrictions") to unconditionally include in API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// requests. By default, fields with empty values are omitted from API
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// requests. However, any non-pointer, non-interface field appearing in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// ForceSendFields will be sent to the server regardless of whether the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// field is empty or not. This may be used to include empty fields in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// Patch requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ForceSendFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// NullFields is a list of field names (e.g. "AdminManagedRestrictions")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// to include in API requests with the JSON null value. By default,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// fields with empty values are omitted from API requests. However, any
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// field with an empty value appearing in NullFields will be sent to the
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// server as null. It is an error if a field in this list has a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// non-empty value. This may be used to include null fields in Patch
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// requests.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	NullFields []string `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TeamDriveRestrictions: A set of restrictions that apply to this Team Drive or items inside this Team Drive.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*TeamDriveRestrictions) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (s *TeamDriveRestrictions) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type TeamdrivesCreateCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*TeamdrivesCreateCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*TeamdrivesCreateCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Do executes the "drive.teamdrives.create" call. Exactly one of *TeamDrive or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TeamDrive.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*TeamdrivesCreateCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*TeamdrivesCreateCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (c *TeamdrivesCreateCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type TeamdrivesDeleteCall

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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*TeamdrivesDeleteCall) Context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*TeamdrivesDeleteCall) Do

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Do executes the "drive.teamdrives.delete" call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*TeamdrivesDeleteCall) Fields

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*TeamdrivesDeleteCall) Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *TeamdrivesDeleteCall) Header() http.Header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.