1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-01 16:13:35 +00:00

vendor: update to latest versions of everything

This commit is contained in:
Nick Craig-Wood
2018-09-21 11:01:55 +01:00
parent 4415aa5c2e
commit 467fe30a5e
276 changed files with 38996 additions and 14449 deletions

View File

@@ -38,7 +38,7 @@
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/f5YU4B1YgiNFEadOJN80qPxEFqA\"",
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/IpWGMl9VbmiTG9s-ZaBZIrC4CgE\"",
"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"
@@ -1442,7 +1442,7 @@
]
},
"trash": {
"description": "Moves a file to the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.",
"description": "Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for Team Drive files.",
"httpMethod": "POST",
"id": "drive.files.trash",
"parameterOrder": [
@@ -1883,7 +1883,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -1923,7 +1923,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -2004,7 +2004,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -2056,7 +2056,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -2115,7 +2115,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -2173,7 +2173,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -2965,7 +2965,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 Team Drive belongs.",
"description": "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 Team Drive belongs.",
"location": "query",
"type": "boolean"
}
@@ -3031,7 +3031,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
"description": "Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
"location": "query",
"type": "boolean"
}
@@ -3058,6 +3058,12 @@
"location": "path",
"required": true,
"type": "string"
},
"useDomainAdminAccess": {
"default": "false",
"description": "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 Team Drive belongs.",
"location": "query",
"type": "boolean"
}
},
"path": "teamdrives/{teamDriveId}",
@@ -3074,7 +3080,7 @@
}
}
},
"revision": "20180413",
"revision": "20180830",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -3928,8 +3934,12 @@
"description": "Whether the current user can add children to this folder. This is always false when the item is not a folder.",
"type": "boolean"
},
"canChangeCopyRequiresWriterPermission": {
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file.",
"type": "boolean"
},
"canChangeRestrictedDownload": {
"description": "Whether the current user can change the restricted download label of this file.",
"description": "Deprecated",
"type": "boolean"
},
"canComment": {
@@ -3944,6 +3954,10 @@
"description": "Whether the current user can delete this file.",
"type": "boolean"
},
"canDeleteChildren": {
"description": "Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canDownload": {
"description": "Whether the current user can download this file.",
"type": "boolean"
@@ -3956,12 +3970,28 @@
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
"type": "boolean"
},
"canMoveChildrenOutOfTeamDrive": {
"description": "Whether the current user can move children of this folder outside of the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveChildrenWithinTeamDrive": {
"description": "Whether the current user can move children of this folder within the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveItemIntoTeamDrive": {
"description": "Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.",
"type": "boolean"
},
"canMoveItemOutOfTeamDrive": {
"description": "Whether the current user can move this Team Drive item outside of this Team 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. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveItemWithinTeamDrive": {
"description": "Whether the current user can move this Team Drive item within this Team Drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveTeamDriveItem": {
"description": "Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.",
"description": "Deprecated - use canMoveItemWithinTeamDrive or canMoveItemOutOfTeamDrive instead.",
"type": "boolean"
},
"canReadRevisions": {
@@ -3973,7 +4003,7 @@
"type": "boolean"
},
"canRemoveChildren": {
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder.",
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder. For Team Drive items, use canDeleteChildren or canTrashChildren instead.",
"type": "boolean"
},
"canRename": {
@@ -3988,6 +4018,10 @@
"description": "Whether the current user can move this file to trash.",
"type": "boolean"
},
"canTrashChildren": {
"description": "Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canUntrash": {
"description": "Whether the current user can restore this file from trash.",
"type": "boolean"
@@ -3995,6 +4029,10 @@
},
"type": "object"
},
"copyRequiresWriterPermission": {
"description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.",
"type": "boolean"
},
"copyable": {
"description": "Deprecated: use capabilities/canCopy.",
"type": "boolean"
@@ -4224,7 +4262,7 @@
"type": "boolean"
},
"restricted": {
"description": "Whether viewers and commenters are prevented from downloading, printing, and copying this file.",
"description": "Deprecated - use copyRequiresWriterPermission instead.",
"type": "boolean"
},
"starred": {
@@ -4635,7 +4673,7 @@
"drive.permissions.insert"
]
},
"description": "The primary role for this user. While new values may be supported in the future, the following are currently allowed: \n- organizer \n- owner \n- reader \n- writer",
"description": "The primary role for this user. While new values may be supported in the future, the following are currently allowed: \n- owner \n- organizer \n- fileOrganizer \n- writer \n- reader",
"type": "string"
},
"selfLink": {
@@ -4662,7 +4700,7 @@
"type": "string"
},
"role": {
"description": "The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- reader \n- writer",
"description": "The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- fileOrganizer \n- writer \n- reader",
"type": "string"
},
"teamDrivePermissionType": {
@@ -4977,10 +5015,22 @@
"description": "Whether the current user can add children to folders in this Team Drive.",
"type": "boolean"
},
"canChangeCopyRequiresWriterPermissionRestriction": {
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.",
"type": "boolean"
},
"canChangeDomainUsersOnlyRestriction": {
"description": "Whether the current user can change the domainUsersOnly restriction of this Team Drive.",
"type": "boolean"
},
"canChangeTeamDriveBackground": {
"description": "Whether the current user can change the background of this Team Drive.",
"type": "boolean"
},
"canChangeTeamMembersOnlyRestriction": {
"description": "Whether the current user can change the teamMembersOnly restriction of this Team Drive.",
"type": "boolean"
},
"canComment": {
"description": "Whether the current user can comment on files in this Team Drive.",
"type": "boolean"
@@ -4989,6 +5039,10 @@
"description": "Whether the current user can copy files in this Team Drive.",
"type": "boolean"
},
"canDeleteChildren": {
"description": "Whether the current user can delete children from folders in this Team Drive.",
"type": "boolean"
},
"canDeleteTeamDrive": {
"description": "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.",
"type": "boolean"
@@ -5014,7 +5068,7 @@
"type": "boolean"
},
"canRemoveChildren": {
"description": "Whether the current user can remove children from folders in this Team Drive.",
"description": "Deprecated - use canDeleteChildren or canTrashChildren instead.",
"type": "boolean"
},
"canRename": {
@@ -5028,6 +5082,10 @@
"canShare": {
"description": "Whether the current user can share files or folders in this Team Drive.",
"type": "boolean"
},
"canTrashChildren": {
"description": "Whether the current user can trash children from folders in this Team Drive.",
"type": "boolean"
}
},
"type": "object"
@@ -5042,7 +5100,7 @@
"type": "string"
},
"id": {
"description": "The ID of this Team Drive which is also the ID of the top level folder for this Team Drive.",
"description": "The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.",
"type": "string"
},
"kind": {
@@ -5059,6 +5117,28 @@
"description": "The name of this Team Drive.",
"type": "string"
},
"restrictions": {
"description": "A set of restrictions that apply to this Team Drive or items inside this Team Drive.",
"properties": {
"adminManagedRestrictions": {
"description": "Whether administrative privileges on this Team Drive are required to modify restrictions.",
"type": "boolean"
},
"copyRequiresWriterPermission": {
"description": "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.",
"type": "boolean"
},
"domainUsersOnly": {
"description": "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.",
"type": "boolean"
},
"teamMembersOnly": {
"description": "Whether access to items inside this Team Drive is restricted to members of this Team Drive.",
"type": "boolean"
}
},
"type": "object"
},
"themeId": {
"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.",
"type": "string"

View File

@@ -1432,6 +1432,10 @@ type File struct {
// capability corresponds to a fine-grained action that a user may take.
Capabilities *FileCapabilities `json:"capabilities,omitempty"`
// CopyRequiresWriterPermission: Whether the options to copy, print, or
// download this file, should be disabled for readers and commenters.
CopyRequiresWriterPermission bool `json:"copyRequiresWriterPermission,omitempty"`
// Copyable: Deprecated: use capabilities/canCopy.
Copyable bool `json:"copyable,omitempty"`
@@ -1722,8 +1726,11 @@ type FileCapabilities struct {
// folder. This is always false when the item is not a folder.
CanAddChildren bool `json:"canAddChildren,omitempty"`
// CanChangeRestrictedDownload: Whether the current user can change the
// restricted download label of this file.
// CanChangeCopyRequiresWriterPermission: Whether the current user can
// change the copyRequiresWriterPermission restriction of this file.
CanChangeCopyRequiresWriterPermission bool `json:"canChangeCopyRequiresWriterPermission,omitempty"`
// CanChangeRestrictedDownload: Deprecated
CanChangeRestrictedDownload bool `json:"canChangeRestrictedDownload,omitempty"`
// CanComment: Whether the current user can comment on this file.
@@ -1737,6 +1744,11 @@ type FileCapabilities struct {
// 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 Team Drive items.
CanDeleteChildren bool `json:"canDeleteChildren,omitempty"`
// CanDownload: Whether the current user can download this file.
CanDownload bool `json:"canDownload,omitempty"`
@@ -1747,15 +1759,36 @@ type FileCapabilities struct {
// this folder. This is always false when the item is not a folder.
CanListChildren bool `json:"canListChildren,omitempty"`
// CanMoveChildrenOutOfTeamDrive: Whether the current user can move
// children of this folder outside of the Team Drive. This is false when
// the item is not a folder. Only populated for Team Drive items.
CanMoveChildrenOutOfTeamDrive bool `json:"canMoveChildrenOutOfTeamDrive,omitempty"`
// CanMoveChildrenWithinTeamDrive: Whether the current user can move
// children of this folder within the Team Drive. This is false when the
// item is not a folder. Only populated for Team Drive items.
CanMoveChildrenWithinTeamDrive bool `json:"canMoveChildrenWithinTeamDrive,omitempty"`
// CanMoveItemIntoTeamDrive: Whether the current user can move this item
// into a Team Drive. If the item is in a Team Drive, this field is
// equivalent to canMoveTeamDriveItem.
CanMoveItemIntoTeamDrive bool `json:"canMoveItemIntoTeamDrive,omitempty"`
// CanMoveTeamDriveItem: Whether the current user can move this Team
// Drive item by changing its parent. Note that a request to change the
// parent for this item may still fail depending on the new parent that
// is being added. Only populated for Team Drive files.
// CanMoveItemOutOfTeamDrive: Whether the current user can move this
// Team Drive item outside of this Team 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. Only populated for
// Team Drive items.
CanMoveItemOutOfTeamDrive bool `json:"canMoveItemOutOfTeamDrive,omitempty"`
// CanMoveItemWithinTeamDrive: Whether the current user can move this
// Team Drive item within this Team Drive. Note that a request to change
// the parent of the item may still fail depending on the new parent
// that is being added. Only populated for Team Drive items.
CanMoveItemWithinTeamDrive bool `json:"canMoveItemWithinTeamDrive,omitempty"`
// CanMoveTeamDriveItem: Deprecated - use canMoveItemWithinTeamDrive or
// canMoveItemOutOfTeamDrive instead.
CanMoveTeamDriveItem bool `json:"canMoveTeamDriveItem,omitempty"`
// CanReadRevisions: Whether the current user can read the revisions
@@ -1769,7 +1802,8 @@ type FileCapabilities struct {
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.
// this folder. This is always false when the item is not a folder. For
// Team Drive items, use canDeleteChildren or canTrashChildren instead.
CanRemoveChildren bool `json:"canRemoveChildren,omitempty"`
// CanRename: Whether the current user can rename this file.
@@ -1782,6 +1816,11 @@ type FileCapabilities struct {
// 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 Team Drive items.
CanTrashChildren bool `json:"canTrashChildren,omitempty"`
// CanUntrash: Whether the current user can restore this file from
// trash.
CanUntrash bool `json:"canUntrash,omitempty"`
@@ -2015,8 +2054,7 @@ type FileLabels struct {
// Modified: Whether the file has been modified by this user.
Modified bool `json:"modified,omitempty"`
// Restricted: Whether viewers and commenters are prevented from
// downloading, printing, and copying this file.
// Restricted: Deprecated - use copyRequiresWriterPermission instead.
Restricted bool `json:"restricted,omitempty"`
// Starred: Whether this file is starred by the user.
@@ -2362,10 +2400,11 @@ type Permission struct {
// Role: The primary role for this user. While new values may be
// supported in the future, the following are currently allowed:
// - organizer
// - owner
// - reader
// - organizer
// - fileOrganizer
// - writer
// - reader
Role string `json:"role,omitempty"`
// SelfLink: A link back to this permission.
@@ -2438,8 +2477,9 @@ type PermissionTeamDrivePermissionDetails struct {
// Role: The primary role for this user. While new values may be added
// in the future, the following are currently possible:
// - organizer
// - reader
// - fileOrganizer
// - writer
// - reader
Role string `json:"role,omitempty"`
// TeamDrivePermissionType: The Team Drive permission type for this
@@ -2862,7 +2902,7 @@ type TeamDrive struct {
CreatedDate string `json:"createdDate,omitempty"`
// Id: The ID of this Team Drive which is also the ID of the top level
// folder for this Team Drive.
// folder of this Team Drive.
Id string `json:"id,omitempty"`
// Kind: This is always drive#teamDrive
@@ -2871,6 +2911,10 @@ type TeamDrive struct {
// 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
@@ -2986,10 +3030,23 @@ type TeamDriveCapabilities struct {
// 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"`
@@ -2997,6 +3054,10 @@ type TeamDriveCapabilities struct {
// 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.
@@ -3021,8 +3082,8 @@ type TeamDriveCapabilities struct {
// resource of files in this Team Drive.
CanReadRevisions bool `json:"canReadRevisions,omitempty"`
// CanRemoveChildren: Whether the current user can remove children from
// folders in this Team Drive.
// CanRemoveChildren: Deprecated - use canDeleteChildren or
// canTrashChildren instead.
CanRemoveChildren bool `json:"canRemoveChildren,omitempty"`
// CanRename: Whether the current user can rename files or folders in
@@ -3037,6 +3098,10 @@ type TeamDriveCapabilities struct {
// 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,
@@ -3061,6 +3126,55 @@ func (s *TeamDriveCapabilities) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TeamDriveRestrictions: A set of restrictions that apply to this Team
// Drive or items inside this Team Drive.
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:"-"`
}
func (s *TeamDriveRestrictions) MarshalJSON() ([]byte, error) {
type NoMethod TeamDriveRestrictions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TeamDriveList: A list of Team Drives.
type TeamDriveList struct {
// Items: The list of Team Drives.
@@ -3259,6 +3373,7 @@ func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "about")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3409,6 +3524,7 @@ func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "apps/{appId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3580,6 +3696,7 @@ func (c *AppsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "apps")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3737,6 +3854,7 @@ func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes/{changeId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3906,6 +4024,7 @@ func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, er
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes/startPageToken")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -4130,6 +4249,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -4417,6 +4537,7 @@ func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes/watch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -4604,6 +4725,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "channels/stop")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -4698,6 +4820,7 @@ func (c *ChildrenDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{folderId}/children/{childId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -4818,6 +4941,7 @@ func (c *ChildrenGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{folderId}/children/{childId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -4969,6 +5093,7 @@ func (c *ChildrenInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{folderId}/children")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -5152,6 +5277,7 @@ func (c *ChildrenListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{folderId}/children")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5327,6 +5453,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -5455,6 +5582,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5601,6 +5729,7 @@ func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -5774,6 +5903,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5955,6 +6085,7 @@ func (c *CommentsPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -6099,6 +6230,7 @@ func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -6304,6 +6436,7 @@ func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/copy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -6496,6 +6629,7 @@ func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -6597,6 +6731,7 @@ func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/trash")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -6695,6 +6830,7 @@ func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/export")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -6844,6 +6980,7 @@ func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/generateIds")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -7028,6 +7165,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -7327,6 +7465,7 @@ func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
@@ -7660,6 +7799,7 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -8005,6 +8145,7 @@ func (c *FilesPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -8237,6 +8378,7 @@ func (c *FilesTouchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/touch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -8331,8 +8473,8 @@ type FilesTrashCall struct {
}
// Trash: Moves a file to the trash. The currently authenticated user
// must own the file or be an organizer on the parent for Team Drive
// files.
// must own the file or be at least a fileOrganizer on the parent for
// Team Drive files.
func (r *FilesService) Trash(fileId string) *FilesTrashCall {
c := &FilesTrashCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.fileId = fileId
@@ -8379,6 +8521,7 @@ func (c *FilesTrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/trash")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -8427,7 +8570,7 @@ func (c *FilesTrashCall) Do(opts ...googleapi.CallOption) (*File, error) {
}
return ret, nil
// {
// "description": "Moves a file to the trash. The currently authenticated user must own the file or be an organizer on the parent for Team Drive files.",
// "description": "Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for Team Drive files.",
// "httpMethod": "POST",
// "id": "drive.files.trash",
// "parameterOrder": [
@@ -8518,6 +8661,7 @@ func (c *FilesUntrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/untrash")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -8819,6 +8963,7 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
@@ -9138,6 +9283,7 @@ func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/watch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -9328,6 +9474,7 @@ func (c *ParentsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/parents/{parentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -9448,6 +9595,7 @@ func (c *ParentsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/parents/{parentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -9599,6 +9747,7 @@ func (c *ParentsInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/parents")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -9747,6 +9896,7 @@ func (c *ParentsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/parents")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -9853,10 +10003,9 @@ func (c *PermissionsDeleteCall) SupportsTeamDrives(supportsTeamDrives bool) *Per
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsDeleteCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsDeleteCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -9895,6 +10044,7 @@ func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -9947,7 +10097,7 @@ func (c *PermissionsDeleteCall) Do(opts ...googleapi.CallOption) error {
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -9989,10 +10139,9 @@ func (c *PermissionsGetCall) SupportsTeamDrives(supportsTeamDrives bool) *Permis
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsGetCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -10044,6 +10193,7 @@ func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -10121,7 +10271,7 @@ func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, erro
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -10206,6 +10356,7 @@ func (c *PermissionsGetIdForEmailCall) doRequest(alt string) (*http.Response, er
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "permissionIds/{email}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -10329,10 +10480,9 @@ func (c *PermissionsInsertCall) SupportsTeamDrives(supportsTeamDrives bool) *Per
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsInsertCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsInsertCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -10376,6 +10526,7 @@ func (c *PermissionsInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -10456,7 +10607,7 @@ func (c *PermissionsInsertCall) Do(opts ...googleapi.CallOption) (*Permission, e
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -10519,10 +10670,9 @@ func (c *PermissionsListCall) SupportsTeamDrives(supportsTeamDrives bool) *Permi
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsListCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -10574,6 +10724,7 @@ func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -10656,7 +10807,7 @@ func (c *PermissionsListCall) Do(opts ...googleapi.CallOption) (*PermissionList,
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -10742,10 +10893,9 @@ func (c *PermissionsPatchCall) TransferOwnership(transferOwnership bool) *Permis
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsPatchCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsPatchCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -10789,6 +10939,7 @@ func (c *PermissionsPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -10878,7 +11029,7 @@ func (c *PermissionsPatchCall) Do(opts ...googleapi.CallOption) (*Permission, er
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -10942,10 +11093,9 @@ func (c *PermissionsUpdateCall) TransferOwnership(transferOwnership bool) *Permi
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsUpdateCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -10989,6 +11139,7 @@ func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -11078,7 +11229,7 @@ func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permission, e
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -11157,6 +11308,7 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/properties/{propertyKey}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -11292,6 +11444,7 @@ func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/properties/{propertyKey}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -11443,6 +11596,7 @@ func (c *PropertiesInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/properties")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -11586,6 +11740,7 @@ func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/properties")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -11732,6 +11887,7 @@ func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/properties/{propertyKey}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -11892,6 +12048,7 @@ func (c *PropertiesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/properties/{propertyKey}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -12059,6 +12216,7 @@ func (c *RealtimeGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/realtime")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -12232,6 +12390,7 @@ func (c *RealtimeUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/realtime")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
@@ -12382,6 +12541,7 @@ func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -12519,6 +12679,7 @@ func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -12675,6 +12836,7 @@ func (c *RepliesInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -12850,6 +13012,7 @@ func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -13036,6 +13199,7 @@ func (c *RepliesPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -13190,6 +13354,7 @@ func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -13335,6 +13500,7 @@ func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -13456,6 +13622,7 @@ func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -13622,6 +13789,7 @@ func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -13795,6 +13963,7 @@ func (c *RevisionsPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -13940,6 +14109,7 @@ func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -14077,6 +14247,7 @@ func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives/{teamDriveId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -14141,10 +14312,9 @@ func (r *TeamdrivesService) Get(teamDriveId string) *TeamdrivesGetCall {
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 Team Drive belongs.
// "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 Team Drive belongs.
func (c *TeamdrivesGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesGetCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -14196,6 +14366,7 @@ func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives/{teamDriveId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -14259,7 +14430,7 @@ func (c *TeamdrivesGetCall) Do(opts ...googleapi.CallOption) (*TeamDrive, error)
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 Team Drive belongs.",
// "description": "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 Team Drive belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -14332,6 +14503,7 @@ func (c *TeamdrivesInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -14443,10 +14615,9 @@ func (c *TeamdrivesListCall) Q(q string) *TeamdrivesListCall {
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by a domain administrator; if set to true, then all
// Team Drives of the domain in which the requester is an administrator
// are returned.
// "useDomainAdminAccess": Issue the request as a domain administrator;
// if set to true, then all Team Drives of the domain in which the
// requester is an administrator are returned.
func (c *TeamdrivesListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesListCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -14498,6 +14669,7 @@ func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -14568,7 +14740,7 @@ func (c *TeamdrivesListCall) Do(opts ...googleapi.CallOption) (*TeamDriveList, e
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
// "description": "Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
// "location": "query",
// "type": "boolean"
// }
@@ -14625,6 +14797,15 @@ func (r *TeamdrivesService) Update(teamDriveId string, teamdrive *TeamDrive) *Te
return c
}
// 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 Team Drive belongs.
func (c *TeamdrivesUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesUpdateCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -14663,6 +14844,7 @@ func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives/{teamDriveId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -14723,6 +14905,12 @@ func (c *TeamdrivesUpdateCall) Do(opts ...googleapi.CallOption) (*TeamDrive, err
// "location": "path",
// "required": true,
// "type": "string"
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "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 Team Drive belongs.",
// "location": "query",
// "type": "boolean"
// }
// },
// "path": "teamdrives/{teamDriveId}",

View File

@@ -35,7 +35,7 @@
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/60h7ViKsodHGCzKStsqADfQgTZ0\"",
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/79RB5EuEpU35909wc6O7vR4Degc\"",
"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"
@@ -1034,7 +1034,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -1080,7 +1080,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -1120,7 +1120,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -1173,7 +1173,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -1232,7 +1232,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 item belongs.",
"description": "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 item belongs.",
"location": "query",
"type": "boolean"
}
@@ -1681,7 +1681,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by 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 Team Drive belongs.",
"description": "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 Team Drive belongs.",
"location": "query",
"type": "boolean"
}
@@ -1721,7 +1721,7 @@
},
"useDomainAdminAccess": {
"default": "false",
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
"description": "Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
"location": "query",
"type": "boolean"
}
@@ -1748,6 +1748,12 @@
"location": "path",
"required": true,
"type": "string"
},
"useDomainAdminAccess": {
"default": "false",
"description": "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 Team Drive belongs.",
"location": "query",
"type": "boolean"
}
},
"path": "teamdrives/{teamDriveId}",
@@ -1764,7 +1770,7 @@
}
}
},
"revision": "20180413",
"revision": "20180830",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"About": {
@@ -2117,8 +2123,12 @@
"description": "Whether the current user can add children to this folder. This is always false when the item is not a folder.",
"type": "boolean"
},
"canChangeCopyRequiresWriterPermission": {
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file.",
"type": "boolean"
},
"canChangeViewersCanCopyContent": {
"description": "Whether the current user can change whether viewers can copy the contents of this file.",
"description": "Deprecated",
"type": "boolean"
},
"canComment": {
@@ -2133,6 +2143,10 @@
"description": "Whether the current user can delete this file.",
"type": "boolean"
},
"canDeleteChildren": {
"description": "Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canDownload": {
"description": "Whether the current user can download this file.",
"type": "boolean"
@@ -2145,12 +2159,28 @@
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
"type": "boolean"
},
"canMoveChildrenOutOfTeamDrive": {
"description": "Whether the current user can move children of this folder outside of the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveChildrenWithinTeamDrive": {
"description": "Whether the current user can move children of this folder within the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveItemIntoTeamDrive": {
"description": "Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.",
"type": "boolean"
},
"canMoveItemOutOfTeamDrive": {
"description": "Whether the current user can move this Team Drive item outside of this Team 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. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveItemWithinTeamDrive": {
"description": "Whether the current user can move this Team Drive item within this Team Drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for Team Drive items.",
"type": "boolean"
},
"canMoveTeamDriveItem": {
"description": "Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.",
"description": "Deprecated - use canMoveItemWithinTeamDrive or canMoveItemOutOfTeamDrive instead.",
"type": "boolean"
},
"canReadRevisions": {
@@ -2162,7 +2192,7 @@
"type": "boolean"
},
"canRemoveChildren": {
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder.",
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder. For Team Drive items, use canDeleteChildren or canTrashChildren instead.",
"type": "boolean"
},
"canRename": {
@@ -2177,6 +2207,10 @@
"description": "Whether the current user can move this file to trash.",
"type": "boolean"
},
"canTrashChildren": {
"description": "Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for Team Drive items.",
"type": "boolean"
},
"canUntrash": {
"description": "Whether the current user can restore this file from trash.",
"type": "boolean"
@@ -2209,6 +2243,10 @@
},
"type": "object"
},
"copyRequiresWriterPermission": {
"description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.",
"type": "boolean"
},
"createdTime": {
"description": "The time at which the file was created (RFC 3339 date-time).",
"format": "date-time",
@@ -2549,7 +2587,7 @@
"type": "string"
},
"viewersCanCopyContent": {
"description": "Whether users with only reader or commenter permission can copy the file's content. This affects copy, download, and print operations.",
"description": "Deprecated - use copyRequiresWriterPermission instead.",
"type": "boolean"
},
"webContentLink": {
@@ -2665,7 +2703,7 @@
"drive.permissions.create"
]
},
"description": "The role granted by this permission. While new values may be supported in the future, the following are currently allowed: \n- organizer \n- owner \n- writer \n- commenter \n- reader",
"description": "The role granted by this permission. While new values may be supported in the future, the following are currently allowed: \n- owner \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader",
"type": "string"
},
"teamDrivePermissionDetails": {
@@ -2681,7 +2719,7 @@
"type": "string"
},
"role": {
"description": "The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- writer \n- commenter \n- reader",
"description": "The primary role for this user. While new values may be added in the future, the following are currently possible: \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader",
"type": "string"
},
"teamDrivePermissionType": {
@@ -2938,10 +2976,22 @@
"description": "Whether the current user can add children to folders in this Team Drive.",
"type": "boolean"
},
"canChangeCopyRequiresWriterPermissionRestriction": {
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.",
"type": "boolean"
},
"canChangeDomainUsersOnlyRestriction": {
"description": "Whether the current user can change the domainUsersOnly restriction of this Team Drive.",
"type": "boolean"
},
"canChangeTeamDriveBackground": {
"description": "Whether the current user can change the background of this Team Drive.",
"type": "boolean"
},
"canChangeTeamMembersOnlyRestriction": {
"description": "Whether the current user can change the teamMembersOnly restriction of this Team Drive.",
"type": "boolean"
},
"canComment": {
"description": "Whether the current user can comment on files in this Team Drive.",
"type": "boolean"
@@ -2950,6 +3000,10 @@
"description": "Whether the current user can copy files in this Team Drive.",
"type": "boolean"
},
"canDeleteChildren": {
"description": "Whether the current user can delete children from folders in this Team Drive.",
"type": "boolean"
},
"canDeleteTeamDrive": {
"description": "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.",
"type": "boolean"
@@ -2975,7 +3029,7 @@
"type": "boolean"
},
"canRemoveChildren": {
"description": "Whether the current user can remove children from folders in this Team Drive.",
"description": "Deprecated - use canDeleteChildren or canTrashChildren instead.",
"type": "boolean"
},
"canRename": {
@@ -2989,6 +3043,10 @@
"canShare": {
"description": "Whether the current user can share files or folders in this Team Drive.",
"type": "boolean"
},
"canTrashChildren": {
"description": "Whether the current user can trash children from folders in this Team Drive.",
"type": "boolean"
}
},
"type": "object"
@@ -3003,7 +3061,7 @@
"type": "string"
},
"id": {
"description": "The ID of this Team Drive which is also the ID of the top level folder for this Team Drive.",
"description": "The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.",
"type": "string"
},
"kind": {
@@ -3015,6 +3073,28 @@
"description": "The name of this Team Drive.",
"type": "string"
},
"restrictions": {
"description": "A set of restrictions that apply to this Team Drive or items inside this Team Drive.",
"properties": {
"adminManagedRestrictions": {
"description": "Whether administrative privileges on this Team Drive are required to modify restrictions.",
"type": "boolean"
},
"copyRequiresWriterPermission": {
"description": "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.",
"type": "boolean"
},
"domainUsersOnly": {
"description": "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.",
"type": "boolean"
},
"teamMembersOnly": {
"description": "Whether access to items inside this Team Drive is restricted to members of this Team Drive.",
"type": "boolean"
}
},
"type": "object"
},
"themeId": {
"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.",
"type": "string"

View File

@@ -682,6 +682,10 @@ type File struct {
// These fields are never populated in responses.
ContentHints *FileContentHints `json:"contentHints,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"`
@@ -883,9 +887,8 @@ type File struct {
// 3339 date-time).
ViewedByMeTime string `json:"viewedByMeTime,omitempty"`
// ViewersCanCopyContent: Whether users with only reader or commenter
// permission can copy the file's content. This affects copy, download,
// and print operations.
// ViewersCanCopyContent: Deprecated - use copyRequiresWriterPermission
// instead.
ViewersCanCopyContent bool `json:"viewersCanCopyContent,omitempty"`
// WebContentLink: A link for downloading the content of the file in a
@@ -936,8 +939,11 @@ type FileCapabilities struct {
// folder. This is always false when the item is not a folder.
CanAddChildren bool `json:"canAddChildren,omitempty"`
// CanChangeViewersCanCopyContent: Whether the current user can change
// whether viewers can copy the contents of this file.
// 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.
@@ -951,6 +957,11 @@ type FileCapabilities struct {
// 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 Team Drive items.
CanDeleteChildren bool `json:"canDeleteChildren,omitempty"`
// CanDownload: Whether the current user can download this file.
CanDownload bool `json:"canDownload,omitempty"`
@@ -961,15 +972,36 @@ type FileCapabilities struct {
// this folder. This is always false when the item is not a folder.
CanListChildren bool `json:"canListChildren,omitempty"`
// CanMoveChildrenOutOfTeamDrive: Whether the current user can move
// children of this folder outside of the Team Drive. This is false when
// the item is not a folder. Only populated for Team Drive items.
CanMoveChildrenOutOfTeamDrive bool `json:"canMoveChildrenOutOfTeamDrive,omitempty"`
// CanMoveChildrenWithinTeamDrive: Whether the current user can move
// children of this folder within the Team Drive. This is false when the
// item is not a folder. Only populated for Team Drive items.
CanMoveChildrenWithinTeamDrive bool `json:"canMoveChildrenWithinTeamDrive,omitempty"`
// CanMoveItemIntoTeamDrive: Whether the current user can move this item
// into a Team Drive. If the item is in a Team Drive, this field is
// equivalent to canMoveTeamDriveItem.
CanMoveItemIntoTeamDrive bool `json:"canMoveItemIntoTeamDrive,omitempty"`
// CanMoveTeamDriveItem: Whether the current user can move this Team
// Drive item by changing its parent. Note that a request to change the
// parent for this item may still fail depending on the new parent that
// is being added. Only populated for Team Drive files.
// CanMoveItemOutOfTeamDrive: Whether the current user can move this
// Team Drive item outside of this Team 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. Only populated for
// Team Drive items.
CanMoveItemOutOfTeamDrive bool `json:"canMoveItemOutOfTeamDrive,omitempty"`
// CanMoveItemWithinTeamDrive: Whether the current user can move this
// Team Drive item within this Team Drive. Note that a request to change
// the parent of the item may still fail depending on the new parent
// that is being added. Only populated for Team Drive items.
CanMoveItemWithinTeamDrive bool `json:"canMoveItemWithinTeamDrive,omitempty"`
// CanMoveTeamDriveItem: Deprecated - use canMoveItemWithinTeamDrive or
// canMoveItemOutOfTeamDrive instead.
CanMoveTeamDriveItem bool `json:"canMoveTeamDriveItem,omitempty"`
// CanReadRevisions: Whether the current user can read the revisions
@@ -983,7 +1015,8 @@ type FileCapabilities struct {
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.
// this folder. This is always false when the item is not a folder. For
// Team Drive items, use canDeleteChildren or canTrashChildren instead.
CanRemoveChildren bool `json:"canRemoveChildren,omitempty"`
// CanRename: Whether the current user can rename this file.
@@ -996,6 +1029,11 @@ type FileCapabilities struct {
// 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 Team Drive items.
CanTrashChildren bool `json:"canTrashChildren,omitempty"`
// CanUntrash: Whether the current user can restore this file from
// trash.
CanUntrash bool `json:"canUntrash,omitempty"`
@@ -1431,8 +1469,9 @@ type Permission struct {
// Role: The role granted by this permission. While new values may be
// supported in the future, the following are currently allowed:
// - organizer
// - owner
// - organizer
// - fileOrganizer
// - writer
// - commenter
// - reader
@@ -1491,6 +1530,7 @@ type PermissionTeamDrivePermissionDetails struct {
// 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
@@ -1862,7 +1902,7 @@ type TeamDrive struct {
CreatedTime string `json:"createdTime,omitempty"`
// Id: The ID of this Team Drive which is also the ID of the top level
// folder for this Team Drive.
// folder of this Team Drive.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
@@ -1872,6 +1912,10 @@ type TeamDrive struct {
// 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
@@ -1987,10 +2031,23 @@ type TeamDriveCapabilities struct {
// 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"`
@@ -1998,6 +2055,10 @@ type TeamDriveCapabilities struct {
// 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.
@@ -2022,8 +2083,8 @@ type TeamDriveCapabilities struct {
// resource of files in this Team Drive.
CanReadRevisions bool `json:"canReadRevisions,omitempty"`
// CanRemoveChildren: Whether the current user can remove children from
// folders in this Team Drive.
// CanRemoveChildren: Deprecated - use canDeleteChildren or
// canTrashChildren instead.
CanRemoveChildren bool `json:"canRemoveChildren,omitempty"`
// CanRename: Whether the current user can rename files or folders in
@@ -2038,6 +2099,10 @@ type TeamDriveCapabilities struct {
// 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,
@@ -2062,6 +2127,55 @@ func (s *TeamDriveCapabilities) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TeamDriveRestrictions: A set of restrictions that apply to this Team
// Drive or items inside this Team Drive.
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:"-"`
}
func (s *TeamDriveRestrictions) MarshalJSON() ([]byte, error) {
type NoMethod TeamDriveRestrictions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TeamDriveList: A list of Team Drives.
type TeamDriveList struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
@@ -2215,6 +2329,7 @@ func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "about")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -2358,6 +2473,7 @@ func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, er
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes/startPageToken")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -2566,6 +2682,7 @@ func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -2816,6 +2933,7 @@ func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes/watch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -3002,6 +3120,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "channels/stop")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -3100,6 +3219,7 @@ func (c *CommentsCreateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -3229,6 +3349,7 @@ func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -3357,6 +3478,7 @@ func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3541,6 +3663,7 @@ func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3721,6 +3844,7 @@ func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -3898,6 +4022,7 @@ func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/copy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -4137,6 +4262,7 @@ func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
@@ -4338,6 +4464,7 @@ func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -4439,6 +4566,7 @@ func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/trash")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -4537,6 +4665,7 @@ func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/export")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -4686,6 +4815,7 @@ func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/generateIds")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -4844,6 +4974,7 @@ func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5105,6 +5236,7 @@ func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5401,6 +5533,7 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
@@ -5632,6 +5765,7 @@ func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/watch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -5799,10 +5933,9 @@ func (c *PermissionsCreateCall) TransferOwnership(transferOwnership bool) *Permi
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsCreateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsCreateCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -5846,6 +5979,7 @@ func (c *PermissionsCreateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -5931,7 +6065,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -5978,10 +6112,9 @@ func (c *PermissionsDeleteCall) SupportsTeamDrives(supportsTeamDrives bool) *Per
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsDeleteCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsDeleteCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -6020,6 +6153,7 @@ func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -6072,7 +6206,7 @@ func (c *PermissionsDeleteCall) Do(opts ...googleapi.CallOption) error {
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -6114,10 +6248,9 @@ func (c *PermissionsGetCall) SupportsTeamDrives(supportsTeamDrives bool) *Permis
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsGetCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -6169,6 +6302,7 @@ func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -6246,7 +6380,7 @@ func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, erro
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -6310,10 +6444,9 @@ func (c *PermissionsListCall) SupportsTeamDrives(supportsTeamDrives bool) *Permi
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsListCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -6365,6 +6498,7 @@ func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -6447,7 +6581,7 @@ func (c *PermissionsListCall) Do(opts ...googleapi.CallOption) (*PermissionList,
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -6534,10 +6668,9 @@ func (c *PermissionsUpdateCall) TransferOwnership(transferOwnership bool) *Permi
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 item belongs.
// "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 item belongs.
func (c *PermissionsUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsUpdateCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -6581,6 +6714,7 @@ func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/permissions/{permissionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -6670,7 +6804,7 @@ func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permission, e
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 item belongs.",
// "description": "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 item belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -6749,6 +6883,7 @@ func (c *RepliesCreateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -6888,6 +7023,7 @@ func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -7026,6 +7162,7 @@ func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -7212,6 +7349,7 @@ func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -7397,6 +7535,7 @@ func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/comments/{commentId}/replies/{replyId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -7543,6 +7682,7 @@ func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -7673,6 +7813,7 @@ func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -7863,6 +8004,7 @@ func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -8036,6 +8178,7 @@ func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "files/{fileId}/revisions/{revisionId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -8178,6 +8321,7 @@ func (c *TeamdrivesCreateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -8302,6 +8446,7 @@ func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives/{teamDriveId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -8366,10 +8511,9 @@ func (r *TeamdrivesService) Get(teamDriveId string) *TeamdrivesGetCall {
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by 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 Team Drive belongs.
// "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 Team Drive belongs.
func (c *TeamdrivesGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesGetCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -8421,6 +8565,7 @@ func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives/{teamDriveId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -8484,7 +8629,7 @@ func (c *TeamdrivesGetCall) Do(opts ...googleapi.CallOption) (*TeamDrive, error)
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by 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 Team Drive belongs.",
// "description": "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 Team Drive belongs.",
// "location": "query",
// "type": "boolean"
// }
@@ -8539,10 +8684,9 @@ func (c *TeamdrivesListCall) Q(q string) *TeamdrivesListCall {
}
// UseDomainAdminAccess sets the optional parameter
// "useDomainAdminAccess": Whether the request should be treated as if
// it was issued by a domain administrator; if set to true, then all
// Team Drives of the domain in which the requester is an administrator
// are returned.
// "useDomainAdminAccess": Issue the request as a domain administrator;
// if set to true, then all Team Drives of the domain in which the
// requester is an administrator are returned.
func (c *TeamdrivesListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesListCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
@@ -8594,6 +8738,7 @@ func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -8664,7 +8809,7 @@ func (c *TeamdrivesListCall) Do(opts ...googleapi.CallOption) (*TeamDriveList, e
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
// "description": "Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
// "location": "query",
// "type": "boolean"
// }
@@ -8721,6 +8866,15 @@ func (r *TeamdrivesService) Update(teamDriveId string, teamdrive *TeamDrive) *Te
return c
}
// 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 Team Drive belongs.
func (c *TeamdrivesUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesUpdateCall {
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
@@ -8759,6 +8913,7 @@ func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "teamdrives/{teamDriveId}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -8819,6 +8974,12 @@ func (c *TeamdrivesUpdateCall) Do(opts ...googleapi.CallOption) (*TeamDrive, err
// "location": "path",
// "required": true,
// "type": "string"
// },
// "useDomainAdminAccess": {
// "default": "false",
// "description": "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 Team Drive belongs.",
// "location": "query",
// "type": "boolean"
// }
// },
// "path": "teamdrives/{teamDriveId}",

View File

@@ -1,4 +1,4 @@
// Copyright 2016 Google Inc. All Rights Reserved.
// Copyright 2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@@ -1,4 +1,4 @@
// Copyright 2017 Google Inc. All Rights Reserved.
// Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

View File

@@ -26,7 +26,7 @@
"description": "Stores and retrieves potentially large, immutable data objects.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/naWmFZqBR_Eg7icNmYvZKp3Vbjs\"",
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/akd8i6K-8A6ohXFVzxQZomL5PpA\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
@@ -1573,7 +1573,7 @@
],
"parameters": {
"destinationBucket": {
"description": "Name of the bucket in which to store the new object.",
"description": "Name of the bucket containing the source objects. The destination object is stored in this bucket.",
"location": "path",
"required": true,
"type": "string"
@@ -2035,7 +2035,7 @@
"type": "string"
},
"kmsKeyName": {
"description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. Limited availability; usable only by enabled projects.",
"description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
"location": "query",
"type": "string"
},
@@ -2766,7 +2766,7 @@
}
}
},
"revision": "20180518",
"revision": "20180905",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Bucket": {
@@ -2910,6 +2910,10 @@
"description": "Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.",
"type": "boolean"
},
"matchesPattern": {
"description": "A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the \"Early Access\" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.",
"type": "string"
},
"matchesStorageClass": {
"description": "Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.",
"items": {
@@ -3249,7 +3253,7 @@
"storage.objects.compose"
]
},
"description": "The source object's name. The source object's bucket is implicitly the destination bucket.",
"description": "The source object's name. All source objects must reside in the same bucket.",
"type": "string"
},
"objectPreconditions": {
@@ -3437,7 +3441,7 @@
"type": "string"
},
"kmsKeyName": {
"description": "Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key. Limited availability; usable only by enabled projects.",
"description": "Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.",
"type": "string"
},
"md5Hash": {

View File

@@ -1,5 +1,7 @@
// Package storage provides access to the Cloud Storage JSON API.
//
// This package is DEPRECATED. Use package cloud.google.com/go/storage instead.
//
// See https://developers.google.com/storage/docs/json_api/
//
// Usage example:
@@ -547,6 +549,14 @@ type BucketLifecycleRuleCondition struct {
// matches archived objects.
IsLive *bool `json:"isLive,omitempty"`
// MatchesPattern: A regular expression that satisfies the RE2 syntax.
// This condition is satisfied when the name of the object matches the
// RE2 pattern. Note: This feature is currently in the "Early Access"
// launch stage and is only available to a whitelisted set of users;
// that means that this feature may be changed in backward-incompatible
// ways and that it is not guaranteed to be released.
MatchesPattern string `json:"matchesPattern,omitempty"`
// MatchesStorageClass: Objects having any of the storage classes
// specified by this condition will be matched. Values include
// MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and
@@ -1056,8 +1066,8 @@ type ComposeRequestSourceObjects struct {
// Generation: The generation of this object to use as the source.
Generation int64 `json:"generation,omitempty,string"`
// Name: The source object's name. The source object's bucket is
// implicitly the destination bucket.
// Name: The source object's name. All source objects must reside in the
// same bucket.
Name string `json:"name,omitempty"`
// ObjectPreconditions: Conditions that must be met for this operation
@@ -1292,8 +1302,7 @@ type Object struct {
Kind string `json:"kind,omitempty"`
// KmsKeyName: Cloud KMS Key used to encrypt this object, if the object
// is encrypted by such a key. Limited availability; usable only by
// enabled projects.
// is encrypted by such a key.
KmsKeyName string `json:"kmsKeyName,omitempty"`
// Md5Hash: MD5 hash of the data; encoded using base64. For more
@@ -1991,6 +2000,7 @@ func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response,
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -2124,6 +2134,7 @@ func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, err
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -2275,6 +2286,7 @@ func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response,
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -2428,6 +2440,7 @@ func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, er
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -2573,6 +2586,7 @@ func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, e
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -2729,6 +2743,7 @@ func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response,
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -2892,6 +2907,7 @@ func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -3056,6 +3072,7 @@ func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3234,6 +3251,7 @@ func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/iam")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3431,6 +3449,7 @@ func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -3668,6 +3687,7 @@ func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -3857,6 +3877,7 @@ func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response,
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/lockRetentionPolicy")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -4079,6 +4100,7 @@ func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -4290,6 +4312,7 @@ func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error)
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/iam")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -4446,6 +4469,7 @@ func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, e
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/iam/testPermissions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -4670,6 +4694,7 @@ func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -4872,6 +4897,7 @@ func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "channels/stop")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -4971,6 +4997,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Res
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -5104,6 +5131,7 @@ func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Respon
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5256,6 +5284,7 @@ func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Res
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -5426,6 +5455,7 @@ func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Respo
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -5583,6 +5613,7 @@ func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Resp
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -5739,6 +5770,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Res
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -5888,6 +5920,7 @@ func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error)
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/notificationConfigs/{notification}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -6021,6 +6054,7 @@ func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/notificationConfigs/{notification}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -6175,6 +6209,7 @@ func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error)
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/notificationConfigs")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -6330,6 +6365,7 @@ func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/notificationConfigs")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -6482,6 +6518,7 @@ func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response,
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -6639,6 +6676,7 @@ func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, err
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -6814,6 +6852,7 @@ func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response,
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -6991,6 +7030,7 @@ func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, er
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -7160,6 +7200,7 @@ func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, e
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -7340,6 +7381,7 @@ func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response,
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -7559,6 +7601,7 @@ func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{destinationBucket}/o/{destinationObject}/compose")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -7617,7 +7660,7 @@ func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// ],
// "parameters": {
// "destinationBucket": {
// "description": "Name of the bucket in which to store the new object.",
// "description": "Name of the bucket containing the source objects. The destination object is stored in this bucket.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -7873,6 +7916,7 @@ func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -8173,6 +8217,7 @@ func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("DELETE", urls, body)
@@ -8391,6 +8436,7 @@ func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -8623,6 +8669,7 @@ func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/iam")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -8790,8 +8837,7 @@ func (c *ObjectsInsertCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch in
// the Cloud KMS key, of the form
// projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,
// that will be used to encrypt the object. Overrides the object
// metadata's kms_key_name value, if any. Limited availability; usable
// only by enabled projects.
// metadata's kms_key_name value, if any.
func (c *ObjectsInsertCall) KmsKeyName(kmsKeyName string) *ObjectsInsertCall {
c.urlParams_.Set("kmsKeyName", kmsKeyName)
return c
@@ -8925,6 +8971,7 @@ func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
@@ -9059,7 +9106,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "kmsKeyName": {
// "description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. Limited availability; usable only by enabled projects.",
// "description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
// "location": "query",
// "type": "string"
// },
@@ -9260,6 +9307,7 @@ func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) {
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -9551,6 +9599,7 @@ func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
@@ -9925,6 +9974,7 @@ func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -10210,6 +10260,7 @@ func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error)
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/iam")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -10390,6 +10441,7 @@ func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, e
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/iam/testPermissions")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
@@ -10635,6 +10687,7 @@ func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
@@ -10917,6 +10970,7 @@ func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) {
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/watch")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
@@ -11122,6 +11176,7 @@ func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, e
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{projectId}/serviceAccount")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)