vendor: update all dependencies to latest versions
This commit is contained in:
+161
-83
@@ -114,20 +114,35 @@ type ServicesService struct {
|
||||
s *APIService
|
||||
}
|
||||
|
||||
// Api: Api is a light-weight descriptor for a protocol buffer service.
|
||||
// Api: Api is a light-weight descriptor for an API
|
||||
// Interface.
|
||||
//
|
||||
// Interfaces are also described as "protocol buffer services" in some
|
||||
// contexts,
|
||||
// such as by the "service" keyword in a .proto file, but they are
|
||||
// different
|
||||
// from API Services, which represent a concrete implementation of an
|
||||
// interface
|
||||
// as opposed to simply a description of methods and bindings. They are
|
||||
// also
|
||||
// sometimes simply referred to as "APIs" in other contexts, such as the
|
||||
// name of
|
||||
// this message itself. See
|
||||
// https://cloud.google.com/apis/design/glossary for
|
||||
// detailed terminology.
|
||||
type Api struct {
|
||||
// Methods: The methods of this api, in unspecified order.
|
||||
// Methods: The methods of this interface, in unspecified order.
|
||||
Methods []*Method `json:"methods,omitempty"`
|
||||
|
||||
// Mixins: Included APIs. See Mixin.
|
||||
// Mixins: Included interfaces. See Mixin.
|
||||
Mixins []*Mixin `json:"mixins,omitempty"`
|
||||
|
||||
// Name: The fully qualified name of this api, including package
|
||||
// Name: The fully qualified name of this interface, including package
|
||||
// name
|
||||
// followed by the api's simple name.
|
||||
// followed by the interface's simple name.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Options: Any metadata attached to the API.
|
||||
// Options: Any metadata attached to the interface.
|
||||
Options []*Option `json:"options,omitempty"`
|
||||
|
||||
// SourceContext: Source context for the protocol buffer service
|
||||
@@ -142,16 +157,17 @@ type Api struct {
|
||||
// "SYNTAX_PROTO3" - Syntax `proto3`.
|
||||
Syntax string `json:"syntax,omitempty"`
|
||||
|
||||
// Version: A version string for this api. If specified, must have the
|
||||
// form
|
||||
// Version: A version string for this interface. If specified, must have
|
||||
// the form
|
||||
// `major-version.minor-version`, as in `1.10`. If the minor version
|
||||
// is omitted, it defaults to zero. If the entire version field
|
||||
// is
|
||||
// empty, the major version is derived from the package name,
|
||||
// as
|
||||
// outlined below. If the field is not empty, the version in the
|
||||
// package name will be verified to be consistent with what is
|
||||
// provided here.
|
||||
// omitted, it defaults to zero. If the entire version field is empty,
|
||||
// the
|
||||
// major version is derived from the package name, as outlined below. If
|
||||
// the
|
||||
// field is not empty, the version in the package name will be verified
|
||||
// to be
|
||||
// consistent with what is provided here.
|
||||
//
|
||||
// The versioning schema uses [semantic
|
||||
// versioning](http://semver.org) where the major version
|
||||
@@ -163,11 +179,13 @@ type Api struct {
|
||||
// carefully
|
||||
// chosen based on the product plan.
|
||||
//
|
||||
// The major version is also reflected in the package name of the
|
||||
// API, which must end in `v<major-version>`, as in
|
||||
// The major version is also reflected in the package name of
|
||||
// the
|
||||
// interface, which must end in `v<major-version>`, as
|
||||
// in
|
||||
// `google.feature.v1`. For major versions 0 and 1, the suffix can
|
||||
// be omitted. Zero major versions must only be used for
|
||||
// experimental, none-GA apis.
|
||||
// experimental, non-GA interfaces.
|
||||
//
|
||||
Version string `json:"version,omitempty"`
|
||||
|
||||
@@ -222,6 +240,11 @@ type AuthProvider struct {
|
||||
// bookstore_web.apps.googleusercontent.com
|
||||
Audiences string `json:"audiences,omitempty"`
|
||||
|
||||
// AuthorizationUrl: Redirect URL if JWT token is required but no
|
||||
// present or is expired.
|
||||
// Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
||||
AuthorizationUrl string `json:"authorizationUrl,omitempty"`
|
||||
|
||||
// Id: The unique identifier of the auth provider. It will be referred
|
||||
// to by
|
||||
// `AuthRequirement.provider_id`.
|
||||
@@ -537,8 +560,9 @@ type BackendRule struct {
|
||||
Address string `json:"address,omitempty"`
|
||||
|
||||
// Deadline: The number of seconds to wait for a response from a
|
||||
// request. The
|
||||
// default depends on the deployment context.
|
||||
// request. The default
|
||||
// deadline for gRPC is infinite (no deadline) and HTTP requests is 5
|
||||
// seconds.
|
||||
Deadline float64 `json:"deadline,omitempty"`
|
||||
|
||||
// MinDeadline: Minimum deadline in seconds needed for this method.
|
||||
@@ -590,6 +614,100 @@ func (s *BackendRule) UnmarshalJSON(data []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Billing: Billing related configuration of the service.
|
||||
//
|
||||
// The following example shows how to configure monitored resources and
|
||||
// metrics
|
||||
// for billing:
|
||||
// monitored_resources:
|
||||
// - type: library.googleapis.com/branch
|
||||
// labels:
|
||||
// - key: /city
|
||||
// description: The city where the library branch is located
|
||||
// in.
|
||||
// - key: /name
|
||||
// description: The name of the branch.
|
||||
// metrics:
|
||||
// - name: library.googleapis.com/book/borrowed_count
|
||||
// metric_kind: DELTA
|
||||
// value_type: INT64
|
||||
// billing:
|
||||
// consumer_destinations:
|
||||
// - monitored_resource: library.googleapis.com/branch
|
||||
// metrics:
|
||||
// - library.googleapis.com/book/borrowed_count
|
||||
type Billing struct {
|
||||
// ConsumerDestinations: Billing configurations for sending metrics to
|
||||
// the consumer project.
|
||||
// There can be multiple consumer destinations per service, each one
|
||||
// must have
|
||||
// a different monitored resource type. A metric can be used in at
|
||||
// most
|
||||
// one consumer destination.
|
||||
ConsumerDestinations []*BillingDestination `json:"consumerDestinations,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "ConsumerDestinations") 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. "ConsumerDestinations") 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 *Billing) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Billing
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BillingDestination: Configuration of a specific billing destination
|
||||
// (Currently only support
|
||||
// bill against consumer project).
|
||||
type BillingDestination struct {
|
||||
// Metrics: Names of the metrics to report to this billing
|
||||
// destination.
|
||||
// Each name must be defined in Service.metrics section.
|
||||
Metrics []string `json:"metrics,omitempty"`
|
||||
|
||||
// MonitoredResource: The monitored resource type. The type must be
|
||||
// defined in
|
||||
// Service.monitored_resources section.
|
||||
MonitoredResource string `json:"monitoredResource,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Metrics") 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. "Metrics") 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 *BillingDestination) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BillingDestination
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Context: `Context` defines which contexts an API
|
||||
// requests.
|
||||
//
|
||||
@@ -1716,49 +1834,6 @@ type HttpRule struct {
|
||||
// at the top-level of response message type.
|
||||
ResponseBody string `json:"responseBody,omitempty"`
|
||||
|
||||
// RestCollection: Optional. The REST collection name is by default
|
||||
// derived from the URL
|
||||
// pattern. If specified, this field overrides the default collection
|
||||
// name.
|
||||
// Example:
|
||||
//
|
||||
// rpc AddressesAggregatedList(AddressesAggregatedListRequest)
|
||||
// returns (AddressesAggregatedListResponse) {
|
||||
// option (google.api.http) = {
|
||||
// get: "/v1/projects/{project_id}/aggregated/addresses"
|
||||
// rest_collection: "projects.addresses"
|
||||
// };
|
||||
// }
|
||||
//
|
||||
// This method has the automatically derived collection
|
||||
// name
|
||||
// "projects.aggregated". Because, semantically, this rpc is actually
|
||||
// an
|
||||
// operation on the "projects.addresses" collection, the
|
||||
// `rest_collection`
|
||||
// field is configured to override the derived collection name.
|
||||
RestCollection string `json:"restCollection,omitempty"`
|
||||
|
||||
// RestMethodName: Optional. The rest method name is by default derived
|
||||
// from the URL
|
||||
// pattern. If specified, this field overrides the default method
|
||||
// name.
|
||||
// Example:
|
||||
//
|
||||
// rpc CreateResource(CreateResourceRequest)
|
||||
// returns (CreateResourceResponse) {
|
||||
// option (google.api.http) = {
|
||||
// post: "/v1/resources",
|
||||
// body: "resource",
|
||||
// rest_method_name: "insert"
|
||||
// };
|
||||
// }
|
||||
//
|
||||
// This method has the automatically derived rest method name "create",
|
||||
// but
|
||||
// for backwards compatability with apiary, it is specified as insert.
|
||||
RestMethodName string `json:"restMethodName,omitempty"`
|
||||
|
||||
// Selector: Selects methods to which this rule applies.
|
||||
//
|
||||
// Refer to selector for syntax details.
|
||||
@@ -2166,7 +2241,7 @@ func (s *MediaUpload) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Method: Method represents a method of an api.
|
||||
// Method: Method represents a method of an API interface.
|
||||
type Method struct {
|
||||
// Name: The simple name of this method.
|
||||
Name string `json:"name,omitempty"`
|
||||
@@ -2440,11 +2515,11 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Mixin: Declares an API to be included in this API. The including API
|
||||
// must
|
||||
// redeclare all the methods from the included API, but
|
||||
// documentation
|
||||
// and options are inherited as follows:
|
||||
// Mixin: Declares an API Interface to be included in this interface.
|
||||
// The including
|
||||
// interface must redeclare all the methods from the included interface,
|
||||
// but
|
||||
// documentation and options are inherited as follows:
|
||||
//
|
||||
// - If after comment and whitespace stripping, the documentation
|
||||
// string of the redeclared method is empty, it will be inherited
|
||||
@@ -2456,8 +2531,8 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) {
|
||||
//
|
||||
// - If an http annotation is inherited, the path pattern will be
|
||||
// modified as follows. Any version prefix will be replaced by the
|
||||
// version of the including API plus the root path if
|
||||
// specified.
|
||||
// version of the including interface plus the root path if
|
||||
// specified.
|
||||
//
|
||||
// Example of a simple mixin:
|
||||
//
|
||||
@@ -2526,7 +2601,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) {
|
||||
// ...
|
||||
// }
|
||||
type Mixin struct {
|
||||
// Name: The fully qualified name of the API which is included.
|
||||
// Name: The fully qualified name of the interface which is included.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Root: If non-empty specifies a path under which inherited HTTP
|
||||
@@ -2829,8 +2904,8 @@ func (s *OAuthRequirements) 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"`
|
||||
|
||||
@@ -3415,13 +3490,16 @@ type Service struct {
|
||||
// Backend: API backend configuration.
|
||||
Backend *Backend `json:"backend,omitempty"`
|
||||
|
||||
// ConfigVersion: The version of the service configuration. The config
|
||||
// version may
|
||||
// influence interpretation of the configuration, for example,
|
||||
// to
|
||||
// determine defaults. This is documented together with
|
||||
// applicable
|
||||
// options. The current default for the config version itself is `3`.
|
||||
// Billing: Billing configuration.
|
||||
Billing *Billing `json:"billing,omitempty"`
|
||||
|
||||
// ConfigVersion: The semantic version of the service configuration. The
|
||||
// config version
|
||||
// affects the interpretation of the service configuration. For
|
||||
// example,
|
||||
// certain features are enabled by default for certain config
|
||||
// versions.
|
||||
// The latest config version is `3`.
|
||||
ConfigVersion int64 `json:"configVersion,omitempty"`
|
||||
|
||||
// Context: Context configuration.
|
||||
@@ -3703,9 +3781,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
|
||||
|
||||
Reference in New Issue
Block a user