mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 02:23:24 +00:00
vendor: update to latest versions of everything
This commit is contained in:
304
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
304
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user