vendor: update all dependencies to latest versions
This commit is contained in:
+157
-194
@@ -207,8 +207,8 @@ type Api struct {
|
||||
}
|
||||
|
||||
func (s *Api) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Api
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Api
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -297,8 +297,8 @@ type AuthProvider struct {
|
||||
}
|
||||
|
||||
func (s *AuthProvider) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuthProvider
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuthProvider
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -359,8 +359,8 @@ type AuthRequirement struct {
|
||||
}
|
||||
|
||||
func (s *AuthRequirement) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuthRequirement
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuthRequirement
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -409,8 +409,8 @@ type Authentication struct {
|
||||
}
|
||||
|
||||
func (s *Authentication) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Authentication
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Authentication
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -476,8 +476,8 @@ type AuthenticationRule struct {
|
||||
}
|
||||
|
||||
func (s *AuthenticationRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuthenticationRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuthenticationRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -516,8 +516,8 @@ type AuthorizationConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuthorizationConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuthorizationConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuthorizationConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -548,8 +548,8 @@ type Backend struct {
|
||||
}
|
||||
|
||||
func (s *Backend) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Backend
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Backend
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -593,19 +593,19 @@ type BackendRule struct {
|
||||
}
|
||||
|
||||
func (s *BackendRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BackendRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod BackendRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *BackendRule) UnmarshalJSON(data []byte) error {
|
||||
type noMethod BackendRule
|
||||
type NoMethod BackendRule
|
||||
var s1 struct {
|
||||
Deadline gensupport.JSONFloat64 `json:"deadline"`
|
||||
MinDeadline gensupport.JSONFloat64 `json:"minDeadline"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -619,6 +619,7 @@ func (s *BackendRule) UnmarshalJSON(data []byte) error {
|
||||
// The following example shows how to configure monitored resources and
|
||||
// metrics
|
||||
// for billing:
|
||||
//
|
||||
// monitored_resources:
|
||||
// - type: library.googleapis.com/branch
|
||||
// labels:
|
||||
@@ -666,8 +667,8 @@ type Billing struct {
|
||||
}
|
||||
|
||||
func (s *Billing) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Billing
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Billing
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -703,8 +704,8 @@ type BillingDestination struct {
|
||||
}
|
||||
|
||||
func (s *BillingDestination) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BillingDestination
|
||||
raw := noMethod(*s)
|
||||
type NoMethod BillingDestination
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -754,8 +755,8 @@ type Context struct {
|
||||
}
|
||||
|
||||
func (s *Context) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Context
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Context
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -792,8 +793,8 @@ type ContextRule struct {
|
||||
}
|
||||
|
||||
func (s *ContextRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ContextRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ContextRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -826,8 +827,8 @@ type Control struct {
|
||||
}
|
||||
|
||||
func (s *Control) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Control
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Control
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -859,8 +860,8 @@ type CustomAuthRequirements struct {
|
||||
}
|
||||
|
||||
func (s *CustomAuthRequirements) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomAuthRequirements
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomAuthRequirements
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -906,8 +907,8 @@ type CustomError struct {
|
||||
}
|
||||
|
||||
func (s *CustomError) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomError
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomError
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -942,8 +943,8 @@ type CustomErrorRule struct {
|
||||
}
|
||||
|
||||
func (s *CustomErrorRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomErrorRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomErrorRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -974,8 +975,8 @@ type CustomHttpPattern struct {
|
||||
}
|
||||
|
||||
func (s *CustomHttpPattern) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CustomHttpPattern
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CustomHttpPattern
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1108,8 +1109,8 @@ type Documentation struct {
|
||||
}
|
||||
|
||||
func (s *Documentation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Documentation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Documentation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1157,8 +1158,8 @@ type DocumentationRule struct {
|
||||
}
|
||||
|
||||
func (s *DocumentationRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod DocumentationRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod DocumentationRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1191,8 +1192,8 @@ type Endpoint struct {
|
||||
// Aliases: DEPRECATED: This field is no longer supported. Instead of
|
||||
// using aliases,
|
||||
// please specify multiple google.api.Endpoint for each of the
|
||||
// intented
|
||||
// alias.
|
||||
// intended
|
||||
// aliases.
|
||||
//
|
||||
// Additional names that this endpoint will be hosted on.
|
||||
Aliases []string `json:"aliases,omitempty"`
|
||||
@@ -1210,13 +1211,6 @@ type Endpoint struct {
|
||||
// allowed to proceed.
|
||||
AllowCors bool `json:"allowCors,omitempty"`
|
||||
|
||||
// Apis: The list of APIs served by this endpoint.
|
||||
//
|
||||
// If no APIs are specified this translates to "all APIs" exported by
|
||||
// the
|
||||
// service, as defined in the top-level service configuration.
|
||||
Apis []string `json:"apis,omitempty"`
|
||||
|
||||
// Features: The list of features enabled on this endpoint.
|
||||
Features []string `json:"features,omitempty"`
|
||||
|
||||
@@ -1250,8 +1244,8 @@ type Endpoint struct {
|
||||
}
|
||||
|
||||
func (s *Endpoint) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Endpoint
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Endpoint
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1294,8 +1288,8 @@ type Enum struct {
|
||||
}
|
||||
|
||||
func (s *Enum) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Enum
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Enum
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1328,8 +1322,8 @@ type EnumValue struct {
|
||||
}
|
||||
|
||||
func (s *EnumValue) MarshalJSON() ([]byte, error) {
|
||||
type noMethod EnumValue
|
||||
raw := noMethod(*s)
|
||||
type NoMethod EnumValue
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1358,8 +1352,8 @@ type Experimental struct {
|
||||
}
|
||||
|
||||
func (s *Experimental) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Experimental
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Experimental
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1447,8 +1441,8 @@ type Field struct {
|
||||
}
|
||||
|
||||
func (s *Field) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Field
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Field
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1495,8 +1489,8 @@ type Http struct {
|
||||
}
|
||||
|
||||
func (s *Http) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Http
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Http
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1858,8 +1852,8 @@ type HttpRule struct {
|
||||
}
|
||||
|
||||
func (s *HttpRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod HttpRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod HttpRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1897,8 +1891,8 @@ type LabelDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *LabelDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LabelDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod LabelDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1935,8 +1929,8 @@ type ListEnabledServicesResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListEnabledServicesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListEnabledServicesResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListEnabledServicesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1993,8 +1987,8 @@ type LogDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *LogDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LogDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod LogDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2068,8 +2062,8 @@ type Logging struct {
|
||||
}
|
||||
|
||||
func (s *Logging) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Logging
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Logging
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2107,8 +2101,8 @@ type LoggingDestination struct {
|
||||
}
|
||||
|
||||
func (s *LoggingDestination) MarshalJSON() ([]byte, error) {
|
||||
type noMethod LoggingDestination
|
||||
raw := noMethod(*s)
|
||||
type NoMethod LoggingDestination
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2167,8 +2161,8 @@ type MediaDownload struct {
|
||||
}
|
||||
|
||||
func (s *MediaDownload) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MediaDownload
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MediaDownload
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2236,8 +2230,8 @@ type MediaUpload struct {
|
||||
}
|
||||
|
||||
func (s *MediaUpload) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MediaUpload
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MediaUpload
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2286,8 +2280,8 @@ type Method struct {
|
||||
}
|
||||
|
||||
func (s *Method) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Method
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Method
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2305,6 +2299,9 @@ type MetricDescriptor struct {
|
||||
// user interfaces.
|
||||
// Use sentence case without an ending period, for example "Request
|
||||
// count".
|
||||
// This field is optional but it is recommended to be set for any
|
||||
// metrics
|
||||
// associated with user-visible concepts, such as Quota.
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Labels: The set of labels that can be used to describe a
|
||||
@@ -2334,21 +2331,7 @@ type MetricDescriptor struct {
|
||||
// points.
|
||||
MetricKind string `json:"metricKind,omitempty"`
|
||||
|
||||
// Name: The resource name of the metric descriptor. Depending on
|
||||
// the
|
||||
// implementation, the name typically includes: (1) the parent resource
|
||||
// name
|
||||
// that defines the scope of the metric type or of its data; and (2)
|
||||
// the
|
||||
// metric's URL-encoded type, which also appears in the `type` field of
|
||||
// this
|
||||
// descriptor. For example, following is the resource name of a
|
||||
// custom
|
||||
// metric within the GCP project `my-project-id`:
|
||||
//
|
||||
//
|
||||
// "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvo
|
||||
// ice%2Fpaid%2Famount"
|
||||
// Name: The resource name of the metric descriptor.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Type: The metric type, including its DNS name prefix. The type is
|
||||
@@ -2467,8 +2450,8 @@ type MetricDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *MetricDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MetricDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MetricDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2510,8 +2493,8 @@ type MetricRule struct {
|
||||
}
|
||||
|
||||
func (s *MetricRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MetricRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MetricRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2627,8 +2610,8 @@ type Mixin struct {
|
||||
}
|
||||
|
||||
func (s *Mixin) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Mixin
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Mixin
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2705,8 +2688,8 @@ type MonitoredResourceDescriptor struct {
|
||||
}
|
||||
|
||||
func (s *MonitoredResourceDescriptor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MonitoredResourceDescriptor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MonitoredResourceDescriptor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2792,8 +2775,8 @@ type Monitoring struct {
|
||||
}
|
||||
|
||||
func (s *Monitoring) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Monitoring
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Monitoring
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2829,8 +2812,8 @@ type MonitoringDestination struct {
|
||||
}
|
||||
|
||||
func (s *MonitoringDestination) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MonitoringDestination
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MonitoringDestination
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2893,8 +2876,8 @@ type OAuthRequirements struct {
|
||||
}
|
||||
|
||||
func (s *OAuthRequirements) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OAuthRequirements
|
||||
raw := noMethod(*s)
|
||||
type NoMethod OAuthRequirements
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2968,8 +2951,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)
|
||||
}
|
||||
|
||||
@@ -3011,8 +2994,8 @@ type OperationMetadata struct {
|
||||
}
|
||||
|
||||
func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OperationMetadata
|
||||
raw := noMethod(*s)
|
||||
type NoMethod OperationMetadata
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3056,8 +3039,8 @@ type Option struct {
|
||||
}
|
||||
|
||||
func (s *Option) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Option
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Option
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3115,8 +3098,8 @@ type Page struct {
|
||||
}
|
||||
|
||||
func (s *Page) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Page
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Page
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3151,8 +3134,8 @@ type PublishedService struct {
|
||||
}
|
||||
|
||||
func (s *PublishedService) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PublishedService
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PublishedService
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3235,8 +3218,8 @@ type Quota struct {
|
||||
}
|
||||
|
||||
func (s *Quota) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Quota
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Quota
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3326,31 +3309,15 @@ type QuotaLimit struct {
|
||||
// the same metric will be checked together during runtime. The metric
|
||||
// must be
|
||||
// defined within the service config.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
Metric string `json:"metric,omitempty"`
|
||||
|
||||
// Name: Name of the quota limit. The name is used to refer to the limit
|
||||
// when
|
||||
// overriding the default limit on per-consumer basis.
|
||||
// Name: Name of the quota limit.
|
||||
//
|
||||
// For metric-based quota limits, the name must be provided, and it must
|
||||
// be
|
||||
// unique within the service. The name can only include
|
||||
// alphanumeric
|
||||
// characters as well as '-'.
|
||||
// The name must be provided, and it must be unique within the service.
|
||||
// The
|
||||
// name can only include alphanumeric characters as well as '-'.
|
||||
//
|
||||
// The maximum length of the limit name is 64 characters.
|
||||
//
|
||||
// The name of a limit is used as a unique identifier for this
|
||||
// limit.
|
||||
// Therefore, once a limit has been put into use, its name should
|
||||
// be
|
||||
// immutable. You can use the display_name field to provide a
|
||||
// user-friendly
|
||||
// name for the limit. The display name can be evolved over time
|
||||
// without
|
||||
// affecting the identity of the limit.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Unit: Specify the unit of the quota limit. It uses the same syntax
|
||||
@@ -3359,28 +3326,19 @@ type QuotaLimit struct {
|
||||
// quota
|
||||
// backend system.
|
||||
//
|
||||
// The [Google Service
|
||||
// Control](https://cloud.google.com/service-control)
|
||||
// supports the following unit components:
|
||||
// * One of the time intevals:
|
||||
// * "/min" for quota every minute.
|
||||
// * "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
|
||||
// * Otherwise the quota won't be reset by time, such as storage
|
||||
// limit.
|
||||
// * One and only one of the granted containers:
|
||||
// * "/{project}" quota for a project
|
||||
//
|
||||
// Here are some examples:
|
||||
// * "1/min/{project}" for quota per minute per project.
|
||||
//
|
||||
// Note: the order of unit components is insignificant.
|
||||
// The "1" at the beginning is required to follow the metric unit
|
||||
// syntax.
|
||||
//
|
||||
// Used by metric-based quotas only.
|
||||
Unit string `json:"unit,omitempty"`
|
||||
|
||||
// Values: Tiered limit values, currently only STANDARD is supported.
|
||||
// Values: Tiered limit values. You must specify this as a key:value
|
||||
// pair, with an
|
||||
// integer value that is the maximum number of requests allowed for
|
||||
// the
|
||||
// specified unit. Currently only STANDARD is supported.
|
||||
Values map[string]string `json:"values,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DefaultLimit") to
|
||||
@@ -3401,8 +3359,8 @@ type QuotaLimit struct {
|
||||
}
|
||||
|
||||
func (s *QuotaLimit) MarshalJSON() ([]byte, error) {
|
||||
type noMethod QuotaLimit
|
||||
raw := noMethod(*s)
|
||||
type NoMethod QuotaLimit
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3439,8 +3397,8 @@ type SearchServicesResponse struct {
|
||||
}
|
||||
|
||||
func (s *SearchServicesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SearchServicesResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SearchServicesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3631,8 +3589,8 @@ type Service struct {
|
||||
}
|
||||
|
||||
func (s *Service) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Service
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Service
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3664,8 +3622,8 @@ type SourceContext struct {
|
||||
}
|
||||
|
||||
func (s *SourceContext) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SourceContext
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SourceContext
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3692,8 +3650,8 @@ type SourceInfo struct {
|
||||
}
|
||||
|
||||
func (s *SourceInfo) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SourceInfo
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SourceInfo
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3811,8 +3769,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)
|
||||
}
|
||||
|
||||
@@ -3853,8 +3811,8 @@ type Step struct {
|
||||
}
|
||||
|
||||
func (s *Step) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Step
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Step
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3896,8 +3854,8 @@ type SystemParameter struct {
|
||||
}
|
||||
|
||||
func (s *SystemParameter) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SystemParameter
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SystemParameter
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -3940,8 +3898,8 @@ type SystemParameterRule struct {
|
||||
}
|
||||
|
||||
func (s *SystemParameterRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SystemParameterRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SystemParameterRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4008,8 +3966,8 @@ type SystemParameters struct {
|
||||
}
|
||||
|
||||
func (s *SystemParameters) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SystemParameters
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SystemParameters
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4056,8 +4014,8 @@ type Type struct {
|
||||
}
|
||||
|
||||
func (s *Type) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Type
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Type
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4111,8 +4069,8 @@ type Usage struct {
|
||||
}
|
||||
|
||||
func (s *Usage) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Usage
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Usage
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4148,8 +4106,9 @@ func (s *Usage) MarshalJSON() ([]byte, error) {
|
||||
// "google.example.library.v1.LibraryService.CreateBook"
|
||||
// allow_unregistered_calls: true
|
||||
type UsageRule struct {
|
||||
// AllowUnregisteredCalls: True, if the method allows unregistered
|
||||
// calls; false otherwise.
|
||||
// AllowUnregisteredCalls: If true, the selected method allows
|
||||
// unregistered calls, e.g. calls
|
||||
// that don't identify any user or application.
|
||||
AllowUnregisteredCalls bool `json:"allowUnregisteredCalls,omitempty"`
|
||||
|
||||
// Selector: Selects the methods to which this rule applies. Use '*' to
|
||||
@@ -4159,9 +4118,13 @@ type UsageRule struct {
|
||||
// Refer to selector for syntax details.
|
||||
Selector string `json:"selector,omitempty"`
|
||||
|
||||
// SkipServiceControl: True, if the method should skip service control.
|
||||
// If so, no control plane
|
||||
// feature (like quota and billing) will be enabled.
|
||||
// SkipServiceControl: If true, the selected method should skip service
|
||||
// control and the control
|
||||
// plane features, such as quota and billing, will not be
|
||||
// available.
|
||||
// This flag is used by Google Cloud Endpoints to bypass checks for
|
||||
// internal
|
||||
// methods, such as service health check methods.
|
||||
SkipServiceControl bool `json:"skipServiceControl,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
@@ -4184,8 +4147,8 @@ type UsageRule struct {
|
||||
}
|
||||
|
||||
func (s *UsageRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod UsageRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod UsageRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4243,8 +4206,8 @@ type Visibility struct {
|
||||
}
|
||||
|
||||
func (s *Visibility) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Visibility
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Visibility
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4297,8 +4260,8 @@ type VisibilityRule struct {
|
||||
}
|
||||
|
||||
func (s *VisibilityRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod VisibilityRule
|
||||
raw := noMethod(*s)
|
||||
type NoMethod VisibilityRule
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -4408,7 +4371,7 @@ func (c *ProjectsServicesDisableCall) Do(opts ...googleapi.CallOption) (*Operati
|
||||
},
|
||||
}
|
||||
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
|
||||
@@ -4549,7 +4512,7 @@ func (c *ProjectsServicesEnableCall) Do(opts ...googleapi.CallOption) (*Operatio
|
||||
},
|
||||
}
|
||||
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
|
||||
@@ -4707,7 +4670,7 @@ func (c *ProjectsServicesListCall) Do(opts ...googleapi.CallOption) (*ListEnable
|
||||
},
|
||||
}
|
||||
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
|
||||
@@ -4895,7 +4858,7 @@ func (c *ServicesSearchCall) Do(opts ...googleapi.CallOption) (*SearchServicesRe
|
||||
},
|
||||
}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user