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
+142 -40
View File
@@ -201,7 +201,7 @@
],
"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,
@@ -230,7 +230,7 @@
],
"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,
@@ -259,7 +259,7 @@
],
"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,
@@ -288,7 +288,7 @@
],
"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,
@@ -330,7 +330,7 @@
"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,
@@ -349,7 +349,7 @@
}
}
},
"revision": "20180308",
"revision": "20180503",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"Api": {
@@ -472,7 +472,7 @@
"id": "AuthenticationRule",
"properties": {
"allowWithoutCredential": {
"description": "Whether to allow requests without a credential. The credential can be\nan OAuth token, Google cookies (first-party auth) or EndUserCreds.\n\nFor requests without credentials, if the service control environment is\nspecified, each incoming request **must** be associated with a service\nconsumer. This can be done by passing an API key that belongs to a consumer\nproject.",
"description": "If true, the service accepts API keys without any other credential.",
"type": "boolean"
},
"customAuth": {
@@ -576,6 +576,27 @@
},
"type": "object"
},
"BatchEnableServicesResponse": {
"description": "Response message for the `BatchEnableServices` method.\nThis response message is assigned to the `response` field of the returned\nOperation when that operation is done.",
"id": "BatchEnableServicesResponse",
"properties": {
"failures": {
"description": "If allow_partial_success is true, and one or more services could not be\nenabled, this field contains the details about each failure.",
"items": {
"$ref": "EnableFailure"
},
"type": "array"
},
"services": {
"description": "The new state of the services after enabling.",
"items": {
"$ref": "GoogleApiServiceusageV1Service"
},
"type": "array"
}
},
"type": "object"
},
"Billing": {
"description": "Billing related configuration of the service.\n\nThe following example shows how to configure monitored resources and metrics\nfor billing:\n\n monitored_resources:\n - type: library.googleapis.com/branch\n labels:\n - key: /city\n description: The city where the library branch is located in.\n - key: /name\n description: The name of the branch.\n metrics:\n - name: library.googleapis.com/book/borrowed_count\n metric_kind: DELTA\n value_type: INT64\n billing:\n consumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n metrics:\n - library.googleapis.com/book/borrowed_count",
"id": "Billing",
@@ -740,8 +761,19 @@
"properties": {},
"type": "object"
},
"DisableServiceResponse": {
"description": "Response message for the `DisableService` method.\nThis response message is assigned to the `response` field of the returned\nOperation when that operation is done.",
"id": "DisableServiceResponse",
"properties": {
"service": {
"$ref": "GoogleApiServiceusageV1Service",
"description": "The new state of the service after disabling."
}
},
"type": "object"
},
"Documentation": {
"description": "`Documentation` provides the information for describing a service.\n\nExample:\n\u003cpre\u003e\u003ccode\u003edocumentation:\n summary: \u003e\n The Google Calendar API gives access\n to most calendar features.\n pages:\n - name: Overview\n content: \u0026#40;== include google/foo/overview.md ==\u0026#41;\n - name: Tutorial\n content: \u0026#40;== include google/foo/tutorial.md ==\u0026#41;\n subpages;\n - name: Java\n content: \u0026#40;== include google/foo/tutorial_java.md ==\u0026#41;\n rules:\n - selector: google.calendar.Calendar.Get\n description: \u003e\n ...\n - selector: google.calendar.Calendar.Put\n description: \u003e\n ...\n\u003c/code\u003e\u003c/pre\u003e\nDocumentation is provided in markdown syntax. In addition to\nstandard markdown features, definition lists, tables and fenced\ncode blocks are supported. Section headers can be provided and are\ninterpreted relative to the section nesting of the context where\na documentation fragment is embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvia the config at normalization time, where documentation provided\nby config rules overrides IDL provided.\n\nA number of constructs specific to the API platform are supported\nin documentation text.\n\nIn order to reference a proto element, the following\nnotation can be used:\n\u003cpre\u003e\u003ccode\u003e\u0026#91;fully.qualified.proto.name]\u0026#91;]\u003c/code\u003e\u003c/pre\u003e\nTo override the display text used for the link, this can be used:\n\u003cpre\u003e\u003ccode\u003e\u0026#91;display text]\u0026#91;fully.qualified.proto.name]\u003c/code\u003e\u003c/pre\u003e\nText can be excluded from doc using the following notation:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;-- internal comment --\u0026#41;\u003c/code\u003e\u003c/pre\u003e\nComments can be made conditional using a visibility label. The below\ntext will be only rendered if the `BETA` label is available:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;--BETA: comment for BETA users --\u0026#41;\u003c/code\u003e\u003c/pre\u003e\nA few directives are available in documentation. Note that\ndirectives must appear on a single line to be properly\nidentified. The `include` directive includes a markdown file from\nan external source:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;== include path/to/file ==\u0026#41;\u003c/code\u003e\u003c/pre\u003e\nThe `resource_for` directive marks a message to be the resource of\na collection in REST view. If it is not specified, tools attempt\nto infer the resource from the operations in a collection:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;== resource_for v1.shelves.books ==\u0026#41;\u003c/code\u003e\u003c/pre\u003e\nThe directive `suppress_warning` does not directly affect documentation\nand is documented together with service config validation.",
"description": "`Documentation` provides the information for describing a service.\n\nExample:\n\u003cpre\u003e\u003ccode\u003edocumentation:\n summary: \u003e\n The Google Calendar API gives access\n to most calendar features.\n pages:\n - name: Overview\n content: \u0026#40;== include google/foo/overview.md ==\u0026#41;\n - name: Tutorial\n content: \u0026#40;== include google/foo/tutorial.md ==\u0026#41;\n subpages;\n - name: Java\n content: \u0026#40;== include google/foo/tutorial_java.md ==\u0026#41;\n rules:\n - selector: google.calendar.Calendar.Get\n description: \u003e\n ...\n - selector: google.calendar.Calendar.Put\n description: \u003e\n ...\n\u003c/code\u003e\u003c/pre\u003e\nDocumentation is provided in markdown syntax. In addition to\nstandard markdown features, definition lists, tables and fenced\ncode blocks are supported. Section headers can be provided and are\ninterpreted relative to the section nesting of the context where\na documentation fragment is embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvia the config at normalization time, where documentation provided\nby config rules overrides IDL provided.\n\nA number of constructs specific to the API platform are supported\nin documentation text.\n\nIn order to reference a proto element, the following\nnotation can be used:\n\u003cpre\u003e\u003ccode\u003e\u0026#91;fully.qualified.proto.name]\u0026#91;]\u003c/code\u003e\u003c/pre\u003e\nTo override the display text used for the link, this can be used:\n\u003cpre\u003e\u003ccode\u003e\u0026#91;display text]\u0026#91;fully.qualified.proto.name]\u003c/code\u003e\u003c/pre\u003e\nText can be excluded from doc using the following notation:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;-- internal comment --\u0026#41;\u003c/code\u003e\u003c/pre\u003e\n\nA few directives are available in documentation. Note that\ndirectives must appear on a single line to be properly\nidentified. The `include` directive includes a markdown file from\nan external source:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;== include path/to/file ==\u0026#41;\u003c/code\u003e\u003c/pre\u003e\nThe `resource_for` directive marks a message to be the resource of\na collection in REST view. If it is not specified, tools attempt\nto infer the resource from the operations in a collection:\n\u003cpre\u003e\u003ccode\u003e\u0026#40;== resource_for v1.shelves.books ==\u0026#41;\u003c/code\u003e\u003c/pre\u003e\nThe directive `suppress_warning` does not directly affect documentation\nand is documented together with service config validation.",
"id": "Documentation",
"properties": {
"documentationRootUrl": {
@@ -792,12 +824,37 @@
},
"type": "object"
},
"EnableFailure": {
"id": "EnableFailure",
"properties": {
"errorMessage": {
"description": "An error message describing why the service could not be enabled.",
"type": "string"
},
"serviceId": {
"description": "The service id of a service that could not be enabled.",
"type": "string"
}
},
"type": "object"
},
"EnableServiceRequest": {
"description": "Request message for the `EnableService` method.",
"id": "EnableServiceRequest",
"properties": {},
"type": "object"
},
"EnableServiceResponse": {
"description": "Response message for the `EnableService` method.\nThis response message is assigned to the `response` field of the returned\nOperation when that operation is done.",
"id": "EnableServiceResponse",
"properties": {
"service": {
"$ref": "GoogleApiServiceusageV1Service",
"description": "The new state of the service after enabling."
}
},
"type": "object"
},
"Endpoint": {
"description": "`Endpoint` describes a network endpoint that serves a set of APIs.\nA service may expose any number of endpoints, and all endpoints share the\nsame service configuration, such as quota configuration and monitoring\nconfiguration.\n\nExample service configuration:\n\n name: library-example.googleapis.com\n endpoints:\n # Below entry makes 'google.example.library.v1.Library'\n # API be served from endpoint address library-example.googleapis.com.\n # It also allows HTTP OPTIONS calls to be passed to the backend, for\n # it to decide whether the subsequent cross-origin request is\n # allowed to proceed.\n - name: library-example.googleapis.com\n allow_cors: true",
"id": "Endpoint",
@@ -1152,10 +1209,84 @@
"usage": {
"$ref": "Usage",
"description": "Configuration controlling usage of this service."
}
},
"type": "object"
},
"GoogleApiServiceusageV1Service": {
"description": "A service that is available for use by the consumer.",
"id": "GoogleApiServiceusageV1Service",
"properties": {
"config": {
"$ref": "GoogleApiServiceusageV1ServiceConfig",
"description": "The service configuration of the available service.\nSome fields may be filtered out of the configuration in responses to\nthe `ListServices` method. These fields are present only in responses to\nthe `GetService` method."
},
"visibility": {
"$ref": "Visibility",
"description": "API visibility configuration."
"name": {
"description": "The resource name of the consumer and service.\n\nA valid name would be:\n- projects/123/services/serviceusage.googleapis.com",
"type": "string"
},
"parent": {
"description": "The resource name of the consumer.\n\nA valid name would be:\n- projects/123",
"type": "string"
},
"state": {
"description": "Whether or not the service has been enabled for use by the consumer.",
"enum": [
"STATE_UNSPECIFIED",
"DISABLED",
"ENABLED"
],
"enumDescriptions": [
"The default value, which indicates that the enabled state of the service\nis unspecified or not meaningful. Currently, all consumers other than\nprojects (such as folders and organizations) are always in this state.",
"The service cannot be used by this consumer. It has either been explicitly\ndisabled, or has never been enabled.",
"The service has been explicitly enabled for use by this consumer."
],
"type": "string"
}
},
"type": "object"
},
"GoogleApiServiceusageV1ServiceConfig": {
"description": "The configuration of the service.",
"id": "GoogleApiServiceusageV1ServiceConfig",
"properties": {
"apis": {
"description": "A list of API interfaces exported by this service. Contains only the names,\nversions, and method names of the interfaces.",
"items": {
"$ref": "Api"
},
"type": "array"
},
"authentication": {
"$ref": "Authentication",
"description": "Auth configuration. Contains only the OAuth rules."
},
"documentation": {
"$ref": "Documentation",
"description": "Additional API documentation. Contains only the summary and the\ndocumentation URL."
},
"endpoints": {
"description": "Configuration for network endpoints. Contains only the names and aliases\nof the endpoints.",
"items": {
"$ref": "Endpoint"
},
"type": "array"
},
"name": {
"description": "The DNS address at which this service is available.\n\nAn example DNS address would be:\n`calendar.googleapis.com`.",
"type": "string"
},
"quota": {
"$ref": "Quota",
"description": "Quota configuration."
},
"title": {
"description": "The product title for this service.",
"type": "string"
},
"usage": {
"$ref": "Usage",
"description": "Configuration controlling usage of this service."
}
},
"type": "object"
@@ -2173,35 +2304,6 @@
}
},
"type": "object"
},
"Visibility": {
"description": "`Visibility` defines restrictions for the visibility of service\nelements. Restrictions are specified using visibility labels\n(e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.\n\nUsers and projects can have access to more than one visibility label. The\neffective visibility for multiple labels is the union of each label's\nelements, plus any unrestricted elements.\n\nIf an element and its parents have no restrictions, visibility is\nunconditionally granted.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: TRUSTED_TESTER\n - selector: google.calendar.Calendar.Delegate\n restriction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for the restricted methods\nEnhancedSearch and Delegate.",
"id": "Visibility",
"properties": {
"rules": {
"description": "A list of visibility rules that apply to individual API elements.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
"items": {
"$ref": "VisibilityRule"
},
"type": "array"
}
},
"type": "object"
},
"VisibilityRule": {
"description": "A visibility rule provides visibility configuration for an individual API\nelement.",
"id": "VisibilityRule",
"properties": {
"restriction": {
"description": "A comma-separated list of visibility labels that apply to the `selector`.\nAny of the listed labels can be used to grant the visibility.\n\nIf a rule has multiple labels, removing one of the labels but not all of\nthem can break clients.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: GOOGLE_INTERNAL, TRUSTED_TESTER\n\nRemoving GOOGLE_INTERNAL from this restriction will break clients that\nrely on this method and only had access to it through GOOGLE_INTERNAL.",
"type": "string"
},
"selector": {
"description": "Selects methods, messages, fields, enums, etc. to which this rule applies.\n\nRefer to selector for syntax details.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
+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,