Switch to using the dep tool and update all the dependencies
This commit is contained in:
parent
5135ff73cb
commit
98c2d2c41b
5321 changed files with 4483201 additions and 5922 deletions
151
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
Normal file
151
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
Normal file
|
@ -0,0 +1,151 @@
|
|||
{
|
||||
"discoveryVersion": "v1",
|
||||
"ownerName": "Google",
|
||||
"version_module": "True",
|
||||
"resources": {},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"location": "query",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"OperationMetadataV1Beta2": {
|
||||
"description": "Metadata describing an Operation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target": {
|
||||
"description": "Target of the operation - for example\nprojects/project-1/locations/region-1/functions/function-1",
|
||||
"type": "string"
|
||||
},
|
||||
"request": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "The original request that started the operation.",
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"enumDescriptions": [
|
||||
"Unknown operation type.",
|
||||
"Triggered by CreateFunction call",
|
||||
"Triggered by UpdateFunction call",
|
||||
"Triggered by DeleteFunction call."
|
||||
],
|
||||
"enum": [
|
||||
"OPERATION_UNSPECIFIED",
|
||||
"CREATE_FUNCTION",
|
||||
"UPDATE_FUNCTION",
|
||||
"DELETE_FUNCTION"
|
||||
],
|
||||
"description": "Type of operation.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "OperationMetadataV1Beta2"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"canonicalName": "Cloud Functions",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "API for managing lightweight user-provided functions executed in response to events.",
|
||||
"servicePath": "",
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"basePath": "",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudfunctions",
|
||||
"batchPath": "batch",
|
||||
"revision": "20170509",
|
||||
"documentationLink": "https://cloud.google.com/functions",
|
||||
"id": "cloudfunctions:v1",
|
||||
"title": "Google Cloud Functions API"
|
||||
}
|
109
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
Normal file
109
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
Normal file
|
@ -0,0 +1,109 @@
|
|||
// Package cloudfunctions provides access to the Google Cloud Functions API.
|
||||
//
|
||||
// See https://cloud.google.com/functions
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/cloudfunctions/v1"
|
||||
// ...
|
||||
// cloudfunctionsService, err := cloudfunctions.New(oauthHttpClient)
|
||||
package cloudfunctions // import "google.golang.org/api/cloudfunctions/v1"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"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"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
// below doesn't.
|
||||
var _ = bytes.NewBuffer
|
||||
var _ = strconv.Itoa
|
||||
var _ = fmt.Sprintf
|
||||
var _ = json.NewDecoder
|
||||
var _ = io.Copy
|
||||
var _ = url.Parse
|
||||
var _ = gensupport.MarshalJSON
|
||||
var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "cloudfunctions:v1"
|
||||
const apiName = "cloudfunctions"
|
||||
const apiVersion = "v1"
|
||||
const basePath = "https://cloudfunctions.googleapis.com/"
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
}
|
||||
s := &Service{client: client, BasePath: basePath}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
client *http.Client
|
||||
BasePath string // API endpoint base URL
|
||||
UserAgent string // optional additional User-Agent fragment
|
||||
}
|
||||
|
||||
func (s *Service) userAgent() string {
|
||||
if s.UserAgent == "" {
|
||||
return googleapi.UserAgent
|
||||
}
|
||||
return googleapi.UserAgent + " " + s.UserAgent
|
||||
}
|
||||
|
||||
// OperationMetadataV1Beta2: Metadata describing an Operation
|
||||
type OperationMetadataV1Beta2 struct {
|
||||
// Request: The original request that started the operation.
|
||||
Request googleapi.RawMessage `json:"request,omitempty"`
|
||||
|
||||
// Target: Target of the operation - for
|
||||
// example
|
||||
// projects/project-1/locations/region-1/functions/function-1
|
||||
Target string `json:"target,omitempty"`
|
||||
|
||||
// Type: Type of operation.
|
||||
//
|
||||
// Possible values:
|
||||
// "OPERATION_UNSPECIFIED" - Unknown operation type.
|
||||
// "CREATE_FUNCTION" - Triggered by CreateFunction call
|
||||
// "UPDATE_FUNCTION" - Triggered by UpdateFunction call
|
||||
// "DELETE_FUNCTION" - Triggered by DeleteFunction call.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Request") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Request") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OperationMetadataV1Beta2
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue