vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood 2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537057 additions and 189681 deletions

File diff suppressed because it is too large Load diff

View file

@ -221,6 +221,9 @@ type CloudFunction struct {
// via URL.
HttpsTrigger *HTTPSTrigger `json:"httpsTrigger,omitempty"`
// Labels: Labels associated with this Cloud Function.
Labels map[string]string `json:"labels,omitempty"`
// LatestOperation: Output only. Name of the most recent operation
// modifying the function. If
// the function status is `DEPLOYING` or `DELETING`, then it points to
@ -245,6 +248,29 @@ type CloudFunction struct {
// defined.
SourceRepository *SourceRepository `json:"sourceRepository,omitempty"`
// SourceRepositoryUrl: The URL pointing to the hosted repository where
// the function is defined.
// There are supported Cloud Source Repository URLs in the
// following
// formats:
//
// To refer to a specific
// commit:
// `https://source.developers.google.com/projects/*/repos/*/revis
// ions/*/paths/*`
// To refer to a moveable alias
// (branch):
// `https://source.developers.google.com/projects/*/repos/*/mov
// eable-aliases/*/paths/*`
// In particular, to refer to HEAD use `master` moveable alias.
// To refer to a specific fixed alias
// (tag):
// `https://source.developers.google.com/projects/*/repos/*/fixed-
// aliases/*/paths/*`
//
// You may omit `paths/*` if you want to use the main directory.
SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"`
// Status: Output only. Status of the function deployment.
//
// Possible values:
@ -268,6 +294,12 @@ type CloudFunction struct {
// Function.
UpdateTime string `json:"updateTime,omitempty"`
// VersionId: Output only.
// The version identifier of the Cloud Function. Each deployment
// attempt
// results in a new version of a function being created.
VersionId int64 `json:"versionId,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
@ -313,9 +345,12 @@ type EventTrigger struct {
// `providers/cloud.storage/eventTypes/object.change`
//
// Handle a write to the Firebase Realtime Database
// `providers/firebase.database/eventTypes/data.write`
// `providers/google.firebase.database/eventTypes/ref.write`
EventType string `json:"eventType,omitempty"`
// FailurePolicy: Specifies policy for failed executions.
FailurePolicy *FailurePolicy `json:"failurePolicy,omitempty"`
// Resource: Which instance of the source's service should send events.
// E.g. for Pub/Sub
// this would be a Pub/Sub topic at `projects/*/topics/*`. For Google
@ -327,6 +362,15 @@ type EventTrigger struct {
// project (`projects/*`)
Resource string `json:"resource,omitempty"`
// Service: The hostname of the service that should be observed.
//
// If no string is provided, the default service implementing the API
// will
// be used. For example, `storage.googleapis.com` is the default for
// all
// event types in the 'google.storage` namespace.
Service string `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@ -350,6 +394,38 @@ func (s *EventTrigger) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FailurePolicy: Describes the policy in case of function's execution
// failure.
// If empty, then defaults to ignoring failures (i.e. not retrying
// them).
type FailurePolicy struct {
// Retry: If specified, then the function will be retried in case of a
// failure.
Retry *Retry `json:"retry,omitempty"`
// ForceSendFields is a list of field names (e.g. "Retry") 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. "Retry") 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 *FailurePolicy) MarshalJSON() ([]byte, error) {
type noMethod FailurePolicy
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 {
@ -543,8 +619,8 @@ func (s *Location) MarshalJSON() ([]byte, error) {
type Operation struct {
// Done: If the value is `false`, it means the operation is still in
// progress.
// If true, the operation is completed, and either `error` or `response`
// is
// If `true`, the operation is completed, and either `error` or
// `response` is
// available.
Done bool `json:"done,omitempty"`
@ -631,6 +707,11 @@ type OperationMetadataV1Beta2 struct {
// "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,
@ -654,6 +735,16 @@ func (s *OperationMetadataV1Beta2) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Retry: Describes the retry policy in case of function's execution
// failure.
// A function execution will be retried on any failure.
// A failed execution will be retried up to 7 days with an exponential
// backoff
// (capped at 10 seconds).
// Retried execution is charged as any other execution.
type Retry struct {
}
// SourceRepository: Describes the location of the function source in a
// remote repository.
type SourceRepository struct {
@ -805,9 +896,9 @@ type Status struct {
// google.rpc.Code.
Code int64 `json:"code,omitempty"`
// Details: A list of messages that carry the error details. There will
// be a
// common set of message types for APIs to use.
// Details: A list of messages that carry the error details. There is a
// common set of
// message types for APIs to use.
Details []googleapi.RawMessage `json:"details,omitempty"`
// Message: A developer-facing error message, which should be in