mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Update dependencies to latest versions
This commit is contained in:
10
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
10
vendor/google.golang.org/api/calendar/v3/calendar-api.json
generated
vendored
@@ -3,7 +3,7 @@
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/calendar": {
|
||||
"description": "Manage your calendars"
|
||||
"description": "See, edit, share, and permanently delete all the calendars you can access using Google Calendar"
|
||||
},
|
||||
"https://www.googleapis.com/auth/calendar.events": {
|
||||
"description": "View and edit events on all your calendars"
|
||||
@@ -26,7 +26,7 @@
|
||||
"description": "Manipulates events and other calendar data.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/google-apps/calendar/firstapp",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/HcEmuhTEJ15i1AnuK6mgjI8kmMs\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/lI7ZDM8riDWk38LHz77rwUi1L4g\"",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/calendar-16.png",
|
||||
"x32": "http://www.google.com/images/icons/product/calendar-32.png"
|
||||
@@ -1724,7 +1724,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20181002",
|
||||
"revision": "20181125",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Acl": {
|
||||
@@ -1991,7 +1991,7 @@
|
||||
"id": "CalendarNotification",
|
||||
"properties": {
|
||||
"method": {
|
||||
"description": "The method used to deliver the notification. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Reminders are sent via SMS. This value is read-only and is ignored on inserts and updates. SMS reminders are only available for G Suite customers. \nRequired when adding a notification.",
|
||||
"description": "The method used to deliver the notification. Possible values are: \n- \"email\" - Notifications are sent via email. \n- \"sms\" - Deprecated. Once this feature is shutdown, the API will no longer return notifications using this method. Any newly added SMS notifications will be ignored. See Google Calendar SMS notifications to be removed for more information.\nNotifications are sent via SMS. This value is read-only and is ignored on inserts and updates. SMS notifications are only available for G Suite customers. \nRequired when adding a notification.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
@@ -2710,7 +2710,7 @@
|
||||
"id": "EventReminder",
|
||||
"properties": {
|
||||
"method": {
|
||||
"description": "The method used by this reminder. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored. \n- \"popup\" - Reminders are sent via a UI popup. \nRequired when adding a reminder.",
|
||||
"description": "The method used by this reminder. Possible values are: \n- \"email\" - Reminders are sent via email. \n- \"sms\" - Deprecated. Once this feature is shutdown, the API will no longer return reminders using this method. Any newly added SMS reminders will be ignored. See Google Calendar SMS notifications to be removed for more information.\nReminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored. \n- \"popup\" - Reminders are sent via a UI popup. \nRequired when adding a reminder.",
|
||||
"type": "string"
|
||||
},
|
||||
"minutes": {
|
||||
|
||||
40
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
40
vendor/google.golang.org/api/calendar/v3/calendar-gen.go
generated
vendored
@@ -1,3 +1,9 @@
|
||||
// Copyright 2019 Google Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Code generated file. DO NOT EDIT.
|
||||
|
||||
// Package calendar provides access to the Calendar API.
|
||||
//
|
||||
// See https://developers.google.com/google-apps/calendar/firstapp
|
||||
@@ -11,18 +17,18 @@ package calendar // import "google.golang.org/api/calendar/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 +44,6 @@ var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "calendar:v3"
|
||||
const apiName = "calendar"
|
||||
@@ -47,7 +52,8 @@ const basePath = "https://www.googleapis.com/calendar/v3/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// Manage your calendars
|
||||
// See, edit, share, and permanently delete all the calendars you can
|
||||
// access using Google Calendar
|
||||
CalendarScope = "https://www.googleapis.com/auth/calendar"
|
||||
|
||||
// View and edit events on all your calendars
|
||||
@@ -577,10 +583,14 @@ func (s *CalendarListEntryNotificationSettings) MarshalJSON() ([]byte, error) {
|
||||
type CalendarNotification struct {
|
||||
// Method: The method used to deliver the notification. Possible values
|
||||
// are:
|
||||
// - "email" - Reminders are sent via email.
|
||||
// - "sms" - Reminders are sent via SMS. This value is read-only and is
|
||||
// ignored on inserts and updates. SMS reminders are only available for
|
||||
// G Suite customers.
|
||||
// - "email" - Notifications are sent via email.
|
||||
// - "sms" - Deprecated. Once this feature is shutdown, the API will no
|
||||
// longer return notifications using this method. Any newly added SMS
|
||||
// notifications will be ignored. See Google Calendar SMS notifications
|
||||
// to be removed for more information.
|
||||
// Notifications are sent via SMS. This value is read-only and is
|
||||
// ignored on inserts and updates. SMS notifications are only available
|
||||
// for G Suite customers.
|
||||
// Required when adding a notification.
|
||||
Method string `json:"method,omitempty"`
|
||||
|
||||
@@ -1888,9 +1898,13 @@ func (s *EventDateTime) MarshalJSON() ([]byte, error) {
|
||||
type EventReminder struct {
|
||||
// Method: The method used by this reminder. Possible values are:
|
||||
// - "email" - Reminders are sent via email.
|
||||
// - "sms" - Reminders are sent via SMS. These are only available for G
|
||||
// Suite customers. Requests to set SMS reminders for other account
|
||||
// types are ignored.
|
||||
// - "sms" - Deprecated. Once this feature is shutdown, the API will no
|
||||
// longer return reminders using this method. Any newly added SMS
|
||||
// reminders will be ignored. See Google Calendar SMS notifications to
|
||||
// be removed for more information.
|
||||
// Reminders are sent via SMS. These are only available for G Suite
|
||||
// customers. Requests to set SMS reminders for other account types are
|
||||
// ignored.
|
||||
// - "popup" - Reminders are sent via a UI popup.
|
||||
// Required when adding a reminder.
|
||||
Method string `json:"method,omitempty"`
|
||||
|
||||
5
vendor/google.golang.org/api/gensupport/backoff.go
generated
vendored
5
vendor/google.golang.org/api/gensupport/backoff.go
generated
vendored
@@ -9,6 +9,8 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// BackoffStrategy defines the set of functions that a backoff-er must
|
||||
// implement.
|
||||
type BackoffStrategy interface {
|
||||
// Pause returns the duration of the next pause and true if the operation should be
|
||||
// retried, or false if no further retries should be attempted.
|
||||
@@ -28,6 +30,7 @@ type ExponentialBackoff struct {
|
||||
n uint
|
||||
}
|
||||
|
||||
// Pause returns the amount of time the caller should wait.
|
||||
func (eb *ExponentialBackoff) Pause() (time.Duration, bool) {
|
||||
if eb.total > eb.Max {
|
||||
return 0, false
|
||||
@@ -40,6 +43,8 @@ func (eb *ExponentialBackoff) Pause() (time.Duration, bool) {
|
||||
return d, true
|
||||
}
|
||||
|
||||
// Reset resets the backoff strategy such that the next Pause call will begin
|
||||
// counting from the start. It is not safe to call concurrently with Pause.
|
||||
func (eb *ExponentialBackoff) Reset() {
|
||||
eb.n = 0
|
||||
eb.total = 0
|
||||
|
||||
4
vendor/google.golang.org/api/gensupport/buffer.go
generated
vendored
4
vendor/google.golang.org/api/gensupport/buffer.go
generated
vendored
@@ -11,7 +11,8 @@ import (
|
||||
"google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// MediaBuffer buffers data from an io.Reader to support uploading media in retryable chunks.
|
||||
// MediaBuffer buffers data from an io.Reader to support uploading media in
|
||||
// retryable chunks. It should be created with NewMediaBuffer.
|
||||
type MediaBuffer struct {
|
||||
media io.Reader
|
||||
|
||||
@@ -22,6 +23,7 @@ type MediaBuffer struct {
|
||||
off int64
|
||||
}
|
||||
|
||||
// NewMediaBuffer initializes a MediaBuffer.
|
||||
func NewMediaBuffer(media io.Reader, chunkSize int) *MediaBuffer {
|
||||
return &MediaBuffer{media: media, chunk: make([]byte, 0, chunkSize)}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
6
vendor/google.golang.org/api/gensupport/media.go
generated
vendored
6
vendor/google.golang.org/api/gensupport/media.go
generated
vendored
@@ -242,6 +242,7 @@ func NewInfoFromResumableMedia(r io.ReaderAt, size int64, mediaType string) *Med
|
||||
}
|
||||
}
|
||||
|
||||
// SetProgressUpdater sets the progress updater for the media info.
|
||||
func (mi *MediaInfo) SetProgressUpdater(pu googleapi.ProgressUpdater) {
|
||||
if mi != nil {
|
||||
mi.progressUpdater = pu
|
||||
@@ -334,3 +335,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)) {}
|
||||
1
vendor/google.golang.org/api/gensupport/params.go
generated
vendored
1
vendor/google.golang.org/api/gensupport/params.go
generated
vendored
@@ -43,6 +43,7 @@ func (u URLParams) Encode() string {
|
||||
return url.Values(u).Encode()
|
||||
}
|
||||
|
||||
// SetOptions sets the URL params and any additional call options.
|
||||
func SetOptions(u URLParams, opts ...googleapi.CallOption) {
|
||||
for _, o := range opts {
|
||||
u.Set(o.Get())
|
||||
|
||||
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 {
|
||||
|
||||
50
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
50
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
@@ -37,24 +37,28 @@ type SizeReaderAt interface {
|
||||
// ServerResponse is embedded in each Do response and
|
||||
// provides the HTTP status code and header sent by the server.
|
||||
type ServerResponse struct {
|
||||
// HTTPStatusCode is the server's response status code.
|
||||
// When using a resource method's Do call, this will always be in the 2xx range.
|
||||
// HTTPStatusCode is the server's response status code. When using a
|
||||
// resource method's Do call, this will always be in the 2xx range.
|
||||
HTTPStatusCode int
|
||||
// Header contains the response header fields from the server.
|
||||
Header http.Header
|
||||
}
|
||||
|
||||
const (
|
||||
// Version defines the gax version being used. This is typically sent
|
||||
// in an HTTP header to services.
|
||||
Version = "0.5"
|
||||
|
||||
// UserAgent is the header string used to identify this package.
|
||||
UserAgent = "google-api-go-client/" + Version
|
||||
|
||||
// The default chunk size to use for resumable uploads if not specified by the user.
|
||||
// DefaultUploadChunkSize is the default chunk size to use for resumable
|
||||
// uploads if not specified by the user.
|
||||
DefaultUploadChunkSize = 8 * 1024 * 1024
|
||||
|
||||
// The minimum chunk size that can be used for resumable uploads. All
|
||||
// user-specified chunk sizes must be multiple of this value.
|
||||
// MinUploadChunkSize is the minimum chunk size that can be used for
|
||||
// resumable uploads. All user-specified chunk sizes must be multiple of
|
||||
// this value.
|
||||
MinUploadChunkSize = 256 * 1024
|
||||
)
|
||||
|
||||
@@ -161,9 +165,13 @@ func CheckMediaResponse(res *http.Response) error {
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalStyle defines whether to marshal JSON with a {"data": ...} wrapper.
|
||||
type MarshalStyle bool
|
||||
|
||||
// WithDataWrapper marshals JSON with a {"data": ...} wrapper.
|
||||
var WithDataWrapper = MarshalStyle(true)
|
||||
|
||||
// WithoutDataWrapper marshals JSON without a {"data": ...} wrapper.
|
||||
var WithoutDataWrapper = MarshalStyle(false)
|
||||
|
||||
func (wrap MarshalStyle) JSONReader(v interface{}) (io.Reader, error) {
|
||||
@@ -181,37 +189,12 @@ func (wrap MarshalStyle) JSONReader(v interface{}) (io.Reader, error) {
|
||||
return buf, nil
|
||||
}
|
||||
|
||||
// endingWithErrorReader from r until it returns an error. If the
|
||||
// final error from r is io.EOF and e is non-nil, e is used instead.
|
||||
type endingWithErrorReader struct {
|
||||
r io.Reader
|
||||
e error
|
||||
}
|
||||
|
||||
func (er endingWithErrorReader) Read(p []byte) (n int, err error) {
|
||||
n, err = er.r.Read(p)
|
||||
if err == io.EOF && er.e != nil {
|
||||
err = er.e
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// countingWriter counts the number of bytes it receives to write, but
|
||||
// discards them.
|
||||
type countingWriter struct {
|
||||
n *int64
|
||||
}
|
||||
|
||||
func (w countingWriter) Write(p []byte) (int, error) {
|
||||
*w.n += int64(len(p))
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
// ProgressUpdater is a function that is called upon every progress update of a resumable upload.
|
||||
// This is the only part of a resumable upload (from googleapi) that is usable by the developer.
|
||||
// The remaining usable pieces of resumable uploads is exposed in each auto-generated API.
|
||||
type ProgressUpdater func(current, total int64)
|
||||
|
||||
// MediaOption defines the interface for setting media options.
|
||||
type MediaOption interface {
|
||||
setOptions(o *MediaOptions)
|
||||
}
|
||||
@@ -268,6 +251,11 @@ func ProcessMediaOptions(opts []MediaOption) *MediaOptions {
|
||||
return mo
|
||||
}
|
||||
|
||||
// ResolveRelative resolves relatives such as "http://www.golang.org/" and
|
||||
// "topics/myproject/mytopic" into a single string, such as
|
||||
// "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).
|
||||
func ResolveRelative(basestr, relstr string) string {
|
||||
u, _ := url.Parse(basestr)
|
||||
afterColonPath := ""
|
||||
|
||||
30
vendor/google.golang.org/api/googleapi/types.go
generated
vendored
30
vendor/google.golang.org/api/googleapi/types.go
generated
vendored
@@ -120,33 +120,33 @@ func quotedList(n int, fn func(dst []byte, i int) []byte) ([]byte, error) {
|
||||
return dst, nil
|
||||
}
|
||||
|
||||
func (s Int64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, s[i], 10)
|
||||
func (q Int64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, q[i], 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Int32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, int64(s[i]), 10)
|
||||
func (q Int32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, int64(q[i]), 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Uint64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, s[i], 10)
|
||||
func (q Uint64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, q[i], 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Uint32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, uint64(s[i]), 10)
|
||||
func (q Uint32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, uint64(q[i]), 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Float64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendFloat(dst, s[i], 'g', -1, 64)
|
||||
func (q Float64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendFloat(dst, q[i], 'g', -1, 64)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
18
vendor/google.golang.org/api/sheets/v4/sheets-api.json
generated
vendored
18
vendor/google.golang.org/api/sheets/v4/sheets-api.json
generated
vendored
@@ -3,16 +3,16 @@
|
||||
"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.file": {
|
||||
"description": "View and manage Google Drive files and folders that you have opened or created with this app"
|
||||
},
|
||||
"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/spreadsheets": {
|
||||
"description": "View and manage your spreadsheets in Google Drive"
|
||||
"description": "See, edit, create, and delete your spreadsheets in Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/spreadsheets.readonly": {
|
||||
"description": "View your Google Spreadsheets"
|
||||
@@ -808,7 +808,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180727",
|
||||
"revision": "20190109",
|
||||
"rootUrl": "https://sheets.googleapis.com/",
|
||||
"schemas": {
|
||||
"AddBandingRequest": {
|
||||
@@ -1235,9 +1235,9 @@
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/linechart\"\u003eline chart\u003c/a\u003e.",
|
||||
"An \u003ca href=\"/chart/interactive/docs/gallery/areachart\"\u003earea chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/columnchart\"\u003ecolumn chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/scatterchart\"\u003escatter chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/scatterchart\"\u003escatter\nchart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/combochart\"\u003ecombo chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/steppedareachart\"\u003estepped area chart\u003c/a\u003e."
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/steppedareachart\"\u003estepped area\nchart\u003c/a\u003e."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
@@ -1273,9 +1273,9 @@
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/linechart\"\u003eline chart\u003c/a\u003e.",
|
||||
"An \u003ca href=\"/chart/interactive/docs/gallery/areachart\"\u003earea chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/columnchart\"\u003ecolumn chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/scatterchart\"\u003escatter chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/scatterchart\"\u003escatter\nchart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/combochart\"\u003ecombo chart\u003c/a\u003e.",
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/steppedareachart\"\u003estepped area chart\u003c/a\u003e."
|
||||
"A \u003ca href=\"/chart/interactive/docs/gallery/steppedareachart\"\u003estepped area\nchart\u003c/a\u003e."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2018,7 +2018,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"CandlestickChartSpec": {
|
||||
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/candlestickchart\"\u003ecandlestick chart\u003c/a\u003e.",
|
||||
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/candlestickchart\"\u003ecandlestick\nchart\u003c/a\u003e.",
|
||||
"id": "CandlestickChartSpec",
|
||||
"properties": {
|
||||
"data": {
|
||||
|
||||
30
vendor/google.golang.org/api/sheets/v4/sheets-gen.go
generated
vendored
30
vendor/google.golang.org/api/sheets/v4/sheets-gen.go
generated
vendored
@@ -1,3 +1,9 @@
|
||||
// Copyright 2019 Google Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Code generated file. DO NOT EDIT.
|
||||
|
||||
// Package sheets provides access to the Google Sheets API.
|
||||
//
|
||||
// See https://developers.google.com/sheets/
|
||||
@@ -11,18 +17,18 @@ package sheets // import "google.golang.org/api/sheets/v4"
|
||||
|
||||
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 +44,6 @@ var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "sheets:v4"
|
||||
const apiName = "sheets"
|
||||
@@ -47,17 +52,17 @@ const basePath = "https://sheets.googleapis.com/"
|
||||
|
||||
// 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 Google Drive files and folders that you have opened
|
||||
// or created with this app
|
||||
DriveFileScope = "https://www.googleapis.com/auth/drive.file"
|
||||
|
||||
// View the files in your Google Drive
|
||||
// See and download all your Google Drive files
|
||||
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
|
||||
|
||||
// View and manage your spreadsheets in Google Drive
|
||||
// See, edit, create, and delete your spreadsheets in Google Drive
|
||||
SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"
|
||||
|
||||
// View your Google Spreadsheets
|
||||
@@ -1090,7 +1095,8 @@ type BasicChartSeries struct {
|
||||
// "COMBO" - A <a
|
||||
// href="/chart/interactive/docs/gallery/combochart">combo chart</a>.
|
||||
// "STEPPED_AREA" - A <a
|
||||
// href="/chart/interactive/docs/gallery/steppedareachart">stepped area
|
||||
// href="/chart/interactive/docs/gallery/steppedareachart">stepped
|
||||
// area
|
||||
// chart</a>.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
@@ -1142,7 +1148,8 @@ type BasicChartSpec struct {
|
||||
// "COMBO" - A <a
|
||||
// href="/chart/interactive/docs/gallery/combochart">combo chart</a>.
|
||||
// "STEPPED_AREA" - A <a
|
||||
// href="/chart/interactive/docs/gallery/steppedareachart">stepped area
|
||||
// href="/chart/interactive/docs/gallery/steppedareachart">stepped
|
||||
// area
|
||||
// chart</a>.
|
||||
ChartType string `json:"chartType,omitempty"`
|
||||
|
||||
@@ -2464,7 +2471,8 @@ func (s *BubbleChartSpec) UnmarshalJSON(data []byte) error {
|
||||
|
||||
// CandlestickChartSpec: A <a
|
||||
// href="/chart/interactive/docs/gallery/candlestickchart">candlestick
|
||||
// chart</a>.
|
||||
// ch
|
||||
// art</a>.
|
||||
type CandlestickChartSpec struct {
|
||||
// Data: The Candlestick chart data.
|
||||
// Only one CandlestickData is supported.
|
||||
|
||||
Reference in New Issue
Block a user