OLD | NEW |
(Empty) | |
| 1 { |
| 2 "auth": { |
| 3 "oauth2": { |
| 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/cloud-platform": { |
| 6 "description": "View and manage your data across Google Clou
d Platform services" |
| 7 }, |
| 8 "https://www.googleapis.com/auth/service.management": { |
| 9 "description": "Manage your Google API service configuration
" |
| 10 }, |
| 11 "https://www.googleapis.com/auth/cloud-platform.read-only": { |
| 12 "description": "View your data across Google Cloud Platform
services" |
| 13 } |
| 14 } |
| 15 } |
| 16 }, |
| 17 "basePath": "", |
| 18 "baseUrl": "https://serviceuser.googleapis.com/", |
| 19 "batchPath": "batch", |
| 20 "canonicalName": "Service User", |
| 21 "description": "The Service User API allows service consumers to enable serv
ices they want to use on Google Cloud Platform or disable services they no longe
r use. Consumers can also list the set of services they have already enabled.", |
| 22 "discoveryVersion": "v1", |
| 23 "documentationLink": "https://cloud.google.com/service-user/", |
| 24 "icons": { |
| 25 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 26 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 27 }, |
| 28 "id": "serviceuser:v1", |
| 29 "kind": "discovery#restDescription", |
| 30 "name": "serviceuser", |
| 31 "ownerDomain": "google.com", |
| 32 "ownerName": "Google", |
| 33 "parameters": { |
| 34 "upload_protocol": { |
| 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 36 "location": "query", |
| 37 "type": "string" |
| 38 }, |
| 39 "prettyPrint": { |
| 40 "default": "true", |
| 41 "description": "Returns response with indentations and line breaks."
, |
| 42 "location": "query", |
| 43 "type": "boolean" |
| 44 }, |
| 45 "fields": { |
| 46 "description": "Selector specifying which fields to include in a par
tial response.", |
| 47 "location": "query", |
| 48 "type": "string" |
| 49 }, |
| 50 "uploadType": { |
| 51 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 52 "location": "query", |
| 53 "type": "string" |
| 54 }, |
| 55 "callback": { |
| 56 "description": "JSONP", |
| 57 "location": "query", |
| 58 "type": "string" |
| 59 }, |
| 60 "$.xgafv": { |
| 61 "description": "V1 error format.", |
| 62 "enum": [ |
| 63 "1", |
| 64 "2" |
| 65 ], |
| 66 "enumDescriptions": [ |
| 67 "v1 error format", |
| 68 "v2 error format" |
| 69 ], |
| 70 "location": "query", |
| 71 "type": "string" |
| 72 }, |
| 73 "alt": { |
| 74 "default": "json", |
| 75 "description": "Data format for response.", |
| 76 "enum": [ |
| 77 "json", |
| 78 "media", |
| 79 "proto" |
| 80 ], |
| 81 "enumDescriptions": [ |
| 82 "Responses with Content-Type of application/json", |
| 83 "Media download with context-dependent Content-Type", |
| 84 "Responses with Content-Type of application/x-protobuf" |
| 85 ], |
| 86 "location": "query", |
| 87 "type": "string" |
| 88 }, |
| 89 "access_token": { |
| 90 "description": "OAuth access token.", |
| 91 "location": "query", |
| 92 "type": "string" |
| 93 }, |
| 94 "key": { |
| 95 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 96 "location": "query", |
| 97 "type": "string" |
| 98 }, |
| 99 "quotaUser": { |
| 100 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 101 "location": "query", |
| 102 "type": "string" |
| 103 }, |
| 104 "pp": { |
| 105 "default": "true", |
| 106 "description": "Pretty-print response.", |
| 107 "location": "query", |
| 108 "type": "boolean" |
| 109 }, |
| 110 "bearer_token": { |
| 111 "description": "OAuth bearer token.", |
| 112 "location": "query", |
| 113 "type": "string" |
| 114 }, |
| 115 "oauth_token": { |
| 116 "description": "OAuth 2.0 token for the current user.", |
| 117 "location": "query", |
| 118 "type": "string" |
| 119 } |
| 120 }, |
| 121 "protocol": "rest", |
| 122 "resources": { |
| 123 "projects": { |
| 124 "resources": { |
| 125 "services": { |
| 126 "methods": { |
| 127 "enable": { |
| 128 "description": "Enable a managed service for a consu
mer with the default settings.\n\nOperation<response: google.protobuf.Empty>\n\n
google.rpc.Status errors may contain a\ngoogle.rpc.PreconditionFailure error det
ail.", |
| 129 "httpMethod": "POST", |
| 130 "id": "serviceuser.projects.services.enable", |
| 131 "parameterOrder": [ |
| 132 "name" |
| 133 ], |
| 134 "parameters": { |
| 135 "name": { |
| 136 "description": "Name of the consumer and the
service to enable for that consumer.\n\nA valid path would be:\n- /v1/projects/
my-project/services/servicemanagement.googleapis.com:enable", |
| 137 "location": "path", |
| 138 "pattern": "^projects/[^/]+/services/[^/]+$"
, |
| 139 "required": true, |
| 140 "type": "string" |
| 141 } |
| 142 }, |
| 143 "path": "v1/{+name}:enable", |
| 144 "request": { |
| 145 "$ref": "EnableServiceRequest" |
| 146 }, |
| 147 "response": { |
| 148 "$ref": "Operation" |
| 149 }, |
| 150 "scopes": [ |
| 151 "https://www.googleapis.com/auth/cloud-platform"
, |
| 152 "https://www.googleapis.com/auth/service.managem
ent" |
| 153 ] |
| 154 }, |
| 155 "list": { |
| 156 "description": "List enabled services for the specif
ied consumer.", |
| 157 "httpMethod": "GET", |
| 158 "id": "serviceuser.projects.services.list", |
| 159 "parameterOrder": [ |
| 160 "parent" |
| 161 ], |
| 162 "parameters": { |
| 163 "pageSize": { |
| 164 "description": "Requested size of the next p
age of data.", |
| 165 "format": "int32", |
| 166 "location": "query", |
| 167 "type": "integer" |
| 168 }, |
| 169 "parent": { |
| 170 "description": "List enabled services for th
e specified parent.\n\nAn example valid parent would be:\n- projects/my-project"
, |
| 171 "location": "path", |
| 172 "pattern": "^projects/[^/]+$", |
| 173 "required": true, |
| 174 "type": "string" |
| 175 }, |
| 176 "pageToken": { |
| 177 "description": "Token identifying which resu
lt to start with; returned by a previous list\ncall.", |
| 178 "location": "query", |
| 179 "type": "string" |
| 180 } |
| 181 }, |
| 182 "path": "v1/{+parent}/services", |
| 183 "response": { |
| 184 "$ref": "ListEnabledServicesResponse" |
| 185 }, |
| 186 "scopes": [ |
| 187 "https://www.googleapis.com/auth/cloud-platform"
, |
| 188 "https://www.googleapis.com/auth/cloud-platform.
read-only" |
| 189 ] |
| 190 }, |
| 191 "disable": { |
| 192 "description": "Disable a managed service for a cons
umer.\n\nOperation<response: google.protobuf.Empty>", |
| 193 "httpMethod": "POST", |
| 194 "id": "serviceuser.projects.services.disable", |
| 195 "parameterOrder": [ |
| 196 "name" |
| 197 ], |
| 198 "parameters": { |
| 199 "name": { |
| 200 "description": "Name of the consumer and the
service to disable for that consumer.\n\nThe Service User implementation accept
s the following forms for consumer:\n- \"project:<project_id>\"\n\nA valid path
would be:\n- /v1/projects/my-project/services/servicemanagement.googleapis.com:d
isable", |
| 201 "location": "path", |
| 202 "pattern": "^projects/[^/]+/services/[^/]+$"
, |
| 203 "required": true, |
| 204 "type": "string" |
| 205 } |
| 206 }, |
| 207 "path": "v1/{+name}:disable", |
| 208 "request": { |
| 209 "$ref": "DisableServiceRequest" |
| 210 }, |
| 211 "response": { |
| 212 "$ref": "Operation" |
| 213 }, |
| 214 "scopes": [ |
| 215 "https://www.googleapis.com/auth/cloud-platform"
, |
| 216 "https://www.googleapis.com/auth/service.managem
ent" |
| 217 ] |
| 218 } |
| 219 } |
| 220 } |
| 221 } |
| 222 } |
| 223 }, |
| 224 "revision": "20170209", |
| 225 "rootUrl": "https://serviceuser.googleapis.com/", |
| 226 "schemas": { |
| 227 "Authentication": { |
| 228 "description": "`Authentication` defines the authentication configur
ation for an API.\n\nExample for an API targeted for external use:\n\n name:
calendar.googleapis.com\n authentication:\n providers:\n - id: goog
le_calendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n
issuer: https://securetoken.google.com\n rules:\n - selector:
\"*\"\n requirements:\n provider_id: google_calendar_auth", |
| 229 "id": "Authentication", |
| 230 "properties": { |
| 231 "rules": { |
| 232 "description": "A list of authentication rules that apply to
individual API methods.\n\n**NOTE:** All service configuration rules follow \"l
ast one wins\" order.", |
| 233 "items": { |
| 234 "$ref": "AuthenticationRule" |
| 235 }, |
| 236 "type": "array" |
| 237 }, |
| 238 "providers": { |
| 239 "description": "Defines a set of authentication providers th
at a service supports.", |
| 240 "items": { |
| 241 "$ref": "AuthProvider" |
| 242 }, |
| 243 "type": "array" |
| 244 } |
| 245 }, |
| 246 "type": "object" |
| 247 }, |
| 248 "Operation": { |
| 249 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
| 250 "id": "Operation", |
| 251 "properties": { |
| 252 "metadata": { |
| 253 "additionalProperties": { |
| 254 "description": "Properties of the object. Contains field
@type with type URL.", |
| 255 "type": "any" |
| 256 }, |
| 257 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", |
| 258 "type": "object" |
| 259 }, |
| 260 "done": { |
| 261 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", |
| 262 "type": "boolean" |
| 263 }, |
| 264 "response": { |
| 265 "additionalProperties": { |
| 266 "description": "Properties of the object. Contains field
@type with type URL.", |
| 267 "type": "any" |
| 268 }, |
| 269 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", |
| 270 "type": "object" |
| 271 }, |
| 272 "name": { |
| 273 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", |
| 274 "type": "string" |
| 275 }, |
| 276 "error": { |
| 277 "$ref": "Status", |
| 278 "description": "The error result of the operation in case of
failure or cancellation." |
| 279 } |
| 280 }, |
| 281 "type": "object" |
| 282 }, |
| 283 "Page": { |
| 284 "description": "Represents a documentation page. A page can contain
subpages to represent\nnested documentation set structure.", |
| 285 "id": "Page", |
| 286 "properties": { |
| 287 "name": { |
| 288 "description": "The name of the page. It will be used as an
identity of the page to\ngenerate URI of the page, text of the link to this page
in navigation,\netc. The full page name (start from the root page name to this
page\nconcatenated with `.`) can be used as reference to the page in your\ndocum
entation. For example:\n<pre><code>pages:\n- name: Tutorial\n content: (==
include tutorial.md ==)\n subpages:\n - name: Java\n content: (== i
nclude tutorial_java.md ==)\n</code></pre>\nYou can reference `Java` page us
ing Markdown reference link syntax:\n`Java`.", |
| 289 "type": "string" |
| 290 }, |
| 291 "content": { |
| 292 "description": "The Markdown content of the page. You can us
e <code>(== include {path} ==)</code>\nto include content from a Markdow
n file.", |
| 293 "type": "string" |
| 294 }, |
| 295 "subpages": { |
| 296 "description": "Subpages of this page. The order of subpages
specified here will be\nhonored in the generated docset.", |
| 297 "items": { |
| 298 "$ref": "Page" |
| 299 }, |
| 300 "type": "array" |
| 301 } |
| 302 }, |
| 303 "type": "object" |
| 304 }, |
| 305 "Status": { |
| 306 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", |
| 307 "id": "Status", |
| 308 "properties": { |
| 309 "code": { |
| 310 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 311 "format": "int32", |
| 312 "type": "integer" |
| 313 }, |
| 314 "message": { |
| 315 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
| 316 "type": "string" |
| 317 }, |
| 318 "details": { |
| 319 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", |
| 320 "items": { |
| 321 "additionalProperties": { |
| 322 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 323 "type": "any" |
| 324 }, |
| 325 "type": "object" |
| 326 }, |
| 327 "type": "array" |
| 328 } |
| 329 }, |
| 330 "type": "object" |
| 331 }, |
| 332 "AuthProvider": { |
| 333 "description": "Configuration for an anthentication provider, includ
ing support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-o
auth-json-web-token-32).", |
| 334 "id": "AuthProvider", |
| 335 "properties": { |
| 336 "audiences": { |
| 337 "description": "The list of JWT\n[audiences](https://tools.i
etf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).\nthat are allowe
d to access. A JWT containing any of these audiences will\nbe accepted. When thi
s setting is absent, only JWTs with audience\n\"https://Service_name/API_name\"\
nwill be accepted. For example, if no audiences are in the setting,\nLibraryServ
ice API will only accept JWTs with the following audience\n\"https://library-exa
mple.googleapis.com/google.example.library.v1.LibraryService\".\n\nExample:\n\n
audiences: bookstore_android.apps.googleusercontent.com,\n book
store_web.apps.googleusercontent.com", |
| 338 "type": "string" |
| 339 }, |
| 340 "id": { |
| 341 "description": "The unique identifier of the auth provider.
It will be referred to by\n`AuthRequirement.provider_id`.\n\nExample: \"bookstor
e_auth\".", |
| 342 "type": "string" |
| 343 }, |
| 344 "issuer": { |
| 345 "description": "Identifies the principal that issued the JWT
. See\nhttps://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.
1.1\nUsually a URL or an email address.\n\nExample: https://securetoken.google.c
om\nExample: 1234567-compute@developer.gserviceaccount.com", |
| 346 "type": "string" |
| 347 }, |
| 348 "jwksUri": { |
| 349 "description": "URL of the provider's public key set to vali
date signature of the JWT. See\n[OpenID Discovery](https://openid.net/specs/open
id-connect-discovery-1_0.html#ProviderMetadata).\nOptional if the key set docume
nt:\n - can be retrieved from\n [OpenID Discovery](https://openid.net/specs/op
enid-connect-discovery-1_0.html\n of the issuer.\n - can be inferred from the
email domain of the issuer (e.g. a Google service account).\n\nExample: https://
www.googleapis.com/oauth2/v1/certs", |
| 350 "type": "string" |
| 351 } |
| 352 }, |
| 353 "type": "object" |
| 354 }, |
| 355 "Service": { |
| 356 "description": "`Service` is the root object of Google service confi
guration schema. It\ndescribes basic information about a service, such as the na
me and the\ntitle, and delegates other aspects to sub-sections. Each sub-section
is\neither a proto message or a repeated proto message that configures a\nspeci
fic aspect, such as auth. See each proto message definition for details.\n\nExam
ple:\n\n type: google.api.Service\n config_version: 3\n name: calendar.
googleapis.com\n title: Google Calendar API\n apis:\n - name: google.ca
lendar.v3.Calendar\n authentication:\n providers:\n - id: google_ca
lendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n
issuer: https://securetoken.google.com\n rules:\n - selector: \"*\"
\n requirements:\n provider_id: google_calendar_auth", |
| 357 "id": "Service", |
| 358 "properties": { |
| 359 "title": { |
| 360 "description": "The product title associated with this servi
ce.", |
| 361 "type": "string" |
| 362 }, |
| 363 "endpoints": { |
| 364 "description": "Configuration for network endpoints. If thi
s is empty, then an endpoint\nwith the same name as the service is automatically
generated to service all\ndefined APIs.", |
| 365 "items": { |
| 366 "$ref": "Endpoint" |
| 367 }, |
| 368 "type": "array" |
| 369 }, |
| 370 "logs": { |
| 371 "description": "Defines the logs used by this service.", |
| 372 "items": { |
| 373 "$ref": "LogDescriptor" |
| 374 }, |
| 375 "type": "array" |
| 376 }, |
| 377 "apis": { |
| 378 "description": "A list of API interfaces exported by this se
rvice. Only the `name` field\nof the google.protobuf.Api needs to be provided by
the configuration\nauthor, as the remaining fields will be derived from the IDL
during the\nnormalization process. It is an error to specify an API interface h
ere\nwhich cannot be resolved against the associated IDL files.", |
| 379 "items": { |
| 380 "$ref": "Api" |
| 381 }, |
| 382 "type": "array" |
| 383 }, |
| 384 "types": { |
| 385 "description": "A list of all proto message types included i
n this API service.\nTypes referenced directly or indirectly by the `apis` are\n
automatically included. Messages which are not referenced but\nshall be include
d, such as types used by the `google.protobuf.Any` type,\nshould be listed here
by name. Example:\n\n types:\n - name: google.protobuf.Int32", |
| 386 "items": { |
| 387 "$ref": "Type" |
| 388 }, |
| 389 "type": "array" |
| 390 }, |
| 391 "http": { |
| 392 "$ref": "Http", |
| 393 "description": "HTTP configuration." |
| 394 }, |
| 395 "backend": { |
| 396 "$ref": "Backend", |
| 397 "description": "API backend configuration." |
| 398 }, |
| 399 "systemParameters": { |
| 400 "$ref": "SystemParameters", |
| 401 "description": "System parameter configuration." |
| 402 }, |
| 403 "documentation": { |
| 404 "$ref": "Documentation", |
| 405 "description": "Additional API documentation." |
| 406 }, |
| 407 "logging": { |
| 408 "$ref": "Logging", |
| 409 "description": "Logging configuration." |
| 410 }, |
| 411 "monitoredResources": { |
| 412 "description": "Defines the monitored resources used by this
service. This is required\nby the Service.monitoring and Service.logging config
urations.", |
| 413 "items": { |
| 414 "$ref": "MonitoredResourceDescriptor" |
| 415 }, |
| 416 "type": "array" |
| 417 }, |
| 418 "enums": { |
| 419 "description": "A list of all enum types included in this AP
I service. Enums\nreferenced directly or indirectly by the `apis` are automatic
ally\nincluded. Enums which are not referenced but shall be included\nshould be
listed here by name. Example:\n\n enums:\n - name: google.someapi.v1.Some
Enum", |
| 420 "items": { |
| 421 "$ref": "Enum" |
| 422 }, |
| 423 "type": "array" |
| 424 }, |
| 425 "context": { |
| 426 "$ref": "Context", |
| 427 "description": "Context configuration." |
| 428 }, |
| 429 "id": { |
| 430 "description": "A unique ID for a specific instance of this
message, typically assigned\nby the client for tracking purpose. If empty, the s
erver may choose to\ngenerate one instead.", |
| 431 "type": "string" |
| 432 }, |
| 433 "usage": { |
| 434 "$ref": "Usage", |
| 435 "description": "Configuration controlling usage of this serv
ice." |
| 436 }, |
| 437 "metrics": { |
| 438 "description": "Defines the metrics used by this service.", |
| 439 "items": { |
| 440 "$ref": "MetricDescriptor" |
| 441 }, |
| 442 "type": "array" |
| 443 }, |
| 444 "authentication": { |
| 445 "$ref": "Authentication", |
| 446 "description": "Auth configuration." |
| 447 }, |
| 448 "control": { |
| 449 "$ref": "Control", |
| 450 "description": "Configuration for the service control plane.
" |
| 451 }, |
| 452 "configVersion": { |
| 453 "description": "The version of the service configuration. Th
e config version may\ninfluence interpretation of the configuration, for example
, to\ndetermine defaults. This is documented together with applicable\noptions.
The current default for the config version itself is `3`.", |
| 454 "format": "uint32", |
| 455 "type": "integer" |
| 456 }, |
| 457 "monitoring": { |
| 458 "$ref": "Monitoring", |
| 459 "description": "Monitoring configuration." |
| 460 }, |
| 461 "producerProjectId": { |
| 462 "description": "The id of the Google developer project that
owns the service.\nMembers of this project can manage the service configuration,
\nmanage consumption of the service, etc.", |
| 463 "type": "string" |
| 464 }, |
| 465 "systemTypes": { |
| 466 "description": "A list of all proto message types included i
n this API service.\nIt serves similar purpose as [google.api.Service.types], ex
cept that\nthese types are not needed by user-defined APIs. Therefore, they will
not\nshow up in the generated discovery doc. This field should only be used\nto
define system APIs in ESF.", |
| 467 "items": { |
| 468 "$ref": "Type" |
| 469 }, |
| 470 "type": "array" |
| 471 }, |
| 472 "visibility": { |
| 473 "$ref": "Visibility", |
| 474 "description": "API visibility configuration." |
| 475 }, |
| 476 "name": { |
| 477 "description": "The DNS address at which this service is ava
ilable,\ne.g. `calendar.googleapis.com`.", |
| 478 "type": "string" |
| 479 }, |
| 480 "customError": { |
| 481 "$ref": "CustomError", |
| 482 "description": "Custom error configuration." |
| 483 } |
| 484 }, |
| 485 "type": "object" |
| 486 }, |
| 487 "EnumValue": { |
| 488 "description": "Enum value definition.", |
| 489 "id": "EnumValue", |
| 490 "properties": { |
| 491 "name": { |
| 492 "description": "Enum value name.", |
| 493 "type": "string" |
| 494 }, |
| 495 "options": { |
| 496 "description": "Protocol buffer options.", |
| 497 "items": { |
| 498 "$ref": "Option" |
| 499 }, |
| 500 "type": "array" |
| 501 }, |
| 502 "number": { |
| 503 "description": "Enum value number.", |
| 504 "format": "int32", |
| 505 "type": "integer" |
| 506 } |
| 507 }, |
| 508 "type": "object" |
| 509 }, |
| 510 "CustomHttpPattern": { |
| 511 "description": "A custom pattern is used for defining custom HTTP ve
rb.", |
| 512 "id": "CustomHttpPattern", |
| 513 "properties": { |
| 514 "kind": { |
| 515 "description": "The name of this custom HTTP verb.", |
| 516 "type": "string" |
| 517 }, |
| 518 "path": { |
| 519 "description": "The path matched by this custom verb.", |
| 520 "type": "string" |
| 521 } |
| 522 }, |
| 523 "type": "object" |
| 524 }, |
| 525 "SystemParameterRule": { |
| 526 "description": "Define a system parameter rule mapping system parame
ter definitions to\nmethods.", |
| 527 "id": "SystemParameterRule", |
| 528 "properties": { |
| 529 "selector": { |
| 530 "description": "Selects the methods to which this rule appli
es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta
x details.", |
| 531 "type": "string" |
| 532 }, |
| 533 "parameters": { |
| 534 "description": "Define parameters. Multiple names may be def
ined for a parameter.\nFor a given method call, only one of them should be used.
If multiple\nnames are used the behavior is implementation-dependent.\nIf none
of the specified names are present the behavior is\nparameter-dependent.", |
| 535 "items": { |
| 536 "$ref": "SystemParameter" |
| 537 }, |
| 538 "type": "array" |
| 539 } |
| 540 }, |
| 541 "type": "object" |
| 542 }, |
| 543 "HttpRule": { |
| 544 "description": "`HttpRule` defines the mapping of an RPC method to o
ne or more HTTP\nREST APIs. The mapping determines what portions of the request
\nmessage are populated from the path, query parameters, or body of\nthe HTTP re
quest. The mapping is typically specified as an\n`google.api.http` annotation,
see \"google/api/annotations.proto\"\nfor details.\n\nThe mapping consists of a
field specifying the path template and\nmethod kind. The path template can refe
r to fields in the request\nmessage, as in the example below which describes a R
EST GET\noperation on a resource collection of messages:\n\n\n service Messag
ing {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n opti
on (google.api.http).get = \"/v1/messages/{message_id}/{sub.subfield}\";\n
}\n }\n message GetMessageRequest {\n message SubMessage {\n s
tring subfield = 1;\n }\n string message_id = 1; // mapped to the URL\
n SubMessage sub = 2; // `sub.subfield` is url-mapped\n }\n messag
e Message {\n string text = 1; // content of the resource\n }\n\nThe sam
e http annotation can alternatively be expressed inside the\n`GRPC API Configura
tion` YAML file.\n\n http:\n rules:\n - selector: <proto_package_
name>.Messaging.GetMessage\n get: /v1/messages/{message_id}/{sub.subfie
ld}\n\nThis definition enables an automatic, bidrectional mapping of HTTP\nJSON
to RPC. Example:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456/foo` | `G
etMessage(message_id: \"123456\" sub: SubMessage(subfield: \"foo\"))`\n\nIn gene
ral, not only fields but also field paths can be referenced\nfrom a path pattern
. Fields mapped to the path pattern cannot be\nrepeated and must have a primitiv
e (non-message) type.\n\nAny fields in the request message which are not bound b
y the path\npattern automatically become (optional) HTTP query\nparameters. Assu
me the following definition of the request message:\n\n\n message GetMessageR
equest {\n message SubMessage {\n string subfield = 1;\n }\n
string message_id = 1; // mapped to the URL\n int64 revision = 2; //
becomes a parameter\n SubMessage sub = 3; // `sub.subfield` becomes a pa
rameter\n }\n\n\nThis enables a HTTP JSON to RPC mapping as below:\n\nHTTP |
RPC\n-----|-----\n`GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMe
ssage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))`\n\
nNote that fields which are mapped to HTTP parameters must have a\nprimitive typ
e or a repeated primitive type. Message types are not\nallowed. In the case of a
repeated type, the parameter can be\nrepeated in the URL, as in `...?param=A&pa
ram=B`.\n\nFor HTTP method kinds which allow a request body, the `body` field\ns
pecifies the mapping. Consider a REST update method on the\nmessage resource col
lection:\n\n\n service Messaging {\n rpc UpdateMessage(UpdateMessageRequ
est) returns (Message) {\n option (google.api.http) = {\n put: \
"/v1/messages/{message_id}\"\n body: \"message\"\n };\n }\n
}\n message UpdateMessageRequest {\n string message_id = 1; // mappe
d to the URL\n Message message = 2; // mapped to the body\n }\n\n\nThe
following HTTP JSON to RPC mapping is enabled, where the\nrepresentation of the
JSON in the request body is determined by\nprotos JSON encoding:\n\nHTTP | RPC\
n-----|-----\n`PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(m
essage_id: \"123456\" message { text: \"Hi!\" })`\n\nThe special name `*` can be
used in the body mapping to define that\nevery field not bound by the path temp
late should be mapped to the\nrequest body. This enables the following alternat
ive definition of\nthe update method:\n\n service Messaging {\n rpc Upda
teMessage(Message) returns (Message) {\n option (google.api.http) = {\n
put: \"/v1/messages/{message_id}\"\n body: \"*\"\n };\n
}\n }\n message Message {\n string message_id = 1;\n string
text = 2;\n }\n\n\nThe following HTTP JSON to RPC mapping is enabled:\n\nHTT
P | RPC\n-----|-----\n`PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateM
essage(message_id: \"123456\" text: \"Hi!\")`\n\nNote that when using `*` in the
body mapping, it is not possible to\nhave HTTP parameters, as all fields not bo
und by the path end in\nthe body. This makes this option more rarely used in pra
ctice of\ndefining REST APIs. The common usage of `*` is in custom methods\nwhic
h don't use the URL at all for transferring data.\n\nIt is possible to define mu
ltiple HTTP methods for one RPC by using\nthe `additional_bindings` option. Exam
ple:\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) returns
(Message) {\n option (google.api.http) = {\n get: \"/v1/message
s/{message_id}\"\n additional_bindings {\n get: \"/v1/users/
{user_id}/messages/{message_id}\"\n }\n };\n }\n }\n
message GetMessageRequest {\n string message_id = 1;\n string user_id
= 2;\n }\n\n\nThis enables the following two alternative HTTP JSON to RPC\nma
ppings:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456` | `GetMessage(mess
age_id: \"123456\")`\n`GET /v1/users/me/messages/123456` | `GetMessage(user_id:
\"me\" message_id: \"123456\")`\n\n# Rules for HTTP mapping\n\nThe rules for map
ping HTTP path, query parameters, and body fields\nto the request message are as
follows:\n\n1. The `body` field specifies either `*` or a field path, or is\n
omitted. If omitted, it assumes there is no HTTP body.\n2. Leaf fields (recursi
ve expansion of nested messages in the\n request) can be classified into three
types:\n (a) Matched in the URL template.\n (b) Covered by body (if body
is `*`, everything except (a) fields;\n else everything under the body fi
eld)\n (c) All other fields.\n3. URL query parameters found in the HTTP reque
st are mapped to (c) fields.\n4. Any body sent with an HTTP request can contain
only (b) fields.\n\nThe syntax of the path template is as follows:\n\n Templa
te = \"/\" Segments [ Verb ] ;\n Segments = Segment { \"/\" Segment } ;\n
Segment = \"*\" | \"**\" | LITERAL | Variable ;\n Variable = \"{\" FieldPath
[ \"=\" Segments ] \"}\" ;\n FieldPath = IDENT { \".\" IDENT } ;\n Verb
= \":\" LITERAL ;\n\nThe syntax `*` matches a single path segment. It follows
the semantics of\n[RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
Simple String\nExpansion.\n\nThe syntax `**` matches zero or more path segments
. It follows the semantics\nof [RFC 6570](https://tools.ietf.org/html/rfc6570) S
ection 3.2.3 Reserved\nExpansion. NOTE: it must be the last segment in the path
except the Verb.\n\nThe syntax `LITERAL` matches literal text in the URL path.\n
\nThe syntax `Variable` matches the entire path as specified by its template;\nt
his nested template must not contain further variables. If a variable\nmatches a
single path segment, its template may be omitted, e.g. `{var}`\nis equivalent t
o `{var=*}`.\n\nNOTE: the field paths in variables and in the `body` must not re
fer to\nrepeated fields or map fields.\n\nUse CustomHttpPattern to specify any H
TTP method that is not included in the\n`pattern` field, such as HEAD, or \"*\"
to leave the HTTP method unspecified for\na given URL path rule. The wild-card r
ule is useful for services that provide\ncontent to Web (HTML) clients.", |
| 545 "id": "HttpRule", |
| 546 "properties": { |
| 547 "get": { |
| 548 "description": "Used for listing and getting information abo
ut resources.", |
| 549 "type": "string" |
| 550 }, |
| 551 "patch": { |
| 552 "description": "Used for updating a resource.", |
| 553 "type": "string" |
| 554 }, |
| 555 "put": { |
| 556 "description": "Used for updating a resource.", |
| 557 "type": "string" |
| 558 }, |
| 559 "delete": { |
| 560 "description": "Used for deleting a resource.", |
| 561 "type": "string" |
| 562 }, |
| 563 "body": { |
| 564 "description": "The name of the request field whose value is
mapped to the HTTP body, or\n`*` for mapping all fields not captured by the pat
h pattern to the HTTP\nbody. NOTE: the referred field must not be a repeated fie
ld and must be\npresent at the top-level of request message type.", |
| 565 "type": "string" |
| 566 }, |
| 567 "mediaDownload": { |
| 568 "$ref": "MediaDownload", |
| 569 "description": "Do not use this. For media support, add inst
ead\n[][google.bytestream.RestByteStream] as an API to your\nconfiguration." |
| 570 }, |
| 571 "post": { |
| 572 "description": "Used for creating a resource.", |
| 573 "type": "string" |
| 574 }, |
| 575 "additionalBindings": { |
| 576 "description": "Additional HTTP bindings for the selector. N
ested bindings must\nnot contain an `additional_bindings` field themselves (that
is,\nthe nesting may only be one level deep).", |
| 577 "items": { |
| 578 "$ref": "HttpRule" |
| 579 }, |
| 580 "type": "array" |
| 581 }, |
| 582 "responseBody": { |
| 583 "description": "The name of the response field whose value i
s mapped to the HTTP body of\nresponse. Other response fields are ignored. This
field is optional. When\nnot set, the response message will be used as HTTP body
of response.\nNOTE: the referred field must be not a repeated field and must be
present\nat the top-level of response message type.", |
| 584 "type": "string" |
| 585 }, |
| 586 "mediaUpload": { |
| 587 "$ref": "MediaUpload", |
| 588 "description": "Do not use this. For media support, add inst
ead\n[][google.bytestream.RestByteStream] as an API to your\nconfiguration." |
| 589 }, |
| 590 "selector": { |
| 591 "description": "Selects methods to which this rule applies.\
n\nRefer to selector for syntax details.", |
| 592 "type": "string" |
| 593 }, |
| 594 "custom": { |
| 595 "$ref": "CustomHttpPattern", |
| 596 "description": "Custom pattern is used for defining custom v
erbs." |
| 597 } |
| 598 }, |
| 599 "type": "object" |
| 600 }, |
| 601 "VisibilityRule": { |
| 602 "description": "A visibility rule provides visibility configuration
for an individual API\nelement.", |
| 603 "id": "VisibilityRule", |
| 604 "properties": { |
| 605 "restriction": { |
| 606 "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 no
t 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 restrictio
n will break clients that\nrely on this method and only had access to it through
GOOGLE_INTERNAL.", |
| 607 "type": "string" |
| 608 }, |
| 609 "selector": { |
| 610 "description": "Selects methods, messages, fields, enums, et
c. to which this rule applies.\n\nRefer to selector for syntax details.", |
| 611 "type": "string" |
| 612 } |
| 613 }, |
| 614 "type": "object" |
| 615 }, |
| 616 "MonitoringDestination": { |
| 617 "description": "Configuration of a specific monitoring destination (
the producer project\nor the consumer project).", |
| 618 "id": "MonitoringDestination", |
| 619 "properties": { |
| 620 "monitoredResource": { |
| 621 "description": "The monitored resource type. The type must b
e defined in\nService.monitored_resources section.", |
| 622 "type": "string" |
| 623 }, |
| 624 "metrics": { |
| 625 "description": "Names of the metrics to report to this monit
oring destination.\nEach name must be defined in Service.metrics section.", |
| 626 "items": { |
| 627 "type": "string" |
| 628 }, |
| 629 "type": "array" |
| 630 } |
| 631 }, |
| 632 "type": "object" |
| 633 }, |
| 634 "Visibility": { |
| 635 "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 visi
bility for multiple labels is the union of each label's\nelements, plus any unre
stricted elements.\n\nIf an element and its parents have no restrictions, visibi
lity 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 res
triction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for t
he restricted methods\nEnhancedSearch and Delegate.", |
| 636 "id": "Visibility", |
| 637 "properties": { |
| 638 "rules": { |
| 639 "description": "A list of visibility rules that apply to ind
ividual API elements.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", |
| 640 "items": { |
| 641 "$ref": "VisibilityRule" |
| 642 }, |
| 643 "type": "array" |
| 644 } |
| 645 }, |
| 646 "type": "object" |
| 647 }, |
| 648 "SystemParameters": { |
| 649 "description": "### System parameter configuration\n\nA system param
eter is a special kind of parameter defined by the API\nsystem, not by an indivi
dual API. It is typically mapped to an HTTP header\nand/or a URL query parameter
. This configuration specifies which methods\nchange the names of the system par
ameters.", |
| 650 "id": "SystemParameters", |
| 651 "properties": { |
| 652 "rules": { |
| 653 "description": "Define system parameters.\n\nThe parameters
defined here will override the default parameters\nimplemented by the system. If
this field is missing from the service\nconfig, default system parameters will
be used. Default system parameters\nand names is implementation-dependent.\n\nEx
ample: define api key for all methods\n\n system_parameters\n rules:\n
- selector: \"*\"\n parameters:\n - name: api_key\n
url_query_parameter: api_key\n\n\nExample: define 2 api key names for
a specific method.\n\n system_parameters\n rules:\n - selector:
\"/ListShelves\"\n parameters:\n - name: api_key\n
http_header: Api-Key1\n - name: api_key\n http_heade
r: Api-Key2\n\n**NOTE:** All service configuration rules follow \"last one wins\
" order.", |
| 654 "items": { |
| 655 "$ref": "SystemParameterRule" |
| 656 }, |
| 657 "type": "array" |
| 658 } |
| 659 }, |
| 660 "type": "object" |
| 661 }, |
| 662 "EnabledService": { |
| 663 "description": "An EnabledService message contains the details about
a service that has been\nenabled for use.", |
| 664 "id": "EnabledService", |
| 665 "properties": { |
| 666 "service": { |
| 667 "$ref": "Service", |
| 668 "description": "The Service definition for the enabled servi
ce\nOnly the name and title fields will be populated." |
| 669 } |
| 670 }, |
| 671 "type": "object" |
| 672 }, |
| 673 "LoggingDestination": { |
| 674 "description": "Configuration of a specific logging destination (the
producer project\nor the consumer project).", |
| 675 "id": "LoggingDestination", |
| 676 "properties": { |
| 677 "logs": { |
| 678 "description": "Names of the logs to be sent to this destina
tion. Each name must\nbe defined in the Service.logs section. If the log name is
\nnot a domain scoped name, it will be automatically prefixed with\nthe service
name followed by \"/\".", |
| 679 "items": { |
| 680 "type": "string" |
| 681 }, |
| 682 "type": "array" |
| 683 }, |
| 684 "monitoredResource": { |
| 685 "description": "The monitored resource type. The type must b
e defined in the\nService.monitored_resources section.", |
| 686 "type": "string" |
| 687 } |
| 688 }, |
| 689 "type": "object" |
| 690 }, |
| 691 "Option": { |
| 692 "description": "A protocol buffer option, which can be attached to a
message, field,\nenumeration, etc.", |
| 693 "id": "Option", |
| 694 "properties": { |
| 695 "value": { |
| 696 "additionalProperties": { |
| 697 "description": "Properties of the object. Contains field
@type with type URL.", |
| 698 "type": "any" |
| 699 }, |
| 700 "description": "The option's value packed in an Any message.
If the value is a primitive,\nthe corresponding wrapper type defined in google/
protobuf/wrappers.proto\nshould be used. If the value is an enum, it should be s
tored as an int32\nvalue using the google.protobuf.Int32Value type.", |
| 701 "type": "object" |
| 702 }, |
| 703 "name": { |
| 704 "description": "The option's name. For protobuf built-in opt
ions (options defined in\ndescriptor.proto), this is the short name. For example
, `\"map_entry\"`.\nFor custom options, it should be the fully-qualified name. F
or example,\n`\"google.api.http\"`.", |
| 705 "type": "string" |
| 706 } |
| 707 }, |
| 708 "type": "object" |
| 709 }, |
| 710 "Logging": { |
| 711 "description": "Logging configuration of the service.\n\nThe followi
ng example shows how to configure logs to be sent to the\nproducer and consumer
projects. In the example, the `activity_history`\nlog is sent to both the produc
er and consumer projects, whereas the\n`purchase_history` log is only sent to th
e producer project.\n\n monitored_resources:\n - type: library.googleapis.
com/branch\n labels:\n - key: /city\n description: The city whe
re the library branch is located in.\n - key: /name\n description: T
he name of the branch.\n logs:\n - name: activity_history\n labels:\n
- key: /customer_id\n - name: purchase_history\n logging:\n pro
ducer_destinations:\n - monitored_resource: library.googleapis.com/branch\n
logs:\n - activity_history\n - purchase_history\n con
sumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n
logs:\n - activity_history", |
| 712 "id": "Logging", |
| 713 "properties": { |
| 714 "consumerDestinations": { |
| 715 "description": "Logging configurations for sending logs to t
he consumer project.\nThere can be multiple consumer destinations, each one must
have a\ndifferent monitored resource type. A log can be used in at most\none co
nsumer destination.", |
| 716 "items": { |
| 717 "$ref": "LoggingDestination" |
| 718 }, |
| 719 "type": "array" |
| 720 }, |
| 721 "producerDestinations": { |
| 722 "description": "Logging configurations for sending logs to t
he producer project.\nThere can be multiple producer destinations, each one must
have a\ndifferent monitored resource type. A log can be used in at most\none pr
oducer destination.", |
| 723 "items": { |
| 724 "$ref": "LoggingDestination" |
| 725 }, |
| 726 "type": "array" |
| 727 } |
| 728 }, |
| 729 "type": "object" |
| 730 }, |
| 731 "Method": { |
| 732 "description": "Method represents a method of an api.", |
| 733 "id": "Method", |
| 734 "properties": { |
| 735 "syntax": { |
| 736 "description": "The source syntax of this method.", |
| 737 "enum": [ |
| 738 "SYNTAX_PROTO2", |
| 739 "SYNTAX_PROTO3" |
| 740 ], |
| 741 "enumDescriptions": [ |
| 742 "Syntax `proto2`.", |
| 743 "Syntax `proto3`." |
| 744 ], |
| 745 "type": "string" |
| 746 }, |
| 747 "responseTypeUrl": { |
| 748 "description": "The URL of the output message type.", |
| 749 "type": "string" |
| 750 }, |
| 751 "options": { |
| 752 "description": "Any metadata attached to the method.", |
| 753 "items": { |
| 754 "$ref": "Option" |
| 755 }, |
| 756 "type": "array" |
| 757 }, |
| 758 "responseStreaming": { |
| 759 "description": "If true, the response is streamed.", |
| 760 "type": "boolean" |
| 761 }, |
| 762 "name": { |
| 763 "description": "The simple name of this method.", |
| 764 "type": "string" |
| 765 }, |
| 766 "requestTypeUrl": { |
| 767 "description": "A URL of the input message type.", |
| 768 "type": "string" |
| 769 }, |
| 770 "requestStreaming": { |
| 771 "description": "If true, the request is streamed.", |
| 772 "type": "boolean" |
| 773 } |
| 774 }, |
| 775 "type": "object" |
| 776 }, |
| 777 "Mixin": { |
| 778 "description": "Declares an API to be included in this API. The incl
uding API must\nredeclare all the methods from the included API, but documentati
on\nand options are inherited as follows:\n\n- If after comment and whitespace s
tripping, the documentation\n string of the redeclared method is empty, it will
be inherited\n from the original method.\n\n- Each annotation belonging to the
service config (http,\n visibility) which is not set in the redeclared method
will be\n inherited.\n\n- If an http annotation is inherited, the path pattern
will be\n modified as follows. Any version prefix will be replaced by the\n ve
rsion of the including API plus the root path if specified.\n\nExample of a simp
le mixin:\n\n package google.acl.v1;\n service AccessControl {\n // G
et the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n
option (google.api.http).get = \"/v1/{resource=**}:getAcl\";\n }\n
}\n\n package google.storage.v2;\n service Storage {\n // rp
c GetAcl(GetAclRequest) returns (Acl);\n\n // Get a data record.\n rpc
GetData(GetDataRequest) returns (Data) {\n option (google.api.http).get
= \"/v2/{resource=**}\";\n }\n }\n\nExample of a mixin configuration:\n\
n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name:
google.acl.v1.AccessControl\n\nThe mixin construct implies that all methods in `
AccessControl` are\nalso declared with same name and request/response types in\n
`Storage`. A documentation generator or annotation processor will\nsee the effec
tive `Storage.GetAcl` method after inherting\ndocumentation and annotations as f
ollows:\n\n service Storage {\n // Get the underlying ACL object.\n
rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get
= \"/v2/{resource=**}:getAcl\";\n }\n ...\n }\n\nNote how the vers
ion in the path pattern changed from `v1` to `v2`.\n\nIf the `root` field in the
mixin is specified, it should be a\nrelative path under which inherited HTTP pa
ths are placed. Example:\n\n apis:\n - name: google.storage.v2.Storage\n
mixins:\n - name: google.acl.v1.AccessControl\n root: acls\n\nTh
is implies the following inherited HTTP annotation:\n\n service Storage {\n
// Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (
Acl) {\n option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"
;\n }\n ...\n }", |
| 779 "id": "Mixin", |
| 780 "properties": { |
| 781 "name": { |
| 782 "description": "The fully qualified name of the API which is
included.", |
| 783 "type": "string" |
| 784 }, |
| 785 "root": { |
| 786 "description": "If non-empty specifies a path under which in
herited HTTP paths\nare rooted.", |
| 787 "type": "string" |
| 788 } |
| 789 }, |
| 790 "type": "object" |
| 791 }, |
| 792 "CustomError": { |
| 793 "description": "Customize service error responses. For example, lis
t any service\nspecific protobuf types that can appear in error detail lists of\
nerror responses.\n\nExample:\n\n custom_error:\n types:\n - google
.foo.v1.CustomError\n - google.foo.v1.AnotherError", |
| 794 "id": "CustomError", |
| 795 "properties": { |
| 796 "rules": { |
| 797 "description": "The list of custom error rules that apply to
individual API messages.\n\n**NOTE:** All service configuration rules follow \"
last one wins\" order.", |
| 798 "items": { |
| 799 "$ref": "CustomErrorRule" |
| 800 }, |
| 801 "type": "array" |
| 802 }, |
| 803 "types": { |
| 804 "description": "The list of custom error detail types, e.g.
'google.foo.v1.CustomError'.", |
| 805 "items": { |
| 806 "type": "string" |
| 807 }, |
| 808 "type": "array" |
| 809 } |
| 810 }, |
| 811 "type": "object" |
| 812 }, |
| 813 "Http": { |
| 814 "description": "Defines the HTTP configuration for a service. It con
tains a list of\nHttpRule, each specifying the mapping of an RPC method\nto one
or more HTTP REST API methods.", |
| 815 "id": "Http", |
| 816 "properties": { |
| 817 "rules": { |
| 818 "description": "A list of HTTP configuration rules that appl
y to individual API methods.\n\n**NOTE:** All service configuration rules follow
\"last one wins\" order.", |
| 819 "items": { |
| 820 "$ref": "HttpRule" |
| 821 }, |
| 822 "type": "array" |
| 823 } |
| 824 }, |
| 825 "type": "object" |
| 826 }, |
| 827 "Control": { |
| 828 "description": "Selects and configures the service controller used b
y the service. The\nservice controller handles features like abuse, quota, bill
ing, logging,\nmonitoring, etc.", |
| 829 "id": "Control", |
| 830 "properties": { |
| 831 "environment": { |
| 832 "description": "The service control environment to use. If e
mpty, no control plane\nfeature (like quota and billing) will be enabled.", |
| 833 "type": "string" |
| 834 } |
| 835 }, |
| 836 "type": "object" |
| 837 }, |
| 838 "SystemParameter": { |
| 839 "description": "Define a parameter's name and location. The paramete
r may be passed as either\nan HTTP header or a URL query parameter, and if both
are passed the behavior\nis implementation-dependent.", |
| 840 "id": "SystemParameter", |
| 841 "properties": { |
| 842 "urlQueryParameter": { |
| 843 "description": "Define the URL query parameter name to use f
or the parameter. It is case\nsensitive.", |
| 844 "type": "string" |
| 845 }, |
| 846 "httpHeader": { |
| 847 "description": "Define the HTTP header name to use for the p
arameter. It is case\ninsensitive.", |
| 848 "type": "string" |
| 849 }, |
| 850 "name": { |
| 851 "description": "Define the name of the parameter, such as \"
api_key\" . It is case sensitive.", |
| 852 "type": "string" |
| 853 } |
| 854 }, |
| 855 "type": "object" |
| 856 }, |
| 857 "Field": { |
| 858 "description": "A single field of a message type.", |
| 859 "id": "Field", |
| 860 "properties": { |
| 861 "oneofIndex": { |
| 862 "description": "The index of the field type in `Type.oneofs`
, for message or enumeration\ntypes. The first type has index 1; zero means the
type is not in the list.", |
| 863 "format": "int32", |
| 864 "type": "integer" |
| 865 }, |
| 866 "cardinality": { |
| 867 "description": "The field cardinality.", |
| 868 "enum": [ |
| 869 "CARDINALITY_UNKNOWN", |
| 870 "CARDINALITY_OPTIONAL", |
| 871 "CARDINALITY_REQUIRED", |
| 872 "CARDINALITY_REPEATED" |
| 873 ], |
| 874 "enumDescriptions": [ |
| 875 "For fields with unknown cardinality.", |
| 876 "For optional fields.", |
| 877 "For required fields. Proto2 syntax only.", |
| 878 "For repeated fields." |
| 879 ], |
| 880 "type": "string" |
| 881 }, |
| 882 "packed": { |
| 883 "description": "Whether to use alternative packed wire repre
sentation.", |
| 884 "type": "boolean" |
| 885 }, |
| 886 "defaultValue": { |
| 887 "description": "The string value of the default value of thi
s field. Proto2 syntax only.", |
| 888 "type": "string" |
| 889 }, |
| 890 "name": { |
| 891 "description": "The field name.", |
| 892 "type": "string" |
| 893 }, |
| 894 "typeUrl": { |
| 895 "description": "The field type URL, without the scheme, for
message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.T
imestamp\"`.", |
| 896 "type": "string" |
| 897 }, |
| 898 "number": { |
| 899 "description": "The field number.", |
| 900 "format": "int32", |
| 901 "type": "integer" |
| 902 }, |
| 903 "jsonName": { |
| 904 "description": "The field JSON name.", |
| 905 "type": "string" |
| 906 }, |
| 907 "kind": { |
| 908 "description": "The field type.", |
| 909 "enum": [ |
| 910 "TYPE_UNKNOWN", |
| 911 "TYPE_DOUBLE", |
| 912 "TYPE_FLOAT", |
| 913 "TYPE_INT64", |
| 914 "TYPE_UINT64", |
| 915 "TYPE_INT32", |
| 916 "TYPE_FIXED64", |
| 917 "TYPE_FIXED32", |
| 918 "TYPE_BOOL", |
| 919 "TYPE_STRING", |
| 920 "TYPE_GROUP", |
| 921 "TYPE_MESSAGE", |
| 922 "TYPE_BYTES", |
| 923 "TYPE_UINT32", |
| 924 "TYPE_ENUM", |
| 925 "TYPE_SFIXED32", |
| 926 "TYPE_SFIXED64", |
| 927 "TYPE_SINT32", |
| 928 "TYPE_SINT64" |
| 929 ], |
| 930 "enumDescriptions": [ |
| 931 "Field type unknown.", |
| 932 "Field type double.", |
| 933 "Field type float.", |
| 934 "Field type int64.", |
| 935 "Field type uint64.", |
| 936 "Field type int32.", |
| 937 "Field type fixed64.", |
| 938 "Field type fixed32.", |
| 939 "Field type bool.", |
| 940 "Field type string.", |
| 941 "Field type group. Proto2 syntax only, and deprecated.", |
| 942 "Field type message.", |
| 943 "Field type bytes.", |
| 944 "Field type uint32.", |
| 945 "Field type enum.", |
| 946 "Field type sfixed32.", |
| 947 "Field type sfixed64.", |
| 948 "Field type sint32.", |
| 949 "Field type sint64." |
| 950 ], |
| 951 "type": "string" |
| 952 }, |
| 953 "options": { |
| 954 "description": "The protocol buffer options.", |
| 955 "items": { |
| 956 "$ref": "Option" |
| 957 }, |
| 958 "type": "array" |
| 959 } |
| 960 }, |
| 961 "type": "object" |
| 962 }, |
| 963 "Monitoring": { |
| 964 "description": "Monitoring configuration of the service.\n\nThe exam
ple below shows how to configure monitored resources and metrics\nfor monitoring
. In the example, a monitored resource and two metrics are\ndefined. The `librar
y.googleapis.com/book/returned_count` metric is sent\nto both producer and consu
mer projects, whereas the\n`library.googleapis.com/book/overdue_count` metric is
only sent to the\nconsumer project.\n\n monitored_resources:\n - type: li
brary.googleapis.com/branch\n labels:\n - key: /city\n descript
ion: The city where the library branch is located in.\n - key: /name\n
description: The name of the branch.\n metrics:\n - name: library.googl
eapis.com/book/returned_count\n metric_kind: DELTA\n value_type: INT64
\n labels:\n - key: /customer_id\n - name: library.googleapis.com/b
ook/overdue_count\n metric_kind: GAUGE\n value_type: INT64\n labe
ls:\n - key: /customer_id\n monitoring:\n producer_destinations:\n
- monitored_resource: library.googleapis.com/branch\n metrics:\n
- library.googleapis.com/book/returned_count\n consumer_destinations:\n
- monitored_resource: library.googleapis.com/branch\n metrics:\n
- library.googleapis.com/book/returned_count\n - library.googleapis.
com/book/overdue_count", |
| 965 "id": "Monitoring", |
| 966 "properties": { |
| 967 "consumerDestinations": { |
| 968 "description": "Monitoring configurations for sending metric
s to the consumer project.\nThere can be multiple consumer destinations, each on
e must have a\ndifferent monitored resource type. A metric can be used in at mos
t\none consumer destination.", |
| 969 "items": { |
| 970 "$ref": "MonitoringDestination" |
| 971 }, |
| 972 "type": "array" |
| 973 }, |
| 974 "producerDestinations": { |
| 975 "description": "Monitoring configurations for sending metric
s to the producer project.\nThere can be multiple producer destinations, each on
e must have a\ndifferent monitored resource type. A metric can be used in at mos
t\none producer destination.", |
| 976 "items": { |
| 977 "$ref": "MonitoringDestination" |
| 978 }, |
| 979 "type": "array" |
| 980 } |
| 981 }, |
| 982 "type": "object" |
| 983 }, |
| 984 "Enum": { |
| 985 "description": "Enum type definition.", |
| 986 "id": "Enum", |
| 987 "properties": { |
| 988 "name": { |
| 989 "description": "Enum type name.", |
| 990 "type": "string" |
| 991 }, |
| 992 "enumvalue": { |
| 993 "description": "Enum value definitions.", |
| 994 "items": { |
| 995 "$ref": "EnumValue" |
| 996 }, |
| 997 "type": "array" |
| 998 }, |
| 999 "options": { |
| 1000 "description": "Protocol buffer options.", |
| 1001 "items": { |
| 1002 "$ref": "Option" |
| 1003 }, |
| 1004 "type": "array" |
| 1005 }, |
| 1006 "sourceContext": { |
| 1007 "$ref": "SourceContext", |
| 1008 "description": "The source context." |
| 1009 }, |
| 1010 "syntax": { |
| 1011 "description": "The source syntax.", |
| 1012 "enum": [ |
| 1013 "SYNTAX_PROTO2", |
| 1014 "SYNTAX_PROTO3" |
| 1015 ], |
| 1016 "enumDescriptions": [ |
| 1017 "Syntax `proto2`.", |
| 1018 "Syntax `proto3`." |
| 1019 ], |
| 1020 "type": "string" |
| 1021 } |
| 1022 }, |
| 1023 "type": "object" |
| 1024 }, |
| 1025 "EnableServiceRequest": { |
| 1026 "description": "Request message for EnableService method.", |
| 1027 "id": "EnableServiceRequest", |
| 1028 "properties": {}, |
| 1029 "type": "object" |
| 1030 }, |
| 1031 "LabelDescriptor": { |
| 1032 "description": "A description of a label.", |
| 1033 "id": "LabelDescriptor", |
| 1034 "properties": { |
| 1035 "key": { |
| 1036 "description": "The label key.", |
| 1037 "type": "string" |
| 1038 }, |
| 1039 "description": { |
| 1040 "description": "A human-readable description for the label."
, |
| 1041 "type": "string" |
| 1042 }, |
| 1043 "valueType": { |
| 1044 "description": "The type of data that can be assigned to the
label.", |
| 1045 "enum": [ |
| 1046 "STRING", |
| 1047 "BOOL", |
| 1048 "INT64" |
| 1049 ], |
| 1050 "enumDescriptions": [ |
| 1051 "A variable-length string. This is the default.", |
| 1052 "Boolean; true or false.", |
| 1053 "A 64-bit signed integer." |
| 1054 ], |
| 1055 "type": "string" |
| 1056 } |
| 1057 }, |
| 1058 "type": "object" |
| 1059 }, |
| 1060 "Type": { |
| 1061 "description": "A protocol buffer message type.", |
| 1062 "id": "Type", |
| 1063 "properties": { |
| 1064 "options": { |
| 1065 "description": "The protocol buffer options.", |
| 1066 "items": { |
| 1067 "$ref": "Option" |
| 1068 }, |
| 1069 "type": "array" |
| 1070 }, |
| 1071 "fields": { |
| 1072 "description": "The list of fields.", |
| 1073 "items": { |
| 1074 "$ref": "Field" |
| 1075 }, |
| 1076 "type": "array" |
| 1077 }, |
| 1078 "name": { |
| 1079 "description": "The fully qualified message name.", |
| 1080 "type": "string" |
| 1081 }, |
| 1082 "oneofs": { |
| 1083 "description": "The list of types appearing in `oneof` defin
itions in this type.", |
| 1084 "items": { |
| 1085 "type": "string" |
| 1086 }, |
| 1087 "type": "array" |
| 1088 }, |
| 1089 "syntax": { |
| 1090 "description": "The source syntax.", |
| 1091 "enum": [ |
| 1092 "SYNTAX_PROTO2", |
| 1093 "SYNTAX_PROTO3" |
| 1094 ], |
| 1095 "enumDescriptions": [ |
| 1096 "Syntax `proto2`.", |
| 1097 "Syntax `proto3`." |
| 1098 ], |
| 1099 "type": "string" |
| 1100 }, |
| 1101 "sourceContext": { |
| 1102 "$ref": "SourceContext", |
| 1103 "description": "The source context." |
| 1104 } |
| 1105 }, |
| 1106 "type": "object" |
| 1107 }, |
| 1108 "Backend": { |
| 1109 "description": "`Backend` defines the backend configuration for a se
rvice.", |
| 1110 "id": "Backend", |
| 1111 "properties": { |
| 1112 "rules": { |
| 1113 "description": "A list of API backend rules that apply to in
dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", |
| 1114 "items": { |
| 1115 "$ref": "BackendRule" |
| 1116 }, |
| 1117 "type": "array" |
| 1118 } |
| 1119 }, |
| 1120 "type": "object" |
| 1121 }, |
| 1122 "DocumentationRule": { |
| 1123 "description": "A documentation rule provides information about indi
vidual API elements.", |
| 1124 "id": "DocumentationRule", |
| 1125 "properties": { |
| 1126 "deprecationDescription": { |
| 1127 "description": "Deprecation description of the selected elem
ent(s). It can be provided if an\nelement is marked as `deprecated`.", |
| 1128 "type": "string" |
| 1129 }, |
| 1130 "selector": { |
| 1131 "description": "The selector is a comma-separated list of pa
tterns. Each pattern is a\nqualified name of the element which may end in \"*\",
indicating a wildcard.\nWildcards are only allowed at the end and for a whole c
omponent of the\nqualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"f
oo.*.bar\". To\nspecify a default for all applicable elements, the whole pattern
\"*\"\nis used.", |
| 1132 "type": "string" |
| 1133 }, |
| 1134 "description": { |
| 1135 "description": "Description of the selected API(s).", |
| 1136 "type": "string" |
| 1137 } |
| 1138 }, |
| 1139 "type": "object" |
| 1140 }, |
| 1141 "ContextRule": { |
| 1142 "description": "A context rule provides information about the contex
t for an individual API\nelement.", |
| 1143 "id": "ContextRule", |
| 1144 "properties": { |
| 1145 "provided": { |
| 1146 "description": "A list of full type names of provided contex
ts.", |
| 1147 "items": { |
| 1148 "type": "string" |
| 1149 }, |
| 1150 "type": "array" |
| 1151 }, |
| 1152 "requested": { |
| 1153 "description": "A list of full type names of requested conte
xts.", |
| 1154 "items": { |
| 1155 "type": "string" |
| 1156 }, |
| 1157 "type": "array" |
| 1158 }, |
| 1159 "selector": { |
| 1160 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
| 1161 "type": "string" |
| 1162 } |
| 1163 }, |
| 1164 "type": "object" |
| 1165 }, |
| 1166 "MetricDescriptor": { |
| 1167 "description": "Defines a metric type and its schema. Once a metric
descriptor is created,\ndeleting or altering it stops data collection and makes
the metric type's\nexisting data unusable.", |
| 1168 "id": "MetricDescriptor", |
| 1169 "properties": { |
| 1170 "metricKind": { |
| 1171 "description": "Whether the metric records instantaneous val
ues, changes to a value, etc.\nSome combinations of `metric_kind` and `value_typ
e` might not be supported.", |
| 1172 "enum": [ |
| 1173 "METRIC_KIND_UNSPECIFIED", |
| 1174 "GAUGE", |
| 1175 "DELTA", |
| 1176 "CUMULATIVE" |
| 1177 ], |
| 1178 "enumDescriptions": [ |
| 1179 "Do not use this default value.", |
| 1180 "An instantaneous measurement of a value.", |
| 1181 "The change in a value during a time interval.", |
| 1182 "A value accumulated over a time interval. Cumulative\n
measurements in a time series should have the same start time\nand increasing en
d times, until an event resets the cumulative\nvalue to zero and sets a new star
t time for the following\npoints." |
| 1183 ], |
| 1184 "type": "string" |
| 1185 }, |
| 1186 "displayName": { |
| 1187 "description": "A concise name for the metric, which can be
displayed in user interfaces.\nUse sentence case without an ending period, for e
xample \"Request count\".", |
| 1188 "type": "string" |
| 1189 }, |
| 1190 "description": { |
| 1191 "description": "A detailed description of the metric, which
can be used in documentation.", |
| 1192 "type": "string" |
| 1193 }, |
| 1194 "unit": { |
| 1195 "description": "The unit in which the metric value is report
ed. It is only applicable\nif the `value_type` is `INT64`, `DOUBLE`, or `DISTRIB
UTION`. The\nsupported units are a subset of [The Unified Code for Units of\nMea
sure](http://unitsofmeasure.org/ucum.html) standard:\n\n**Basic units (UNIT)**\n
\n* `bit` bit\n* `By` byte\n* `s` second\n* `min` minute\n* `h` h
our\n* `d` day\n\n**Prefixes (PREFIX)**\n\n* `k` kilo (10**3)\n* `M`
mega (10**6)\n* `G` giga (10**9)\n* `T` tera (10**12)\n* `P
` peta (10**15)\n* `E` exa (10**18)\n* `Z` zetta (10**21)\n
* `Y` yotta (10**24)\n* `m` milli (10**-3)\n* `u` micro (10**-
6)\n* `n` nano (10**-9)\n* `p` pico (10**-12)\n* `f` femto (
10**-15)\n* `a` atto (10**-18)\n* `z` zepto (10**-21)\n* `y` yo
cto (10**-24)\n* `Ki` kibi (2**10)\n* `Mi` mebi (2**20)\n* `Gi`
gibi (2**30)\n* `Ti` tebi (2**40)\n\n**Grammar**\n\nThe grammar includ
es the dimensionless unit `1`, such as `1/s`.\n\nThe grammar also includes these
connectors:\n\n* `/` division (as an infix operator, e.g. `1/s`).\n* `.`
multiplication (as an infix operator, e.g. `GBy.d`)\n\nThe grammar for a unit is
as follows:\n\n Expression = Component { \".\" Component } { \"/\" Component
} ;\n\n Component = [ PREFIX ] UNIT [ Annotation ]\n | Annotati
on\n | \"1\"\n ;\n\n Annotation = \"{\" NAME \"}\"
;\n\nNotes:\n\n* `Annotation` is just a comment if it follows a `UNIT` and is\n
equivalent to `1` if it is used alone. For examples,\n `{requests}/s == 1/s`
, `By{transmitted}/s == By/s`.\n* `NAME` is a sequence of non-blank printable AS
CII characters not\n containing '{' or '}'.", |
| 1196 "type": "string" |
| 1197 }, |
| 1198 "labels": { |
| 1199 "description": "The set of labels that can be used to descri
be a specific\ninstance of this metric type. For example, the\n`appengine.google
apis.com/http/server/response_latencies` metric\ntype has a label for the HTTP r
esponse code, `response_code`, so\nyou can look at latencies for successful resp
onses or just\nfor responses that failed.", |
| 1200 "items": { |
| 1201 "$ref": "LabelDescriptor" |
| 1202 }, |
| 1203 "type": "array" |
| 1204 }, |
| 1205 "name": { |
| 1206 "description": "The resource name of the metric descriptor.
Depending on the\nimplementation, the name typically includes: (1) the parent re
source name\nthat defines the scope of the metric type or of its data; and (2) t
he\nmetric's URL-encoded type, which also appears in the `type` field of this\nd
escriptor. For example, following is the resource name of a custom\nmetric withi
n the GCP project `my-project-id`:\n\n \"projects/my-project-id/metricDescrip
tors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"", |
| 1207 "type": "string" |
| 1208 }, |
| 1209 "type": { |
| 1210 "description": "The metric type, including its DNS name pref
ix. The type is not\nURL-encoded. All user-defined custom metric types have the
DNS name\n`custom.googleapis.com`. Metric types should use a natural hierarchi
cal\ngrouping. For example:\n\n \"custom.googleapis.com/invoice/paid/amount\"
\n \"appengine.googleapis.com/http/server/response_latencies\"", |
| 1211 "type": "string" |
| 1212 }, |
| 1213 "valueType": { |
| 1214 "description": "Whether the measurement is an integer, a flo
ating-point number, etc.\nSome combinations of `metric_kind` and `value_type` mi
ght not be supported.", |
| 1215 "enum": [ |
| 1216 "VALUE_TYPE_UNSPECIFIED", |
| 1217 "BOOL", |
| 1218 "INT64", |
| 1219 "DOUBLE", |
| 1220 "STRING", |
| 1221 "DISTRIBUTION", |
| 1222 "MONEY" |
| 1223 ], |
| 1224 "enumDescriptions": [ |
| 1225 "Do not use this default value.", |
| 1226 "The value is a boolean.\nThis value type can be used on
ly if the metric kind is `GAUGE`.", |
| 1227 "The value is a signed 64-bit integer.", |
| 1228 "The value is a double precision floating point number."
, |
| 1229 "The value is a text string.\nThis value type can be use
d only if the metric kind is `GAUGE`.", |
| 1230 "The value is a `Distribution`.", |
| 1231 "The value is money." |
| 1232 ], |
| 1233 "type": "string" |
| 1234 } |
| 1235 }, |
| 1236 "type": "object" |
| 1237 }, |
| 1238 "SourceContext": { |
| 1239 "description": "`SourceContext` represents information about the sou
rce of a\nprotobuf element, like the file in which it is defined.", |
| 1240 "id": "SourceContext", |
| 1241 "properties": { |
| 1242 "fileName": { |
| 1243 "description": "The path-qualified name of the .proto file t
hat contained the associated\nprotobuf element. For example: `\"google/protobuf
/source_context.proto\"`.", |
| 1244 "type": "string" |
| 1245 } |
| 1246 }, |
| 1247 "type": "object" |
| 1248 }, |
| 1249 "Endpoint": { |
| 1250 "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 monitorin
g\nconfiguration.\n\nExample service configuration:\n\n name: library-example
.googleapis.com\n endpoints:\n # Below entry makes 'google.example.libra
ry.v1.Library'\n # API be served from endpoint address library-example.goog
leapis.com.\n # It also allows HTTP OPTIONS calls to be passed to the backe
nd, for\n # it to decide whether the subsequent cross-origin request is\n
# allowed to proceed.\n - name: library-example.googleapis.com\n all
ow_cors: true", |
| 1251 "id": "Endpoint", |
| 1252 "properties": { |
| 1253 "apis": { |
| 1254 "description": "The list of APIs served by this endpoint.", |
| 1255 "items": { |
| 1256 "type": "string" |
| 1257 }, |
| 1258 "type": "array" |
| 1259 }, |
| 1260 "aliases": { |
| 1261 "description": "DEPRECATED: This field is no longer supporte
d. Instead of using aliases,\nplease specify multiple google.api.Endpoint for ea
ch of the intented\nalias.\n\nAdditional names that this endpoint will be hosted
on.", |
| 1262 "items": { |
| 1263 "type": "string" |
| 1264 }, |
| 1265 "type": "array" |
| 1266 }, |
| 1267 "features": { |
| 1268 "description": "The list of features enabled on this endpoin
t.", |
| 1269 "items": { |
| 1270 "type": "string" |
| 1271 }, |
| 1272 "type": "array" |
| 1273 }, |
| 1274 "allowCors": { |
| 1275 "description": "Allowing\n[CORS](https://en.wikipedia.org/wi
ki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the ba
ckends served from this endpoint to\nreceive and respond to HTTP OPTIONS request
s. The response will be used by\nthe browser to determine whether the subsequent
cross-origin request is\nallowed to proceed.", |
| 1276 "type": "boolean" |
| 1277 }, |
| 1278 "name": { |
| 1279 "description": "The canonical name of this endpoint.", |
| 1280 "type": "string" |
| 1281 } |
| 1282 }, |
| 1283 "type": "object" |
| 1284 }, |
| 1285 "ListEnabledServicesResponse": { |
| 1286 "description": "Response message for `ListEnabledServices` method.", |
| 1287 "id": "ListEnabledServicesResponse", |
| 1288 "properties": { |
| 1289 "services": { |
| 1290 "description": "Services enabled for the specified parent.", |
| 1291 "items": { |
| 1292 "$ref": "EnabledService" |
| 1293 }, |
| 1294 "type": "array" |
| 1295 }, |
| 1296 "nextPageToken": { |
| 1297 "description": "Token that can be passed to `ListEnabledServ
ices` to resume a paginated\nquery.", |
| 1298 "type": "string" |
| 1299 } |
| 1300 }, |
| 1301 "type": "object" |
| 1302 }, |
| 1303 "OAuthRequirements": { |
| 1304 "description": "OAuth scopes are a way to define data and permission
s on data. For example,\nthere are scopes defined for \"Read-only access to Goog
le Calendar\" and\n\"Access to Cloud Platform\". Users can consent to a scope fo
r an application,\ngiving it permission to access that data on their behalf.\n\n
OAuth scope specifications should be fairly coarse grained; a user will need\nto
see and understand the text description of what your scope means.\n\nIn most ca
ses: use one or at most two OAuth scopes for an entire family of\nproducts. If y
our product has multiple APIs, you should probably be sharing\nthe OAuth scope a
cross all of those APIs.\n\nWhen you need finer grained OAuth consent screens: t
alk with your product\nmanagement about how developers will use them in practice
.\n\nPlease note that even though each of the canonical scopes is enough for a\n
request to be accepted and passed to the backend, a request can still fail\ndue
to the backend requiring additional scopes or permissions.", |
| 1305 "id": "OAuthRequirements", |
| 1306 "properties": { |
| 1307 "canonicalScopes": { |
| 1308 "description": "The list of publicly documented OAuth scopes
that are allowed access. An\nOAuth token containing any of these scopes will be
accepted.\n\nExample:\n\n canonical_scopes: https://www.googleapis.com/auth
/calendar,\n https://www.googleapis.com/auth/calendar.read
", |
| 1309 "type": "string" |
| 1310 } |
| 1311 }, |
| 1312 "type": "object" |
| 1313 }, |
| 1314 "Usage": { |
| 1315 "description": "Configuration controlling usage of a service.", |
| 1316 "id": "Usage", |
| 1317 "properties": { |
| 1318 "producerNotificationChannel": { |
| 1319 "description": "The full resource name of a channel used for
sending notifications to the\nservice producer.\n\nGoogle Service Management cu
rrently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) a
s a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must
be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name fo
rmat\ndocumented in https://cloud.google.com/pubsub/docs/overview.", |
| 1320 "type": "string" |
| 1321 }, |
| 1322 "rules": { |
| 1323 "description": "A list of usage rules that apply to individu
al API methods.\n\n**NOTE:** All service configuration rules follow \"last one w
ins\" order.", |
| 1324 "items": { |
| 1325 "$ref": "UsageRule" |
| 1326 }, |
| 1327 "type": "array" |
| 1328 }, |
| 1329 "requirements": { |
| 1330 "description": "Requirements that must be satisfied before a
consumer project can use the\nservice. Each requirement is of the form <service
.name>/<requirement-id>;\nfor example 'serviceusage.googleapis.com/billing-enabl
ed'.", |
| 1331 "items": { |
| 1332 "type": "string" |
| 1333 }, |
| 1334 "type": "array" |
| 1335 } |
| 1336 }, |
| 1337 "type": "object" |
| 1338 }, |
| 1339 "Context": { |
| 1340 "description": "`Context` defines which contexts an API requests.\n\
nExample:\n\n context:\n rules:\n - selector: \"*\"\n reques
ted:\n - google.rpc.context.ProjectContext\n - google.rpc.context.
OriginContext\n\nThe above specifies that all methods in the API request\n`googl
e.rpc.context.ProjectContext` and\n`google.rpc.context.OriginContext`.\n\nAvaila
ble context types are defined in package\n`google.rpc.context`.", |
| 1341 "id": "Context", |
| 1342 "properties": { |
| 1343 "rules": { |
| 1344 "description": "A list of RPC context rules that apply to in
dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last
one wins\" order.", |
| 1345 "items": { |
| 1346 "$ref": "ContextRule" |
| 1347 }, |
| 1348 "type": "array" |
| 1349 } |
| 1350 }, |
| 1351 "type": "object" |
| 1352 }, |
| 1353 "LogDescriptor": { |
| 1354 "description": "A description of a log type. Example in YAML format:
\n\n - name: library.googleapis.com/activity_history\n description: The
history of borrowing and returning library items.\n display_name: Activity\
n labels:\n - key: /customer_id\n description: Identifier of a
library customer", |
| 1355 "id": "LogDescriptor", |
| 1356 "properties": { |
| 1357 "labels": { |
| 1358 "description": "The set of labels that are available to desc
ribe a specific log entry.\nRuntime requests that contain labels not specified h
ere are\nconsidered invalid.", |
| 1359 "items": { |
| 1360 "$ref": "LabelDescriptor" |
| 1361 }, |
| 1362 "type": "array" |
| 1363 }, |
| 1364 "name": { |
| 1365 "description": "The name of the log. It must be less than 51
2 characters long and can\ninclude the following characters: upper- and lower-ca
se alphanumeric\ncharacters [A-Za-z0-9], and punctuation characters including\ns
lash, underscore, hyphen, period [/_-.].", |
| 1366 "type": "string" |
| 1367 }, |
| 1368 "description": { |
| 1369 "description": "A human-readable description of this log. Th
is information appears in\nthe documentation and can contain details.", |
| 1370 "type": "string" |
| 1371 }, |
| 1372 "displayName": { |
| 1373 "description": "The human-readable name for this log. This i
nformation appears on\nthe user interface and should be concise.", |
| 1374 "type": "string" |
| 1375 } |
| 1376 }, |
| 1377 "type": "object" |
| 1378 }, |
| 1379 "MonitoredResourceDescriptor": { |
| 1380 "description": "An object that describes the schema of a MonitoredRe
source object using a\ntype name and a set of labels. For example, the monitore
d resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"
gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zo
ne\"` to identify particular VM instances.\n\nDifferent APIs can support differe
nt monitored resource types. APIs generally\nprovide a `list` method that return
s the monitored resource descriptors used\nby the API.", |
| 1381 "id": "MonitoredResourceDescriptor", |
| 1382 "properties": { |
| 1383 "name": { |
| 1384 "description": "Optional. The resource name of the monitored
resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{ty
pe}\"` where\n{type} is the value of the `type` field in this object and\n{proje
ct_id} is a project ID that provides API-specific context for\naccessing the typ
e. APIs that do not use project information can use the\nresource name format `
\"monitoredResourceDescriptors/{type}\"`.", |
| 1385 "type": "string" |
| 1386 }, |
| 1387 "displayName": { |
| 1388 "description": "Optional. A concise name for the monitored r
esource type that might be\ndisplayed in user interfaces. It should be a Title C
ased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Go
ogle Cloud SQL Database\"`.", |
| 1389 "type": "string" |
| 1390 }, |
| 1391 "description": { |
| 1392 "description": "Optional. A detailed description of the moni
tored resource type that might\nbe used in documentation.", |
| 1393 "type": "string" |
| 1394 }, |
| 1395 "type": { |
| 1396 "description": "Required. The monitored resource type. For e
xample, the type\n`\"cloudsql_database\"` represents databases in Google Cloud S
QL.\nThe maximum length of this value is 256 characters.", |
| 1397 "type": "string" |
| 1398 }, |
| 1399 "labels": { |
| 1400 "description": "Required. A set of labels used to describe i
nstances of this monitored\nresource type. For example, an individual Google Clo
ud SQL database is\nidentified by values for the labels `\"database_id\"` and `\
"zone\"`.", |
| 1401 "items": { |
| 1402 "$ref": "LabelDescriptor" |
| 1403 }, |
| 1404 "type": "array" |
| 1405 } |
| 1406 }, |
| 1407 "type": "object" |
| 1408 }, |
| 1409 "CustomErrorRule": { |
| 1410 "description": "A custom error rule.", |
| 1411 "id": "CustomErrorRule", |
| 1412 "properties": { |
| 1413 "isErrorType": { |
| 1414 "description": "Mark this message as possible payload in err
or response. Otherwise,\nobjects of this type will be filtered when they appear
in error payload.", |
| 1415 "type": "boolean" |
| 1416 }, |
| 1417 "selector": { |
| 1418 "description": "Selects messages to which this rule applies.
\n\nRefer to selector for syntax details.", |
| 1419 "type": "string" |
| 1420 } |
| 1421 }, |
| 1422 "type": "object" |
| 1423 }, |
| 1424 "MediaDownload": { |
| 1425 "description": "Do not use this. For media support, add instead\n[][
google.bytestream.RestByteStream] as an API to your\nconfiguration.", |
| 1426 "id": "MediaDownload", |
| 1427 "properties": { |
| 1428 "enabled": { |
| 1429 "description": "Whether download is enabled.", |
| 1430 "type": "boolean" |
| 1431 } |
| 1432 }, |
| 1433 "type": "object" |
| 1434 }, |
| 1435 "DisableServiceRequest": { |
| 1436 "description": "Request message for DisableService method.", |
| 1437 "id": "DisableServiceRequest", |
| 1438 "properties": {}, |
| 1439 "type": "object" |
| 1440 }, |
| 1441 "MediaUpload": { |
| 1442 "description": "Do not use this. For media support, add instead\n[][
google.bytestream.RestByteStream] as an API to your\nconfiguration.", |
| 1443 "id": "MediaUpload", |
| 1444 "properties": { |
| 1445 "enabled": { |
| 1446 "description": "Whether upload is enabled.", |
| 1447 "type": "boolean" |
| 1448 } |
| 1449 }, |
| 1450 "type": "object" |
| 1451 }, |
| 1452 "UsageRule": { |
| 1453 "description": "Usage configuration rules for the service.\n\nNOTE:
Under development.\n\n\nUse this rule to configure unregistered calls for the se
rvice. Unregistered\ncalls are calls that do not contain consumer project identi
ty.\n(Example: calls that do not contain an API key).\nBy default, API methods d
o not allow unregistered calls, and each method call\nmust be identified by a co
nsumer project identity. Use this rule to\nallow/disallow unregistered calls.\n\
nExample of an API that wants to allow unregistered calls for entire service.\n\
n usage:\n rules:\n - selector: \"*\"\n allow_unregistered_c
alls: true\n\nExample of a method that wants to allow unregistered calls.\n\n
usage:\n rules:\n - selector: \"google.example.library.v1.LibraryServ
ice.CreateBook\"\n allow_unregistered_calls: true", |
| 1454 "id": "UsageRule", |
| 1455 "properties": { |
| 1456 "selector": { |
| 1457 "description": "Selects the methods to which this rule appli
es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta
x details.", |
| 1458 "type": "string" |
| 1459 }, |
| 1460 "allowUnregisteredCalls": { |
| 1461 "description": "True, if the method allows unregistered call
s; false otherwise.", |
| 1462 "type": "boolean" |
| 1463 } |
| 1464 }, |
| 1465 "type": "object" |
| 1466 }, |
| 1467 "AuthRequirement": { |
| 1468 "description": "User-defined authentication requirements, including
support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth
-json-web-token-32).", |
| 1469 "id": "AuthRequirement", |
| 1470 "properties": { |
| 1471 "providerId": { |
| 1472 "description": "id from authentication provider.\n\nExample:
\n\n provider_id: bookstore_auth", |
| 1473 "type": "string" |
| 1474 }, |
| 1475 "audiences": { |
| 1476 "description": "NOTE: This will be deprecated soon, once Aut
hProvider.audiences is\nimplemented and accepted in all the runtime components.\
n\nThe list of JWT\n[audiences](https://tools.ietf.org/html/draft-ietf-oauth-jso
n-web-token-32#section-4.1.3).\nthat are allowed to access. A JWT containing any
of these audiences will\nbe accepted. When this setting is absent, only JWTs wi
th audience\n\"https://Service_name/API_name\"\nwill be accepted. For example, i
f no audiences are in the setting,\nLibraryService API will only accept JWTs wit
h the following audience\n\"https://library-example.googleapis.com/google.exampl
e.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.a
pps.googleusercontent.com,\n bookstore_web.apps.googleusercontent.
com", |
| 1477 "type": "string" |
| 1478 } |
| 1479 }, |
| 1480 "type": "object" |
| 1481 }, |
| 1482 "Documentation": { |
| 1483 "description": "`Documentation` provides the information for describ
ing a service.\n\nExample:\n<pre><code>documentation:\n summary: >\n The Goo
gle Calendar API gives access\n to most calendar features.\n pages:\n - nam
e: Overview\n content: (== include google/foo/overview.md ==)\n - na
me: Tutorial\n content: (== include google/foo/tutorial.md ==)\n s
ubpages;\n - name: Java\n content: (== include google/foo/tutorial_j
ava.md ==)\n rules:\n - selector: google.calendar.Calendar.Get\n descri
ption: >\n ...\n - selector: google.calendar.Calendar.Put\n description
: >\n ...\n</code></pre>\nDocumentation is provided in markdown syntax. In
addition to\nstandard markdown features, definition lists, tables and fenced\nco
de blocks are supported. Section headers can be provided and are\ninterpreted re
lative to the section nesting of the context where\na documentation fragment is
embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvi
a the config at normalization time, where documentation provided\nby config rule
s 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<pre><code>[fully.qualified.proto.nam
e][]</code></pre>\nTo override the display text used for the link, this can
be used:\n<pre><code>[display text][fully.qualified.proto.name]</code></
pre>\nText can be excluded from doc using the following notation:\n<pre><code>&#
40;-- internal comment --)</code></pre>\nComments can be made conditional us
ing a visibility label. The below\ntext will be only rendered if the `BETA` labe
l is available:\n<pre><code>(--BETA: comment for BETA users --)</code></
pre>\nA few directives are available in documentation. Note that\ndirectives mus
t appear on a single line to be properly\nidentified. The `include` directive in
cludes a markdown file from\nan external source:\n<pre><code>(== include pat
h/to/file ==)</code></pre>\nThe `resource_for` directive marks a message to
be the resource of\na collection in REST view. If it is not specified, tools att
empt\nto infer the resource from the operations in a collection:\n<pre><code>
0;== resource_for v1.shelves.books ==)</code></pre>\nThe directive `suppress
_warning` does not directly affect documentation\nand is documented together wit
h service config validation.", |
| 1484 "id": "Documentation", |
| 1485 "properties": { |
| 1486 "pages": { |
| 1487 "description": "The top level pages for the documentation se
t.", |
| 1488 "items": { |
| 1489 "$ref": "Page" |
| 1490 }, |
| 1491 "type": "array" |
| 1492 }, |
| 1493 "summary": { |
| 1494 "description": "A short summary of what the service does. Ca
n only be provided by\nplain text.", |
| 1495 "type": "string" |
| 1496 }, |
| 1497 "documentationRootUrl": { |
| 1498 "description": "The URL to the root of documentation.", |
| 1499 "type": "string" |
| 1500 }, |
| 1501 "rules": { |
| 1502 "description": "A list of documentation rules that apply to
individual API elements.\n\n**NOTE:** All service configuration rules follow \"l
ast one wins\" order.", |
| 1503 "items": { |
| 1504 "$ref": "DocumentationRule" |
| 1505 }, |
| 1506 "type": "array" |
| 1507 }, |
| 1508 "overview": { |
| 1509 "description": "Declares a single overview page. For example
:\n<pre><code>documentation:\n summary: ...\n overview: (== include overvi
ew.md ==)\n</code></pre>\nThis is a shortcut for the following declaration (
using pages style):\n<pre><code>documentation:\n summary: ...\n pages:\n - na
me: Overview\n content: (== include overview.md ==)\n</code></pre>\nN
ote: you cannot specify both `overview` field and `pages` field.", |
| 1510 "type": "string" |
| 1511 } |
| 1512 }, |
| 1513 "type": "object" |
| 1514 }, |
| 1515 "AuthenticationRule": { |
| 1516 "description": "Authentication rules for the service.\n\nBy default,
if a method has any authentication requirements, every request\nmust include a
valid credential matching one of the requirements.\nIt's an error to include mor
e than one kind of credential in a single\nrequest.\n\nIf a method doesn't have
any auth requirements, request credentials will be\nignored.", |
| 1517 "id": "AuthenticationRule", |
| 1518 "properties": { |
| 1519 "requirements": { |
| 1520 "description": "Requirements for additional authentication p
roviders.", |
| 1521 "items": { |
| 1522 "$ref": "AuthRequirement" |
| 1523 }, |
| 1524 "type": "array" |
| 1525 }, |
| 1526 "selector": { |
| 1527 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
| 1528 "type": "string" |
| 1529 }, |
| 1530 "allowWithoutCredential": { |
| 1531 "description": "Whether to allow requests without a credenti
al. The credential can be\nan OAuth token, Google cookies (first-party auth) or
EndUserCreds.\n\nFor requests without credentials, if the service control enviro
nment 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\np
roject.", |
| 1532 "type": "boolean" |
| 1533 }, |
| 1534 "oauth": { |
| 1535 "$ref": "OAuthRequirements", |
| 1536 "description": "The requirements for OAuth credentials." |
| 1537 } |
| 1538 }, |
| 1539 "type": "object" |
| 1540 }, |
| 1541 "BackendRule": { |
| 1542 "description": "A backend rule provides configuration for an individ
ual API element.", |
| 1543 "id": "BackendRule", |
| 1544 "properties": { |
| 1545 "deadline": { |
| 1546 "description": "The number of seconds to wait for a response
from a request. The\ndefault depends on the deployment context.", |
| 1547 "format": "double", |
| 1548 "type": "number" |
| 1549 }, |
| 1550 "address": { |
| 1551 "description": "The address of the API backend.", |
| 1552 "type": "string" |
| 1553 }, |
| 1554 "selector": { |
| 1555 "description": "Selects the methods to which this rule appli
es.\n\nRefer to selector for syntax details.", |
| 1556 "type": "string" |
| 1557 } |
| 1558 }, |
| 1559 "type": "object" |
| 1560 }, |
| 1561 "Api": { |
| 1562 "description": "Api is a light-weight descriptor for a protocol buff
er service.", |
| 1563 "id": "Api", |
| 1564 "properties": { |
| 1565 "methods": { |
| 1566 "description": "The methods of this api, in unspecified orde
r.", |
| 1567 "items": { |
| 1568 "$ref": "Method" |
| 1569 }, |
| 1570 "type": "array" |
| 1571 }, |
| 1572 "name": { |
| 1573 "description": "The fully qualified name of this api, includ
ing package name\nfollowed by the api's simple name.", |
| 1574 "type": "string" |
| 1575 }, |
| 1576 "sourceContext": { |
| 1577 "$ref": "SourceContext", |
| 1578 "description": "Source context for the protocol buffer servi
ce represented by this\nmessage." |
| 1579 }, |
| 1580 "syntax": { |
| 1581 "description": "The source syntax of the service.", |
| 1582 "enum": [ |
| 1583 "SYNTAX_PROTO2", |
| 1584 "SYNTAX_PROTO3" |
| 1585 ], |
| 1586 "enumDescriptions": [ |
| 1587 "Syntax `proto2`.", |
| 1588 "Syntax `proto3`." |
| 1589 ], |
| 1590 "type": "string" |
| 1591 }, |
| 1592 "version": { |
| 1593 "description": "A version string for this api. If specified,
must have the form\n`major-version.minor-version`, as in `1.10`. If the minor v
ersion\nis omitted, it defaults to zero. If the entire version field is\nempty,
the major version is derived from the package name, as\noutlined below. If the f
ield is not empty, the version in the\npackage name will be verified to be consi
stent with what is\nprovided here.\n\nThe versioning schema uses [semantic\nvers
ioning](http://semver.org) where the major version number\nindicates a breaking
change and the minor version an additive,\nnon-breaking change. Both version num
bers are signals to users\nwhat to expect from different versions, and should be
carefully\nchosen based on the product plan.\n\nThe major version is also refle
cted in the package name of the\nAPI, which must end in `v<major-version>`, as i
n\n`google.feature.v1`. For major versions 0 and 1, the suffix can\nbe omitted.
Zero major versions must only be used for\nexperimental, none-GA apis.\n", |
| 1594 "type": "string" |
| 1595 }, |
| 1596 "mixins": { |
| 1597 "description": "Included APIs. See Mixin.", |
| 1598 "items": { |
| 1599 "$ref": "Mixin" |
| 1600 }, |
| 1601 "type": "array" |
| 1602 }, |
| 1603 "options": { |
| 1604 "description": "Any metadata attached to the API.", |
| 1605 "items": { |
| 1606 "$ref": "Option" |
| 1607 }, |
| 1608 "type": "array" |
| 1609 } |
| 1610 }, |
| 1611 "type": "object" |
| 1612 } |
| 1613 }, |
| 1614 "servicePath": "", |
| 1615 "title": "Google Service User API", |
| 1616 "version": "v1" |
| 1617 } |
OLD | NEW |