1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 01:23:24 +00:00

vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2017-07-23 08:51:42 +01:00
parent 0b6fba34a3
commit eb87cf6f12
2008 changed files with 352633 additions and 1004750 deletions

View File

@@ -1,417 +0,0 @@
{
"kind": "discovery#restDescription",
"etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/FTLIUQcWnGO3l5qW6_h6eaBCpEs\"",
"discoveryVersion": "v1",
"id": "drive:v1",
"name": "drive",
"version": "v1",
"revision": "20160425",
"title": "Drive API",
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"ownerDomain": "google.com",
"ownerName": "Google",
"icons": {
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
},
"documentationLink": "https://developers.google.com/drive/",
"protocol": "rest",
"baseUrl": "https://www.googleapis.com/drive/v1/",
"basePath": "/drive/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "drive/v1/",
"batchPath": "batch",
"parameters": {
"alt": {
"type": "string",
"description": "Data format for the response.",
"default": "json",
"enum": [
"json"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
],
"location": "query"
},
"fields": {
"type": "string",
"description": "Selector specifying which fields to include in a partial response.",
"location": "query"
},
"key": {
"type": "string",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query"
},
"oauth_token": {
"type": "string",
"description": "OAuth 2.0 token for the current user.",
"location": "query"
},
"prettyPrint": {
"type": "boolean",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"location": "query"
},
"quotaUser": {
"type": "string",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location": "query"
},
"userIp": {
"type": "string",
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location": "query"
}
},
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/drive.file": {
"description": "View and manage Google Drive files and folders that you have opened or created with this app"
}
}
}
},
"schemas": {
"File": {
"id": "File",
"type": "object",
"description": "The metadata for a file.",
"properties": {
"createdDate": {
"type": "string",
"description": "Create time for this file (formatted RFC 3339 timestamp).",
"format": "date-time"
},
"description": {
"type": "string",
"description": "A short description of the file"
},
"downloadUrl": {
"type": "string"
},
"etag": {
"type": "string",
"description": "ETag of the file."
},
"fileExtension": {
"type": "string",
"description": "The file extension used when downloading this file. This field is read only. To set the extension, include it on title when creating the file. This will only be populated on files with content stored in Drive."
},
"fileSize": {
"type": "string",
"description": "The size of the file in bytes. This will only be populated on files with content stored in Drive.",
"format": "int64"
},
"id": {
"type": "string",
"description": "The id of the file."
},
"indexableText": {
"type": "object",
"description": "Indexable text attributes for the file (can only be written)",
"properties": {
"text": {
"type": "string",
"description": "The text to be indexed for this file"
}
}
},
"kind": {
"type": "string",
"description": "The type of file. This is always drive#file",
"default": "drive#file"
},
"labels": {
"type": "object",
"description": "Labels for the file.",
"properties": {
"hidden": {
"type": "boolean",
"description": "Whether this file is hidden from the user"
},
"starred": {
"type": "boolean",
"description": "Whether this file is starred by the user."
},
"trashed": {
"type": "boolean",
"description": "Whether this file has been trashed."
}
}
},
"lastViewedDate": {
"type": "string",
"description": "Last time this file was viewed by the user (formatted RFC 3339 timestamp).",
"format": "date-time"
},
"md5Checksum": {
"type": "string",
"description": "An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive."
},
"mimeType": {
"type": "string",
"description": "The mimetype of the file"
},
"modifiedByMeDate": {
"type": "string",
"description": "Last time this file was modified by the user (formatted RFC 3339 timestamp).",
"format": "date-time"
},
"modifiedDate": {
"type": "string",
"description": "Last time this file was modified by anyone (formatted RFC 3339 timestamp).",
"format": "date-time"
},
"parentsCollection": {
"type": "array",
"description": "Collection of parent folders which contain this file.\nOn insert, setting this field will put the file in all of the provided folders. If no folders are provided, the file will be placed in the default root folder. On update, this field is ignored.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id of this parent"
},
"parentLink": {
"type": "string",
"description": "A link to get the metadata for this parent"
}
}
}
},
"selfLink": {
"type": "string",
"description": "A link back to this file."
},
"title": {
"type": "string",
"description": "The title of this file."
},
"userPermission": {
"$ref": "Permission",
"description": "The permissions for the authenticated user on this file."
}
}
},
"Permission": {
"id": "Permission",
"type": "object",
"description": "A single permission for a file.",
"properties": {
"additionalRoles": {
"type": "array",
"description": "Any additional roles that this permission describes.",
"items": {
"type": "string"
}
},
"etag": {
"type": "string",
"description": "An etag for this permission."
},
"kind": {
"type": "string",
"description": "The kind of this permission. This is always drive#permission",
"default": "drive#permission"
},
"role": {
"type": "string",
"description": "The role that this permission describes. (For example: reader, writer, owner)"
},
"type": {
"type": "string",
"description": "The type of permission (For example: user, group etc)."
}
}
}
},
"resources": {
"files": {
"methods": {
"get": {
"id": "drive.files.get",
"path": "files/{id}",
"httpMethod": "GET",
"description": "Gets a file's metadata by id.",
"parameters": {
"id": {
"type": "string",
"description": "The id for the file in question.",
"required": true,
"location": "path"
},
"projection": {
"type": "string",
"description": "This parameter is deprecated and has no function.",
"enum": [
"BASIC",
"FULL"
],
"enumDescriptions": [
"Deprecated",
"Deprecated"
],
"location": "query"
},
"updateViewedDate": {
"type": "boolean",
"description": "Whether to update the view date after successfully retrieving the file.",
"default": "true",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"response": {
"$ref": "File"
},
"scopes": [
"https://www.googleapis.com/auth/drive.file"
]
},
"insert": {
"id": "drive.files.insert",
"path": "files",
"httpMethod": "POST",
"description": "Inserts a file, and any settable metadata or blob content sent with the request.",
"request": {
"$ref": "File"
},
"response": {
"$ref": "File"
},
"scopes": [
"https://www.googleapis.com/auth/drive.file"
],
"supportsMediaUpload": true,
"mediaUpload": {
"accept": [
"*/*"
],
"maxSize": "5120GB",
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/drive/v1/files"
},
"resumable": {
"multipart": true,
"path": "/resumable/upload/drive/v1/files"
}
}
}
},
"patch": {
"id": "drive.files.patch",
"path": "files/{id}",
"httpMethod": "PATCH",
"description": "Updates file metadata and/or content. This method supports patch semantics.",
"parameters": {
"id": {
"type": "string",
"description": "The id for the file in question.",
"required": true,
"location": "path"
},
"newRevision": {
"type": "boolean",
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions.",
"default": "true",
"location": "query"
},
"updateModifiedDate": {
"type": "boolean",
"description": "Controls updating the modified date of the file. If true, the modified date will be updated to the current time, regardless of whether other changes are being made. If false, the modified date will only be updated to the current time if other changes are also being made (changing the title, for example).",
"default": "false",
"location": "query"
},
"updateViewedDate": {
"type": "boolean",
"description": "Whether to update the view date after successfully updating the file.",
"default": "true",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"request": {
"$ref": "File"
},
"response": {
"$ref": "File"
},
"scopes": [
"https://www.googleapis.com/auth/drive.file"
]
},
"update": {
"id": "drive.files.update",
"path": "files/{id}",
"httpMethod": "PUT",
"description": "Updates file metadata and/or content",
"parameters": {
"id": {
"type": "string",
"description": "The id for the file in question.",
"required": true,
"location": "path"
},
"newRevision": {
"type": "boolean",
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions.",
"default": "true",
"location": "query"
},
"updateModifiedDate": {
"type": "boolean",
"description": "Controls updating the modified date of the file. If true, the modified date will be updated to the current time, regardless of whether other changes are being made. If false, the modified date will only be updated to the current time if other changes are also being made (changing the title, for example).",
"default": "false",
"location": "query"
},
"updateViewedDate": {
"type": "boolean",
"description": "Whether to update the view date after successfully updating the file.",
"default": "true",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"request": {
"$ref": "File"
},
"response": {
"$ref": "File"
},
"scopes": [
"https://www.googleapis.com/auth/drive.file"
],
"supportsMediaUpload": true,
"mediaUpload": {
"accept": [
"*/*"
],
"maxSize": "5120GB",
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/drive/v1/files/{id}"
},
"resumable": {
"multipart": true,
"path": "/resumable/upload/drive/v1/files/{id}"
}
}
}
}
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/wZaClgEOt_sdgi-MJA2ZIUoCxK0\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/GZBaoIT2JIa-WG47c56OJgYWjRw\"",
"discoveryVersion": "v1",
"id": "drive:v2",
"name": "drive",
"version": "v2",
"revision": "20170420",
"revision": "20170623",
"title": "Drive API",
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"ownerDomain": "google.com",
@@ -1080,7 +1080,7 @@
},
"hasThumbnail": {
"type": "boolean",
"description": "Whether this file has a thumbnail."
"description": "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."
},
"headRevisionId": {
"type": "string",
@@ -1600,11 +1600,11 @@
},
"authKey": {
"type": "string",
"description": "The authkey parameter required for this permission."
"description": "Deprecated."
},
"deleted": {
"type": "boolean",
"description": "Whether the account of the permission has been deleted. This field only pertains to user and group permissions."
"description": "Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions."
},
"domain": {
"type": "string",
@@ -1949,7 +1949,7 @@
"properties": {
"backgroundImageFile": {
"type": "object",
"description": "An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field that can only be set on a drive.teamdrives.update request that does not set themeId. When specified, all fields of the backgroundImageFile must be set.",
"description": "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.",
"properties": {
"id": {
"type": "string",
@@ -1957,17 +1957,17 @@
},
"width": {
"type": "number",
"description": "The width of the cropped image in the closed range of 0 to 1, which is 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.",
"description": "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.",
"format": "float"
},
"xCoordinate": {
"type": "number",
"description": "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 which is 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.",
"description": "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.",
"format": "float"
},
"yCoordinate": {
"type": "number",
"description": "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 which is 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.",
"description": "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.",
"format": "float"
}
}
@@ -2057,7 +2057,7 @@
},
"themeId": {
"type": "string",
"description": "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.insert request, a random theme is chosen from which the background image and color are set. This is a write only field that can only be set on a request that does not set colorRgb or backgroundImageFile."
"description": "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.insert 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."
}
}
},
@@ -2993,7 +2993,7 @@
"id": "drive.files.export",
"path": "files/{fileId}/export",
"httpMethod": "GET",
"description": "Exports a Google Doc to the requested MIME type and returns the exported content.",
"description": "Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.",
"parameters": {
"fileId": {
"type": "string",

View File

@@ -1493,7 +1493,9 @@ type File struct {
// files.
HasAugmentedPermissions bool `json:"hasAugmentedPermissions,omitempty"`
// HasThumbnail: Whether this file has a thumbnail.
// 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 field is
@@ -2304,11 +2306,11 @@ type Permission struct {
// currently allowed, though more may be supported in the future.
AdditionalRoles []string `json:"additionalRoles,omitempty"`
// AuthKey: The authkey parameter required for this permission.
// AuthKey: Deprecated.
AuthKey string `json:"authKey,omitempty"`
// Deleted: Whether the account of the permission has been deleted. This
// field only pertains to user and group permissions.
// 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"`
// Domain: The domain name of the entity this permission refers to. This
@@ -2828,8 +2830,8 @@ func (s *StartPageToken) MarshalJSON() ([]byte, error) {
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 that can only be set on a drive.teamdrives.update request that
// does not set themeId. When specified, all fields of the
// 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"`
@@ -2859,8 +2861,8 @@ type TeamDrive struct {
// 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.insert request, a random theme is chosen from which
// the background image and color are set. This is a write only field
// that can only be set on a request that does not set colorRgb or
// 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"`
@@ -2894,32 +2896,32 @@ func (s *TeamDrive) MarshalJSON() ([]byte, error) {
// TeamDriveBackgroundImageFile: An image file and cropping parameters
// from which a background image for this Team Drive is set. This is a
// write only field that can only be set on a drive.teamdrives.update
// request that does not set themeId. When specified, all fields of the
// 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.
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,
// which is 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: 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 which is 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.
// 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 which is 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.
// 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
@@ -6622,7 +6624,8 @@ type FilesExportCall struct {
}
// Export: Exports a Google Doc to the requested MIME type and returns
// the exported content.
// the exported content. Please note that the exported content is
// limited to 10MB.
func (r *FilesService) Export(fileId string, mimeType string) *FilesExportCall {
c := &FilesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.fileId = fileId
@@ -6715,7 +6718,7 @@ func (c *FilesExportCall) Do(opts ...googleapi.CallOption) error {
}
return nil
// {
// "description": "Exports a Google Doc to the requested MIME type and returns the exported content.",
// "description": "Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.",
// "httpMethod": "GET",
// "id": "drive.files.export",
// "parameterOrder": [

View File

@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/WfoJVrpU3dcFjezsbCAPqfEXt3Y\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/UFnN-1uMaWxq-BESPylMBj6ravQ\"",
"discoveryVersion": "v1",
"id": "drive:v3",
"name": "drive",
"version": "v3",
"revision": "20170420",
"revision": "20170623",
"title": "Drive API",
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"ownerDomain": "google.com",
@@ -567,7 +567,7 @@
},
"hasThumbnail": {
"type": "boolean",
"description": "Whether this file has a thumbnail."
"description": "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."
},
"headRevisionId": {
"type": "string",
@@ -947,7 +947,7 @@
},
"deleted": {
"type": "boolean",
"description": "Whether the account of the permission has been deleted. This field only pertains to user and group permissions."
"description": "Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions."
},
"displayName": {
"type": "string",
@@ -1008,7 +1008,7 @@
},
"teamDrivePermissionType": {
"type": "string",
"description": "The Team Drive permission type for this user. While new values may be added in future, the following are currently possible: \n- file\n- \n- member"
"description": "The Team Drive permission type for this user. While new values may be added in future, the following are currently possible: \n- file \n- member"
}
}
}
@@ -1224,7 +1224,7 @@
"properties": {
"backgroundImageFile": {
"type": "object",
"description": "An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field that can only be set on a drive.teamdrives.update request that does not set themeId. When specified, all fields of the backgroundImageFile must be set.",
"description": "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.",
"properties": {
"id": {
"type": "string",
@@ -1232,17 +1232,17 @@
},
"width": {
"type": "number",
"description": "The width of the cropped image in the closed range of 0 to 1, which is 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.",
"description": "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.",
"format": "float"
},
"xCoordinate": {
"type": "number",
"description": "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 which is 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.",
"description": "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.",
"format": "float"
},
"yCoordinate": {
"type": "number",
"description": "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 which is 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.",
"description": "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.",
"format": "float"
}
}
@@ -1332,7 +1332,7 @@
},
"themeId": {
"type": "string",
"description": "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 that can only be set on a request that does not set colorRgb or backgroundImageFile."
"description": "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."
}
}
},
@@ -1979,7 +1979,7 @@
"id": "drive.files.export",
"path": "files/{fileId}/export",
"httpMethod": "GET",
"description": "Exports a Google Doc to the requested MIME type and returns the exported content.",
"description": "Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.",
"parameters": {
"fileId": {
"type": "string",

View File

@@ -714,7 +714,9 @@ type File struct {
// files.
HasAugmentedPermissions bool `json:"hasAugmentedPermissions,omitempty"`
// HasThumbnail: Whether this file has a thumbnail.
// 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
@@ -1385,8 +1387,8 @@ type Permission struct {
// type domain or anyone.
AllowFileDiscovery bool `json:"allowFileDiscovery,omitempty"`
// Deleted: Whether the account of the permission has been deleted. This
// field only pertains to user and group permissions.
// 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: A displayable name for users, groups or domains.
@@ -1489,7 +1491,6 @@ type PermissionTeamDrivePermissionDetails struct {
// user. While new values may be added in future, the following are
// currently possible:
// - file
// -
// - member
TeamDrivePermissionType string `json:"teamDrivePermissionType,omitempty"`
@@ -1830,8 +1831,8 @@ func (s *StartPageToken) MarshalJSON() ([]byte, error) {
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 that can only be set on a drive.teamdrives.update request that
// does not set themeId. When specified, all fields of the
// 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"`
@@ -1862,8 +1863,8 @@ type TeamDrive struct {
// 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
// that can only be set on a request that does not set colorRgb or
// 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"`
@@ -1897,32 +1898,32 @@ func (s *TeamDrive) MarshalJSON() ([]byte, error) {
// TeamDriveBackgroundImageFile: An image file and cropping parameters
// from which a background image for this Team Drive is set. This is a
// write only field that can only be set on a drive.teamdrives.update
// request that does not set themeId. When specified, all fields of the
// 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.
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,
// which is 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: 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 which is 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.
// 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 which is 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.
// 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
@@ -4501,7 +4502,8 @@ type FilesExportCall struct {
}
// Export: Exports a Google Doc to the requested MIME type and returns
// the exported content.
// the exported content. Please note that the exported content is
// limited to 10MB.
func (r *FilesService) Export(fileId string, mimeType string) *FilesExportCall {
c := &FilesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.fileId = fileId
@@ -4594,7 +4596,7 @@ func (c *FilesExportCall) Do(opts ...googleapi.CallOption) error {
}
return nil
// {
// "description": "Exports a Google Doc to the requested MIME type and returns the exported content.",
// "description": "Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.",
// "httpMethod": "GET",
// "id": "drive.files.export",
// "parameterOrder": [