1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 17:43:50 +00:00

vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2018-03-19 15:51:38 +00:00
parent 940df88eb2
commit d64789528d
4309 changed files with 1327278 additions and 1001118 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -271,6 +271,9 @@ type About struct {
// file type. The most specific type takes precedence.
AdditionalRoleInfo []*AboutAdditionalRoleInfo `json:"additionalRoleInfo,omitempty"`
// CanCreateTeamDrives: Whether the user can create Team Drives.
CanCreateTeamDrives bool `json:"canCreateTeamDrives,omitempty"`
// DomainSharingPolicy: The domain sharing policy for the current user.
// Possible values are:
// - allowed
@@ -2337,7 +2340,8 @@ type Permission struct {
// - They can only be set on user and group permissions
// - The date must be in the future
// - The date cannot be more than a year in the future
// - The date can only be set on drive.permissions.update requests
// - The date can only be set on drive.permissions.update or
// drive.permissions.patch requests
ExpirationDate string `json:"expirationDate,omitempty"`
// Id: The ID of the user this permission refers to, and identical to
@@ -7331,11 +7335,12 @@ func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
gensupport.SetGetBody(req, getBody)
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
@@ -8822,11 +8827,12 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
gensupport.SetGetBody(req, getBody)
googleapi.Expand(req.URL, map[string]string{
"fileId": c.fileId,
})
@@ -12233,11 +12239,12 @@ func (c *RealtimeUpdateCall) doRequest(alt string) (*http.Response, error) {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
gensupport.SetGetBody(req, getBody)
googleapi.Expand(req.URL, map[string]string{
"fileId": c.fileId,
})

File diff suppressed because it is too large Load Diff

View File

@@ -208,6 +208,9 @@ type About struct {
// AppInstalled: Whether the user has installed the requesting app.
AppInstalled bool `json:"appInstalled,omitempty"`
// CanCreateTeamDrives: Whether the user can create Team Drives.
CanCreateTeamDrives bool `json:"canCreateTeamDrives,omitempty"`
// ExportFormats: A map of source MIME type to possible targets for all
// supported exports.
ExportFormats map[string][]string `json:"exportFormats,omitempty"`
@@ -4143,11 +4146,12 @@ func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
gensupport.SetGetBody(req, getBody)
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
@@ -5406,11 +5410,12 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("PATCH", urls, body)
req.Header = reqHeaders
gensupport.SetGetBody(req, getBody)
googleapi.Expand(req.URL, map[string]string{
"fileId": c.fileId,
})