vendor: update all dependencies

* Update all dependencies
  * Remove all `[[constraint]]` from Gopkg.toml
  * Add in the minimum number of `[[override]]` to build
  * Remove go get of github.com/inconshreveable/mousetrap as it is vendored
  * Update docs with new policy on constraints
This commit is contained in:
Nick Craig-Wood
2018-05-05 15:52:24 +01:00
parent 21383877df
commit 6427029c4e
4902 changed files with 1443412 additions and 227278 deletions
+262 -138
View File
@@ -416,18 +416,8 @@ func (s *Authentication) MarshalJSON() ([]byte, error) {
// will be
// ignored.
type AuthenticationRule struct {
// AllowWithoutCredential: Whether to allow requests without a
// credential. The credential can be
// an OAuth token, Google cookies (first-party auth) or
// EndUserCreds.
//
// For requests without credentials, if the service control environment
// is
// specified, each incoming request **must** be associated with a
// service
// consumer. This can be done by passing an API key that belongs to a
// consumer
// project.
// AllowWithoutCredential: If true, the service accepts API keys without
// any other credential.
AllowWithoutCredential bool `json:"allowWithoutCredential,omitempty"`
// CustomAuth: Configuration for custom authentication.
@@ -711,6 +701,43 @@ func (s *BatchEnableServicesRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BatchEnableServicesResponse: Response message for the
// `BatchEnableServices` method.
// This response message is assigned to the `response` field of the
// returned
// Operation when that operation is done.
type BatchEnableServicesResponse struct {
// Failures: If allow_partial_success is true, and one or more services
// could not be
// enabled, this field contains the details about each failure.
Failures []*EnableFailure `json:"failures,omitempty"`
// Services: The new state of the services after enabling.
Services []*GoogleApiServiceusageV1Service `json:"services,omitempty"`
// ForceSendFields is a list of field names (e.g. "Failures") 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. "Failures") 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 *BatchEnableServicesResponse) MarshalJSON() ([]byte, error) {
type NoMethod BatchEnableServicesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Billing: Billing related configuration of the service.
//
// The following example shows how to configure monitored resources and
@@ -1121,6 +1148,38 @@ func (s *CustomHttpPattern) MarshalJSON() ([]byte, error) {
type DisableServiceRequest struct {
}
// DisableServiceResponse: Response message for the `DisableService`
// method.
// This response message is assigned to the `response` field of the
// returned
// Operation when that operation is done.
type DisableServiceResponse struct {
// Service: The new state of the service after disabling.
Service *GoogleApiServiceusageV1Service `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 *DisableServiceResponse) MarshalJSON() ([]byte, error) {
type NoMethod DisableServiceResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Documentation: `Documentation` provides the information for
// describing a service.
//
@@ -1171,11 +1230,7 @@ type DisableServiceRequest struct {
// Text can be excluded from doc using the following
// notation:
// <pre><code>&#40;-- internal comment --&#41;</code></pre>
// Comments can be made conditional using a visibility label. The
// below
// text will be only rendered if the `BETA` label is
// available:
// <pre><code>&#40;--BETA: comment for BETA users --&#41;</code></pre>
//
// A few directives are available in documentation. Note that
// directives must appear on a single line to be properly
// identified. The `include` directive includes a markdown file from
@@ -1300,10 +1355,73 @@ func (s *DocumentationRule) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EnableFailure struct {
// ErrorMessage: An error message describing why the service could not
// be enabled.
ErrorMessage string `json:"errorMessage,omitempty"`
// ServiceId: The service id of a service that could not be enabled.
ServiceId string `json:"serviceId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ErrorMessage") 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. "ErrorMessage") 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 *EnableFailure) MarshalJSON() ([]byte, error) {
type NoMethod EnableFailure
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EnableServiceRequest: Request message for the `EnableService` method.
type EnableServiceRequest struct {
}
// EnableServiceResponse: Response message for the `EnableService`
// method.
// This response message is assigned to the `response` field of the
// returned
// Operation when that operation is done.
type EnableServiceResponse struct {
// Service: The new state of the service after enabling.
Service *GoogleApiServiceusageV1Service `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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 *EnableServiceResponse) MarshalJSON() ([]byte, error) {
type NoMethod EnableServiceResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Endpoint: `Endpoint` describes a network endpoint that serves a set
// of APIs.
// A service may expose any number of endpoints, and all endpoints share
@@ -1749,9 +1867,6 @@ type GoogleApiService struct {
// Usage: Configuration controlling usage of this service.
Usage *Usage `json:"usage,omitempty"`
// Visibility: API visibility configuration.
Visibility *Visibility `json:"visibility,omitempty"`
// ForceSendFields is a list of field names (e.g. "Apis") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -1775,6 +1890,128 @@ func (s *GoogleApiService) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleApiServiceusageV1Service: A service that is available for use
// by the consumer.
type GoogleApiServiceusageV1Service struct {
// Config: The service configuration of the available service.
// Some fields may be filtered out of the configuration in responses
// to
// the `ListServices` method. These fields are present only in responses
// to
// the `GetService` method.
Config *GoogleApiServiceusageV1ServiceConfig `json:"config,omitempty"`
// Name: The resource name of the consumer and service.
//
// A valid name would be:
// - projects/123/services/serviceusage.googleapis.com
Name string `json:"name,omitempty"`
// Parent: The resource name of the consumer.
//
// A valid name would be:
// - projects/123
Parent string `json:"parent,omitempty"`
// State: Whether or not the service has been enabled for use by the
// consumer.
//
// Possible values:
// "STATE_UNSPECIFIED" - The default value, which indicates that the
// enabled state of the service
// is unspecified or not meaningful. Currently, all consumers other
// than
// projects (such as folders and organizations) are always in this
// state.
// "DISABLED" - The service cannot be used by this consumer. It has
// either been explicitly
// disabled, or has never been enabled.
// "ENABLED" - The service has been explicitly enabled for use by this
// consumer.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "Config") 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. "Config") 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 *GoogleApiServiceusageV1Service) MarshalJSON() ([]byte, error) {
type NoMethod GoogleApiServiceusageV1Service
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleApiServiceusageV1ServiceConfig: The configuration of the
// service.
type GoogleApiServiceusageV1ServiceConfig struct {
// Apis: A list of API interfaces exported by this service. Contains
// only the names,
// versions, and method names of the interfaces.
Apis []*Api `json:"apis,omitempty"`
// Authentication: Auth configuration. Contains only the OAuth rules.
Authentication *Authentication `json:"authentication,omitempty"`
// Documentation: Additional API documentation. Contains only the
// summary and the
// documentation URL.
Documentation *Documentation `json:"documentation,omitempty"`
// Endpoints: Configuration for network endpoints. Contains only the
// names and aliases
// of the endpoints.
Endpoints []*Endpoint `json:"endpoints,omitempty"`
// Name: The DNS address at which this service is available.
//
// An example DNS address would be:
// `calendar.googleapis.com`.
Name string `json:"name,omitempty"`
// Quota: Quota configuration.
Quota *Quota `json:"quota,omitempty"`
// Title: The product title for this service.
Title string `json:"title,omitempty"`
// Usage: Configuration controlling usage of this service.
Usage *Usage `json:"usage,omitempty"`
// ForceSendFields is a list of field names (e.g. "Apis") 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. "Apis") 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 *GoogleApiServiceusageV1ServiceConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleApiServiceusageV1ServiceConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Http: Defines the HTTP configuration for an API service. It contains
// a list of
// HttpRule, each specifying the mapping of an RPC method
@@ -4423,119 +4660,6 @@ func (s *UsageRule) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Visibility: `Visibility` defines restrictions for the visibility of
// service
// elements. Restrictions are specified using visibility labels
// (e.g., TRUSTED_TESTER) that are elsewhere linked to users and
// projects.
//
// Users and projects can have access to more than one visibility label.
// The
// effective visibility for multiple labels is the union of each
// label's
// elements, plus any unrestricted elements.
//
// If an element and its parents have no restrictions, visibility
// is
// unconditionally granted.
//
// Example:
//
// visibility:
// rules:
// - selector: google.calendar.Calendar.EnhancedSearch
// restriction: TRUSTED_TESTER
// - selector: google.calendar.Calendar.Delegate
// restriction: GOOGLE_INTERNAL
//
// Here, all methods are publicly visible except for the restricted
// methods
// EnhancedSearch and Delegate.
type Visibility struct {
// Rules: A list of visibility rules that apply to individual API
// elements.
//
// **NOTE:** All service configuration rules follow "last one wins"
// order.
Rules []*VisibilityRule `json:"rules,omitempty"`
// ForceSendFields is a list of field names (e.g. "Rules") 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. "Rules") 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 *Visibility) MarshalJSON() ([]byte, error) {
type NoMethod Visibility
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VisibilityRule: A visibility rule provides visibility configuration
// for an individual API
// element.
type VisibilityRule struct {
// Restriction: A comma-separated list of visibility labels that apply
// to the `selector`.
// Any of the listed labels can be used to grant the visibility.
//
// If a rule has multiple labels, removing one of the labels but not all
// of
// them can break clients.
//
// Example:
//
// visibility:
// rules:
// - selector: google.calendar.Calendar.EnhancedSearch
// restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
//
// Removing GOOGLE_INTERNAL from this restriction will break clients
// that
// rely on this method and only had access to it through
// GOOGLE_INTERNAL.
Restriction string `json:"restriction,omitempty"`
// Selector: Selects methods, messages, fields, enums, etc. to which
// this rule applies.
//
// Refer to selector for syntax details.
Selector string `json:"selector,omitempty"`
// ForceSendFields is a list of field names (e.g. "Restriction") 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. "Restriction") 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 *VisibilityRule) MarshalJSON() ([]byte, error) {
type NoMethod VisibilityRule
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "serviceusage.operations.get":
type OperationsGetCall struct {
@@ -5011,7 +5135,7 @@ func (c *ServicesBatchEnableCall) Do(opts ...googleapi.CallOption) (*Operation,
// ],
// "parameters": {
// "parent": {
// "description": "Parent to enable services on.\n\nAn example name would be:\nprojects/123\n\nThe `BatchEnableServices` method currently only supports projects.",
// "description": "Parent to enable services on.\n\nAn example name would be:\n`projects/123`\nwhere `123` is the project number (not project ID).\n\nThe `BatchEnableServices` method currently only supports projects.",
// "location": "path",
// "pattern": "^[^/]+/[^/]+$",
// "required": true,
@@ -5159,7 +5283,7 @@ func (c *ServicesDisableCall) Do(opts ...googleapi.CallOption) (*Operation, erro
// ],
// "parameters": {
// "name": {
// "description": "Name of the consumer and service to disable the service on.\n\nThe enable and disable methods currently only support projects.\n\nAn example name would be:\nprojects/123/services/serviceusage.googleapis.com",
// "description": "Name of the consumer and service to disable the service on.\n\nThe enable and disable methods currently only support projects.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com`\nwhere `123` is the project number (not project ID).",
// "location": "path",
// "pattern": "^[^/]+/[^/]+/services/[^/]+$",
// "required": true,
@@ -5298,7 +5422,7 @@ func (c *ServicesEnableCall) Do(opts ...googleapi.CallOption) (*Operation, error
// ],
// "parameters": {
// "name": {
// "description": "Name of the consumer and service to enable the service on.\n\nThe `EnableService` and `DisableService` methods currently only support\nprojects.\n\nEnabling a service requires that the service is public or is shared with\nthe user enabling the service.\n\nAn example name would be:\nprojects/123/services/serviceusage.googleapis.com",
// "description": "Name of the consumer and service to enable the service on.\n\nThe `EnableService` and `DisableService` methods currently only support\nprojects.\n\nEnabling a service requires that the service is public or is shared with\nthe user enabling the service.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com`\nwhere `123` is the project number (not project ID).",
// "location": "path",
// "pattern": "^[^/]+/[^/]+/services/[^/]+$",
// "required": true,
@@ -5442,7 +5566,7 @@ func (c *ServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
// ],
// "parameters": {
// "name": {
// "description": "Name of the consumer and service to get the `ConsumerState` for.\n\nAn example name would be:\nprojects/123/services/serviceusage.googleapis.com",
// "description": "Name of the consumer and service to get the `ConsumerState` for.\n\nAn example name would be:\n`projects/123/services/serviceusage.googleapis.com`\nwhere `123` is the project number (not project ID).",
// "location": "path",
// "pattern": "^[^/]+/[^/]+/services/[^/]+$",
// "required": true,
@@ -5634,7 +5758,7 @@ func (c *ServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesRespon
// "type": "string"
// },
// "parent": {
// "description": "Parent to search for services on.\n\nAn example name would be:\nprojects/123",
// "description": "Parent to search for services on.\n\nAn example name would be:\n`projects/123`\nwhere `123` is the project number (not project ID).",
// "location": "path",
// "pattern": "^[^/]+/[^/]+$",
// "required": true,