vendor: update all dependencies
This commit is contained in:
parent
3dcf1e61cf
commit
479c803fd9
446 changed files with 25054 additions and 8064 deletions
16
vendor/google.golang.org/api/drive/v2/drive-api.json
generated
vendored
16
vendor/google.golang.org/api/drive/v2/drive-api.json
generated
vendored
|
@ -38,7 +38,7 @@
|
|||
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/drive/",
|
||||
"etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/bzjWBZSIb8SwDXXw1rx-RVKTulk\"",
|
||||
"etag": "\"F5McR9eEaw0XRpaO3M9gbIugkbs/oBMvKC4XV0NjxxOx_Y5WENsew0Q\"",
|
||||
"icons": {
|
||||
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
|
||||
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
|
||||
|
@ -3459,7 +3459,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20190620",
|
||||
"revision": "20191015",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"About": {
|
||||
|
@ -3664,7 +3664,7 @@
|
|||
"type": "array"
|
||||
},
|
||||
"quotaBytesTotal": {
|
||||
"description": "The total number of quota bytes.",
|
||||
"description": "The total number of quota bytes. This is only relevant when quotaType is LIMITED.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -4573,13 +4573,17 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"canEdit": {
|
||||
"description": "Whether the current user can edit this file.",
|
||||
"description": "Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"canListChildren": {
|
||||
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"canModifyContent": {
|
||||
"description": "Whether the current user can modify the content of this file.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"canMoveChildrenOutOfDrive": {
|
||||
"description": "Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.",
|
||||
"type": "boolean"
|
||||
|
@ -4730,7 +4734,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"hasAugmentedPermissions": {
|
||||
"description": "Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.",
|
||||
"description": "Whether there are permissions directly on this file. This field is only populated for items in shared drives.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hasThumbnail": {
|
||||
|
@ -5570,7 +5574,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"pinned": {
|
||||
"description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.",
|
||||
"description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"publishAuto": {
|
||||
|
|
174
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
174
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
|
@ -53,8 +53,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
gensupport "google.golang.org/api/internal/gensupport"
|
||||
option "google.golang.org/api/option"
|
||||
htransport "google.golang.org/api/transport/http"
|
||||
)
|
||||
|
@ -413,7 +413,8 @@ type About struct {
|
|||
// Google services.
|
||||
QuotaBytesByService []*AboutQuotaBytesByService `json:"quotaBytesByService,omitempty"`
|
||||
|
||||
// QuotaBytesTotal: The total number of quota bytes.
|
||||
// QuotaBytesTotal: The total number of quota bytes. This is only
|
||||
// relevant when quotaType is LIMITED.
|
||||
QuotaBytesTotal int64 `json:"quotaBytesTotal,omitempty,string"`
|
||||
|
||||
// QuotaBytesUsed: The number of quota bytes used by Google Drive.
|
||||
|
@ -1974,9 +1975,8 @@ type File struct {
|
|||
// Drive; it is not populated for Google Docs or shortcut files.
|
||||
FullFileExtension string `json:"fullFileExtension,omitempty"`
|
||||
|
||||
// HasAugmentedPermissions: Whether any users are granted file access
|
||||
// directly on this file. This field is only populated for items in
|
||||
// shared drives.
|
||||
// HasAugmentedPermissions: Whether there are permissions directly on
|
||||
// this file. This field is only populated for items in shared drives.
|
||||
HasAugmentedPermissions bool `json:"hasAugmentedPermissions,omitempty"`
|
||||
|
||||
// HasThumbnail: Whether this file has a thumbnail. This does not
|
||||
|
@ -2231,13 +2231,19 @@ type FileCapabilities struct {
|
|||
// CanDownload: Whether the current user can download this file.
|
||||
CanDownload bool `json:"canDownload,omitempty"`
|
||||
|
||||
// CanEdit: Whether the current user can edit this file.
|
||||
// CanEdit: Whether the current user can edit this file. Other factors
|
||||
// may limit the type of changes a user can make to a file. For example,
|
||||
// see canChangeCopyRequiresWriterPermission or canModifyContent.
|
||||
CanEdit bool `json:"canEdit,omitempty"`
|
||||
|
||||
// CanListChildren: Whether the current user can list the children of
|
||||
// this folder. This is always false when the item is not a folder.
|
||||
CanListChildren bool `json:"canListChildren,omitempty"`
|
||||
|
||||
// CanModifyContent: Whether the current user can modify the content of
|
||||
// this file.
|
||||
CanModifyContent bool `json:"canModifyContent,omitempty"`
|
||||
|
||||
// CanMoveChildrenOutOfDrive: Whether the current user can move children
|
||||
// of this folder outside of the shared drive. This is false when the
|
||||
// item is not a folder. Only populated for items in shared drives.
|
||||
|
@ -3284,6 +3290,8 @@ type Revision struct {
|
|||
// content stored in Drive which are not Google Docs. Revisions can also
|
||||
// be pinned when they are created through the
|
||||
// drive.files.insert/update/copy by using the pinned query parameter.
|
||||
// Pinned revisions are stored indefinitely using additional storage
|
||||
// quota, up to a maximum of 200 revisions.
|
||||
Pinned bool `json:"pinned,omitempty"`
|
||||
|
||||
// PublishAuto: Whether subsequent revisions will be automatically
|
||||
|
@ -3906,7 +3914,7 @@ func (c *AboutGetCall) Header() http.Header {
|
|||
|
||||
func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4061,7 +4069,7 @@ func (c *AppsGetCall) Header() http.Header {
|
|||
|
||||
func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4237,7 +4245,7 @@ func (c *AppsListCall) Header() http.Header {
|
|||
|
||||
func (c *AppsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4416,7 +4424,7 @@ func (c *ChangesGetCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4618,7 +4626,7 @@ func (c *ChangesGetStartPageTokenCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4885,7 +4893,7 @@ func (c *ChangesListCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5219,7 +5227,7 @@ func (c *ChangesWatchCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5428,7 +5436,7 @@ func (c *ChannelsStopCall) Header() http.Header {
|
|||
|
||||
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5532,7 +5540,7 @@ func (c *ChildrenDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ChildrenDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5654,7 +5662,7 @@ func (c *ChildrenGetCall) Header() http.Header {
|
|||
|
||||
func (c *ChildrenGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5818,7 +5826,7 @@ func (c *ChildrenInsertCall) Header() http.Header {
|
|||
|
||||
func (c *ChildrenInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6014,7 +6022,7 @@ func (c *ChildrenListCall) Header() http.Header {
|
|||
|
||||
func (c *ChildrenListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6197,7 +6205,7 @@ func (c *CommentsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6327,7 +6335,7 @@ func (c *CommentsGetCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6476,7 +6484,7 @@ func (c *CommentsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6656,7 +6664,7 @@ func (c *CommentsListCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6840,7 +6848,7 @@ func (c *CommentsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6989,7 +6997,7 @@ func (c *CommentsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7135,7 +7143,7 @@ func (c *DrivesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7255,7 +7263,7 @@ func (c *DrivesGetCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7393,7 +7401,7 @@ func (c *DrivesHideCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7522,7 +7530,7 @@ func (c *DrivesInsertCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7694,7 +7702,7 @@ func (c *DrivesListCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7860,7 +7868,7 @@ func (c *DrivesUnhideCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7999,7 +8007,7 @@ func (c *DrivesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8216,7 +8224,7 @@ func (c *FilesCopyCall) Header() http.Header {
|
|||
|
||||
func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8434,7 +8442,7 @@ func (c *FilesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8546,7 +8554,7 @@ func (c *FilesEmptyTrashCall) Header() http.Header {
|
|||
|
||||
func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8646,7 +8654,7 @@ func (c *FilesExportCall) Header() http.Header {
|
|||
|
||||
func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8800,7 +8808,7 @@ func (c *FilesGenerateIdsCall) Header() http.Header {
|
|||
|
||||
func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8999,7 +9007,7 @@ func (c *FilesGetCall) Header() http.Header {
|
|||
|
||||
func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9317,7 +9325,7 @@ func (c *FilesInsertCall) Header() http.Header {
|
|||
|
||||
func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9332,7 +9340,7 @@ func (c *FilesInsertCall) doRequest(alt string) (*http.Response, error) {
|
|||
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)
|
||||
urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/drive/v2/files")
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
|
@ -9688,7 +9696,7 @@ func (c *FilesListCall) Header() http.Header {
|
|||
|
||||
func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10063,7 +10071,7 @@ func (c *FilesPatchCall) Header() http.Header {
|
|||
|
||||
func (c *FilesPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10321,7 +10329,7 @@ func (c *FilesTouchCall) Header() http.Header {
|
|||
|
||||
func (c *FilesTouchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10484,7 +10492,7 @@ func (c *FilesTrashCall) Header() http.Header {
|
|||
|
||||
func (c *FilesTrashCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10644,7 +10652,7 @@ func (c *FilesUntrashCall) Header() http.Header {
|
|||
|
||||
func (c *FilesUntrashCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10961,7 +10969,7 @@ func (c *FilesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10976,7 +10984,7 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
|||
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)
|
||||
urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/drive/v2/files/{fileId}")
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
|
@ -11301,7 +11309,7 @@ func (c *FilesWatchCall) Header() http.Header {
|
|||
|
||||
func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11507,7 +11515,7 @@ func (c *ParentsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ParentsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11629,7 +11637,7 @@ func (c *ParentsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ParentsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11793,7 +11801,7 @@ func (c *ParentsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *ParentsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11954,7 +11962,7 @@ func (c *ParentsListCall) Header() http.Header {
|
|||
|
||||
func (c *ParentsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12120,7 +12128,7 @@ func (c *PermissionsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12287,7 +12295,7 @@ func (c *PermissionsGetCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12460,7 +12468,7 @@ func (c *PermissionsGetIdForEmailCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsGetIdForEmailCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12643,7 +12651,7 @@ func (c *PermissionsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12865,7 +12873,7 @@ func (c *PermissionsListCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13099,7 +13107,7 @@ func (c *PermissionsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13320,7 +13328,7 @@ func (c *PermissionsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13504,7 +13512,7 @@ func (c *PropertiesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13641,7 +13649,7 @@ func (c *PropertiesGetCall) Header() http.Header {
|
|||
|
||||
func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13795,7 +13803,7 @@ func (c *PropertiesInsertCall) Header() http.Header {
|
|||
|
||||
func (c *PropertiesInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13945,7 +13953,7 @@ func (c *PropertiesListCall) Header() http.Header {
|
|||
|
||||
func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -14094,7 +14102,7 @@ func (c *PropertiesPatchCall) Header() http.Header {
|
|||
|
||||
func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -14259,7 +14267,7 @@ func (c *PropertiesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *PropertiesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -14433,7 +14441,7 @@ func (c *RealtimeGetCall) Header() http.Header {
|
|||
|
||||
func (c *RealtimeGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -14614,7 +14622,7 @@ func (c *RealtimeUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *RealtimeUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -14624,7 +14632,7 @@ func (c *RealtimeUpdateCall) doRequest(alt string) (*http.Response, error) {
|
|||
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)
|
||||
urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/drive/v2/files/{fileId}/realtime")
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
|
@ -14769,7 +14777,7 @@ func (c *RepliesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -14908,7 +14916,7 @@ func (c *RepliesGetCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -15067,7 +15075,7 @@ func (c *RepliesInsertCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -15249,7 +15257,7 @@ func (c *RepliesListCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -15438,7 +15446,7 @@ func (c *RepliesPatchCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -15597,7 +15605,7 @@ func (c *RepliesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -15755,7 +15763,7 @@ func (c *RevisionsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -15878,7 +15886,7 @@ func (c *RevisionsGetCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16049,7 +16057,7 @@ func (c *RevisionsListCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16225,7 +16233,7 @@ func (c *RevisionsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16375,7 +16383,7 @@ func (c *RevisionsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16521,7 +16529,7 @@ func (c *TeamdrivesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16641,7 +16649,7 @@ func (c *TeamdrivesGetCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16780,7 +16788,7 @@ func (c *TeamdrivesInsertCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -16952,7 +16960,7 @@ func (c *TeamdrivesListCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -17129,7 +17137,7 @@ func (c *TeamdrivesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
18
vendor/google.golang.org/api/drive/v3/drive-api.json
generated
vendored
18
vendor/google.golang.org/api/drive/v3/drive-api.json
generated
vendored
|
@ -35,7 +35,7 @@
|
|||
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/drive/",
|
||||
"etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/0iA8vxcUiheoF8DYYwsH9o3K3hg\"",
|
||||
"etag": "\"LYADMvHWYH2ul9D6m9UT9gT77YM/ixkLftF7SIEiqkkwNYopCpZnQlw\"",
|
||||
"icons": {
|
||||
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
|
||||
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
|
||||
|
@ -784,7 +784,7 @@
|
|||
},
|
||||
"keepRevisionForever": {
|
||||
"default": "false",
|
||||
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
|
||||
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
|
@ -849,7 +849,7 @@
|
|||
},
|
||||
"keepRevisionForever": {
|
||||
"default": "false",
|
||||
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
|
||||
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
|
@ -1185,7 +1185,7 @@
|
|||
},
|
||||
"keepRevisionForever": {
|
||||
"default": "false",
|
||||
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
|
||||
"description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
|
@ -2096,7 +2096,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20190620",
|
||||
"revision": "20190926",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"About": {
|
||||
|
@ -2704,13 +2704,17 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"canEdit": {
|
||||
"description": "Whether the current user can edit this file.",
|
||||
"description": "Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"canListChildren": {
|
||||
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"canModifyContent": {
|
||||
"description": "Whether the current user can modify the content of this file.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"canMoveChildrenOutOfDrive": {
|
||||
"description": "Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.",
|
||||
"type": "boolean"
|
||||
|
@ -2857,7 +2861,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"hasAugmentedPermissions": {
|
||||
"description": "Whether any users are granted file access directly on this file. This field is only populated for shared drive files.",
|
||||
"description": "Whether there are permissions directly on this file. This field is only populated for items in shared drives.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hasThumbnail": {
|
||||
|
|
126
vendor/google.golang.org/api/drive/v3/drive-gen.go
generated
vendored
126
vendor/google.golang.org/api/drive/v3/drive-gen.go
generated
vendored
|
@ -53,8 +53,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
gensupport "google.golang.org/api/internal/gensupport"
|
||||
option "google.golang.org/api/option"
|
||||
htransport "google.golang.org/api/transport/http"
|
||||
)
|
||||
|
@ -1196,9 +1196,8 @@ type File struct {
|
|||
// is not cleared if the new name does not contain a valid extension.
|
||||
FullFileExtension string `json:"fullFileExtension,omitempty"`
|
||||
|
||||
// HasAugmentedPermissions: Whether any users are granted file access
|
||||
// directly on this file. This field is only populated for shared drive
|
||||
// files.
|
||||
// HasAugmentedPermissions: Whether there are permissions directly on
|
||||
// this file. This field is only populated for items in shared drives.
|
||||
HasAugmentedPermissions bool `json:"hasAugmentedPermissions,omitempty"`
|
||||
|
||||
// HasThumbnail: Whether this file has a thumbnail. This does not
|
||||
|
@ -1446,13 +1445,19 @@ type FileCapabilities struct {
|
|||
// CanDownload: Whether the current user can download this file.
|
||||
CanDownload bool `json:"canDownload,omitempty"`
|
||||
|
||||
// CanEdit: Whether the current user can edit this file.
|
||||
// CanEdit: Whether the current user can edit this file. Other factors
|
||||
// may limit the type of changes a user can make to a file. For example,
|
||||
// see canChangeCopyRequiresWriterPermission or canModifyContent.
|
||||
CanEdit bool `json:"canEdit,omitempty"`
|
||||
|
||||
// CanListChildren: Whether the current user can list the children of
|
||||
// this folder. This is always false when the item is not a folder.
|
||||
CanListChildren bool `json:"canListChildren,omitempty"`
|
||||
|
||||
// CanModifyContent: Whether the current user can modify the content of
|
||||
// this file.
|
||||
CanModifyContent bool `json:"canModifyContent,omitempty"`
|
||||
|
||||
// CanMoveChildrenOutOfDrive: Whether the current user can move children
|
||||
// of this folder outside of the shared drive. This is false when the
|
||||
// item is not a folder. Only populated for items in shared drives.
|
||||
|
@ -2863,7 +2868,7 @@ func (c *AboutGetCall) Header() http.Header {
|
|||
|
||||
func (c *AboutGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3028,7 +3033,7 @@ func (c *ChangesGetStartPageTokenCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesGetStartPageTokenCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3279,7 +3284,7 @@ func (c *ChangesListCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3576,7 +3581,7 @@ func (c *ChangesWatchCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesWatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3784,7 +3789,7 @@ func (c *ChannelsStopCall) Header() http.Header {
|
|||
|
||||
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3887,7 +3892,7 @@ func (c *CommentsCreateCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4026,7 +4031,7 @@ func (c *CommentsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4156,7 +4161,7 @@ func (c *CommentsGetCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4345,7 +4350,7 @@ func (c *CommentsListCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4528,7 +4533,7 @@ func (c *CommentsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *CommentsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4674,7 +4679,7 @@ func (c *DrivesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4808,7 +4813,7 @@ func (c *DrivesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4928,7 +4933,7 @@ func (c *DrivesGetCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5066,7 +5071,7 @@ func (c *DrivesHideCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesHideCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5233,7 +5238,7 @@ func (c *DrivesListCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5399,7 +5404,7 @@ func (c *DrivesUnhideCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesUnhideCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5538,7 +5543,7 @@ func (c *DrivesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *DrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5670,7 +5675,8 @@ func (c *FilesCopyCall) IgnoreDefaultVisibility(ignoreDefaultVisibility bool) *F
|
|||
// KeepRevisionForever sets the optional parameter
|
||||
// "keepRevisionForever": Whether to set the 'keepForever' field in the
|
||||
// new head revision. This is only applicable to files with binary
|
||||
// content in Google Drive.
|
||||
// content in Google Drive. Only 200 revisions for the file can be kept
|
||||
// forever. If the limit is reached, try deleting pinned revisions.
|
||||
func (c *FilesCopyCall) KeepRevisionForever(keepRevisionForever bool) *FilesCopyCall {
|
||||
c.urlParams_.Set("keepRevisionForever", fmt.Sprint(keepRevisionForever))
|
||||
return c
|
||||
|
@ -5727,7 +5733,7 @@ func (c *FilesCopyCall) Header() http.Header {
|
|||
|
||||
func (c *FilesCopyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5812,7 +5818,7 @@ func (c *FilesCopyCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
|||
// },
|
||||
// "keepRevisionForever": {
|
||||
// "default": "false",
|
||||
// "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
|
||||
// "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
|
@ -5883,7 +5889,8 @@ func (c *FilesCreateCall) IgnoreDefaultVisibility(ignoreDefaultVisibility bool)
|
|||
// KeepRevisionForever sets the optional parameter
|
||||
// "keepRevisionForever": Whether to set the 'keepForever' field in the
|
||||
// new head revision. This is only applicable to files with binary
|
||||
// content in Google Drive.
|
||||
// content in Google Drive. Only 200 revisions for the file can be kept
|
||||
// forever. If the limit is reached, try deleting pinned revisions.
|
||||
func (c *FilesCreateCall) KeepRevisionForever(keepRevisionForever bool) *FilesCreateCall {
|
||||
c.urlParams_.Set("keepRevisionForever", fmt.Sprint(keepRevisionForever))
|
||||
return c
|
||||
|
@ -5987,7 +5994,7 @@ func (c *FilesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6002,7 +6009,7 @@ func (c *FilesCreateCall) doRequest(alt string) (*http.Response, error) {
|
|||
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)
|
||||
urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/drive/v3/files")
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
|
@ -6104,7 +6111,7 @@ func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
|||
// },
|
||||
// "keepRevisionForever": {
|
||||
// "default": "false",
|
||||
// "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
|
||||
// "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
|
@ -6214,7 +6221,7 @@ func (c *FilesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *FilesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6326,7 +6333,7 @@ func (c *FilesEmptyTrashCall) Header() http.Header {
|
|||
|
||||
func (c *FilesEmptyTrashCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6426,7 +6433,7 @@ func (c *FilesExportCall) Header() http.Header {
|
|||
|
||||
func (c *FilesExportCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6580,7 +6587,7 @@ func (c *FilesGenerateIdsCall) Header() http.Header {
|
|||
|
||||
func (c *FilesGenerateIdsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6753,7 +6760,7 @@ func (c *FilesGetCall) Header() http.Header {
|
|||
|
||||
func (c *FilesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7050,7 +7057,7 @@ func (c *FilesListCall) Header() http.Header {
|
|||
|
||||
func (c *FilesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7265,7 +7272,8 @@ func (c *FilesUpdateCall) AddParents(addParents string) *FilesUpdateCall {
|
|||
// KeepRevisionForever sets the optional parameter
|
||||
// "keepRevisionForever": Whether to set the 'keepForever' field in the
|
||||
// new head revision. This is only applicable to files with binary
|
||||
// content in Google Drive.
|
||||
// content in Google Drive. Only 200 revisions for the file can be kept
|
||||
// forever. If the limit is reached, try deleting pinned revisions.
|
||||
func (c *FilesUpdateCall) KeepRevisionForever(keepRevisionForever bool) *FilesUpdateCall {
|
||||
c.urlParams_.Set("keepRevisionForever", fmt.Sprint(keepRevisionForever))
|
||||
return c
|
||||
|
@ -7376,7 +7384,7 @@ func (c *FilesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7391,7 +7399,7 @@ func (c *FilesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
|||
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)
|
||||
urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/drive/v3/files/{fileId}")
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
|
@ -7504,7 +7512,7 @@ func (c *FilesUpdateCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
|||
// },
|
||||
// "keepRevisionForever": {
|
||||
// "default": "false",
|
||||
// "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive.",
|
||||
// "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
|
@ -7628,7 +7636,7 @@ func (c *FilesWatchCall) Header() http.Header {
|
|||
|
||||
func (c *FilesWatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7863,7 +7871,7 @@ func (c *PermissionsCreateCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8063,7 +8071,7 @@ func (c *PermissionsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8230,7 +8238,7 @@ func (c *PermissionsGetCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8447,7 +8455,7 @@ func (c *PermissionsListCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8682,7 +8690,7 @@ func (c *PermissionsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8861,7 +8869,7 @@ func (c *RepliesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9010,7 +9018,7 @@ func (c *RepliesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9150,7 +9158,7 @@ func (c *RepliesGetCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9341,7 +9349,7 @@ func (c *RepliesListCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9529,7 +9537,7 @@ func (c *RepliesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *RepliesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9687,7 +9695,7 @@ func (c *RevisionsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9819,7 +9827,7 @@ func (c *RevisionsGetCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10014,7 +10022,7 @@ func (c *RevisionsListCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10190,7 +10198,7 @@ func (c *RevisionsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *RevisionsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10337,7 +10345,7 @@ func (c *TeamdrivesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10470,7 +10478,7 @@ func (c *TeamdrivesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10590,7 +10598,7 @@ func (c *TeamdrivesGetCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10767,7 +10775,7 @@ func (c *TeamdrivesListCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10944,7 +10952,7 @@ func (c *TeamdrivesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *TeamdrivesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
14
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
14
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2011 Google Inc. All rights reserved.
|
||||
// Copyright 2011 Google LLC. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
|
@ -256,14 +256,22 @@ func ProcessMediaOptions(opts []MediaOption) *MediaOptions {
|
|||
// "http://www.golang.org/topics/myproject/mytopic". It strips all parent
|
||||
// references (e.g. ../..) as well as anything after the host
|
||||
// (e.g. /bar/gaz gets stripped out of foo.com/bar/gaz).
|
||||
//
|
||||
// ResolveRelative panics if either basestr or relstr is not able to be parsed.
|
||||
func ResolveRelative(basestr, relstr string) string {
|
||||
u, _ := url.Parse(basestr)
|
||||
u, err := url.Parse(basestr)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("failed to parse %q", basestr))
|
||||
}
|
||||
afterColonPath := ""
|
||||
if i := strings.IndexRune(relstr, ':'); i > 0 {
|
||||
afterColonPath = relstr[i+1:]
|
||||
relstr = relstr[:i]
|
||||
}
|
||||
rel, _ := url.Parse(relstr)
|
||||
rel, err := url.Parse(relstr)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("failed to parse %q", relstr))
|
||||
}
|
||||
u = u.ResolveReference(rel)
|
||||
us := u.String()
|
||||
if afterColonPath != "" {
|
||||
|
|
2
vendor/google.golang.org/api/googleapi/internal/uritemplates/uritemplates.go
generated
vendored
2
vendor/google.golang.org/api/googleapi/internal/uritemplates/uritemplates.go
generated
vendored
|
@ -191,7 +191,7 @@ func parseTerm(term string) (result templateTerm, err error) {
|
|||
err = errors.New("not a valid name: " + result.name)
|
||||
}
|
||||
if result.explode && result.truncate > 0 {
|
||||
err = errors.New("both explode and prefix modifers on same term")
|
||||
err = errors.New("both explode and prefix modifiers on same term")
|
||||
}
|
||||
return result, err
|
||||
}
|
||||
|
|
2
vendor/google.golang.org/api/googleapi/transport/apikey.go
generated
vendored
2
vendor/google.golang.org/api/googleapi/transport/apikey.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2012 Google Inc. All rights reserved.
|
||||
// Copyright 2012 Google LLC. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
|
|
2
vendor/google.golang.org/api/googleapi/types.go
generated
vendored
2
vendor/google.golang.org/api/googleapi/types.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2013 Google Inc. All rights reserved.
|
||||
// Copyright 2013 Google LLC. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
|
|
16
vendor/google.golang.org/api/internal/creds.go
generated
vendored
16
vendor/google.golang.org/api/internal/creds.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2017 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2017 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package internal
|
||||
|
||||
|
|
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2016 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2016 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package gensupport
|
||||
|
16
vendor/google.golang.org/api/internal/pool.go
generated
vendored
16
vendor/google.golang.org/api/internal/pool.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2016 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2016 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package internal
|
||||
|
||||
|
|
16
vendor/google.golang.org/api/internal/settings.go
generated
vendored
16
vendor/google.golang.org/api/internal/settings.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2017 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2017 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package internal supports the options and transport packages.
|
||||
package internal
|
||||
|
|
16
vendor/google.golang.org/api/option/credentials_go19.go
generated
vendored
16
vendor/google.golang.org/api/option/credentials_go19.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2018 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.9
|
||||
|
||||
|
|
16
vendor/google.golang.org/api/option/credentials_notgo19.go
generated
vendored
16
vendor/google.golang.org/api/option/credentials_notgo19.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2018 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !go1.9
|
||||
|
||||
|
|
16
vendor/google.golang.org/api/option/option.go
generated
vendored
16
vendor/google.golang.org/api/option/option.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2017 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2017 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package option contains options for Google API clients.
|
||||
package option
|
||||
|
|
17
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
17
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
|
@ -26,7 +26,7 @@
|
|||
"description": "Stores and retrieves potentially large, immutable data objects.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
|
||||
"etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/m18VxIxuaQHJN-C1B3-yQYvta24\"",
|
||||
"etag": "\"F5McR9eEaw0XRpaO3M9gbIugkbs/bQWWH-5yykbmINHZHPMOypW2I3M\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
|
||||
|
@ -450,6 +450,13 @@
|
|||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"optionsRequestedPolicyVersion": {
|
||||
"description": "The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"provisionalUserProject": {
|
||||
"description": "The project to be billed for this request if the target bucket is requester-pays bucket.",
|
||||
"location": "query",
|
||||
|
@ -3054,6 +3061,7 @@
|
|||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_only"
|
||||
]
|
||||
},
|
||||
|
@ -3196,7 +3204,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20190624",
|
||||
"revision": "20191011",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Bucket": {
|
||||
|
@ -4305,6 +4313,11 @@
|
|||
"resourceId": {
|
||||
"description": "The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, and projects/_/buckets/bucket/objects/object for objects. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.",
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"description": "The IAM policy format version.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
129
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
129
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
|
@ -55,8 +55,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
gensupport "google.golang.org/api/internal/gensupport"
|
||||
option "google.golang.org/api/option"
|
||||
htransport "google.golang.org/api/transport/http"
|
||||
)
|
||||
|
@ -2068,6 +2068,9 @@ type Policy struct {
|
|||
// generation can be denoted with #0. This field is ignored on input.
|
||||
ResourceId string `json:"resourceId,omitempty"`
|
||||
|
||||
// Version: The IAM policy format version.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
@ -2389,7 +2392,7 @@ func (c *BucketAccessControlsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -2537,7 +2540,7 @@ func (c *BucketAccessControlsGetCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -2704,7 +2707,7 @@ func (c *BucketAccessControlsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -2877,7 +2880,7 @@ func (c *BucketAccessControlsListCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3038,7 +3041,7 @@ func (c *BucketAccessControlsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3212,7 +3215,7 @@ func (c *BucketAccessControlsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3398,7 +3401,7 @@ func (c *BucketsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3577,7 +3580,7 @@ func (c *BucketsGetCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3721,6 +3724,16 @@ func (r *BucketsService) GetIamPolicy(bucket string) *BucketsGetIamPolicyCall {
|
|||
return c
|
||||
}
|
||||
|
||||
// OptionsRequestedPolicyVersion sets the optional parameter
|
||||
// "optionsRequestedPolicyVersion": The IAM policy format version to be
|
||||
// returned. If the optionsRequestedPolicyVersion is for an older
|
||||
// version that doesn't support part of the requested IAM policy, the
|
||||
// request fails.
|
||||
func (c *BucketsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BucketsGetIamPolicyCall {
|
||||
c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
|
||||
return c
|
||||
}
|
||||
|
||||
// ProvisionalUserProject sets the optional parameter
|
||||
// "provisionalUserProject": The project to be billed for this request
|
||||
// if the target bucket is requester-pays bucket.
|
||||
|
@ -3773,7 +3786,7 @@ func (c *BucketsGetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -3848,6 +3861,13 @@ func (c *BucketsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err
|
|||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "optionsRequestedPolicyVersion": {
|
||||
// "description": "The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "minimum": "1",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "provisionalUserProject": {
|
||||
// "description": "The project to be billed for this request if the target bucket is requester-pays bucket.",
|
||||
// "location": "query",
|
||||
|
@ -3983,7 +4003,7 @@ func (c *BucketsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4240,7 +4260,7 @@ func (c *BucketsListCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4450,7 +4470,7 @@ func (c *BucketsLockRetentionPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4685,7 +4705,7 @@ func (c *BucketsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -4914,7 +4934,7 @@ func (c *BucketsSetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5089,7 +5109,7 @@ func (c *BucketsTestIamPermissionsCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5329,7 +5349,7 @@ func (c *BucketsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5541,7 +5561,7 @@ func (c *ChannelsStopCall) Header() http.Header {
|
|||
|
||||
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5658,7 +5678,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5806,7 +5826,7 @@ func (c *DefaultObjectAccessControlsGetCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -5974,7 +5994,7 @@ func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6164,7 +6184,7 @@ func (c *DefaultObjectAccessControlsListCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6337,7 +6357,7 @@ func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6511,7 +6531,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6683,7 +6703,7 @@ func (c *NotificationsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -6831,7 +6851,7 @@ func (c *NotificationsGetCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7001,7 +7021,7 @@ func (c *NotificationsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7176,7 +7196,7 @@ func (c *NotificationsListCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7349,7 +7369,7 @@ func (c *ObjectAccessControlsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7521,7 +7541,7 @@ func (c *ObjectAccessControlsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7712,7 +7732,7 @@ func (c *ObjectAccessControlsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -7909,7 +7929,7 @@ func (c *ObjectAccessControlsListCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8094,7 +8114,7 @@ func (c *ObjectAccessControlsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8292,7 +8312,7 @@ func (c *ObjectAccessControlsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8529,7 +8549,7 @@ func (c *ObjectsComposeCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -8861,7 +8881,7 @@ func (c *ObjectsCopyCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9184,7 +9204,7 @@ func (c *ObjectsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9417,7 +9437,7 @@ func (c *ObjectsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9667,7 +9687,7 @@ func (c *ObjectsGetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9984,7 +10004,7 @@ func (c *ObjectsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -9999,7 +10019,7 @@ func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {
|
|||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o")
|
||||
if c.mediaInfo_ != nil {
|
||||
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
|
||||
urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/storage/v1/b/{bucket}/o")
|
||||
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
|
||||
}
|
||||
if body == nil {
|
||||
|
@ -10339,7 +10359,7 @@ func (c *ObjectsListCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -10646,7 +10666,7 @@ func (c *ObjectsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11038,7 +11058,7 @@ func (c *ObjectsRewriteCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11341,7 +11361,7 @@ func (c *ObjectsSetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11541,7 +11561,7 @@ func (c *ObjectsTestIamPermissionsCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -11802,7 +11822,7 @@ func (c *ObjectsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12102,7 +12122,7 @@ func (c *ObjectsWatchAllCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12308,7 +12328,7 @@ func (c *ProjectsHmacKeysCreateCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12458,7 +12478,7 @@ func (c *ProjectsHmacKeysDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12593,7 +12613,7 @@ func (c *ProjectsHmacKeysGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12689,6 +12709,7 @@ func (c *ProjectsHmacKeysGetCall) Do(opts ...googleapi.CallOption) (*HmacKeyMeta
|
|||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
// "https://www.googleapis.com/auth/devstorage.full_control",
|
||||
// "https://www.googleapis.com/auth/devstorage.read_only"
|
||||
// ]
|
||||
// }
|
||||
|
@ -12792,7 +12813,7 @@ func (c *ProjectsHmacKeysListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -12987,7 +13008,7 @@ func (c *ProjectsHmacKeysUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
@ -13164,7 +13185,7 @@ func (c *ProjectsServiceAccountGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190802")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.0 gdcl/20191026")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
16
vendor/google.golang.org/api/transport/http/dial.go
generated
vendored
16
vendor/google.golang.org/api/transport/http/dial.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2015 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2015 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package http supports network connections to HTTP servers.
|
||||
// This package is not intended for use by end developers. Use the
|
||||
|
|
16
vendor/google.golang.org/api/transport/http/dial_appengine.go
generated
vendored
16
vendor/google.golang.org/api/transport/http/dial_appengine.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2016 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2016 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build appengine
|
||||
|
||||
|
|
16
vendor/google.golang.org/api/transport/http/internal/propagation/http.go
generated
vendored
16
vendor/google.golang.org/api/transport/http/internal/propagation/http.go
generated
vendored
|
@ -1,16 +1,6 @@
|
|||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// Copyright 2018 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.8
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue