Upadte vendored dependencies
This commit is contained in:
parent
315b7f282f
commit
8d37b723ca
380 changed files with 136541 additions and 78532 deletions
1002
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
1002
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
440
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
440
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
|
@ -271,6 +271,11 @@ type CloudFunction struct {
|
|||
// You may omit `paths/*` if you want to use the main directory.
|
||||
SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"`
|
||||
|
||||
// SourceUploadUrl: The Google Cloud Storage signed URL used for source
|
||||
// uploading, generated
|
||||
// by google.cloud.functions.v1beta2.GenerateUploadUrl
|
||||
SourceUploadUrl string `json:"sourceUploadUrl,omitempty"`
|
||||
|
||||
// Status: Output only. Status of the function deployment.
|
||||
//
|
||||
// Possible values:
|
||||
|
@ -426,6 +431,109 @@ func (s *FailurePolicy) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GenerateDownloadUrlRequest: Request of `GenerateDownloadUrl` method.
|
||||
type GenerateDownloadUrlRequest struct {
|
||||
// VersionId: The optional version of function.
|
||||
VersionId uint64 `json:"versionId,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "VersionId") 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. "VersionId") 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 *GenerateDownloadUrlRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GenerateDownloadUrlRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GenerateDownloadUrlResponse: Response of `GenerateDownloadUrl`
|
||||
// method.
|
||||
type GenerateDownloadUrlResponse struct {
|
||||
// DownloadUrl: The generated Google Cloud Storage signed URL that
|
||||
// should be used for
|
||||
// function source code download.
|
||||
DownloadUrl string `json:"downloadUrl,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DownloadUrl") 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. "DownloadUrl") 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 *GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GenerateDownloadUrlResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GenerateUploadUrlRequest: Request of `GenerateUploadUrl` method.
|
||||
type GenerateUploadUrlRequest struct {
|
||||
}
|
||||
|
||||
// GenerateUploadUrlResponse: Response of `GenerateUploadUrl` method.
|
||||
type GenerateUploadUrlResponse struct {
|
||||
// UploadUrl: The generated Google Cloud Storage signed URL that should
|
||||
// be used for a
|
||||
// function source code upload. The uploaded file should be a zip
|
||||
// archive
|
||||
// which contains a function.
|
||||
UploadUrl string `json:"uploadUrl,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "UploadUrl") 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. "UploadUrl") 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 *GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GenerateUploadUrlResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// HTTPSTrigger: Describes HTTPSTrigger, could be used to connect web
|
||||
// hooks to function.
|
||||
type HTTPSTrigger struct {
|
||||
|
@ -688,6 +796,53 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// OperationMetadataV1: Metadata describing an Operation
|
||||
type OperationMetadataV1 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"`
|
||||
|
||||
// VersionId: Version id of the function created or updated by an API
|
||||
// call.
|
||||
// This field is only pupulated for Create and Update operations.
|
||||
VersionId int64 `json:"versionId,omitempty,string"`
|
||||
|
||||
// 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 *OperationMetadataV1) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OperationMetadataV1
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// OperationMetadataV1Beta2: Metadata describing an Operation
|
||||
type OperationMetadataV1Beta2 struct {
|
||||
// Request: The original request that started the operation.
|
||||
|
@ -1888,6 +2043,291 @@ func (c *ProjectsLocationsFunctionsDeleteCall) Do(opts ...googleapi.CallOption)
|
|||
|
||||
}
|
||||
|
||||
// method id "cloudfunctions.projects.locations.functions.generateDownloadUrl":
|
||||
|
||||
type ProjectsLocationsFunctionsGenerateDownloadUrlCall struct {
|
||||
s *Service
|
||||
name string
|
||||
generatedownloadurlrequest *GenerateDownloadUrlRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// GenerateDownloadUrl: Returns a signed URL for downloading deployed
|
||||
// function source code.
|
||||
// The URL is only valid for a limited period and should be used
|
||||
// within
|
||||
// minutes after generation.
|
||||
// For more information about the signed URL usage
|
||||
// see:
|
||||
// https://cloud.google.com/storage/docs/access-control/signed-urls
|
||||
func (r *ProjectsLocationsFunctionsService) GenerateDownloadUrl(name string, generatedownloadurlrequest *GenerateDownloadUrlRequest) *ProjectsLocationsFunctionsGenerateDownloadUrlCall {
|
||||
c := &ProjectsLocationsFunctionsGenerateDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
c.generatedownloadurlrequest = generatedownloadurlrequest
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsGenerateDownloadUrlCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Context(ctx context.Context) *ProjectsLocationsFunctionsGenerateDownloadUrlCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.generatedownloadurlrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:generateDownloadUrl")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "cloudfunctions.projects.locations.functions.generateDownloadUrl" call.
|
||||
// Exactly one of *GenerateDownloadUrlResponse or error will be non-nil.
|
||||
// Any non-2xx status code is an error. Response headers are in either
|
||||
// *GenerateDownloadUrlResponse.ServerResponse.Header or (if a response
|
||||
// was returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GenerateDownloadUrlResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &GenerateDownloadUrlResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns a signed URL for downloading deployed function source code.\nThe URL is only valid for a limited period and should be used within\nminutes after generation.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls",
|
||||
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrl",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudfunctions.projects.locations.functions.generateDownloadUrl",
|
||||
// "parameterOrder": [
|
||||
// "name"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "The name of function for which source code Google Cloud Storage signed\nURL should be generated.",
|
||||
// "location": "path",
|
||||
// "pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1beta2/{+name}:generateDownloadUrl",
|
||||
// "request": {
|
||||
// "$ref": "GenerateDownloadUrlRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "GenerateDownloadUrlResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "cloudfunctions.projects.locations.functions.generateUploadUrl":
|
||||
|
||||
type ProjectsLocationsFunctionsGenerateUploadUrlCall struct {
|
||||
s *Service
|
||||
parent string
|
||||
generateuploadurlrequest *GenerateUploadUrlRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// GenerateUploadUrl: Returns a signed URL for uploading a function
|
||||
// source code.
|
||||
// For more information about the signed URL usage
|
||||
// see:
|
||||
// https://cloud.google.com/storage/docs/access-control/signed-urls
|
||||
//
|
||||
// Once the function source code upload is complete, the used signed
|
||||
// URL should be provided in CreateFunction or UpdateFunction request
|
||||
// as a reference to the function source code.
|
||||
func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
|
||||
c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
c.generateuploadurlrequest = generateuploadurlrequest
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Fields(s ...googleapi.Field) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Context(ctx context.Context) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.generateuploadurlrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/functions:generateUploadUrl")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "cloudfunctions.projects.locations.functions.generateUploadUrl" call.
|
||||
// Exactly one of *GenerateUploadUrlResponse or error will be non-nil.
|
||||
// Any non-2xx status code is an error. Response headers are in either
|
||||
// *GenerateUploadUrlResponse.ServerResponse.Header or (if a response
|
||||
// was returned at all) in error.(*googleapi.Error).Header. Use
|
||||
// googleapi.IsNotModified to check whether the returned error was
|
||||
// because http.StatusNotModified was returned.
|
||||
func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.CallOption) (*GenerateUploadUrlResponse, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &GenerateUploadUrlResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.",
|
||||
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
|
||||
// "parameterOrder": [
|
||||
// "parent"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "parent": {
|
||||
// "description": "The project and location in which the Google Cloud Storage signed URL\nshould be generated, specified in the format `projects/*/locations/*",
|
||||
// "location": "path",
|
||||
// "pattern": "^projects/[^/]+/locations/[^/]+$",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1beta2/{+parent}/functions:generateUploadUrl",
|
||||
// "request": {
|
||||
// "$ref": "GenerateUploadUrlRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "GenerateUploadUrlResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "cloudfunctions.projects.locations.functions.get":
|
||||
|
||||
type ProjectsLocationsFunctionsGetCall struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue