vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
+126 -148
View File
@@ -116,8 +116,8 @@ type AllocateInfo struct {
}
func (s *AllocateInfo) MarshalJSON() ([]byte, error) {
type noMethod AllocateInfo
raw := noMethod(*s)
type NoMethod AllocateInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -152,8 +152,8 @@ type AllocateQuotaRequest struct {
}
func (s *AllocateQuotaRequest) MarshalJSON() ([]byte, error) {
type noMethod AllocateQuotaRequest
raw := noMethod(*s)
type NoMethod AllocateQuotaRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -175,27 +175,15 @@ type AllocateQuotaResponse struct {
// Depending on the
// request, one or more of the following metrics will be included:
//
// 1. For rate quota, per quota group or per quota metric incremental
// usage
// will be specified using the following delta metric:
// 1. Per quota group or per quota metric incremental usage will be
// specified
// using the following delta metric :
// "serviceruntime.googleapis.com/api/consumer/quota_used_count"
//
// 2. For allocation quota, per quota metric total usage will be
// specified
// using the following gauge metric:
//
// "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
//
//
// 3. For both rate quota and allocation quota, the quota limit
// reached
// condition will be specified using the following boolean metric:
// 2. The quota limit reached condition will be specified using the
// following
// boolean metric :
// "serviceruntime.googleapis.com/quota/exceeded"
//
// 4. For allocation quota, value for each quota limit associated
// with
// the metrics will be specified using the following gauge metric:
// "serviceruntime.googleapis.com/quota/limit"
QuotaMetrics []*MetricValueSet `json:"quotaMetrics,omitempty"`
// ServiceConfigId: ID of the actual config used to process the request.
@@ -224,8 +212,8 @@ type AllocateQuotaResponse struct {
}
func (s *AllocateQuotaResponse) MarshalJSON() ([]byte, error) {
type noMethod AllocateQuotaResponse
raw := noMethod(*s)
type NoMethod AllocateQuotaResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -246,7 +234,7 @@ type AuditLog struct {
// Metadata: Other service-specific data about the request, response,
// and other
// information associated with the current audited event.
Metadata []googleapi.RawMessage `json:"metadata,omitempty"`
Metadata googleapi.RawMessage `json:"metadata,omitempty"`
// MethodName: The name of the service method or operation.
// For API calls, this should be the name of the API method.
@@ -331,8 +319,8 @@ type AuditLog struct {
}
func (s *AuditLog) MarshalJSON() ([]byte, error) {
type noMethod AuditLog
raw := noMethod(*s)
type NoMethod AuditLog
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -380,8 +368,8 @@ type AuthenticationInfo struct {
}
func (s *AuthenticationInfo) MarshalJSON() ([]byte, error) {
type noMethod AuthenticationInfo
raw := noMethod(*s)
type NoMethod AuthenticationInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -419,8 +407,8 @@ type AuthorizationInfo struct {
}
func (s *AuthorizationInfo) MarshalJSON() ([]byte, error) {
type noMethod AuthorizationInfo
raw := noMethod(*s)
type NoMethod AuthorizationInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -432,8 +420,9 @@ type CheckError struct {
//
// Possible values:
// "ERROR_CODE_UNSPECIFIED" - This is never used in `CheckResponse`.
// "NOT_FOUND" - The consumer's project id was not found.
// Same as google.rpc.Code.NOT_FOUND.
// "NOT_FOUND" - The consumer's project id, network container, or
// resource container was
// not found. Same as google.rpc.Code.NOT_FOUND.
// "PERMISSION_DENIED" - The consumer doesn't have access to the
// specified resource.
// Same as google.rpc.Code.PERMISSION_DENIED.
@@ -501,6 +490,14 @@ type CheckError struct {
// error.
Detail string `json:"detail,omitempty"`
// Subject: Subject to whom this error applies. See the specific code
// enum for more
// details on this field. For example:
// - “project:<project-id or project-number>”
// - “folder:<folder-id>”
// - “organization:<organization-id>”
Subject string `json:"subject,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
@@ -519,8 +516,8 @@ type CheckError struct {
}
func (s *CheckError) MarshalJSON() ([]byte, error) {
type noMethod CheckError
raw := noMethod(*s)
type NoMethod CheckError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -554,8 +551,8 @@ type CheckInfo struct {
}
func (s *CheckInfo) MarshalJSON() ([]byte, error) {
type noMethod CheckInfo
raw := noMethod(*s)
type NoMethod CheckInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -599,8 +596,8 @@ type CheckRequest struct {
}
func (s *CheckRequest) MarshalJSON() ([]byte, error) {
type noMethod CheckRequest
raw := noMethod(*s)
type NoMethod CheckRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -654,8 +651,8 @@ type CheckResponse struct {
}
func (s *CheckResponse) MarshalJSON() ([]byte, error) {
type noMethod CheckResponse
raw := noMethod(*s)
type NoMethod CheckResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -685,8 +682,8 @@ type ConsumerInfo struct {
}
func (s *ConsumerInfo) MarshalJSON() ([]byte, error) {
type noMethod ConsumerInfo
raw := noMethod(*s)
type NoMethod ConsumerInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -770,21 +767,21 @@ type Distribution struct {
}
func (s *Distribution) MarshalJSON() ([]byte, error) {
type noMethod Distribution
raw := noMethod(*s)
type NoMethod Distribution
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *Distribution) UnmarshalJSON(data []byte) error {
type noMethod Distribution
type NoMethod Distribution
var s1 struct {
Maximum gensupport.JSONFloat64 `json:"maximum"`
Mean gensupport.JSONFloat64 `json:"mean"`
Minimum gensupport.JSONFloat64 `json:"minimum"`
SumOfSquaredDeviation gensupport.JSONFloat64 `json:"sumOfSquaredDeviation"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -829,8 +826,8 @@ type EndReconciliationRequest struct {
}
func (s *EndReconciliationRequest) MarshalJSON() ([]byte, error) {
type noMethod EndReconciliationRequest
raw := noMethod(*s)
type NoMethod EndReconciliationRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -902,8 +899,8 @@ type EndReconciliationResponse struct {
}
func (s *EndReconciliationResponse) MarshalJSON() ([]byte, error) {
type noMethod EndReconciliationResponse
raw := noMethod(*s)
type NoMethod EndReconciliationResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -949,8 +946,8 @@ type ExplicitBuckets struct {
}
func (s *ExplicitBuckets) MarshalJSON() ([]byte, error) {
type noMethod ExplicitBuckets
raw := noMethod(*s)
type NoMethod ExplicitBuckets
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -993,19 +990,19 @@ type ExponentialBuckets struct {
}
func (s *ExponentialBuckets) MarshalJSON() ([]byte, error) {
type noMethod ExponentialBuckets
raw := noMethod(*s)
type NoMethod ExponentialBuckets
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *ExponentialBuckets) UnmarshalJSON(data []byte) error {
type noMethod ExponentialBuckets
type NoMethod ExponentialBuckets
var s1 struct {
GrowthFactor gensupport.JSONFloat64 `json:"growthFactor"`
Scale gensupport.JSONFloat64 `json:"scale"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -1052,19 +1049,19 @@ type LinearBuckets struct {
}
func (s *LinearBuckets) MarshalJSON() ([]byte, error) {
type noMethod LinearBuckets
raw := noMethod(*s)
type NoMethod LinearBuckets
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *LinearBuckets) UnmarshalJSON(data []byte) error {
type noMethod LinearBuckets
type NoMethod LinearBuckets
var s1 struct {
Offset gensupport.JSONFloat64 `json:"offset"`
Width gensupport.JSONFloat64 `json:"width"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -1149,8 +1146,8 @@ type LogEntry struct {
}
func (s *LogEntry) MarshalJSON() ([]byte, error) {
type noMethod LogEntry
raw := noMethod(*s)
type NoMethod LogEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1211,18 +1208,18 @@ type MetricValue struct {
}
func (s *MetricValue) MarshalJSON() ([]byte, error) {
type noMethod MetricValue
raw := noMethod(*s)
type NoMethod MetricValue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *MetricValue) UnmarshalJSON(data []byte) error {
type noMethod MetricValue
type NoMethod MetricValue
var s1 struct {
DoubleValue *gensupport.JSONFloat64 `json:"doubleValue"`
*noMethod
*NoMethod
}
s1.noMethod = (*noMethod)(s)
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
@@ -1262,8 +1259,8 @@ type MetricValueSet struct {
}
func (s *MetricValueSet) MarshalJSON() ([]byte, error) {
type noMethod MetricValueSet
raw := noMethod(*s)
type NoMethod MetricValueSet
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1304,8 +1301,8 @@ type Money struct {
}
func (s *Money) MarshalJSON() ([]byte, error) {
type noMethod Money
raw := noMethod(*s)
type NoMethod Money
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1458,8 +1455,8 @@ type Operation struct {
}
func (s *Operation) MarshalJSON() ([]byte, error) {
type noMethod Operation
raw := noMethod(*s)
type NoMethod Operation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1532,8 +1529,8 @@ type QuotaError struct {
}
func (s *QuotaError) MarshalJSON() ([]byte, error) {
type noMethod QuotaError
raw := noMethod(*s)
type NoMethod QuotaError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1603,8 +1600,8 @@ type QuotaInfo struct {
}
func (s *QuotaInfo) MarshalJSON() ([]byte, error) {
type noMethod QuotaInfo
raw := noMethod(*s)
type NoMethod QuotaInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1626,10 +1623,12 @@ type QuotaOperation struct {
// quota operation is
// requested. This name is used for matching quota rules or metric rules
// and
// billing status rules defined in service configuration. This field is
// not
// required if the quota operation is performed on non-API
// resources.
// billing status rules defined in service configuration.
//
// This field should not be set if any of the following is true:
// (1) the quota operation is performed on non-API resources.
// (2) quota_metrics is set because the caller is doing quota
// override.
//
// Example of an RPC method name:
// google.example.library.v1.LibraryService.CreateShelf
@@ -1664,6 +1663,8 @@ type QuotaOperation struct {
// MetricValue
// instances, the entire request is rejected with
// an invalid argument error.
//
// This field is mutually exclusive with method_name.
QuotaMetrics []*MetricValueSet `json:"quotaMetrics,omitempty"`
// QuotaMode: Quota mode for this operation.
@@ -1677,41 +1678,18 @@ type QuotaOperation struct {
// amount is higher than the available quota, allocation error will
// be
// returned and no quota will be allocated.
// For ReleaseQuota request, this mode is supported only for precise
// quota
// limits. In this case, this operation releases quota for the
// amount
// specified in the service configuration or specified using the
// quota
// metrics. If the release can make used quota negative, release
// error
// will be returned and no quota will be released.
// "BEST_EFFORT" - For AllocateQuota request, this mode is supported
// only for imprecise
// quota limits. In this case, the operation allocates quota for the
// amount
// specified in the service configuration or specified using the
// quota
// metrics. If the amount is higher than the available quota, request
// does
// not fail but all available quota will be allocated.
// For ReleaseQuota request, this mode is supported for both precise
// quota
// limits and imprecise quota limits. In this case, this operation
// releases
// quota for the amount specified in the service configuration or
// specified
// using the quota metrics. If the release can make used quota
// negative, request does not fail but only the used quota will
// be
// released. After the ReleaseQuota request completes, the used
// quota
// will be 0, and never goes to negative.
// "BEST_EFFORT" - The operation allocates quota for the amount
// specified in the service
// configuration or specified using the quota metrics. If the amount
// is
// higher than the available quota, request does not fail but all
// available
// quota will be allocated.
// "CHECK_ONLY" - For AllocateQuota request, only checks if there is
// enough quota
// available and does not change the available quota. No lock is placed
// on
// the available quota either. Not supported for ReleaseQuota request.
// the available quota either.
QuotaMode string `json:"quotaMode,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConsumerId") to
@@ -1732,8 +1710,8 @@ type QuotaOperation struct {
}
func (s *QuotaOperation) MarshalJSON() ([]byte, error) {
type noMethod QuotaOperation
raw := noMethod(*s)
type NoMethod QuotaOperation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1780,8 +1758,8 @@ type QuotaProperties struct {
}
func (s *QuotaProperties) MarshalJSON() ([]byte, error) {
type noMethod QuotaProperties
raw := noMethod(*s)
type NoMethod QuotaProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1816,8 +1794,8 @@ type ReleaseQuotaRequest struct {
}
func (s *ReleaseQuotaRequest) MarshalJSON() ([]byte, error) {
type noMethod ReleaseQuotaRequest
raw := noMethod(*s)
type NoMethod ReleaseQuotaRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1878,8 +1856,8 @@ type ReleaseQuotaResponse struct {
}
func (s *ReleaseQuotaResponse) MarshalJSON() ([]byte, error) {
type noMethod ReleaseQuotaResponse
raw := noMethod(*s)
type NoMethod ReleaseQuotaResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1910,8 +1888,8 @@ type ReportError struct {
}
func (s *ReportError) MarshalJSON() ([]byte, error) {
type noMethod ReportError
raw := noMethod(*s)
type NoMethod ReportError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1941,8 +1919,8 @@ type ReportInfo struct {
}
func (s *ReportInfo) MarshalJSON() ([]byte, error) {
type noMethod ReportInfo
raw := noMethod(*s)
type NoMethod ReportInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -1991,8 +1969,8 @@ type ReportRequest struct {
}
func (s *ReportRequest) MarshalJSON() ([]byte, error) {
type noMethod ReportRequest
raw := noMethod(*s)
type NoMethod ReportRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2060,8 +2038,8 @@ type ReportResponse struct {
}
func (s *ReportResponse) MarshalJSON() ([]byte, error) {
type noMethod ReportResponse
raw := noMethod(*s)
type NoMethod ReportResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2130,8 +2108,8 @@ type RequestMetadata struct {
}
func (s *RequestMetadata) MarshalJSON() ([]byte, error) {
type noMethod RequestMetadata
raw := noMethod(*s)
type NoMethod RequestMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2168,8 +2146,8 @@ type ResourceInfo struct {
}
func (s *ResourceInfo) MarshalJSON() ([]byte, error) {
type noMethod ResourceInfo
raw := noMethod(*s)
type NoMethod ResourceInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2207,8 +2185,8 @@ type StartReconciliationRequest struct {
}
func (s *StartReconciliationRequest) MarshalJSON() ([]byte, error) {
type noMethod StartReconciliationRequest
raw := noMethod(*s)
type NoMethod StartReconciliationRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2266,8 +2244,8 @@ type StartReconciliationResponse struct {
}
func (s *StartReconciliationResponse) MarshalJSON() ([]byte, error) {
type noMethod StartReconciliationResponse
raw := noMethod(*s)
type NoMethod StartReconciliationResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2385,8 +2363,8 @@ type Status struct {
}
func (s *Status) MarshalJSON() ([]byte, error) {
type noMethod Status
raw := noMethod(*s)
type NoMethod Status
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
@@ -2505,7 +2483,7 @@ func (c *ServicesAllocateQuotaCall) Do(opts ...googleapi.CallOption) (*AllocateQ
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2657,7 +2635,7 @@ func (c *ServicesCheckCall) Do(opts ...googleapi.CallOption) (*CheckResponse, er
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2800,7 +2778,7 @@ func (c *ServicesEndReconciliationCall) Do(opts ...googleapi.CallOption) (*EndRe
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -2950,7 +2928,7 @@ func (c *ServicesReleaseQuotaCall) Do(opts ...googleapi.CallOption) (*ReleaseQuo
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3104,7 +3082,7 @@ func (c *ServicesReportCall) Do(opts ...googleapi.CallOption) (*ReportResponse,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
@@ -3280,7 +3258,7 @@ func (c *ServicesStartReconciliationCall) Do(opts ...googleapi.CallOption) (*Sta
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil