vendor: update dependencies to latest
This commit is contained in:
parent
58f7141c96
commit
89625e54cf
173 changed files with 4954 additions and 2224 deletions
9
vendor/google.golang.org/api/drive/v2/drive-api.json
generated
vendored
9
vendor/google.golang.org/api/drive/v2/drive-api.json
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/drive": {
|
||||
"description": "View and manage the files in your Google Drive"
|
||||
"description": "See, edit, create, and delete all of your Google Drive files"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.appdata": {
|
||||
"description": "View and manage its own configuration data in your Google Drive"
|
||||
|
@ -24,7 +24,7 @@
|
|||
"description": "View the photos, videos and albums in your Google Photos"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.readonly": {
|
||||
"description": "View the files in your Google Drive"
|
||||
"description": "See and download all your Google Drive files"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.scripts": {
|
||||
"description": "Modify your Google Apps Script scripts' behavior"
|
||||
|
@ -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": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/IpWGMl9VbmiTG9s-ZaBZIrC4CgE\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/ht6QYJxjG-GWKiHV7jWIX4PB5aE\"",
|
||||
"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"
|
||||
|
@ -3080,7 +3080,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180830",
|
||||
"revision": "20181025",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"About": {
|
||||
|
@ -4051,6 +4051,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"downloadUrl": {
|
||||
"description": "Short lived download URL for the file. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.",
|
||||
"type": "string"
|
||||
},
|
||||
"editable": {
|
||||
|
|
16
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
16
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
|
@ -11,18 +11,18 @@ package drive // import "google.golang.org/api/drive/v2"
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
|
@ -38,7 +38,6 @@ var _ = googleapi.Version
|
|||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "drive:v2"
|
||||
const apiName = "drive"
|
||||
|
@ -47,7 +46,7 @@ const basePath = "https://www.googleapis.com/drive/v2/"
|
|||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage the files in your Google Drive
|
||||
// See, edit, create, and delete all of your Google Drive files
|
||||
DriveScope = "https://www.googleapis.com/auth/drive"
|
||||
|
||||
// View and manage its own configuration data in your Google Drive
|
||||
|
@ -69,7 +68,7 @@ const (
|
|||
// View the photos, videos and albums in your Google Photos
|
||||
DrivePhotosReadonlyScope = "https://www.googleapis.com/auth/drive.photos.readonly"
|
||||
|
||||
// View the files in your Google Drive
|
||||
// See and download all your Google Drive files
|
||||
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
|
||||
|
||||
// Modify your Google Apps Script scripts' behavior
|
||||
|
@ -1451,6 +1450,9 @@ type File struct {
|
|||
// Description: A short description of the file.
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// DownloadUrl: Short lived download URL for the file. This field is
|
||||
// only populated for files with content stored in Drive; it is not
|
||||
// populated for Google Docs or shortcut files.
|
||||
DownloadUrl string `json:"downloadUrl,omitempty"`
|
||||
|
||||
// Editable: Deprecated: use capabilities/canEdit.
|
||||
|
|
8
vendor/google.golang.org/api/drive/v3/drive-api.json
generated
vendored
8
vendor/google.golang.org/api/drive/v3/drive-api.json
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/drive": {
|
||||
"description": "View and manage the files in your Google Drive"
|
||||
"description": "See, edit, create, and delete all of your Google Drive files"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.appdata": {
|
||||
"description": "View and manage its own configuration data in your Google Drive"
|
||||
|
@ -21,7 +21,7 @@
|
|||
"description": "View the photos, videos and albums in your Google Photos"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.readonly": {
|
||||
"description": "View the files in your Google Drive"
|
||||
"description": "See and download all your Google Drive files"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.scripts": {
|
||||
"description": "Modify your Google Apps Script scripts' behavior"
|
||||
|
@ -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": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/79RB5EuEpU35909wc6O7vR4Degc\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/ESklhHtjidCDMugyP9gJKRCO-YM\"",
|
||||
"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"
|
||||
|
@ -1770,7 +1770,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180830",
|
||||
"revision": "20181025",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"About": {
|
||||
|
|
13
vendor/google.golang.org/api/drive/v3/drive-gen.go
generated
vendored
13
vendor/google.golang.org/api/drive/v3/drive-gen.go
generated
vendored
|
@ -11,18 +11,18 @@ package drive // import "google.golang.org/api/drive/v3"
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
|
@ -38,7 +38,6 @@ var _ = googleapi.Version
|
|||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "drive:v3"
|
||||
const apiName = "drive"
|
||||
|
@ -47,7 +46,7 @@ const basePath = "https://www.googleapis.com/drive/v3/"
|
|||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage the files in your Google Drive
|
||||
// See, edit, create, and delete all of your Google Drive files
|
||||
DriveScope = "https://www.googleapis.com/auth/drive"
|
||||
|
||||
// View and manage its own configuration data in your Google Drive
|
||||
|
@ -66,7 +65,7 @@ const (
|
|||
// View the photos, videos and albums in your Google Photos
|
||||
DrivePhotosReadonlyScope = "https://www.googleapis.com/auth/drive.photos.readonly"
|
||||
|
||||
// View the files in your Google Drive
|
||||
// See and download all your Google Drive files
|
||||
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
|
||||
|
||||
// Modify your Google Apps Script scripts' behavior
|
||||
|
|
17
vendor/google.golang.org/api/gensupport/go18.go
generated
vendored
17
vendor/google.golang.org/api/gensupport/go18.go
generated
vendored
|
@ -1,17 +0,0 @@
|
|||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.8
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// SetGetBody sets the GetBody field of req to f.
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {
|
||||
req.GetBody = f
|
||||
}
|
5
vendor/google.golang.org/api/gensupport/media.go
generated
vendored
5
vendor/google.golang.org/api/gensupport/media.go
generated
vendored
|
@ -334,3 +334,8 @@ func (mi *MediaInfo) ResumableUpload(locURI string) *ResumableUpload {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
// SetGetBody sets the GetBody field of req to f.
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {
|
||||
req.GetBody = f
|
||||
}
|
||||
|
|
14
vendor/google.golang.org/api/gensupport/not_go18.go
generated
vendored
14
vendor/google.golang.org/api/gensupport/not_go18.go
generated
vendored
|
@ -1,14 +0,0 @@
|
|||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !go1.8
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {}
|
3
vendor/google.golang.org/api/gensupport/resumable.go
generated
vendored
3
vendor/google.golang.org/api/gensupport/resumable.go
generated
vendored
|
@ -5,14 +5,13 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
3
vendor/google.golang.org/api/gensupport/retry.go
generated
vendored
3
vendor/google.golang.org/api/gensupport/retry.go
generated
vendored
|
@ -15,12 +15,11 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Retry invokes the given function, retrying it multiple times if the connection failed or
|
||||
|
|
26
vendor/google.golang.org/api/gensupport/send.go
generated
vendored
26
vendor/google.golang.org/api/gensupport/send.go
generated
vendored
|
@ -5,12 +5,10 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/net/context/ctxhttp"
|
||||
)
|
||||
|
||||
// Hook is the type of a function that is called once before each HTTP request
|
||||
|
@ -32,7 +30,8 @@ func RegisterHook(h Hook) {
|
|||
|
||||
// SendRequest sends a single HTTP request using the given client.
|
||||
// If ctx is non-nil, it calls all hooks, then sends the request with
|
||||
// ctxhttp.Do, then calls any functions returned by the hooks in reverse order.
|
||||
// req.WithContext, then calls any functions returned by the hooks in
|
||||
// reverse order.
|
||||
func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
|
||||
// Disallow Accept-Encoding because it interferes with the automatic gzip handling
|
||||
// done by the default http.Transport. See https://github.com/google/google-api-go-client/issues/219.
|
||||
|
@ -50,7 +49,7 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
|
|||
}
|
||||
|
||||
// Send request.
|
||||
resp, err := ctxhttp.Do(ctx, client, req)
|
||||
resp, err := send(ctx, client, req)
|
||||
|
||||
// Call returned funcs in reverse order.
|
||||
for i := len(post) - 1; i >= 0; i-- {
|
||||
|
@ -61,6 +60,23 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
|
|||
return resp, err
|
||||
}
|
||||
|
||||
func send(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
|
||||
if client == nil {
|
||||
client = http.DefaultClient
|
||||
}
|
||||
resp, err := client.Do(req.WithContext(ctx))
|
||||
// If we got an error, and the context has been canceled,
|
||||
// the context's error is probably more useful.
|
||||
if err != nil {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
err = ctx.Err()
|
||||
default:
|
||||
}
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// DecodeResponse decodes the body of res into target. If there is no body,
|
||||
// target is unchanged.
|
||||
func DecodeResponse(target interface{}, res *http.Response) error {
|
||||
|
|
6
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
6
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": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/akd8i6K-8A6ohXFVzxQZomL5PpA\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/LSpI3fR5lOQdDA6XHHjB1Bie2kU\"",
|
||||
"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"
|
||||
|
@ -616,7 +616,7 @@
|
|||
]
|
||||
},
|
||||
"patch": {
|
||||
"description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.",
|
||||
"description": "Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "storage.buckets.patch",
|
||||
"parameterOrder": [
|
||||
|
@ -2766,7 +2766,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180905",
|
||||
"revision": "20181013",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Bucket": {
|
||||
|
|
15
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
15
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
|
@ -13,18 +13,18 @@ package storage // import "google.golang.org/api/storage/v1"
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
|
@ -40,7 +40,6 @@ var _ = googleapi.Version
|
|||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "storage:v1"
|
||||
const apiName = "storage"
|
||||
|
@ -4013,9 +4012,9 @@ type BucketsPatchCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// Patch: Updates a bucket. Changes to the bucket will be readable
|
||||
// Patch: Patches a bucket. Changes to the bucket will be readable
|
||||
// immediately after writing, but configuration changes may take time to
|
||||
// propagate. This method supports patch semantics.
|
||||
// propagate.
|
||||
func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall {
|
||||
c := &BucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
@ -4188,7 +4187,7 @@ func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) {
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.",
|
||||
// "description": "Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "storage.buckets.patch",
|
||||
// "parameterOrder": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue