mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 18:43:50 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
342
vendor/google.golang.org/api/drive/v3/drive-gen.go
generated
vendored
342
vendor/google.golang.org/api/drive/v3/drive-gen.go
generated
vendored
@@ -262,8 +262,8 @@ type About struct {
|
||||
}
|
||||
|
||||
func (s *About) MarshalJSON() ([]byte, error) {
|
||||
type noMethod About
|
||||
raw := noMethod(*s)
|
||||
type NoMethod About
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -301,8 +301,8 @@ type AboutStorageQuota struct {
|
||||
}
|
||||
|
||||
func (s *AboutStorageQuota) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutStorageQuota
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AboutStorageQuota
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -336,8 +336,8 @@ type AboutTeamDriveThemes struct {
|
||||
}
|
||||
|
||||
func (s *AboutTeamDriveThemes) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutTeamDriveThemes
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AboutTeamDriveThemes
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -390,8 +390,8 @@ type Change struct {
|
||||
}
|
||||
|
||||
func (s *Change) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Change
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Change
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -439,8 +439,8 @@ type ChangeList struct {
|
||||
}
|
||||
|
||||
func (s *ChangeList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ChangeList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ChangeList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -505,8 +505,8 @@ type Channel struct {
|
||||
}
|
||||
|
||||
func (s *Channel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Channel
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Channel
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -581,8 +581,8 @@ type Comment struct {
|
||||
}
|
||||
|
||||
func (s *Comment) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Comment
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Comment
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -615,8 +615,8 @@ type CommentQuotedFileContent struct {
|
||||
}
|
||||
|
||||
func (s *CommentQuotedFileContent) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentQuotedFileContent
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CommentQuotedFileContent
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -659,8 +659,8 @@ type CommentList struct {
|
||||
}
|
||||
|
||||
func (s *CommentList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CommentList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -791,8 +791,10 @@ type File struct {
|
||||
|
||||
// Parents: The IDs of the parent folders which contain the file.
|
||||
// If not specified as part of a create request, the file will be placed
|
||||
// directly in the My Drive folder. Update requests must use the
|
||||
// addParents and removeParents parameters to modify the values.
|
||||
// directly in the user's My Drive folder. If not specified as part of a
|
||||
// copy request, the file will inherit any discoverable parents of the
|
||||
// source file. Update requests must use the addParents and
|
||||
// removeParents parameters to modify the parents list.
|
||||
Parents []string `json:"parents,omitempty"`
|
||||
|
||||
// PermissionIds: List of permission IDs for users with access to this
|
||||
@@ -918,8 +920,8 @@ type File struct {
|
||||
}
|
||||
|
||||
func (s *File) MarshalJSON() ([]byte, error) {
|
||||
type noMethod File
|
||||
raw := noMethod(*s)
|
||||
type NoMethod File
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1014,8 +1016,8 @@ type FileCapabilities struct {
|
||||
}
|
||||
|
||||
func (s *FileCapabilities) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileCapabilities
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileCapabilities
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1049,8 +1051,8 @@ type FileContentHints struct {
|
||||
}
|
||||
|
||||
func (s *FileContentHints) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileContentHints
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileContentHints
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1082,8 +1084,8 @@ type FileContentHintsThumbnail struct {
|
||||
}
|
||||
|
||||
func (s *FileContentHintsThumbnail) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileContentHintsThumbnail
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileContentHintsThumbnail
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1174,22 +1176,22 @@ type FileImageMediaMetadata struct {
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileImageMediaMetadata
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileImageMediaMetadata
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadata) UnmarshalJSON(data []byte) error {
|
||||
type noMethod FileImageMediaMetadata
|
||||
type NoMethod FileImageMediaMetadata
|
||||
var s1 struct {
|
||||
Aperture gensupport.JSONFloat64 `json:"aperture"`
|
||||
ExposureBias gensupport.JSONFloat64 `json:"exposureBias"`
|
||||
ExposureTime gensupport.JSONFloat64 `json:"exposureTime"`
|
||||
FocalLength gensupport.JSONFloat64 `json:"focalLength"`
|
||||
MaxApertureValue gensupport.JSONFloat64 `json:"maxApertureValue"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -1231,20 +1233,20 @@ type FileImageMediaMetadataLocation struct {
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadataLocation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileImageMediaMetadataLocation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileImageMediaMetadataLocation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadataLocation) UnmarshalJSON(data []byte) error {
|
||||
type noMethod FileImageMediaMetadataLocation
|
||||
type NoMethod FileImageMediaMetadataLocation
|
||||
var s1 struct {
|
||||
Altitude gensupport.JSONFloat64 `json:"altitude"`
|
||||
Latitude gensupport.JSONFloat64 `json:"latitude"`
|
||||
Longitude gensupport.JSONFloat64 `json:"longitude"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -1285,8 +1287,8 @@ type FileVideoMediaMetadata struct {
|
||||
}
|
||||
|
||||
func (s *FileVideoMediaMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileVideoMediaMetadata
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileVideoMediaMetadata
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1337,8 +1339,8 @@ type FileList struct {
|
||||
}
|
||||
|
||||
func (s *FileList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1378,8 +1380,8 @@ type GeneratedIds struct {
|
||||
}
|
||||
|
||||
func (s *GeneratedIds) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GeneratedIds
|
||||
raw := noMethod(*s)
|
||||
type NoMethod GeneratedIds
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1468,8 +1470,8 @@ type Permission struct {
|
||||
}
|
||||
|
||||
func (s *Permission) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Permission
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Permission
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1516,8 +1518,8 @@ type PermissionTeamDrivePermissionDetails struct {
|
||||
}
|
||||
|
||||
func (s *PermissionTeamDrivePermissionDetails) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionTeamDrivePermissionDetails
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PermissionTeamDrivePermissionDetails
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1561,8 +1563,8 @@ type PermissionList struct {
|
||||
}
|
||||
|
||||
func (s *PermissionList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PermissionList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1626,8 +1628,8 @@ type Reply struct {
|
||||
}
|
||||
|
||||
func (s *Reply) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Reply
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Reply
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1670,8 +1672,8 @@ type ReplyList struct {
|
||||
}
|
||||
|
||||
func (s *ReplyList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ReplyList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ReplyList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1747,8 +1749,8 @@ type Revision struct {
|
||||
}
|
||||
|
||||
func (s *Revision) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Revision
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Revision
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1791,8 +1793,8 @@ type RevisionList struct {
|
||||
}
|
||||
|
||||
func (s *RevisionList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod RevisionList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod RevisionList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1826,8 +1828,8 @@ type StartPageToken struct {
|
||||
}
|
||||
|
||||
func (s *StartPageToken) MarshalJSON() ([]byte, error) {
|
||||
type noMethod StartPageToken
|
||||
raw := noMethod(*s)
|
||||
type NoMethod StartPageToken
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1852,6 +1854,10 @@ type TeamDrive struct {
|
||||
// themeId.
|
||||
ColorRgb string `json:"colorRgb,omitempty"`
|
||||
|
||||
// CreatedTime: The time at which the Team Drive was created (RFC 3339
|
||||
// date-time).
|
||||
CreatedTime string `json:"createdTime,omitempty"`
|
||||
|
||||
// Id: The ID of this Team Drive which is also the ID of the top level
|
||||
// folder for this Team Drive.
|
||||
Id string `json:"id,omitempty"`
|
||||
@@ -1895,8 +1901,8 @@ type TeamDrive struct {
|
||||
}
|
||||
|
||||
func (s *TeamDrive) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDrive
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDrive
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1948,20 +1954,20 @@ type TeamDriveBackgroundImageFile struct {
|
||||
}
|
||||
|
||||
func (s *TeamDriveBackgroundImageFile) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDriveBackgroundImageFile
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDriveBackgroundImageFile
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *TeamDriveBackgroundImageFile) UnmarshalJSON(data []byte) error {
|
||||
type noMethod TeamDriveBackgroundImageFile
|
||||
type NoMethod TeamDriveBackgroundImageFile
|
||||
var s1 struct {
|
||||
Width gensupport.JSONFloat64 `json:"width"`
|
||||
XCoordinate gensupport.JSONFloat64 `json:"xCoordinate"`
|
||||
YCoordinate gensupport.JSONFloat64 `json:"yCoordinate"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -2048,8 +2054,8 @@ type TeamDriveCapabilities struct {
|
||||
}
|
||||
|
||||
func (s *TeamDriveCapabilities) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDriveCapabilities
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDriveCapabilities
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2092,8 +2098,8 @@ type TeamDriveList struct {
|
||||
}
|
||||
|
||||
func (s *TeamDriveList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDriveList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDriveList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2138,8 +2144,8 @@ type User struct {
|
||||
}
|
||||
|
||||
func (s *User) MarshalJSON() ([]byte, error) {
|
||||
type noMethod User
|
||||
raw := noMethod(*s)
|
||||
type NoMethod User
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2246,7 +2252,7 @@ func (c *AboutGetCall) Do(opts ...googleapi.CallOption) (*About, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2389,7 +2395,7 @@ func (c *ChangesGetStartPageTokenCall) Do(opts ...googleapi.CallOption) (*StartP
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2597,7 +2603,7 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangeList, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2847,7 +2853,7 @@ func (c *ChangesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3134,7 +3140,7 @@ func (c *CommentsCreateCall) Do(opts ...googleapi.CallOption) (*Comment, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3392,7 +3398,7 @@ func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3575,7 +3581,7 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentList, error
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3756,7 +3762,7 @@ func (c *CommentsUpdateCall) Do(opts ...googleapi.CallOption) (*Comment, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3932,7 +3938,7 @@ func (c *FilesCopyCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4195,7 +4201,7 @@ func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4716,7 +4722,7 @@ func (c *FilesGenerateIdsCall) Do(opts ...googleapi.CallOption) (*GeneratedIds,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4893,7 +4899,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5135,7 +5141,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5461,7 +5467,7 @@ func (c *FilesUpdateCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5680,7 +5686,7 @@ func (c *FilesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5754,8 +5760,8 @@ func (r *PermissionsService) Create(fileId string, permission *Permission) *Perm
|
||||
return c
|
||||
}
|
||||
|
||||
// EmailMessage sets the optional parameter "emailMessage": A custom
|
||||
// message to include in the notification email.
|
||||
// EmailMessage sets the optional parameter "emailMessage": A plain text
|
||||
// custom message to include in the notification email.
|
||||
func (c *PermissionsCreateCall) EmailMessage(emailMessage string) *PermissionsCreateCall {
|
||||
c.urlParams_.Set("emailMessage", emailMessage)
|
||||
return c
|
||||
@@ -5787,6 +5793,16 @@ func (c *PermissionsCreateCall) TransferOwnership(transferOwnership bool) *Permi
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *PermissionsCreateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsCreateCall {
|
||||
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.
|
||||
@@ -5868,7 +5884,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5881,7 +5897,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "emailMessage": {
|
||||
// "description": "A custom message to include in the notification email.",
|
||||
// "description": "A plain text custom message to include in the notification email.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
@@ -5907,6 +5923,12 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
// "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions",
|
||||
@@ -5950,6 +5972,16 @@ func (c *PermissionsDeleteCall) SupportsTeamDrives(supportsTeamDrives bool) *Per
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *PermissionsDeleteCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsDeleteCall {
|
||||
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.
|
||||
@@ -6032,6 +6064,12 @@ func (c *PermissionsDeleteCall) Do(opts ...googleapi.CallOption) error {
|
||||
// "description": "Whether the requesting application supports Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions/{permissionId}",
|
||||
@@ -6070,6 +6108,16 @@ func (c *PermissionsGetCall) SupportsTeamDrives(supportsTeamDrives bool) *Permis
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *PermissionsGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsGetCall {
|
||||
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.
|
||||
@@ -6160,7 +6208,7 @@ func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, erro
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6190,6 +6238,12 @@ func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, erro
|
||||
// "description": "Whether the requesting application supports Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions/{permissionId}",
|
||||
@@ -6250,6 +6304,16 @@ func (c *PermissionsListCall) SupportsTeamDrives(supportsTeamDrives bool) *Permi
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *PermissionsListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsListCall {
|
||||
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.
|
||||
@@ -6339,7 +6403,7 @@ func (c *PermissionsListCall) Do(opts ...googleapi.CallOption) (*PermissionList,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6375,6 +6439,12 @@ func (c *PermissionsListCall) Do(opts ...googleapi.CallOption) (*PermissionList,
|
||||
// "description": "Whether the requesting application supports Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions",
|
||||
@@ -6458,6 +6528,16 @@ func (c *PermissionsUpdateCall) TransferOwnership(transferOwnership bool) *Permi
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *PermissionsUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsUpdateCall {
|
||||
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.
|
||||
@@ -6540,7 +6620,7 @@ func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6582,6 +6662,12 @@ func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
// "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions/{permissionId}",
|
||||
@@ -6702,7 +6788,7 @@ func (c *RepliesCreateCall) Do(opts ...googleapi.CallOption) (*Reply, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6980,7 +7066,7 @@ func (c *RepliesGetCall) Do(opts ...googleapi.CallOption) (*Reply, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7165,7 +7251,7 @@ func (c *RepliesListCall) Do(opts ...googleapi.CallOption) (*ReplyList, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7351,7 +7437,7 @@ func (c *RepliesUpdateCall) Do(opts ...googleapi.CallOption) (*Reply, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7642,7 +7728,7 @@ func (c *RevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7815,7 +7901,7 @@ func (c *RevisionsListCall) Do(opts ...googleapi.CallOption) (*RevisionList, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7989,7 +8075,7 @@ func (c *RevisionsUpdateCall) Do(opts ...googleapi.CallOption) (*Revision, error
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8127,7 +8213,7 @@ func (c *TeamdrivesCreateCall) Do(opts ...googleapi.CallOption) (*TeamDrive, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8274,6 +8360,16 @@ func (r *TeamdrivesService) Get(teamDriveId string) *TeamdrivesGetCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *TeamdrivesGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesGetCall {
|
||||
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.
|
||||
@@ -8363,7 +8459,7 @@ func (c *TeamdrivesGetCall) Do(opts ...googleapi.CallOption) (*TeamDrive, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8380,6 +8476,12 @@ func (c *TeamdrivesGetCall) Do(opts ...googleapi.CallOption) (*TeamDrive, error)
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "teamdrives/{teamDriveId}",
|
||||
@@ -8424,6 +8526,23 @@ func (c *TeamdrivesListCall) PageToken(pageToken string) *TeamdrivesListCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// Q sets the optional parameter "q": Query string for searching Team
|
||||
// Drives.
|
||||
func (c *TeamdrivesListCall) Q(q string) *TeamdrivesListCall {
|
||||
c.urlParams_.Set("q", q)
|
||||
return c
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (c *TeamdrivesListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesListCall {
|
||||
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.
|
||||
@@ -8510,7 +8629,7 @@ func (c *TeamdrivesListCall) Do(opts ...googleapi.CallOption) (*TeamDriveList, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8532,6 +8651,17 @@ func (c *TeamdrivesListCall) Do(opts ...googleapi.CallOption) (*TeamDriveList, e
|
||||
// "description": "Page token for Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "q": {
|
||||
// "description": "Query string for searching Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "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.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "teamdrives",
|
||||
@@ -8667,7 +8797,7 @@ func (c *TeamdrivesUpdateCall) Do(opts ...googleapi.CallOption) (*TeamDrive, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
||||
Reference in New Issue
Block a user