Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1 | { |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 2 | "auth": { |
| 3 | "oauth2": { |
| 4 | "scopes": { |
| 5 | "https://www.googleapis.com/auth/cloud-platform": { |
| 6 | "description": "See, edit, configure, and delete your Google Cloud Platform data" |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 7 | }, |
| 8 | "https://www.googleapis.com/auth/cloud-platform.read-only": { |
| 9 | "description": "View your data across Google Cloud Platform services" |
| 10 | }, |
| 11 | "https://www.googleapis.com/auth/service.management": { |
| 12 | "description": "Manage your Google API service configuration" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 13 | } |
| 14 | } |
| 15 | } |
| 16 | }, |
| 17 | "basePath": "", |
| 18 | "baseUrl": "https://serviceusage.googleapis.com/", |
| 19 | "batchPath": "batch", |
| 20 | "canonicalName": "Service Usage", |
| 21 | "description": "Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.", |
| 22 | "discoveryVersion": "v1", |
| 23 | "documentationLink": "https://cloud.google.com/service-usage/", |
| 24 | "fullyEncodeReservedExpansion": true, |
| 25 | "icons": { |
| 26 | "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 27 | "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 28 | }, |
| 29 | "id": "serviceusage:v1beta1", |
| 30 | "kind": "discovery#restDescription", |
| 31 | "mtlsRootUrl": "https://serviceusage.mtls.googleapis.com/", |
| 32 | "name": "serviceusage", |
| 33 | "ownerDomain": "google.com", |
| 34 | "ownerName": "Google", |
| 35 | "parameters": { |
| 36 | "$.xgafv": { |
| 37 | "description": "V1 error format.", |
| 38 | "enum": [ |
| 39 | "1", |
| 40 | "2" |
| 41 | ], |
| 42 | "enumDescriptions": [ |
| 43 | "v1 error format", |
| 44 | "v2 error format" |
| 45 | ], |
| 46 | "location": "query", |
| 47 | "type": "string" |
| 48 | }, |
| 49 | "access_token": { |
| 50 | "description": "OAuth access token.", |
| 51 | "location": "query", |
| 52 | "type": "string" |
| 53 | }, |
| 54 | "alt": { |
| 55 | "default": "json", |
| 56 | "description": "Data format for response.", |
| 57 | "enum": [ |
| 58 | "json", |
| 59 | "media", |
| 60 | "proto" |
| 61 | ], |
| 62 | "enumDescriptions": [ |
| 63 | "Responses with Content-Type of application/json", |
| 64 | "Media download with context-dependent Content-Type", |
| 65 | "Responses with Content-Type of application/x-protobuf" |
| 66 | ], |
| 67 | "location": "query", |
| 68 | "type": "string" |
| 69 | }, |
| 70 | "callback": { |
| 71 | "description": "JSONP", |
| 72 | "location": "query", |
| 73 | "type": "string" |
| 74 | }, |
| 75 | "fields": { |
| 76 | "description": "Selector specifying which fields to include in a partial response.", |
| 77 | "location": "query", |
| 78 | "type": "string" |
| 79 | }, |
| 80 | "key": { |
| 81 | "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| 82 | "location": "query", |
| 83 | "type": "string" |
| 84 | }, |
| 85 | "oauth_token": { |
| 86 | "description": "OAuth 2.0 token for the current user.", |
| 87 | "location": "query", |
| 88 | "type": "string" |
| 89 | }, |
| 90 | "prettyPrint": { |
| 91 | "default": "true", |
| 92 | "description": "Returns response with indentations and line breaks.", |
| 93 | "location": "query", |
| 94 | "type": "boolean" |
| 95 | }, |
| 96 | "quotaUser": { |
| 97 | "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| 98 | "location": "query", |
| 99 | "type": "string" |
| 100 | }, |
| 101 | "uploadType": { |
| 102 | "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 103 | "location": "query", |
| 104 | "type": "string" |
| 105 | }, |
| 106 | "upload_protocol": { |
| 107 | "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 108 | "location": "query", |
| 109 | "type": "string" |
| 110 | } |
| 111 | }, |
| 112 | "protocol": "rest", |
| 113 | "resources": { |
| 114 | "operations": { |
| 115 | "methods": { |
| 116 | "get": { |
| 117 | "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", |
| 118 | "flatPath": "v1beta1/operations/{operationsId}", |
| 119 | "httpMethod": "GET", |
| 120 | "id": "serviceusage.operations.get", |
| 121 | "parameterOrder": [ |
| 122 | "name" |
| 123 | ], |
| 124 | "parameters": { |
| 125 | "name": { |
| 126 | "description": "The name of the operation resource.", |
| 127 | "location": "path", |
| 128 | "pattern": "^operations/[^/]+$", |
| 129 | "required": true, |
| 130 | "type": "string" |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 131 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 132 | }, |
| 133 | "path": "v1beta1/{+name}", |
| 134 | "response": { |
| 135 | "$ref": "Operation" |
| 136 | }, |
| 137 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 138 | "https://www.googleapis.com/auth/cloud-platform", |
| 139 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 140 | ] |
| 141 | }, |
| 142 | "list": { |
| 143 | "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", |
| 144 | "flatPath": "v1beta1/operations", |
| 145 | "httpMethod": "GET", |
| 146 | "id": "serviceusage.operations.list", |
| 147 | "parameterOrder": [], |
| 148 | "parameters": { |
| 149 | "filter": { |
| 150 | "description": "The standard list filter.", |
| 151 | "location": "query", |
| 152 | "type": "string" |
| 153 | }, |
| 154 | "name": { |
| 155 | "description": "The name of the operation's parent resource.", |
| 156 | "location": "query", |
| 157 | "type": "string" |
| 158 | }, |
| 159 | "pageSize": { |
| 160 | "description": "The standard list page size.", |
| 161 | "format": "int32", |
| 162 | "location": "query", |
| 163 | "type": "integer" |
| 164 | }, |
| 165 | "pageToken": { |
| 166 | "description": "The standard list page token.", |
| 167 | "location": "query", |
| 168 | "type": "string" |
| 169 | } |
| 170 | }, |
| 171 | "path": "v1beta1/operations", |
| 172 | "response": { |
| 173 | "$ref": "ListOperationsResponse" |
| 174 | }, |
| 175 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 176 | "https://www.googleapis.com/auth/cloud-platform", |
| 177 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 178 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 179 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 180 | } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 181 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 182 | "services": { |
| 183 | "methods": { |
| 184 | "batchEnable": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 185 | "description": "Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation response type: `google.protobuf.Empty`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 186 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services:batchEnable", |
| 187 | "httpMethod": "POST", |
| 188 | "id": "serviceusage.services.batchEnable", |
| 189 | "parameterOrder": [ |
| 190 | "parent" |
| 191 | ], |
| 192 | "parameters": { |
| 193 | "parent": { |
| 194 | "description": "Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.", |
| 195 | "location": "path", |
| 196 | "pattern": "^[^/]+/[^/]+$", |
| 197 | "required": true, |
| 198 | "type": "string" |
| 199 | } |
| 200 | }, |
| 201 | "path": "v1beta1/{+parent}/services:batchEnable", |
| 202 | "request": { |
| 203 | "$ref": "BatchEnableServicesRequest" |
| 204 | }, |
| 205 | "response": { |
| 206 | "$ref": "Operation" |
| 207 | }, |
| 208 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 209 | "https://www.googleapis.com/auth/cloud-platform", |
| 210 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 211 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 212 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 213 | "disable": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 214 | "description": "Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation response type: `google.protobuf.Empty`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 215 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}:disable", |
| 216 | "httpMethod": "POST", |
| 217 | "id": "serviceusage.services.disable", |
| 218 | "parameterOrder": [ |
| 219 | "name" |
| 220 | ], |
| 221 | "parameters": { |
| 222 | "name": { |
| 223 | "description": "Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).", |
| 224 | "location": "path", |
| 225 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 226 | "required": true, |
| 227 | "type": "string" |
| 228 | } |
| 229 | }, |
| 230 | "path": "v1beta1/{+name}:disable", |
| 231 | "request": { |
| 232 | "$ref": "DisableServiceRequest" |
| 233 | }, |
| 234 | "response": { |
| 235 | "$ref": "Operation" |
| 236 | }, |
| 237 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 238 | "https://www.googleapis.com/auth/cloud-platform", |
| 239 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 240 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 241 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 242 | "enable": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 243 | "description": "Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 244 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}:enable", |
| 245 | "httpMethod": "POST", |
| 246 | "id": "serviceusage.services.enable", |
| 247 | "parameterOrder": [ |
| 248 | "name" |
| 249 | ], |
| 250 | "parameters": { |
| 251 | "name": { |
| 252 | "description": "Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).", |
| 253 | "location": "path", |
| 254 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 255 | "required": true, |
| 256 | "type": "string" |
| 257 | } |
| 258 | }, |
| 259 | "path": "v1beta1/{+name}:enable", |
| 260 | "request": { |
| 261 | "$ref": "EnableServiceRequest" |
| 262 | }, |
| 263 | "response": { |
| 264 | "$ref": "Operation" |
| 265 | }, |
| 266 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 267 | "https://www.googleapis.com/auth/cloud-platform", |
| 268 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 269 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 270 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 271 | "generateServiceIdentity": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 272 | "description": "Generates service identity for service.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 273 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}:generateServiceIdentity", |
| 274 | "httpMethod": "POST", |
| 275 | "id": "serviceusage.services.generateServiceIdentity", |
| 276 | "parameterOrder": [ |
| 277 | "parent" |
| 278 | ], |
| 279 | "parameters": { |
| 280 | "parent": { |
| 281 | "description": "Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently only support projects. An example name would be: `projects/123/services/example.googleapis.com` where `123` is the project number.", |
| 282 | "location": "path", |
| 283 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 284 | "required": true, |
| 285 | "type": "string" |
| 286 | } |
| 287 | }, |
| 288 | "path": "v1beta1/{+parent}:generateServiceIdentity", |
| 289 | "response": { |
| 290 | "$ref": "Operation" |
| 291 | }, |
| 292 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 293 | "https://www.googleapis.com/auth/cloud-platform", |
| 294 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 295 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 296 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 297 | "get": { |
| 298 | "description": "Returns the service configuration and enabled state for a given service.", |
| 299 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}", |
| 300 | "httpMethod": "GET", |
| 301 | "id": "serviceusage.services.get", |
| 302 | "parameterOrder": [ |
| 303 | "name" |
| 304 | ], |
| 305 | "parameters": { |
| 306 | "name": { |
| 307 | "description": "Name of the consumer and service to get the `ConsumerState` for. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).", |
| 308 | "location": "path", |
| 309 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 310 | "required": true, |
| 311 | "type": "string" |
| 312 | } |
| 313 | }, |
| 314 | "path": "v1beta1/{+name}", |
| 315 | "response": { |
| 316 | "$ref": "Service" |
| 317 | }, |
| 318 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 319 | "https://www.googleapis.com/auth/cloud-platform", |
| 320 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 321 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 322 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 323 | "list": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 324 | "description": "Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 325 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services", |
| 326 | "httpMethod": "GET", |
| 327 | "id": "serviceusage.services.list", |
| 328 | "parameterOrder": [ |
| 329 | "parent" |
| 330 | ], |
| 331 | "parameters": { |
| 332 | "filter": { |
| 333 | "description": "Only list services that conform to the given filter. The allowed filter strings are `state:ENABLED` and `state:DISABLED`.", |
| 334 | "location": "query", |
| 335 | "type": "string" |
| 336 | }, |
| 337 | "pageSize": { |
| 338 | "description": "Requested size of the next page of data. Requested page size cannot exceed 200. If not set, the default page size is 50.", |
| 339 | "format": "int32", |
| 340 | "location": "query", |
| 341 | "type": "integer" |
| 342 | }, |
| 343 | "pageToken": { |
| 344 | "description": "Token identifying which result to start with, which is returned by a previous list call.", |
| 345 | "location": "query", |
| 346 | "type": "string" |
| 347 | }, |
| 348 | "parent": { |
| 349 | "description": "Parent to search for services on. An example name would be: `projects/123` where `123` is the project number (not project ID).", |
| 350 | "location": "path", |
| 351 | "pattern": "^[^/]+/[^/]+$", |
| 352 | "required": true, |
| 353 | "type": "string" |
| 354 | } |
| 355 | }, |
| 356 | "path": "v1beta1/{+parent}/services", |
| 357 | "response": { |
| 358 | "$ref": "ListServicesResponse" |
| 359 | }, |
| 360 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 361 | "https://www.googleapis.com/auth/cloud-platform", |
| 362 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 363 | ] |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 364 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 365 | }, |
| 366 | "resources": { |
| 367 | "consumerQuotaMetrics": { |
| 368 | "methods": { |
| 369 | "get": { |
| 370 | "description": "Retrieves a summary of quota information for a specific quota metric", |
| 371 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}", |
| 372 | "httpMethod": "GET", |
| 373 | "id": "serviceusage.services.consumerQuotaMetrics.get", |
| 374 | "parameterOrder": [ |
| 375 | "name" |
| 376 | ], |
| 377 | "parameters": { |
| 378 | "name": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 379 | "description": "The resource name of the quota limit. An example name would be: `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 380 | "location": "path", |
| 381 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+$", |
| 382 | "required": true, |
| 383 | "type": "string" |
| 384 | }, |
| 385 | "view": { |
| 386 | "description": "Specifies the level of detail for quota information in the response.", |
| 387 | "enum": [ |
| 388 | "QUOTA_VIEW_UNSPECIFIED", |
| 389 | "BASIC", |
| 390 | "FULL" |
| 391 | ], |
| 392 | "enumDescriptions": [ |
| 393 | "No quota view specified. Requests that do not specify a quota view will typically default to the BASIC view.", |
| 394 | "Only buckets with overrides are shown in the response.", |
| 395 | "Include per-location buckets even if they do not have overrides. When the view is FULL, and a limit has regional or zonal quota, the limit will include buckets for all regions or zones that could support overrides, even if none are currently present. In some cases this will cause the response to become very large; callers that do not need this extra information should use the BASIC view instead." |
| 396 | ], |
| 397 | "location": "query", |
| 398 | "type": "string" |
| 399 | } |
| 400 | }, |
| 401 | "path": "v1beta1/{+name}", |
| 402 | "response": { |
| 403 | "$ref": "ConsumerQuotaMetric" |
| 404 | }, |
| 405 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 406 | "https://www.googleapis.com/auth/cloud-platform", |
| 407 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 408 | ] |
| 409 | }, |
| 410 | "importAdminOverrides": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 411 | "description": "Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 412 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics:importAdminOverrides", |
| 413 | "httpMethod": "POST", |
| 414 | "id": "serviceusage.services.consumerQuotaMetrics.importAdminOverrides", |
| 415 | "parameterOrder": [ |
| 416 | "parent" |
| 417 | ], |
| 418 | "parameters": { |
| 419 | "parent": { |
| 420 | "description": "The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`", |
| 421 | "location": "path", |
| 422 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 423 | "required": true, |
| 424 | "type": "string" |
| 425 | } |
| 426 | }, |
| 427 | "path": "v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides", |
| 428 | "request": { |
| 429 | "$ref": "ImportAdminOverridesRequest" |
| 430 | }, |
| 431 | "response": { |
| 432 | "$ref": "Operation" |
| 433 | }, |
| 434 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 435 | "https://www.googleapis.com/auth/cloud-platform", |
| 436 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 437 | ] |
| 438 | }, |
| 439 | "importConsumerOverrides": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 440 | "description": "Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 441 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics:importConsumerOverrides", |
| 442 | "httpMethod": "POST", |
| 443 | "id": "serviceusage.services.consumerQuotaMetrics.importConsumerOverrides", |
| 444 | "parameterOrder": [ |
| 445 | "parent" |
| 446 | ], |
| 447 | "parameters": { |
| 448 | "parent": { |
| 449 | "description": "The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`", |
| 450 | "location": "path", |
| 451 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 452 | "required": true, |
| 453 | "type": "string" |
| 454 | } |
| 455 | }, |
| 456 | "path": "v1beta1/{+parent}/consumerQuotaMetrics:importConsumerOverrides", |
| 457 | "request": { |
| 458 | "$ref": "ImportConsumerOverridesRequest" |
| 459 | }, |
| 460 | "response": { |
| 461 | "$ref": "Operation" |
| 462 | }, |
| 463 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 464 | "https://www.googleapis.com/auth/cloud-platform", |
| 465 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 466 | ] |
| 467 | }, |
| 468 | "list": { |
| 469 | "description": "Retrieves a summary of all quota information visible to the service consumer, organized by service metric. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.", |
| 470 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics", |
| 471 | "httpMethod": "GET", |
| 472 | "id": "serviceusage.services.consumerQuotaMetrics.list", |
| 473 | "parameterOrder": [ |
| 474 | "parent" |
| 475 | ], |
| 476 | "parameters": { |
| 477 | "pageSize": { |
| 478 | "description": "Requested size of the next page of data.", |
| 479 | "format": "int32", |
| 480 | "location": "query", |
| 481 | "type": "integer" |
| 482 | }, |
| 483 | "pageToken": { |
| 484 | "description": "Token identifying which result to start with; returned by a previous list call.", |
| 485 | "location": "query", |
| 486 | "type": "string" |
| 487 | }, |
| 488 | "parent": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 489 | "description": "Parent of the quotas resource. Some example names would be: `projects/123/services/serviceconsumermanagement.googleapis.com` `folders/345/services/serviceconsumermanagement.googleapis.com` `organizations/456/services/serviceconsumermanagement.googleapis.com`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 490 | "location": "path", |
| 491 | "pattern": "^[^/]+/[^/]+/services/[^/]+$", |
| 492 | "required": true, |
| 493 | "type": "string" |
| 494 | }, |
| 495 | "view": { |
| 496 | "description": "Specifies the level of detail for quota information in the response.", |
| 497 | "enum": [ |
| 498 | "QUOTA_VIEW_UNSPECIFIED", |
| 499 | "BASIC", |
| 500 | "FULL" |
| 501 | ], |
| 502 | "enumDescriptions": [ |
| 503 | "No quota view specified. Requests that do not specify a quota view will typically default to the BASIC view.", |
| 504 | "Only buckets with overrides are shown in the response.", |
| 505 | "Include per-location buckets even if they do not have overrides. When the view is FULL, and a limit has regional or zonal quota, the limit will include buckets for all regions or zones that could support overrides, even if none are currently present. In some cases this will cause the response to become very large; callers that do not need this extra information should use the BASIC view instead." |
| 506 | ], |
| 507 | "location": "query", |
| 508 | "type": "string" |
| 509 | } |
| 510 | }, |
| 511 | "path": "v1beta1/{+parent}/consumerQuotaMetrics", |
| 512 | "response": { |
| 513 | "$ref": "ListConsumerQuotaMetricsResponse" |
| 514 | }, |
| 515 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 516 | "https://www.googleapis.com/auth/cloud-platform", |
| 517 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 518 | ] |
| 519 | } |
| 520 | }, |
| 521 | "resources": { |
| 522 | "limits": { |
| 523 | "methods": { |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 524 | "get": { |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 525 | "description": "Retrieves a summary of quota information for a specific quota limit.", |
| 526 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}", |
| 527 | "httpMethod": "GET", |
| 528 | "id": "serviceusage.services.consumerQuotaMetrics.limits.get", |
| 529 | "parameterOrder": [ |
| 530 | "name" |
| 531 | ], |
| 532 | "parameters": { |
| 533 | "name": { |
| 534 | "description": "The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.", |
| 535 | "location": "path", |
| 536 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+$", |
| 537 | "required": true, |
| 538 | "type": "string" |
| 539 | }, |
| 540 | "view": { |
| 541 | "description": "Specifies the level of detail for quota information in the response.", |
| 542 | "enum": [ |
| 543 | "QUOTA_VIEW_UNSPECIFIED", |
| 544 | "BASIC", |
| 545 | "FULL" |
| 546 | ], |
| 547 | "enumDescriptions": [ |
| 548 | "No quota view specified. Requests that do not specify a quota view will typically default to the BASIC view.", |
| 549 | "Only buckets with overrides are shown in the response.", |
| 550 | "Include per-location buckets even if they do not have overrides. When the view is FULL, and a limit has regional or zonal quota, the limit will include buckets for all regions or zones that could support overrides, even if none are currently present. In some cases this will cause the response to become very large; callers that do not need this extra information should use the BASIC view instead." |
| 551 | ], |
| 552 | "location": "query", |
| 553 | "type": "string" |
| 554 | } |
| 555 | }, |
| 556 | "path": "v1beta1/{+name}", |
| 557 | "response": { |
| 558 | "$ref": "ConsumerQuotaLimit" |
| 559 | }, |
| 560 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 561 | "https://www.googleapis.com/auth/cloud-platform", |
| 562 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 563 | ] |
| 564 | } |
| 565 | }, |
| 566 | "resources": { |
| 567 | "adminOverrides": { |
| 568 | "methods": { |
| 569 | "create": { |
| 570 | "description": "Creates an admin override. An admin override is applied by an administrator of a parent folder or parent organization of the consumer receiving the override. An admin override is intended to limit the amount of quota the consumer can use out of the total quota pool allocated to all children of the folder or organization.", |
| 571 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/adminOverrides", |
| 572 | "httpMethod": "POST", |
| 573 | "id": "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create", |
| 574 | "parameterOrder": [ |
| 575 | "parent" |
| 576 | ], |
| 577 | "parameters": { |
| 578 | "force": { |
| 579 | "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 580 | "location": "query", |
| 581 | "type": "boolean" |
| 582 | }, |
| 583 | "forceOnly": { |
| 584 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 585 | "enum": [ |
| 586 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 587 | "LIMIT_DECREASE_BELOW_USAGE", |
| 588 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 589 | ], |
| 590 | "enumDescriptions": [ |
| 591 | "Unspecified quota safety check.", |
| 592 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 593 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 594 | ], |
| 595 | "location": "query", |
| 596 | "repeated": true, |
| 597 | "type": "string" |
| 598 | }, |
| 599 | "parent": { |
| 600 | "description": "The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`", |
| 601 | "location": "path", |
| 602 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+$", |
| 603 | "required": true, |
| 604 | "type": "string" |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 605 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 606 | }, |
| 607 | "path": "v1beta1/{+parent}/adminOverrides", |
| 608 | "request": { |
| 609 | "$ref": "QuotaOverride" |
| 610 | }, |
| 611 | "response": { |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 612 | "$ref": "Operation" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 613 | }, |
| 614 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 615 | "https://www.googleapis.com/auth/cloud-platform", |
| 616 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 617 | ] |
| 618 | }, |
| 619 | "delete": { |
| 620 | "description": "Deletes an admin override.", |
| 621 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/adminOverrides/{adminOverridesId}", |
| 622 | "httpMethod": "DELETE", |
| 623 | "id": "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete", |
| 624 | "parameterOrder": [ |
| 625 | "name" |
| 626 | ], |
| 627 | "parameters": { |
| 628 | "force": { |
| 629 | "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 630 | "location": "query", |
| 631 | "type": "boolean" |
| 632 | }, |
| 633 | "forceOnly": { |
| 634 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 635 | "enum": [ |
| 636 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 637 | "LIMIT_DECREASE_BELOW_USAGE", |
| 638 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 639 | ], |
| 640 | "enumDescriptions": [ |
| 641 | "Unspecified quota safety check.", |
| 642 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 643 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 644 | ], |
| 645 | "location": "query", |
| 646 | "repeated": true, |
| 647 | "type": "string" |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 648 | }, |
| 649 | "name": { |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 650 | "description": "The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`", |
| 651 | "location": "path", |
| 652 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+/adminOverrides/[^/]+$", |
| 653 | "required": true, |
| 654 | "type": "string" |
| 655 | } |
| 656 | }, |
| 657 | "path": "v1beta1/{+name}", |
| 658 | "response": { |
| 659 | "$ref": "Operation" |
| 660 | }, |
| 661 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 662 | "https://www.googleapis.com/auth/cloud-platform", |
| 663 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 664 | ] |
| 665 | }, |
| 666 | "list": { |
| 667 | "description": "Lists all admin overrides on this limit.", |
| 668 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/adminOverrides", |
| 669 | "httpMethod": "GET", |
| 670 | "id": "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list", |
| 671 | "parameterOrder": [ |
| 672 | "parent" |
| 673 | ], |
| 674 | "parameters": { |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 675 | "pageSize": { |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 676 | "description": "Requested size of the next page of data.", |
| 677 | "format": "int32", |
| 678 | "location": "query", |
| 679 | "type": "integer" |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 680 | }, |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 681 | "pageToken": { |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 682 | "description": "Token identifying which result to start with; returned by a previous list call.", |
| 683 | "location": "query", |
| 684 | "type": "string" |
| 685 | }, |
| 686 | "parent": { |
| 687 | "description": "The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`", |
| 688 | "location": "path", |
| 689 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+$", |
| 690 | "required": true, |
| 691 | "type": "string" |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 692 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 693 | }, |
| 694 | "path": "v1beta1/{+parent}/adminOverrides", |
| 695 | "response": { |
| 696 | "$ref": "ListAdminOverridesResponse" |
| 697 | }, |
| 698 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 699 | "https://www.googleapis.com/auth/cloud-platform", |
| 700 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 701 | ] |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 702 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 703 | "patch": { |
| 704 | "description": "Updates an admin override.", |
| 705 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/adminOverrides/{adminOverridesId}", |
| 706 | "httpMethod": "PATCH", |
| 707 | "id": "serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch", |
| 708 | "parameterOrder": [ |
| 709 | "name" |
| 710 | ], |
| 711 | "parameters": { |
| 712 | "force": { |
| 713 | "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 714 | "location": "query", |
| 715 | "type": "boolean" |
| 716 | }, |
| 717 | "forceOnly": { |
| 718 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 719 | "enum": [ |
| 720 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 721 | "LIMIT_DECREASE_BELOW_USAGE", |
| 722 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 723 | ], |
| 724 | "enumDescriptions": [ |
| 725 | "Unspecified quota safety check.", |
| 726 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 727 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 728 | ], |
| 729 | "location": "query", |
| 730 | "repeated": true, |
| 731 | "type": "string" |
| 732 | }, |
| 733 | "name": { |
| 734 | "description": "The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`", |
| 735 | "location": "path", |
| 736 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+/adminOverrides/[^/]+$", |
| 737 | "required": true, |
| 738 | "type": "string" |
| 739 | }, |
| 740 | "updateMask": { |
| 741 | "description": "Update only the specified fields of the override. If unset, all fields will be updated.", |
| 742 | "format": "google-fieldmask", |
| 743 | "location": "query", |
| 744 | "type": "string" |
| 745 | } |
| 746 | }, |
| 747 | "path": "v1beta1/{+name}", |
| 748 | "request": { |
| 749 | "$ref": "QuotaOverride" |
| 750 | }, |
| 751 | "response": { |
| 752 | "$ref": "Operation" |
| 753 | }, |
| 754 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 755 | "https://www.googleapis.com/auth/cloud-platform", |
| 756 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 757 | ] |
| 758 | } |
| 759 | } |
| 760 | }, |
| 761 | "consumerOverrides": { |
| 762 | "methods": { |
| 763 | "create": { |
| 764 | "description": "Creates a consumer override. A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.", |
| 765 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/consumerOverrides", |
| 766 | "httpMethod": "POST", |
| 767 | "id": "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create", |
| 768 | "parameterOrder": [ |
| 769 | "parent" |
| 770 | ], |
| 771 | "parameters": { |
| 772 | "force": { |
| 773 | "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 774 | "location": "query", |
| 775 | "type": "boolean" |
| 776 | }, |
| 777 | "forceOnly": { |
| 778 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 779 | "enum": [ |
| 780 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 781 | "LIMIT_DECREASE_BELOW_USAGE", |
| 782 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 783 | ], |
| 784 | "enumDescriptions": [ |
| 785 | "Unspecified quota safety check.", |
| 786 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 787 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 788 | ], |
| 789 | "location": "query", |
| 790 | "repeated": true, |
| 791 | "type": "string" |
| 792 | }, |
| 793 | "parent": { |
| 794 | "description": "The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`", |
| 795 | "location": "path", |
| 796 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+$", |
| 797 | "required": true, |
| 798 | "type": "string" |
| 799 | } |
| 800 | }, |
| 801 | "path": "v1beta1/{+parent}/consumerOverrides", |
| 802 | "request": { |
| 803 | "$ref": "QuotaOverride" |
| 804 | }, |
| 805 | "response": { |
| 806 | "$ref": "Operation" |
| 807 | }, |
| 808 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 809 | "https://www.googleapis.com/auth/cloud-platform", |
| 810 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 811 | ] |
| 812 | }, |
| 813 | "delete": { |
| 814 | "description": "Deletes a consumer override.", |
| 815 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/consumerOverrides/{consumerOverridesId}", |
| 816 | "httpMethod": "DELETE", |
| 817 | "id": "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete", |
| 818 | "parameterOrder": [ |
| 819 | "name" |
| 820 | ], |
| 821 | "parameters": { |
| 822 | "force": { |
| 823 | "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 824 | "location": "query", |
| 825 | "type": "boolean" |
| 826 | }, |
| 827 | "forceOnly": { |
| 828 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 829 | "enum": [ |
| 830 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 831 | "LIMIT_DECREASE_BELOW_USAGE", |
| 832 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 833 | ], |
| 834 | "enumDescriptions": [ |
| 835 | "Unspecified quota safety check.", |
| 836 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 837 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 838 | ], |
| 839 | "location": "query", |
| 840 | "repeated": true, |
| 841 | "type": "string" |
| 842 | }, |
| 843 | "name": { |
| 844 | "description": "The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`", |
| 845 | "location": "path", |
| 846 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+/consumerOverrides/[^/]+$", |
| 847 | "required": true, |
| 848 | "type": "string" |
| 849 | } |
| 850 | }, |
| 851 | "path": "v1beta1/{+name}", |
| 852 | "response": { |
| 853 | "$ref": "Operation" |
| 854 | }, |
| 855 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 856 | "https://www.googleapis.com/auth/cloud-platform", |
| 857 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 858 | ] |
| 859 | }, |
| 860 | "list": { |
| 861 | "description": "Lists all consumer overrides on this limit.", |
| 862 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/consumerOverrides", |
| 863 | "httpMethod": "GET", |
| 864 | "id": "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list", |
| 865 | "parameterOrder": [ |
| 866 | "parent" |
| 867 | ], |
| 868 | "parameters": { |
| 869 | "pageSize": { |
| 870 | "description": "Requested size of the next page of data.", |
| 871 | "format": "int32", |
| 872 | "location": "query", |
| 873 | "type": "integer" |
| 874 | }, |
| 875 | "pageToken": { |
| 876 | "description": "Token identifying which result to start with; returned by a previous list call.", |
| 877 | "location": "query", |
| 878 | "type": "string" |
| 879 | }, |
| 880 | "parent": { |
| 881 | "description": "The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`", |
| 882 | "location": "path", |
| 883 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+$", |
| 884 | "required": true, |
| 885 | "type": "string" |
| 886 | } |
| 887 | }, |
| 888 | "path": "v1beta1/{+parent}/consumerOverrides", |
| 889 | "response": { |
| 890 | "$ref": "ListConsumerOverridesResponse" |
| 891 | }, |
| 892 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 893 | "https://www.googleapis.com/auth/cloud-platform", |
| 894 | "https://www.googleapis.com/auth/cloud-platform.read-only" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 895 | ] |
| 896 | }, |
| 897 | "patch": { |
| 898 | "description": "Updates a consumer override.", |
| 899 | "flatPath": "v1beta1/{v1beta1Id}/{v1beta1Id1}/services/{servicesId}/consumerQuotaMetrics/{consumerQuotaMetricsId}/limits/{limitsId}/consumerOverrides/{consumerOverridesId}", |
| 900 | "httpMethod": "PATCH", |
| 901 | "id": "serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch", |
| 902 | "parameterOrder": [ |
| 903 | "name" |
| 904 | ], |
| 905 | "parameters": { |
| 906 | "force": { |
| 907 | "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 908 | "location": "query", |
| 909 | "type": "boolean" |
| 910 | }, |
| 911 | "forceOnly": { |
| 912 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 913 | "enum": [ |
| 914 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 915 | "LIMIT_DECREASE_BELOW_USAGE", |
| 916 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 917 | ], |
| 918 | "enumDescriptions": [ |
| 919 | "Unspecified quota safety check.", |
| 920 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 921 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 922 | ], |
| 923 | "location": "query", |
| 924 | "repeated": true, |
| 925 | "type": "string" |
| 926 | }, |
| 927 | "name": { |
| 928 | "description": "The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`", |
| 929 | "location": "path", |
| 930 | "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+/limits/[^/]+/consumerOverrides/[^/]+$", |
| 931 | "required": true, |
| 932 | "type": "string" |
| 933 | }, |
| 934 | "updateMask": { |
| 935 | "description": "Update only the specified fields of the override. If unset, all fields will be updated.", |
| 936 | "format": "google-fieldmask", |
| 937 | "location": "query", |
| 938 | "type": "string" |
| 939 | } |
| 940 | }, |
| 941 | "path": "v1beta1/{+name}", |
| 942 | "request": { |
| 943 | "$ref": "QuotaOverride" |
| 944 | }, |
| 945 | "response": { |
| 946 | "$ref": "Operation" |
| 947 | }, |
| 948 | "scopes": [ |
yoshi-code-bot | f0c2fa6 | 2021-04-23 08:24:04 -0700 | [diff] [blame] | 949 | "https://www.googleapis.com/auth/cloud-platform", |
| 950 | "https://www.googleapis.com/auth/service.management" |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 951 | ] |
| 952 | } |
| 953 | } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 954 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 955 | } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 956 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 957 | } |
| 958 | } |
| 959 | } |
| 960 | } |
| 961 | }, |
yoshi-code-bot | c0b883a | 2021-05-04 06:46:03 -0700 | [diff] [blame^] | 962 | "revision": "20210501", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 963 | "rootUrl": "https://serviceusage.googleapis.com/", |
| 964 | "schemas": { |
| 965 | "AdminQuotaPolicy": { |
| 966 | "description": "Quota policy created by quota administrator.", |
| 967 | "id": "AdminQuotaPolicy", |
| 968 | "properties": { |
| 969 | "container": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 970 | "description": "The cloud resource container at which the quota policy is created. The format is `{container_type}/{container_number}`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 971 | "type": "string" |
| 972 | }, |
| 973 | "dimensions": { |
| 974 | "additionalProperties": { |
| 975 | "type": "string" |
| 976 | }, |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 977 | "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 978 | "type": "object" |
| 979 | }, |
| 980 | "metric": { |
| 981 | "description": "The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`", |
| 982 | "type": "string" |
| 983 | }, |
| 984 | "name": { |
| 985 | "description": "The resource name of the policy. This name is generated by the server when the policy is created. Example names would be: `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`", |
| 986 | "type": "string" |
| 987 | }, |
| 988 | "policyValue": { |
| 989 | "description": "The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).", |
| 990 | "format": "int64", |
| 991 | "type": "string" |
| 992 | }, |
| 993 | "unit": { |
| 994 | "description": "The limit unit of the limit to which this policy applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.", |
| 995 | "type": "string" |
| 996 | } |
| 997 | }, |
| 998 | "type": "object" |
| 999 | }, |
| 1000 | "Api": { |
| 1001 | "description": "Api is a light-weight descriptor for an API Interface. Interfaces are also described as \"protocol buffer services\" in some contexts, such as by the \"service\" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as \"APIs\" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.", |
| 1002 | "id": "Api", |
| 1003 | "properties": { |
| 1004 | "methods": { |
| 1005 | "description": "The methods of this interface, in unspecified order.", |
| 1006 | "items": { |
| 1007 | "$ref": "Method" |
| 1008 | }, |
| 1009 | "type": "array" |
| 1010 | }, |
| 1011 | "mixins": { |
| 1012 | "description": "Included interfaces. See Mixin.", |
| 1013 | "items": { |
| 1014 | "$ref": "Mixin" |
| 1015 | }, |
| 1016 | "type": "array" |
| 1017 | }, |
| 1018 | "name": { |
| 1019 | "description": "The fully qualified name of this interface, including package name followed by the interface's simple name.", |
| 1020 | "type": "string" |
| 1021 | }, |
| 1022 | "options": { |
| 1023 | "description": "Any metadata attached to the interface.", |
| 1024 | "items": { |
| 1025 | "$ref": "Option" |
| 1026 | }, |
| 1027 | "type": "array" |
| 1028 | }, |
| 1029 | "sourceContext": { |
| 1030 | "$ref": "SourceContext", |
| 1031 | "description": "Source context for the protocol buffer service represented by this message." |
| 1032 | }, |
| 1033 | "syntax": { |
| 1034 | "description": "The source syntax of the service.", |
| 1035 | "enum": [ |
| 1036 | "SYNTAX_PROTO2", |
| 1037 | "SYNTAX_PROTO3" |
| 1038 | ], |
| 1039 | "enumDescriptions": [ |
| 1040 | "Syntax `proto2`.", |
| 1041 | "Syntax `proto3`." |
| 1042 | ], |
| 1043 | "type": "string" |
| 1044 | }, |
| 1045 | "version": { |
| 1046 | "description": "A version string for this interface. If specified, must have the form `major-version.minor-version`, as in `1.10`. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here. The versioning schema uses [semantic versioning](http://semver.org) where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the interface, which must end in `v`, as in `google.feature.v1`. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, non-GA interfaces. ", |
| 1047 | "type": "string" |
| 1048 | } |
| 1049 | }, |
| 1050 | "type": "object" |
| 1051 | }, |
| 1052 | "AuthProvider": { |
| 1053 | "description": "Configuration for an authentication provider, including support for [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).", |
| 1054 | "id": "AuthProvider", |
| 1055 | "properties": { |
| 1056 | "audiences": { |
| 1057 | "description": "The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, JWTs with audiences: - \"https://[service.name]/[google.protobuf.Api.name]\" - \"https://[service.name]/\" will be accepted. For example, if no audiences are in the setting, LibraryService API will accept JWTs with the following audiences: - https://library-example.googleapis.com/google.example.library.v1.LibraryService - https://library-example.googleapis.com/ Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com", |
| 1058 | "type": "string" |
| 1059 | }, |
| 1060 | "authorizationUrl": { |
| 1061 | "description": "Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec.", |
| 1062 | "type": "string" |
| 1063 | }, |
| 1064 | "id": { |
| 1065 | "description": "The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: \"bookstore_auth\".", |
| 1066 | "type": "string" |
| 1067 | }, |
| 1068 | "issuer": { |
| 1069 | "description": "Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com", |
| 1070 | "type": "string" |
| 1071 | }, |
| 1072 | "jwksUri": { |
| 1073 | "description": "URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs", |
| 1074 | "type": "string" |
| 1075 | }, |
| 1076 | "jwtLocations": { |
| 1077 | "description": "Defines the locations to extract the JWT. JWT locations can be either from HTTP headers or URL query parameters. The rule is that the first match wins. The checking order is: checking all headers first, then URL query parameters. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: \"Bearer \" - header: x-goog-iap-jwt-assertion - query: access_token", |
| 1078 | "items": { |
| 1079 | "$ref": "JwtLocation" |
| 1080 | }, |
| 1081 | "type": "array" |
| 1082 | } |
| 1083 | }, |
| 1084 | "type": "object" |
| 1085 | }, |
| 1086 | "AuthRequirement": { |
| 1087 | "description": "User-defined authentication requirements, including support for [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).", |
| 1088 | "id": "AuthRequirement", |
| 1089 | "properties": { |
| 1090 | "audiences": { |
| 1091 | "description": "NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience \"https://Service_name/API_name\" will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience \"https://library-example.googleapis.com/google.example.library.v1.LibraryService\". Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com", |
| 1092 | "type": "string" |
| 1093 | }, |
| 1094 | "providerId": { |
| 1095 | "description": "id from authentication provider. Example: provider_id: bookstore_auth", |
| 1096 | "type": "string" |
| 1097 | } |
| 1098 | }, |
| 1099 | "type": "object" |
| 1100 | }, |
| 1101 | "Authentication": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 1102 | "description": "`Authentication` defines the authentication configuration for API methods provided by an API service. Example: name: calendar.googleapis.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth - selector: google.calendar.Delegate oauth: canonical_scopes: https://www.googleapis.com/auth/calendar.read", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1103 | "id": "Authentication", |
| 1104 | "properties": { |
| 1105 | "providers": { |
| 1106 | "description": "Defines a set of authentication providers that a service supports.", |
| 1107 | "items": { |
| 1108 | "$ref": "AuthProvider" |
| 1109 | }, |
| 1110 | "type": "array" |
| 1111 | }, |
| 1112 | "rules": { |
| 1113 | "description": "A list of authentication rules that apply to individual API methods. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 1114 | "items": { |
| 1115 | "$ref": "AuthenticationRule" |
| 1116 | }, |
| 1117 | "type": "array" |
| 1118 | } |
| 1119 | }, |
| 1120 | "type": "object" |
| 1121 | }, |
| 1122 | "AuthenticationRule": { |
| 1123 | "description": "Authentication rules for the service. By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request. If a method doesn't have any auth requirements, request credentials will be ignored.", |
| 1124 | "id": "AuthenticationRule", |
| 1125 | "properties": { |
| 1126 | "allowWithoutCredential": { |
| 1127 | "description": "If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.", |
| 1128 | "type": "boolean" |
| 1129 | }, |
| 1130 | "oauth": { |
| 1131 | "$ref": "OAuthRequirements", |
| 1132 | "description": "The requirements for OAuth credentials." |
| 1133 | }, |
| 1134 | "requirements": { |
| 1135 | "description": "Requirements for additional authentication providers.", |
| 1136 | "items": { |
| 1137 | "$ref": "AuthRequirement" |
| 1138 | }, |
| 1139 | "type": "array" |
| 1140 | }, |
| 1141 | "selector": { |
| 1142 | "description": "Selects the methods to which this rule applies. Refer to selector for syntax details.", |
| 1143 | "type": "string" |
| 1144 | } |
| 1145 | }, |
| 1146 | "type": "object" |
| 1147 | }, |
| 1148 | "Backend": { |
| 1149 | "description": "`Backend` defines the backend configuration for a service.", |
| 1150 | "id": "Backend", |
| 1151 | "properties": { |
| 1152 | "rules": { |
| 1153 | "description": "A list of API backend rules that apply to individual API methods. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 1154 | "items": { |
| 1155 | "$ref": "BackendRule" |
| 1156 | }, |
| 1157 | "type": "array" |
| 1158 | } |
| 1159 | }, |
| 1160 | "type": "object" |
| 1161 | }, |
| 1162 | "BackendRule": { |
| 1163 | "description": "A backend rule provides configuration for an individual API element.", |
| 1164 | "id": "BackendRule", |
| 1165 | "properties": { |
| 1166 | "address": { |
| 1167 | "description": "The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is: - 80 for schemes without TLS - 443 for schemes with TLS For HTTP backends, use protocol to specify the protocol version.", |
| 1168 | "type": "string" |
| 1169 | }, |
| 1170 | "deadline": { |
| 1171 | "description": "The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.", |
| 1172 | "format": "double", |
| 1173 | "type": "number" |
| 1174 | }, |
| 1175 | "disableAuth": { |
| 1176 | "description": "When disable_auth is true, a JWT ID token won't be generated and the original \"Authorization\" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.", |
| 1177 | "type": "boolean" |
| 1178 | }, |
| 1179 | "jwtAudience": { |
| 1180 | "description": "The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP \"authorization\" header, and sent to the backend.", |
| 1181 | "type": "string" |
| 1182 | }, |
| 1183 | "minDeadline": { |
| 1184 | "description": "Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.", |
| 1185 | "format": "double", |
| 1186 | "type": "number" |
| 1187 | }, |
| 1188 | "operationDeadline": { |
| 1189 | "description": "The number of seconds to wait for the completion of a long running operation. The default is no deadline.", |
| 1190 | "format": "double", |
| 1191 | "type": "number" |
| 1192 | }, |
| 1193 | "pathTranslation": { |
| 1194 | "enum": [ |
| 1195 | "PATH_TRANSLATION_UNSPECIFIED", |
| 1196 | "CONSTANT_ADDRESS", |
| 1197 | "APPEND_PATH_TO_ADDRESS" |
| 1198 | ], |
| 1199 | "enumDescriptions": [ |
| 1200 | "", |
| 1201 | "Use the backend address as-is, with no modification to the path. If the URL pattern contains variables, the variable names and values will be appended to the query string. If a query string parameter and a URL pattern variable have the same name, this may result in duplicate keys in the query string. # Examples Given the following operation config: Method path: /api/company/{cid}/user/{uid} Backend address: https://example.cloudfunctions.net/getUser Requests to the following request paths will call the backend at the translated path: Request path: /api/company/widgetworks/user/johndoe Translated: https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe Request path: /api/company/widgetworks/user/johndoe?timezone=EST Translated: https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe", |
| 1202 | "The request path will be appended to the backend address. # Examples Given the following operation config: Method path: /api/company/{cid}/user/{uid} Backend address: https://example.appspot.com Requests to the following request paths will call the backend at the translated path: Request path: /api/company/widgetworks/user/johndoe Translated: https://example.appspot.com/api/company/widgetworks/user/johndoe Request path: /api/company/widgetworks/user/johndoe?timezone=EST Translated: https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST" |
| 1203 | ], |
| 1204 | "type": "string" |
| 1205 | }, |
| 1206 | "protocol": { |
| 1207 | "description": "The protocol used for sending a request to the backend. The supported values are \"http/1.1\" and \"h2\". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to \"h2\" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.", |
| 1208 | "type": "string" |
| 1209 | }, |
| 1210 | "selector": { |
| 1211 | "description": "Selects the methods to which this rule applies. Refer to selector for syntax details.", |
| 1212 | "type": "string" |
| 1213 | } |
| 1214 | }, |
| 1215 | "type": "object" |
| 1216 | }, |
| 1217 | "BatchCreateAdminOverridesResponse": { |
| 1218 | "description": "Response message for BatchCreateAdminOverrides", |
| 1219 | "id": "BatchCreateAdminOverridesResponse", |
| 1220 | "properties": { |
| 1221 | "overrides": { |
| 1222 | "description": "The overrides that were created.", |
| 1223 | "items": { |
| 1224 | "$ref": "QuotaOverride" |
| 1225 | }, |
| 1226 | "type": "array" |
| 1227 | } |
| 1228 | }, |
| 1229 | "type": "object" |
| 1230 | }, |
| 1231 | "BatchCreateConsumerOverridesResponse": { |
| 1232 | "description": "Response message for BatchCreateConsumerOverrides", |
| 1233 | "id": "BatchCreateConsumerOverridesResponse", |
| 1234 | "properties": { |
| 1235 | "overrides": { |
| 1236 | "description": "The overrides that were created.", |
| 1237 | "items": { |
| 1238 | "$ref": "QuotaOverride" |
| 1239 | }, |
| 1240 | "type": "array" |
| 1241 | } |
| 1242 | }, |
| 1243 | "type": "object" |
| 1244 | }, |
| 1245 | "BatchEnableServicesRequest": { |
| 1246 | "description": "Request message for the `BatchEnableServices` method.", |
| 1247 | "id": "BatchEnableServicesRequest", |
| 1248 | "properties": { |
| 1249 | "serviceIds": { |
| 1250 | "description": "The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.", |
| 1251 | "items": { |
| 1252 | "type": "string" |
| 1253 | }, |
| 1254 | "type": "array" |
| 1255 | } |
| 1256 | }, |
| 1257 | "type": "object" |
| 1258 | }, |
| 1259 | "BatchEnableServicesResponse": { |
| 1260 | "description": "Response message for the `BatchEnableServices` method. This response message is assigned to the `response` field of the returned Operation when that operation is done.", |
| 1261 | "id": "BatchEnableServicesResponse", |
| 1262 | "properties": { |
| 1263 | "failures": { |
| 1264 | "description": "If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure.", |
| 1265 | "items": { |
| 1266 | "$ref": "EnableFailure" |
| 1267 | }, |
| 1268 | "type": "array" |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 1269 | }, |
| 1270 | "services": { |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1271 | "description": "The new state of the services after enabling.", |
| 1272 | "items": { |
| 1273 | "$ref": "GoogleApiServiceusageV1Service" |
| 1274 | }, |
| 1275 | "type": "array" |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 1276 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1277 | }, |
| 1278 | "type": "object" |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 1279 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1280 | "Billing": { |
| 1281 | "description": "Billing related configuration of the service. The following example shows how to configure monitored resources and metrics for billing, `consumer_destinations` is the only supported destination and the monitored resources need at least one label key `cloud.googleapis.com/location` to indicate the location of the billing usage, using different monitored resources between monitoring and billing is recommended so they can be evolved independently: monitored_resources: - type: library.googleapis.com/billing_branch labels: - key: cloud.googleapis.com/location description: | Predefined label to support billing location restriction. - key: city description: | Custom label to define the city where the library branch is located in. - key: name description: Custom label to define the name of the library branch. metrics: - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 unit: \"1\" billing: consumer_destinations: - monitored_resource: library.googleapis.com/billing_branch metrics: - library.googleapis.com/book/borrowed_count", |
| 1282 | "id": "Billing", |
| 1283 | "properties": { |
| 1284 | "consumerDestinations": { |
| 1285 | "description": "Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.", |
| 1286 | "items": { |
| 1287 | "$ref": "BillingDestination" |
| 1288 | }, |
| 1289 | "type": "array" |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1290 | } |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1291 | }, |
| 1292 | "type": "object" |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 1293 | }, |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1294 | "BillingDestination": { |
| 1295 | "description": "Configuration of a specific billing destination (Currently only support bill against consumer project).", |
| 1296 | "id": "BillingDestination", |
| 1297 | "properties": { |
| 1298 | "metrics": { |
| 1299 | "description": "Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.", |
| 1300 | "items": { |
| 1301 | "type": "string" |
| 1302 | }, |
| 1303 | "type": "array" |
| 1304 | }, |
| 1305 | "monitoredResource": { |
| 1306 | "description": "The monitored resource type. The type must be defined in Service.monitored_resources section.", |
| 1307 | "type": "string" |
| 1308 | } |
| 1309 | }, |
| 1310 | "type": "object" |
| 1311 | }, |
| 1312 | "ConsumerQuotaLimit": { |
| 1313 | "description": "Consumer quota settings for a quota limit.", |
| 1314 | "id": "ConsumerQuotaLimit", |
| 1315 | "properties": { |
| 1316 | "allowsAdminOverrides": { |
| 1317 | "description": "Whether admin overrides are allowed on this limit", |
| 1318 | "type": "boolean" |
| 1319 | }, |
| 1320 | "isPrecise": { |
| 1321 | "description": "Whether this limit is precise or imprecise.", |
| 1322 | "type": "boolean" |
| 1323 | }, |
| 1324 | "metric": { |
| 1325 | "description": "The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus`", |
| 1326 | "type": "string" |
| 1327 | }, |
| 1328 | "name": { |
| 1329 | "description": "The resource name of the quota limit. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", |
| 1330 | "type": "string" |
| 1331 | }, |
| 1332 | "quotaBuckets": { |
| 1333 | "description": "Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).", |
| 1334 | "items": { |
| 1335 | "$ref": "QuotaBucket" |
| 1336 | }, |
| 1337 | "type": "array" |
| 1338 | }, |
| 1339 | "unit": { |
| 1340 | "description": "The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.", |
| 1341 | "type": "string" |
| 1342 | } |
| 1343 | }, |
| 1344 | "type": "object" |
| 1345 | }, |
| 1346 | "ConsumerQuotaMetric": { |
| 1347 | "description": "Consumer quota settings for a quota metric.", |
| 1348 | "id": "ConsumerQuotaMetric", |
| 1349 | "properties": { |
| 1350 | "consumerQuotaLimits": { |
| 1351 | "description": "The consumer quota for each quota limit defined on the metric.", |
| 1352 | "items": { |
| 1353 | "$ref": "ConsumerQuotaLimit" |
| 1354 | }, |
| 1355 | "type": "array" |
| 1356 | }, |
| 1357 | "descendantConsumerQuotaLimits": { |
| 1358 | "description": "The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated.", |
| 1359 | "items": { |
| 1360 | "$ref": "ConsumerQuotaLimit" |
| 1361 | }, |
| 1362 | "type": "array" |
| 1363 | }, |
| 1364 | "displayName": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 1365 | "description": "The display name of the metric. An example name would be: `CPUs`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1366 | "type": "string" |
| 1367 | }, |
| 1368 | "metric": { |
| 1369 | "description": "The name of the metric. An example name would be: `compute.googleapis.com/cpus`", |
| 1370 | "type": "string" |
| 1371 | }, |
| 1372 | "name": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 1373 | "description": "The resource name of the quota settings on this metric for this consumer. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1374 | "type": "string" |
| 1375 | }, |
| 1376 | "unit": { |
| 1377 | "description": "The units in which the metric value is reported.", |
| 1378 | "type": "string" |
| 1379 | } |
| 1380 | }, |
| 1381 | "type": "object" |
| 1382 | }, |
| 1383 | "Context": { |
| 1384 | "description": "`Context` defines which contexts an API requests. Example: context: rules: - selector: \"*\" requested: - google.rpc.context.ProjectContext - google.rpc.context.OriginContext The above specifies that all methods in the API request `google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`. Available context types are defined in package `google.rpc.context`. This also provides mechanism to allowlist any protobuf message extension that can be sent in grpc metadata using \u201cx-goog-ext--bin\u201d and \u201cx-goog-ext--jspb\u201d format. For example, list any service specific protobuf types that can appear in grpc metadata as follows in your yaml file: Example: context: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allowed_request_extensions: - google.foo.v1.NewExtension allowed_response_extensions: - google.foo.v1.NewExtension You can also specify extension ID instead of fully qualified extension name here.", |
| 1385 | "id": "Context", |
| 1386 | "properties": { |
| 1387 | "rules": { |
| 1388 | "description": "A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 1389 | "items": { |
| 1390 | "$ref": "ContextRule" |
| 1391 | }, |
| 1392 | "type": "array" |
| 1393 | } |
| 1394 | }, |
| 1395 | "type": "object" |
| 1396 | }, |
| 1397 | "ContextRule": { |
| 1398 | "description": "A context rule provides information about the context for an individual API element.", |
| 1399 | "id": "ContextRule", |
| 1400 | "properties": { |
| 1401 | "allowedRequestExtensions": { |
| 1402 | "description": "A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.", |
| 1403 | "items": { |
| 1404 | "type": "string" |
| 1405 | }, |
| 1406 | "type": "array" |
| 1407 | }, |
| 1408 | "allowedResponseExtensions": { |
| 1409 | "description": "A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.", |
| 1410 | "items": { |
| 1411 | "type": "string" |
| 1412 | }, |
| 1413 | "type": "array" |
| 1414 | }, |
| 1415 | "provided": { |
| 1416 | "description": "A list of full type names of provided contexts.", |
| 1417 | "items": { |
| 1418 | "type": "string" |
| 1419 | }, |
| 1420 | "type": "array" |
| 1421 | }, |
| 1422 | "requested": { |
| 1423 | "description": "A list of full type names of requested contexts.", |
| 1424 | "items": { |
| 1425 | "type": "string" |
| 1426 | }, |
| 1427 | "type": "array" |
| 1428 | }, |
| 1429 | "selector": { |
| 1430 | "description": "Selects the methods to which this rule applies. Refer to selector for syntax details.", |
| 1431 | "type": "string" |
| 1432 | } |
| 1433 | }, |
| 1434 | "type": "object" |
| 1435 | }, |
| 1436 | "Control": { |
| 1437 | "description": "Selects and configures the service controller used by the service. The service controller handles features like abuse, quota, billing, logging, monitoring, etc.", |
| 1438 | "id": "Control", |
| 1439 | "properties": { |
| 1440 | "environment": { |
| 1441 | "description": "The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.", |
| 1442 | "type": "string" |
| 1443 | } |
| 1444 | }, |
| 1445 | "type": "object" |
| 1446 | }, |
| 1447 | "CreateAdminQuotaPolicyMetadata": { |
| 1448 | "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.", |
| 1449 | "id": "CreateAdminQuotaPolicyMetadata", |
| 1450 | "properties": {}, |
| 1451 | "type": "object" |
| 1452 | }, |
| 1453 | "CustomError": { |
| 1454 | "description": "Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError", |
| 1455 | "id": "CustomError", |
| 1456 | "properties": { |
| 1457 | "rules": { |
| 1458 | "description": "The list of custom error rules that apply to individual API messages. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 1459 | "items": { |
| 1460 | "$ref": "CustomErrorRule" |
| 1461 | }, |
| 1462 | "type": "array" |
| 1463 | }, |
| 1464 | "types": { |
| 1465 | "description": "The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.", |
| 1466 | "items": { |
| 1467 | "type": "string" |
| 1468 | }, |
| 1469 | "type": "array" |
| 1470 | } |
| 1471 | }, |
| 1472 | "type": "object" |
| 1473 | }, |
| 1474 | "CustomErrorRule": { |
| 1475 | "description": "A custom error rule.", |
| 1476 | "id": "CustomErrorRule", |
| 1477 | "properties": { |
| 1478 | "isErrorType": { |
| 1479 | "description": "Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload.", |
| 1480 | "type": "boolean" |
| 1481 | }, |
| 1482 | "selector": { |
| 1483 | "description": "Selects messages to which this rule applies. Refer to selector for syntax details.", |
| 1484 | "type": "string" |
| 1485 | } |
| 1486 | }, |
| 1487 | "type": "object" |
| 1488 | }, |
| 1489 | "CustomHttpPattern": { |
| 1490 | "description": "A custom pattern is used for defining custom HTTP verb.", |
| 1491 | "id": "CustomHttpPattern", |
| 1492 | "properties": { |
| 1493 | "kind": { |
| 1494 | "description": "The name of this custom HTTP verb.", |
| 1495 | "type": "string" |
| 1496 | }, |
| 1497 | "path": { |
| 1498 | "description": "The path matched by this custom verb.", |
| 1499 | "type": "string" |
| 1500 | } |
| 1501 | }, |
| 1502 | "type": "object" |
| 1503 | }, |
| 1504 | "DeleteAdminQuotaPolicyMetadata": { |
| 1505 | "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.", |
| 1506 | "id": "DeleteAdminQuotaPolicyMetadata", |
| 1507 | "properties": {}, |
| 1508 | "type": "object" |
| 1509 | }, |
| 1510 | "DisableServiceRequest": { |
| 1511 | "description": "Request message for the `DisableService` method.", |
| 1512 | "id": "DisableServiceRequest", |
| 1513 | "properties": {}, |
| 1514 | "type": "object" |
| 1515 | }, |
| 1516 | "DisableServiceResponse": { |
| 1517 | "description": "Response message for the `DisableService` method. This response message is assigned to the `response` field of the returned Operation when that operation is done.", |
| 1518 | "id": "DisableServiceResponse", |
| 1519 | "properties": { |
| 1520 | "service": { |
| 1521 | "$ref": "GoogleApiServiceusageV1Service", |
| 1522 | "description": "The new state of the service after disabling." |
| 1523 | } |
| 1524 | }, |
| 1525 | "type": "object" |
| 1526 | }, |
| 1527 | "Documentation": { |
| 1528 | "description": "`Documentation` provides the information for describing a service. Example: documentation: summary: > The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages; - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: > ... - selector: google.calendar.Calendar.Put description: > ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) 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 an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation.", |
| 1529 | "id": "Documentation", |
| 1530 | "properties": { |
| 1531 | "documentationRootUrl": { |
| 1532 | "description": "The URL to the root of documentation.", |
| 1533 | "type": "string" |
| 1534 | }, |
| 1535 | "overview": { |
| 1536 | "description": "Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style): documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field.", |
| 1537 | "type": "string" |
| 1538 | }, |
| 1539 | "pages": { |
| 1540 | "description": "The top level pages for the documentation set.", |
| 1541 | "items": { |
| 1542 | "$ref": "Page" |
| 1543 | }, |
| 1544 | "type": "array" |
| 1545 | }, |
| 1546 | "rules": { |
| 1547 | "description": "A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 1548 | "items": { |
| 1549 | "$ref": "DocumentationRule" |
| 1550 | }, |
| 1551 | "type": "array" |
| 1552 | }, |
| 1553 | "serviceRootUrl": { |
| 1554 | "description": "Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to.", |
| 1555 | "type": "string" |
| 1556 | }, |
| 1557 | "summary": { |
| 1558 | "description": "A short summary of what the service does. Can only be provided by plain text.", |
| 1559 | "type": "string" |
| 1560 | } |
| 1561 | }, |
| 1562 | "type": "object" |
| 1563 | }, |
| 1564 | "DocumentationRule": { |
| 1565 | "description": "A documentation rule provides information about individual API elements.", |
| 1566 | "id": "DocumentationRule", |
| 1567 | "properties": { |
| 1568 | "deprecationDescription": { |
| 1569 | "description": "Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.", |
| 1570 | "type": "string" |
| 1571 | }, |
| 1572 | "description": { |
| 1573 | "description": "Description of the selected API(s).", |
| 1574 | "type": "string" |
| 1575 | }, |
| 1576 | "selector": { |
| 1577 | "description": "The selector is a comma-separated list of patterns. Each pattern is a qualified name of the element which may end in \"*\", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"foo.*.bar\". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern \"*\" is used.", |
| 1578 | "type": "string" |
| 1579 | } |
| 1580 | }, |
| 1581 | "type": "object" |
| 1582 | }, |
| 1583 | "Empty": { |
| 1584 | "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", |
| 1585 | "id": "Empty", |
| 1586 | "properties": {}, |
| 1587 | "type": "object" |
| 1588 | }, |
| 1589 | "EnableFailure": { |
| 1590 | "description": "Provides error messages for the failing services.", |
| 1591 | "id": "EnableFailure", |
| 1592 | "properties": { |
| 1593 | "errorMessage": { |
| 1594 | "description": "An error message describing why the service could not be enabled.", |
| 1595 | "type": "string" |
| 1596 | }, |
| 1597 | "serviceId": { |
| 1598 | "description": "The service id of a service that could not be enabled.", |
| 1599 | "type": "string" |
| 1600 | } |
| 1601 | }, |
| 1602 | "type": "object" |
| 1603 | }, |
| 1604 | "EnableServiceRequest": { |
| 1605 | "description": "Request message for the `EnableService` method.", |
| 1606 | "id": "EnableServiceRequest", |
| 1607 | "properties": {}, |
| 1608 | "type": "object" |
| 1609 | }, |
| 1610 | "EnableServiceResponse": { |
| 1611 | "description": "Response message for the `EnableService` method. This response message is assigned to the `response` field of the returned Operation when that operation is done.", |
| 1612 | "id": "EnableServiceResponse", |
| 1613 | "properties": { |
| 1614 | "service": { |
| 1615 | "$ref": "GoogleApiServiceusageV1Service", |
| 1616 | "description": "The new state of the service after enabling." |
| 1617 | } |
| 1618 | }, |
| 1619 | "type": "object" |
| 1620 | }, |
| 1621 | "Endpoint": { |
yoshi-code-bot | c0b883a | 2021-05-04 06:46:03 -0700 | [diff] [blame^] | 1622 | "description": "`Endpoint` describes a network address of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example: type: google.api.Service name: library-example.googleapis.com endpoints: # Declares network address `https://library-example.googleapis.com` # for service `library-example.googleapis.com`. The `https` scheme # is implicit for all service endpoints. Other schemes may be # supported in the future. - name: library-example.googleapis.com allow_cors: false - name: content-staging-library-example.googleapis.com # Allows HTTP OPTIONS calls to be passed to the API frontend, for it # to decide whether the subsequent cross-origin request is allowed # to proceed. allow_cors: true", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1623 | "id": "Endpoint", |
| 1624 | "properties": { |
| 1625 | "allowCors": { |
| 1626 | "description": "Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.", |
| 1627 | "type": "boolean" |
| 1628 | }, |
| 1629 | "name": { |
| 1630 | "description": "The canonical name of this endpoint.", |
| 1631 | "type": "string" |
| 1632 | }, |
| 1633 | "target": { |
| 1634 | "description": "The specification of an Internet routable address of API frontend that will handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). It should be either a valid IPv4 address or a fully-qualified domain name. For example, \"8.8.8.8\" or \"myservice.appspot.com\".", |
| 1635 | "type": "string" |
| 1636 | } |
| 1637 | }, |
| 1638 | "type": "object" |
| 1639 | }, |
| 1640 | "Enum": { |
| 1641 | "description": "Enum type definition.", |
| 1642 | "id": "Enum", |
| 1643 | "properties": { |
| 1644 | "enumvalue": { |
| 1645 | "description": "Enum value definitions.", |
| 1646 | "items": { |
| 1647 | "$ref": "EnumValue" |
| 1648 | }, |
| 1649 | "type": "array" |
| 1650 | }, |
| 1651 | "name": { |
| 1652 | "description": "Enum type name.", |
| 1653 | "type": "string" |
| 1654 | }, |
| 1655 | "options": { |
| 1656 | "description": "Protocol buffer options.", |
| 1657 | "items": { |
| 1658 | "$ref": "Option" |
| 1659 | }, |
| 1660 | "type": "array" |
| 1661 | }, |
| 1662 | "sourceContext": { |
| 1663 | "$ref": "SourceContext", |
| 1664 | "description": "The source context." |
| 1665 | }, |
| 1666 | "syntax": { |
| 1667 | "description": "The source syntax.", |
| 1668 | "enum": [ |
| 1669 | "SYNTAX_PROTO2", |
| 1670 | "SYNTAX_PROTO3" |
| 1671 | ], |
| 1672 | "enumDescriptions": [ |
| 1673 | "Syntax `proto2`.", |
| 1674 | "Syntax `proto3`." |
| 1675 | ], |
| 1676 | "type": "string" |
| 1677 | } |
| 1678 | }, |
| 1679 | "type": "object" |
| 1680 | }, |
| 1681 | "EnumValue": { |
| 1682 | "description": "Enum value definition.", |
| 1683 | "id": "EnumValue", |
| 1684 | "properties": { |
| 1685 | "name": { |
| 1686 | "description": "Enum value name.", |
| 1687 | "type": "string" |
| 1688 | }, |
| 1689 | "number": { |
| 1690 | "description": "Enum value number.", |
| 1691 | "format": "int32", |
| 1692 | "type": "integer" |
| 1693 | }, |
| 1694 | "options": { |
| 1695 | "description": "Protocol buffer options.", |
| 1696 | "items": { |
| 1697 | "$ref": "Option" |
| 1698 | }, |
| 1699 | "type": "array" |
| 1700 | } |
| 1701 | }, |
| 1702 | "type": "object" |
| 1703 | }, |
| 1704 | "Field": { |
| 1705 | "description": "A single field of a message type.", |
| 1706 | "id": "Field", |
| 1707 | "properties": { |
| 1708 | "cardinality": { |
| 1709 | "description": "The field cardinality.", |
| 1710 | "enum": [ |
| 1711 | "CARDINALITY_UNKNOWN", |
| 1712 | "CARDINALITY_OPTIONAL", |
| 1713 | "CARDINALITY_REQUIRED", |
| 1714 | "CARDINALITY_REPEATED" |
| 1715 | ], |
| 1716 | "enumDescriptions": [ |
| 1717 | "For fields with unknown cardinality.", |
| 1718 | "For optional fields.", |
| 1719 | "For required fields. Proto2 syntax only.", |
| 1720 | "For repeated fields." |
| 1721 | ], |
| 1722 | "type": "string" |
| 1723 | }, |
| 1724 | "defaultValue": { |
| 1725 | "description": "The string value of the default value of this field. Proto2 syntax only.", |
| 1726 | "type": "string" |
| 1727 | }, |
| 1728 | "jsonName": { |
| 1729 | "description": "The field JSON name.", |
| 1730 | "type": "string" |
| 1731 | }, |
| 1732 | "kind": { |
| 1733 | "description": "The field type.", |
| 1734 | "enum": [ |
| 1735 | "TYPE_UNKNOWN", |
| 1736 | "TYPE_DOUBLE", |
| 1737 | "TYPE_FLOAT", |
| 1738 | "TYPE_INT64", |
| 1739 | "TYPE_UINT64", |
| 1740 | "TYPE_INT32", |
| 1741 | "TYPE_FIXED64", |
| 1742 | "TYPE_FIXED32", |
| 1743 | "TYPE_BOOL", |
| 1744 | "TYPE_STRING", |
| 1745 | "TYPE_GROUP", |
| 1746 | "TYPE_MESSAGE", |
| 1747 | "TYPE_BYTES", |
| 1748 | "TYPE_UINT32", |
| 1749 | "TYPE_ENUM", |
| 1750 | "TYPE_SFIXED32", |
| 1751 | "TYPE_SFIXED64", |
| 1752 | "TYPE_SINT32", |
| 1753 | "TYPE_SINT64" |
| 1754 | ], |
| 1755 | "enumDescriptions": [ |
| 1756 | "Field type unknown.", |
| 1757 | "Field type double.", |
| 1758 | "Field type float.", |
| 1759 | "Field type int64.", |
| 1760 | "Field type uint64.", |
| 1761 | "Field type int32.", |
| 1762 | "Field type fixed64.", |
| 1763 | "Field type fixed32.", |
| 1764 | "Field type bool.", |
| 1765 | "Field type string.", |
| 1766 | "Field type group. Proto2 syntax only, and deprecated.", |
| 1767 | "Field type message.", |
| 1768 | "Field type bytes.", |
| 1769 | "Field type uint32.", |
| 1770 | "Field type enum.", |
| 1771 | "Field type sfixed32.", |
| 1772 | "Field type sfixed64.", |
| 1773 | "Field type sint32.", |
| 1774 | "Field type sint64." |
| 1775 | ], |
| 1776 | "type": "string" |
| 1777 | }, |
| 1778 | "name": { |
| 1779 | "description": "The field name.", |
| 1780 | "type": "string" |
| 1781 | }, |
| 1782 | "number": { |
| 1783 | "description": "The field number.", |
| 1784 | "format": "int32", |
| 1785 | "type": "integer" |
| 1786 | }, |
| 1787 | "oneofIndex": { |
| 1788 | "description": "The index of the field type in `Type.oneofs`, for message or enumeration types. The first type has index 1; zero means the type is not in the list.", |
| 1789 | "format": "int32", |
| 1790 | "type": "integer" |
| 1791 | }, |
| 1792 | "options": { |
| 1793 | "description": "The protocol buffer options.", |
| 1794 | "items": { |
| 1795 | "$ref": "Option" |
| 1796 | }, |
| 1797 | "type": "array" |
| 1798 | }, |
| 1799 | "packed": { |
| 1800 | "description": "Whether to use alternative packed wire representation.", |
| 1801 | "type": "boolean" |
| 1802 | }, |
| 1803 | "typeUrl": { |
| 1804 | "description": "The field type URL, without the scheme, for message or enumeration types. Example: `\"type.googleapis.com/google.protobuf.Timestamp\"`.", |
| 1805 | "type": "string" |
| 1806 | } |
| 1807 | }, |
| 1808 | "type": "object" |
| 1809 | }, |
| 1810 | "GetServiceIdentityMetadata": { |
| 1811 | "description": "Metadata for the `GetServiceIdentity` method.", |
| 1812 | "id": "GetServiceIdentityMetadata", |
| 1813 | "properties": {}, |
| 1814 | "type": "object" |
| 1815 | }, |
| 1816 | "GetServiceIdentityResponse": { |
| 1817 | "description": "Response message for getting service identity.", |
| 1818 | "id": "GetServiceIdentityResponse", |
| 1819 | "properties": { |
| 1820 | "identity": { |
| 1821 | "$ref": "ServiceIdentity", |
| 1822 | "description": "Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id." |
| 1823 | }, |
| 1824 | "state": { |
| 1825 | "description": "Service identity state.", |
| 1826 | "enum": [ |
| 1827 | "IDENTITY_STATE_UNSPECIFIED", |
| 1828 | "ACTIVE" |
| 1829 | ], |
| 1830 | "enumDescriptions": [ |
| 1831 | "Default service identity state. This value is used if the state is omitted.", |
| 1832 | "Service identity has been created and can be used." |
| 1833 | ], |
| 1834 | "type": "string" |
| 1835 | } |
| 1836 | }, |
| 1837 | "type": "object" |
| 1838 | }, |
| 1839 | "GoogleApiService": { |
yoshi-code-bot | 9e2cde2 | 2021-04-29 03:48:05 -0700 | [diff] [blame] | 1840 | "description": "`Service` is the root object of Google API service configuration (service config). It describes the basic information about a logical service, such as the service name and the user-facing title, and delegates other aspects to sub-sections. Each sub-section is either a proto message or a repeated proto message that configures a specific aspect, such as auth. For more information, see each proto message definition. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis: - name: google.calendar.v3.Calendar visibility: rules: - selector: \"google.calendar.v3.*\" restriction: PREVIEW backend: rules: - selector: \"google.calendar.v3.*\" address: calendar.example.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 1841 | "id": "GoogleApiService", |
| 1842 | "properties": { |
| 1843 | "apis": { |
| 1844 | "description": "A list of API interfaces exported by this service. Only the `name` field of the google.protobuf.Api needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files.", |
| 1845 | "items": { |
| 1846 | "$ref": "Api" |
| 1847 | }, |
| 1848 | "type": "array" |
| 1849 | }, |
| 1850 | "authentication": { |
| 1851 | "$ref": "Authentication", |
| 1852 | "description": "Auth configuration." |
| 1853 | }, |
| 1854 | "backend": { |
| 1855 | "$ref": "Backend", |
| 1856 | "description": "API backend configuration." |
| 1857 | }, |
| 1858 | "billing": { |
| 1859 | "$ref": "Billing", |
| 1860 | "description": "Billing configuration." |
| 1861 | }, |
| 1862 | "configVersion": { |
| 1863 | "description": "Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to `3`.", |
| 1864 | "format": "uint32", |
| 1865 | "type": "integer" |
| 1866 | }, |
| 1867 | "context": { |
| 1868 | "$ref": "Context", |
| 1869 | "description": "Context configuration." |
| 1870 | }, |
| 1871 | "control": { |
| 1872 | "$ref": "Control", |
| 1873 | "description": "Configuration for the service control plane." |
| 1874 | }, |
| 1875 | "customError": { |
| 1876 | "$ref": "CustomError", |
| 1877 | "description": "Custom error configuration." |
| 1878 | }, |
| 1879 | "documentation": { |
| 1880 | "$ref": "Documentation", |
| 1881 | "description": "Additional API documentation." |
| 1882 | }, |
| 1883 | "endpoints": { |
| 1884 | "description": "Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.", |
| 1885 | "items": { |
| 1886 | "$ref": "Endpoint" |
| 1887 | }, |
| 1888 | "type": "array" |
| 1889 | }, |
| 1890 | "enums": { |
| 1891 | "description": "A list of all enum types included in this API service. Enums referenced directly or indirectly by the `apis` are automatically included. Enums which are not referenced but shall be included should be listed here by name. Example: enums: - name: google.someapi.v1.SomeEnum", |
| 1892 | "items": { |
| 1893 | "$ref": "Enum" |
| 1894 | }, |
| 1895 | "type": "array" |
| 1896 | }, |
| 1897 | "http": { |
| 1898 | "$ref": "Http", |
| 1899 | "description": "HTTP configuration." |
| 1900 | }, |
| 1901 | "id": { |
| 1902 | "description": "A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.", |
| 1903 | "type": "string" |
| 1904 | }, |
| 1905 | "logging": { |
| 1906 | "$ref": "Logging", |
| 1907 | "description": "Logging configuration." |
| 1908 | }, |
| 1909 | "logs": { |
| 1910 | "description": "Defines the logs used by this service.", |
| 1911 | "items": { |
| 1912 | "$ref": "LogDescriptor" |
| 1913 | }, |
| 1914 | "type": "array" |
| 1915 | }, |
| 1916 | "metrics": { |
| 1917 | "description": "Defines the metrics used by this service.", |
| 1918 | "items": { |
| 1919 | "$ref": "MetricDescriptor" |
| 1920 | }, |
| 1921 | "type": "array" |
| 1922 | }, |
| 1923 | "monitoredResources": { |
| 1924 | "description": "Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.", |
| 1925 | "items": { |
| 1926 | "$ref": "MonitoredResourceDescriptor" |
| 1927 | }, |
| 1928 | "type": "array" |
| 1929 | }, |
| 1930 | "monitoring": { |
| 1931 | "$ref": "Monitoring", |
| 1932 | "description": "Monitoring configuration." |
| 1933 | }, |
| 1934 | "name": { |
| 1935 | "description": "The service name, which is a DNS-like logical identifier for the service, such as `calendar.googleapis.com`. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.", |
| 1936 | "type": "string" |
| 1937 | }, |
| 1938 | "producerProjectId": { |
| 1939 | "description": "The Google project that owns this service.", |
| 1940 | "type": "string" |
| 1941 | }, |
| 1942 | "quota": { |
| 1943 | "$ref": "Quota", |
| 1944 | "description": "Quota configuration." |
| 1945 | }, |
| 1946 | "sourceInfo": { |
| 1947 | "$ref": "SourceInfo", |
| 1948 | "description": "Output only. The source information for this configuration if available." |
| 1949 | }, |
| 1950 | "systemParameters": { |
| 1951 | "$ref": "SystemParameters", |
| 1952 | "description": "System parameter configuration." |
| 1953 | }, |
| 1954 | "systemTypes": { |
| 1955 | "description": "A list of all proto message types included in this API service. It serves similar purpose as [google.api.Service.types], except that these types are not needed by user-defined APIs. Therefore, they will not show up in the generated discovery doc. This field should only be used to define system APIs in ESF.", |
| 1956 | "items": { |
| 1957 | "$ref": "Type" |
| 1958 | }, |
| 1959 | "type": "array" |
| 1960 | }, |
| 1961 | "title": { |
| 1962 | "description": "The product title for this service.", |
| 1963 | "type": "string" |
| 1964 | }, |
| 1965 | "types": { |
| 1966 | "description": "A list of all proto message types included in this API service. Types referenced directly or indirectly by the `apis` are automatically included. Messages which are not referenced but shall be included, such as types used by the `google.protobuf.Any` type, should be listed here by name. Example: types: - name: google.protobuf.Int32", |
| 1967 | "items": { |
| 1968 | "$ref": "Type" |
| 1969 | }, |
| 1970 | "type": "array" |
| 1971 | }, |
| 1972 | "usage": { |
| 1973 | "$ref": "Usage", |
| 1974 | "description": "Configuration controlling usage of this service." |
| 1975 | } |
| 1976 | }, |
| 1977 | "type": "object" |
| 1978 | }, |
| 1979 | "GoogleApiServiceusageV1OperationMetadata": { |
| 1980 | "description": "The operation metadata returned for the batchend services operation.", |
| 1981 | "id": "GoogleApiServiceusageV1OperationMetadata", |
| 1982 | "properties": { |
| 1983 | "resourceNames": { |
| 1984 | "description": "The full name of the resources that this operation is directly associated with.", |
| 1985 | "items": { |
| 1986 | "type": "string" |
| 1987 | }, |
| 1988 | "type": "array" |
| 1989 | } |
| 1990 | }, |
| 1991 | "type": "object" |
| 1992 | }, |
| 1993 | "GoogleApiServiceusageV1Service": { |
| 1994 | "description": "A service that is available for use by the consumer.", |
| 1995 | "id": "GoogleApiServiceusageV1Service", |
| 1996 | "properties": { |
| 1997 | "config": { |
| 1998 | "$ref": "GoogleApiServiceusageV1ServiceConfig", |
| 1999 | "description": "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." |
| 2000 | }, |
| 2001 | "name": { |
| 2002 | "description": "The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com", |
| 2003 | "type": "string" |
| 2004 | }, |
| 2005 | "parent": { |
| 2006 | "description": "The resource name of the consumer. A valid name would be: - projects/123", |
| 2007 | "type": "string" |
| 2008 | }, |
| 2009 | "state": { |
| 2010 | "description": "Whether or not the service has been enabled for use by the consumer.", |
| 2011 | "enum": [ |
| 2012 | "STATE_UNSPECIFIED", |
| 2013 | "DISABLED", |
| 2014 | "ENABLED" |
| 2015 | ], |
| 2016 | "enumDescriptions": [ |
| 2017 | "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.", |
| 2018 | "The service cannot be used by this consumer. It has either been explicitly disabled, or has never been enabled.", |
| 2019 | "The service has been explicitly enabled for use by this consumer." |
| 2020 | ], |
| 2021 | "type": "string" |
| 2022 | } |
| 2023 | }, |
| 2024 | "type": "object" |
| 2025 | }, |
| 2026 | "GoogleApiServiceusageV1ServiceConfig": { |
| 2027 | "description": "The configuration of the service.", |
| 2028 | "id": "GoogleApiServiceusageV1ServiceConfig", |
| 2029 | "properties": { |
| 2030 | "apis": { |
| 2031 | "description": "A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.", |
| 2032 | "items": { |
| 2033 | "$ref": "Api" |
| 2034 | }, |
| 2035 | "type": "array" |
| 2036 | }, |
| 2037 | "authentication": { |
| 2038 | "$ref": "Authentication", |
| 2039 | "description": "Auth configuration. Contains only the OAuth rules." |
| 2040 | }, |
| 2041 | "documentation": { |
| 2042 | "$ref": "Documentation", |
| 2043 | "description": "Additional API documentation. Contains only the summary and the documentation URL." |
| 2044 | }, |
| 2045 | "endpoints": { |
| 2046 | "description": "Configuration for network endpoints. Contains only the names and aliases of the endpoints.", |
| 2047 | "items": { |
| 2048 | "$ref": "Endpoint" |
| 2049 | }, |
| 2050 | "type": "array" |
| 2051 | }, |
| 2052 | "monitoredResources": { |
| 2053 | "description": "Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.", |
| 2054 | "items": { |
| 2055 | "$ref": "MonitoredResourceDescriptor" |
| 2056 | }, |
| 2057 | "type": "array" |
| 2058 | }, |
| 2059 | "monitoring": { |
| 2060 | "$ref": "Monitoring", |
| 2061 | "description": "Monitoring configuration. This should not include the 'producer_destinations' field." |
| 2062 | }, |
| 2063 | "name": { |
| 2064 | "description": "The DNS address at which this service is available. An example DNS address would be: `calendar.googleapis.com`.", |
| 2065 | "type": "string" |
| 2066 | }, |
| 2067 | "quota": { |
| 2068 | "$ref": "Quota", |
| 2069 | "description": "Quota configuration." |
| 2070 | }, |
| 2071 | "title": { |
| 2072 | "description": "The product title for this service.", |
| 2073 | "type": "string" |
| 2074 | }, |
| 2075 | "usage": { |
| 2076 | "$ref": "Usage", |
| 2077 | "description": "Configuration controlling usage of this service." |
| 2078 | } |
| 2079 | }, |
| 2080 | "type": "object" |
| 2081 | }, |
| 2082 | "GoogleApiServiceusageV1beta1GetServiceIdentityResponse": { |
| 2083 | "description": "Response message for getting service identity.", |
| 2084 | "id": "GoogleApiServiceusageV1beta1GetServiceIdentityResponse", |
| 2085 | "properties": { |
| 2086 | "identity": { |
| 2087 | "$ref": "GoogleApiServiceusageV1beta1ServiceIdentity", |
| 2088 | "description": "Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id." |
| 2089 | }, |
| 2090 | "state": { |
| 2091 | "description": "Service identity state.", |
| 2092 | "enum": [ |
| 2093 | "IDENTITY_STATE_UNSPECIFIED", |
| 2094 | "ACTIVE" |
| 2095 | ], |
| 2096 | "enumDescriptions": [ |
| 2097 | "Default service identity state. This value is used if the state is omitted.", |
| 2098 | "Service identity has been created and can be used." |
| 2099 | ], |
| 2100 | "type": "string" |
| 2101 | } |
| 2102 | }, |
| 2103 | "type": "object" |
| 2104 | }, |
| 2105 | "GoogleApiServiceusageV1beta1ServiceIdentity": { |
| 2106 | "description": "Service identity for a service. This is the identity that service producer should use to access consumer resources.", |
| 2107 | "id": "GoogleApiServiceusageV1beta1ServiceIdentity", |
| 2108 | "properties": { |
| 2109 | "email": { |
| 2110 | "description": "The email address of the service account that a service producer would use to access consumer resources.", |
| 2111 | "type": "string" |
| 2112 | }, |
| 2113 | "uniqueId": { |
| 2114 | "description": "The unique and stable id of the service account. https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount", |
| 2115 | "type": "string" |
| 2116 | } |
| 2117 | }, |
| 2118 | "type": "object" |
| 2119 | }, |
| 2120 | "Http": { |
| 2121 | "description": "Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.", |
| 2122 | "id": "Http", |
| 2123 | "properties": { |
| 2124 | "fullyDecodeReservedExpansion": { |
| 2125 | "description": "When set to true, URL path parameters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where \"%2F\" will be left encoded. The default behavior is to not decode RFC 6570 reserved characters in multi segment matches.", |
| 2126 | "type": "boolean" |
| 2127 | }, |
| 2128 | "rules": { |
| 2129 | "description": "A list of HTTP configuration rules that apply to individual API methods. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 2130 | "items": { |
| 2131 | "$ref": "HttpRule" |
| 2132 | }, |
| 2133 | "type": "array" |
| 2134 | } |
| 2135 | }, |
| 2136 | "type": "object" |
| 2137 | }, |
| 2138 | "HttpRule": { |
| 2139 | "description": "# gRPC Transcoding gRPC Transcoding is a feature for mapping between a gRPC method and one or more HTTP REST endpoints. It allows developers to build a single API service that supports both gRPC APIs and REST APIs. Many systems, including [Google APIs](https://github.com/googleapis/googleapis), [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC Gateway](https://github.com/grpc-ecosystem/grpc-gateway), and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature and use it for large scale production services. `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies how different portions of the gRPC request message are mapped to the URL path, URL query parameters, and HTTP request body. It also controls how the gRPC response message is mapped to the HTTP response body. `HttpRule` is typically specified as an `google.api.http` annotation on the gRPC method. Each mapping specifies a URL path template and an HTTP method. The path template may refer to one or more fields in the gRPC request message, as long as each field is a non-repeated field with a primitive (non-message) type. The path template controls how fields of the request message are mapped to the URL path. Example: service Messaging { rpc GetMessage(GetMessageRequest) returns (Message) { option (google.api.http) = { get: \"/v1/{name=messages/*}\" }; } } message GetMessageRequest { string name = 1; // Mapped to URL path. } message Message { string text = 1; // The resource content. } This enables an HTTP REST to gRPC mapping as below: HTTP | gRPC -----|----- `GET /v1/messages/123456` | `GetMessage(name: \"messages/123456\")` Any fields in the request message which are not bound by the path template automatically become HTTP query parameters if there is no HTTP request body. For example: service Messaging { rpc GetMessage(GetMessageRequest) returns (Message) { option (google.api.http) = { get:\"/v1/messages/{message_id}\" }; } } message GetMessageRequest { message SubMessage { string subfield = 1; } string message_id = 1; // Mapped to URL path. int64 revision = 2; // Mapped to URL query parameter `revision`. SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. } This enables a HTTP JSON to RPC mapping as below: HTTP | gRPC -----|----- `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))` Note that fields which are mapped to URL query parameters must have a primitive type or a repeated primitive type or a non-repeated message type. In the case of a repeated type, the parameter can be repeated in the URL as `...?param=A¶m=B`. In the case of a message type, each field of the message is mapped to a separate parameter, such as `...?foo.a=A&foo.b=B&foo.c=C`. For HTTP methods that allow a request body, the `body` field specifies the mapping. Consider a REST update method on the message resource collection: service Messaging { rpc UpdateMessage(UpdateMessageRequest) returns (Message) { option (google.api.http) = { patch: \"/v1/messages/{message_id}\" body: \"message\" }; } } message UpdateMessageRequest { string message_id = 1; // mapped to the URL Message message = 2; // mapped to the body } The following HTTP JSON to RPC mapping is enabled, where the representation of the JSON in the request body is determined by protos JSON encoding: HTTP | gRPC -----|----- `PATCH /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" message { text: \"Hi!\" })` The special name `*` can be used in the body mapping to define that every field not bound by the path template should be mapped to the request body. This enables the following alternative definition of the update method: service Messaging { rpc UpdateMessage(Message) returns (Message) { option (google.api.http) = { patch: \"/v1/messages/{message_id}\" body: \"*\" }; } } message Message { string message_id = 1; string text = 2; } The following HTTP JSON to RPC mapping is enabled: HTTP | gRPC -----|----- `PATCH /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" text: \"Hi!\")` Note that when using `*` in the body mapping, it is not possible to have HTTP parameters, as all fields not bound by the path end in the body. This makes this option more rarely used in practice when defining REST APIs. The common usage of `*` is in custom methods which don't use the URL at all for transferring data. It is possible to define multiple HTTP methods for one RPC by using the `additional_bindings` option. Example: service Messaging { rpc GetMessage(GetMessageRequest) returns (Message) { option (google.api.http) = { get: \"/v1/messages/{message_id}\" additional_bindings { get: \"/v1/users/{user_id}/messages/{message_id}\" } }; } } message GetMessageRequest { string message_id = 1; string user_id = 2; } This enables the following two alternative HTTP JSON to RPC mappings: HTTP | gRPC -----|----- `GET /v1/messages/123456` | `GetMessage(message_id: \"123456\")` `GET /v1/users/me/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")` ## Rules for HTTP mapping 1. Leaf request fields (recursive expansion nested messages in the request message) are classified into three categories: - Fields referred by the path template. They are passed via the URL path. - Fields referred by the HttpRule.body. They are passed via the HTTP request body. - All other fields are passed via the URL query parameters, and the parameter name is the field path in the request message. A repeated field can be represented as multiple query parameters under the same name. 2. If HttpRule.body is \"*\", there is no URL query parameter, all fields are passed via URL path and HTTP request body. 3. If HttpRule.body is omitted, there is no HTTP request body, all fields are passed via URL path and URL query parameters. ### Path template syntax Template = \"/\" Segments [ Verb ] ; Segments = Segment { \"/\" Segment } ; Segment = \"*\" | \"**\" | LITERAL | Variable ; Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ; FieldPath = IDENT { \".\" IDENT } ; Verb = \":\" LITERAL ; The syntax `*` matches a single URL path segment. The syntax `**` matches zero or more URL path segments, which must be the last part of the URL path except the `Verb`. The syntax `Variable` matches part of the URL path as specified by its template. A variable template must not contain other variables. If a variable matches a single path segment, its template may be omitted, e.g. `{var}` is equivalent to `{var=*}`. The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` contains any reserved character, such characters should be percent-encoded before the matching. If a variable contains exactly one path segment, such as `\"{var}\"` or `\"{var=*}\"`, when such a variable is expanded into a URL path on the client side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The server side does the reverse decoding. Such variables show up in the [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) as `{var}`. If a variable contains multiple path segments, such as `\"{var=foo/*}\"` or `\"{var=**}\"`, when such a variable is expanded into a URL path on the client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. The server side does the reverse decoding, except \"%2F\" and \"%2f\" are left unchanged. Such variables show up in the [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) as `{+var}`. ## Using gRPC API Service Configuration gRPC API Service Configuration (service config) is a configuration language for configuring a gRPC service to become a user-facing product. The service config is simply the YAML representation of the `google.api.Service` proto message. As an alternative to annotating your proto file, you can configure gRPC transcoding in your service config YAML files. You do this by specifying a `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same effect as the proto annotation. This can be particularly useful if you have a proto that is reused in multiple services. Note that any transcoding specified in the service config will override any matching transcoding configuration in the proto. Example: http: rules: # Selects a gRPC method and applies HttpRule to it. - selector: example.v1.Messaging.GetMessage get: /v1/messages/{message_id}/{sub.subfield} ## Special notes When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the proto to JSON conversion must follow the [proto3 specification](https://developers.google.com/protocol-buffers/docs/proto3#json). While the single segment variable follows the semantics of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String Expansion, the multi segment variable **does not** follow RFC 6570 Section 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion does not expand special characters like `?` and `#`, which would lead to invalid URLs. As the result, gRPC Transcoding uses a custom encoding for multi segment variables. The path variables **must not** refer to any repeated or mapped field, because client libraries are not capable of handling such variable expansion. The path variables **must not** capture the leading \"/\" character. The reason is that the most common use case \"{var}\" does not capture the leading \"/\" character. For consistency, all path variables must share the same behavior. Repeated message fields must not be mapped to URL query parameters, because no client library can support such complicated mapping. If an API needs to use a JSON array for request or response body, it can map the request or response body to a repeated field. However, some gRPC Transcoding implementations may not support this feature.", |
| 2140 | "id": "HttpRule", |
| 2141 | "properties": { |
| 2142 | "additionalBindings": { |
| 2143 | "description": "Additional HTTP bindings for the selector. Nested bindings must not contain an `additional_bindings` field themselves (that is, the nesting may only be one level deep).", |
| 2144 | "items": { |
| 2145 | "$ref": "HttpRule" |
| 2146 | }, |
| 2147 | "type": "array" |
| 2148 | }, |
| 2149 | "body": { |
| 2150 | "description": "The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.", |
| 2151 | "type": "string" |
| 2152 | }, |
| 2153 | "custom": { |
| 2154 | "$ref": "CustomHttpPattern", |
| 2155 | "description": "The custom pattern is used for specifying an HTTP method that is not included in the `pattern` field, such as HEAD, or \"*\" to leave the HTTP method unspecified for this rule. The wild-card rule is useful for services that provide content to Web (HTML) clients." |
| 2156 | }, |
| 2157 | "delete": { |
| 2158 | "description": "Maps to HTTP DELETE. Used for deleting a resource.", |
| 2159 | "type": "string" |
| 2160 | }, |
| 2161 | "get": { |
| 2162 | "description": "Maps to HTTP GET. Used for listing and getting information about resources.", |
| 2163 | "type": "string" |
| 2164 | }, |
| 2165 | "patch": { |
| 2166 | "description": "Maps to HTTP PATCH. Used for updating a resource.", |
| 2167 | "type": "string" |
| 2168 | }, |
| 2169 | "post": { |
| 2170 | "description": "Maps to HTTP POST. Used for creating a resource or performing an action.", |
| 2171 | "type": "string" |
| 2172 | }, |
| 2173 | "put": { |
| 2174 | "description": "Maps to HTTP PUT. Used for replacing a resource.", |
| 2175 | "type": "string" |
| 2176 | }, |
| 2177 | "responseBody": { |
| 2178 | "description": "Optional. The name of the response field whose value is mapped to the HTTP response body. When omitted, the entire response message will be used as the HTTP response body. NOTE: The referred field must be present at the top-level of the response message type.", |
| 2179 | "type": "string" |
| 2180 | }, |
| 2181 | "selector": { |
| 2182 | "description": "Selects a method to which this rule applies. Refer to selector for syntax details.", |
| 2183 | "type": "string" |
| 2184 | } |
| 2185 | }, |
| 2186 | "type": "object" |
| 2187 | }, |
| 2188 | "ImportAdminOverridesMetadata": { |
| 2189 | "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.", |
| 2190 | "id": "ImportAdminOverridesMetadata", |
| 2191 | "properties": {}, |
| 2192 | "type": "object" |
| 2193 | }, |
| 2194 | "ImportAdminOverridesRequest": { |
| 2195 | "description": "Request message for ImportAdminOverrides", |
| 2196 | "id": "ImportAdminOverridesRequest", |
| 2197 | "properties": { |
| 2198 | "force": { |
| 2199 | "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 2200 | "type": "boolean" |
| 2201 | }, |
| 2202 | "forceOnly": { |
| 2203 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 2204 | "items": { |
| 2205 | "enum": [ |
| 2206 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 2207 | "LIMIT_DECREASE_BELOW_USAGE", |
| 2208 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 2209 | ], |
| 2210 | "enumDescriptions": [ |
| 2211 | "Unspecified quota safety check.", |
| 2212 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 2213 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 2214 | ], |
| 2215 | "type": "string" |
| 2216 | }, |
| 2217 | "type": "array" |
| 2218 | }, |
| 2219 | "inlineSource": { |
| 2220 | "$ref": "OverrideInlineSource", |
| 2221 | "description": "The import data is specified in the request message itself" |
| 2222 | } |
| 2223 | }, |
| 2224 | "type": "object" |
| 2225 | }, |
| 2226 | "ImportAdminOverridesResponse": { |
| 2227 | "description": "Response message for ImportAdminOverrides", |
| 2228 | "id": "ImportAdminOverridesResponse", |
| 2229 | "properties": { |
| 2230 | "overrides": { |
| 2231 | "description": "The overrides that were created from the imported data.", |
| 2232 | "items": { |
| 2233 | "$ref": "QuotaOverride" |
| 2234 | }, |
| 2235 | "type": "array" |
| 2236 | } |
| 2237 | }, |
| 2238 | "type": "object" |
| 2239 | }, |
| 2240 | "ImportAdminQuotaPoliciesMetadata": { |
| 2241 | "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.", |
| 2242 | "id": "ImportAdminQuotaPoliciesMetadata", |
| 2243 | "properties": {}, |
| 2244 | "type": "object" |
| 2245 | }, |
| 2246 | "ImportAdminQuotaPoliciesResponse": { |
| 2247 | "description": "Response message for ImportAdminQuotaPolicies", |
| 2248 | "id": "ImportAdminQuotaPoliciesResponse", |
| 2249 | "properties": { |
| 2250 | "policies": { |
| 2251 | "description": "The policies that were created from the imported data.", |
| 2252 | "items": { |
| 2253 | "$ref": "AdminQuotaPolicy" |
| 2254 | }, |
| 2255 | "type": "array" |
| 2256 | } |
| 2257 | }, |
| 2258 | "type": "object" |
| 2259 | }, |
| 2260 | "ImportConsumerOverridesMetadata": { |
| 2261 | "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.", |
| 2262 | "id": "ImportConsumerOverridesMetadata", |
| 2263 | "properties": {}, |
| 2264 | "type": "object" |
| 2265 | }, |
| 2266 | "ImportConsumerOverridesRequest": { |
| 2267 | "description": "Request message for ImportConsumerOverrides", |
| 2268 | "id": "ImportConsumerOverridesRequest", |
| 2269 | "properties": { |
| 2270 | "force": { |
| 2271 | "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", |
| 2272 | "type": "boolean" |
| 2273 | }, |
| 2274 | "forceOnly": { |
| 2275 | "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", |
| 2276 | "items": { |
| 2277 | "enum": [ |
| 2278 | "QUOTA_SAFETY_CHECK_UNSPECIFIED", |
| 2279 | "LIMIT_DECREASE_BELOW_USAGE", |
| 2280 | "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH" |
| 2281 | ], |
| 2282 | "enumDescriptions": [ |
| 2283 | "Unspecified quota safety check.", |
| 2284 | "Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.", |
| 2285 | "Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent." |
| 2286 | ], |
| 2287 | "type": "string" |
| 2288 | }, |
| 2289 | "type": "array" |
| 2290 | }, |
| 2291 | "inlineSource": { |
| 2292 | "$ref": "OverrideInlineSource", |
| 2293 | "description": "The import data is specified in the request message itself" |
| 2294 | } |
| 2295 | }, |
| 2296 | "type": "object" |
| 2297 | }, |
| 2298 | "ImportConsumerOverridesResponse": { |
| 2299 | "description": "Response message for ImportConsumerOverrides", |
| 2300 | "id": "ImportConsumerOverridesResponse", |
| 2301 | "properties": { |
| 2302 | "overrides": { |
| 2303 | "description": "The overrides that were created from the imported data.", |
| 2304 | "items": { |
| 2305 | "$ref": "QuotaOverride" |
| 2306 | }, |
| 2307 | "type": "array" |
| 2308 | } |
| 2309 | }, |
| 2310 | "type": "object" |
| 2311 | }, |
| 2312 | "JwtLocation": { |
| 2313 | "description": "Specifies a location to extract JWT from an API request.", |
| 2314 | "id": "JwtLocation", |
| 2315 | "properties": { |
| 2316 | "header": { |
| 2317 | "description": "Specifies HTTP header name to extract JWT token.", |
| 2318 | "type": "string" |
| 2319 | }, |
| 2320 | "query": { |
| 2321 | "description": "Specifies URL query parameter name to extract JWT token.", |
| 2322 | "type": "string" |
| 2323 | }, |
| 2324 | "valuePrefix": { |
| 2325 | "description": "The value prefix. The value format is \"value_prefix{token}\" Only applies to \"in\" header type. Must be empty for \"in\" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for \"Authorization: Bearer {JWT}\", value_prefix=\"Bearer \" with a space at the end.", |
| 2326 | "type": "string" |
| 2327 | } |
| 2328 | }, |
| 2329 | "type": "object" |
| 2330 | }, |
| 2331 | "LabelDescriptor": { |
| 2332 | "description": "A description of a label.", |
| 2333 | "id": "LabelDescriptor", |
| 2334 | "properties": { |
| 2335 | "description": { |
| 2336 | "description": "A human-readable description for the label.", |
| 2337 | "type": "string" |
| 2338 | }, |
| 2339 | "key": { |
| 2340 | "description": "The label key.", |
| 2341 | "type": "string" |
| 2342 | }, |
| 2343 | "valueType": { |
| 2344 | "description": "The type of data that can be assigned to the label.", |
| 2345 | "enum": [ |
| 2346 | "STRING", |
| 2347 | "BOOL", |
| 2348 | "INT64" |
| 2349 | ], |
| 2350 | "enumDescriptions": [ |
| 2351 | "A variable-length string. This is the default.", |
| 2352 | "Boolean; true or false.", |
| 2353 | "A 64-bit signed integer." |
| 2354 | ], |
| 2355 | "type": "string" |
| 2356 | } |
| 2357 | }, |
| 2358 | "type": "object" |
| 2359 | }, |
| 2360 | "ListAdminOverridesResponse": { |
| 2361 | "description": "Response message for ListAdminOverrides.", |
| 2362 | "id": "ListAdminOverridesResponse", |
| 2363 | "properties": { |
| 2364 | "nextPageToken": { |
| 2365 | "description": "Token identifying which result to start with; returned by a previous list call.", |
| 2366 | "type": "string" |
| 2367 | }, |
| 2368 | "overrides": { |
| 2369 | "description": "Admin overrides on this limit.", |
| 2370 | "items": { |
| 2371 | "$ref": "QuotaOverride" |
| 2372 | }, |
| 2373 | "type": "array" |
| 2374 | } |
| 2375 | }, |
| 2376 | "type": "object" |
| 2377 | }, |
| 2378 | "ListConsumerOverridesResponse": { |
| 2379 | "description": "Response message for ListConsumerOverrides.", |
| 2380 | "id": "ListConsumerOverridesResponse", |
| 2381 | "properties": { |
| 2382 | "nextPageToken": { |
| 2383 | "description": "Token identifying which result to start with; returned by a previous list call.", |
| 2384 | "type": "string" |
| 2385 | }, |
| 2386 | "overrides": { |
| 2387 | "description": "Consumer overrides on this limit.", |
| 2388 | "items": { |
| 2389 | "$ref": "QuotaOverride" |
| 2390 | }, |
| 2391 | "type": "array" |
| 2392 | } |
| 2393 | }, |
| 2394 | "type": "object" |
| 2395 | }, |
| 2396 | "ListConsumerQuotaMetricsResponse": { |
| 2397 | "description": "Response message for ListConsumerQuotaMetrics", |
| 2398 | "id": "ListConsumerQuotaMetricsResponse", |
| 2399 | "properties": { |
| 2400 | "metrics": { |
| 2401 | "description": "Quota settings for the consumer, organized by quota metric.", |
| 2402 | "items": { |
| 2403 | "$ref": "ConsumerQuotaMetric" |
| 2404 | }, |
| 2405 | "type": "array" |
| 2406 | }, |
| 2407 | "nextPageToken": { |
| 2408 | "description": "Token identifying which result to start with; returned by a previous list call.", |
| 2409 | "type": "string" |
| 2410 | } |
| 2411 | }, |
| 2412 | "type": "object" |
| 2413 | }, |
| 2414 | "ListOperationsResponse": { |
| 2415 | "description": "The response message for Operations.ListOperations.", |
| 2416 | "id": "ListOperationsResponse", |
| 2417 | "properties": { |
| 2418 | "nextPageToken": { |
| 2419 | "description": "The standard List next-page token.", |
| 2420 | "type": "string" |
| 2421 | }, |
| 2422 | "operations": { |
| 2423 | "description": "A list of operations that matches the specified filter in the request.", |
| 2424 | "items": { |
| 2425 | "$ref": "Operation" |
| 2426 | }, |
| 2427 | "type": "array" |
| 2428 | } |
| 2429 | }, |
| 2430 | "type": "object" |
| 2431 | }, |
| 2432 | "ListServicesResponse": { |
| 2433 | "description": "Response message for the `ListServices` method.", |
| 2434 | "id": "ListServicesResponse", |
| 2435 | "properties": { |
| 2436 | "nextPageToken": { |
| 2437 | "description": "Token that can be passed to `ListServices` to resume a paginated query.", |
| 2438 | "type": "string" |
| 2439 | }, |
| 2440 | "services": { |
| 2441 | "description": "The available services for the requested project.", |
| 2442 | "items": { |
| 2443 | "$ref": "Service" |
| 2444 | }, |
| 2445 | "type": "array" |
| 2446 | } |
| 2447 | }, |
| 2448 | "type": "object" |
| 2449 | }, |
| 2450 | "LogDescriptor": { |
| 2451 | "description": "A description of a log type. Example in YAML format: - name: library.googleapis.com/activity_history description: The history of borrowing and returning library items. display_name: Activity labels: - key: /customer_id description: Identifier of a library customer", |
| 2452 | "id": "LogDescriptor", |
| 2453 | "properties": { |
| 2454 | "description": { |
| 2455 | "description": "A human-readable description of this log. This information appears in the documentation and can contain details.", |
| 2456 | "type": "string" |
| 2457 | }, |
| 2458 | "displayName": { |
| 2459 | "description": "The human-readable name for this log. This information appears on the user interface and should be concise.", |
| 2460 | "type": "string" |
| 2461 | }, |
| 2462 | "labels": { |
| 2463 | "description": "The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.", |
| 2464 | "items": { |
| 2465 | "$ref": "LabelDescriptor" |
| 2466 | }, |
| 2467 | "type": "array" |
| 2468 | }, |
| 2469 | "name": { |
| 2470 | "description": "The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].", |
| 2471 | "type": "string" |
| 2472 | } |
| 2473 | }, |
| 2474 | "type": "object" |
| 2475 | }, |
| 2476 | "Logging": { |
| 2477 | "description": "Logging configuration of the service. The following example shows how to configure logs to be sent to the producer and consumer projects. In the example, the `activity_history` log is sent to both the producer and consumer projects, whereas the `purchase_history` log is only sent to the producer project. monitored_resources: - type: library.googleapis.com/branch labels: - key: /city description: The city where the library branch is located in. - key: /name description: The name of the branch. logs: - name: activity_history labels: - key: /customer_id - name: purchase_history logging: producer_destinations: - monitored_resource: library.googleapis.com/branch logs: - activity_history - purchase_history consumer_destinations: - monitored_resource: library.googleapis.com/branch logs: - activity_history", |
| 2478 | "id": "Logging", |
| 2479 | "properties": { |
| 2480 | "consumerDestinations": { |
| 2481 | "description": "Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.", |
| 2482 | "items": { |
| 2483 | "$ref": "LoggingDestination" |
| 2484 | }, |
| 2485 | "type": "array" |
| 2486 | }, |
| 2487 | "producerDestinations": { |
| 2488 | "description": "Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.", |
| 2489 | "items": { |
| 2490 | "$ref": "LoggingDestination" |
| 2491 | }, |
| 2492 | "type": "array" |
| 2493 | } |
| 2494 | }, |
| 2495 | "type": "object" |
| 2496 | }, |
| 2497 | "LoggingDestination": { |
| 2498 | "description": "Configuration of a specific logging destination (the producer project or the consumer project).", |
| 2499 | "id": "LoggingDestination", |
| 2500 | "properties": { |
| 2501 | "logs": { |
| 2502 | "description": "Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by \"/\".", |
| 2503 | "items": { |
| 2504 | "type": "string" |
| 2505 | }, |
| 2506 | "type": "array" |
| 2507 | }, |
| 2508 | "monitoredResource": { |
| 2509 | "description": "The monitored resource type. The type must be defined in the Service.monitored_resources section.", |
| 2510 | "type": "string" |
| 2511 | } |
| 2512 | }, |
| 2513 | "type": "object" |
| 2514 | }, |
| 2515 | "Method": { |
| 2516 | "description": "Method represents a method of an API interface.", |
| 2517 | "id": "Method", |
| 2518 | "properties": { |
| 2519 | "name": { |
| 2520 | "description": "The simple name of this method.", |
| 2521 | "type": "string" |
| 2522 | }, |
| 2523 | "options": { |
| 2524 | "description": "Any metadata attached to the method.", |
| 2525 | "items": { |
| 2526 | "$ref": "Option" |
| 2527 | }, |
| 2528 | "type": "array" |
| 2529 | }, |
| 2530 | "requestStreaming": { |
| 2531 | "description": "If true, the request is streamed.", |
| 2532 | "type": "boolean" |
| 2533 | }, |
| 2534 | "requestTypeUrl": { |
| 2535 | "description": "A URL of the input message type.", |
| 2536 | "type": "string" |
| 2537 | }, |
| 2538 | "responseStreaming": { |
| 2539 | "description": "If true, the response is streamed.", |
| 2540 | "type": "boolean" |
| 2541 | }, |
| 2542 | "responseTypeUrl": { |
| 2543 | "description": "The URL of the output message type.", |
| 2544 | "type": "string" |
| 2545 | }, |
| 2546 | "syntax": { |
| 2547 | "description": "The source syntax of this method.", |
| 2548 | "enum": [ |
| 2549 | "SYNTAX_PROTO2", |
| 2550 | "SYNTAX_PROTO3" |
| 2551 | ], |
| 2552 | "enumDescriptions": [ |
| 2553 | "Syntax `proto2`.", |
| 2554 | "Syntax `proto3`." |
| 2555 | ], |
| 2556 | "type": "string" |
| 2557 | } |
| 2558 | }, |
| 2559 | "type": "object" |
| 2560 | }, |
| 2561 | "MetricDescriptor": { |
| 2562 | "description": "Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable. ", |
| 2563 | "id": "MetricDescriptor", |
| 2564 | "properties": { |
| 2565 | "description": { |
| 2566 | "description": "A detailed description of the metric, which can be used in documentation.", |
| 2567 | "type": "string" |
| 2568 | }, |
| 2569 | "displayName": { |
| 2570 | "description": "A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example \"Request count\". This field is optional but it is recommended to be set for any metrics associated with user-visible concepts, such as Quota.", |
| 2571 | "type": "string" |
| 2572 | }, |
| 2573 | "labels": { |
| 2574 | "description": "The set of labels that can be used to describe a specific instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies` metric type has a label for the HTTP response code, `response_code`, so you can look at latencies for successful responses or just for responses that failed.", |
| 2575 | "items": { |
| 2576 | "$ref": "LabelDescriptor" |
| 2577 | }, |
| 2578 | "type": "array" |
| 2579 | }, |
| 2580 | "launchStage": { |
| 2581 | "description": "Optional. The launch stage of the metric definition.", |
| 2582 | "enum": [ |
| 2583 | "LAUNCH_STAGE_UNSPECIFIED", |
| 2584 | "UNIMPLEMENTED", |
| 2585 | "PRELAUNCH", |
| 2586 | "EARLY_ACCESS", |
| 2587 | "ALPHA", |
| 2588 | "BETA", |
| 2589 | "GA", |
| 2590 | "DEPRECATED" |
| 2591 | ], |
| 2592 | "enumDescriptions": [ |
| 2593 | "Do not use this default value.", |
| 2594 | "The feature is not yet implemented. Users can not use it.", |
| 2595 | "Prelaunch features are hidden from users and are only visible internally.", |
| 2596 | "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", |
| 2597 | "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don\u2019t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", |
| 2598 | "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", |
| 2599 | "GA features are open to all developers and are considered stable and fully qualified for production use.", |
| 2600 | "Deprecated features are scheduled to be shut down and removed. For more information, see the \u201cDeprecation Policy\u201d section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." |
| 2601 | ], |
| 2602 | "type": "string" |
| 2603 | }, |
| 2604 | "metadata": { |
| 2605 | "$ref": "MetricDescriptorMetadata", |
| 2606 | "description": "Optional. Metadata which can be used to guide usage of the metric." |
| 2607 | }, |
| 2608 | "metricKind": { |
| 2609 | "description": "Whether the metric records instantaneous values, changes to a value, etc. Some combinations of `metric_kind` and `value_type` might not be supported.", |
| 2610 | "enum": [ |
| 2611 | "METRIC_KIND_UNSPECIFIED", |
| 2612 | "GAUGE", |
| 2613 | "DELTA", |
| 2614 | "CUMULATIVE" |
| 2615 | ], |
| 2616 | "enumDescriptions": [ |
| 2617 | "Do not use this default value.", |
| 2618 | "An instantaneous measurement of a value.", |
| 2619 | "The change in a value during a time interval.", |
| 2620 | "A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
| 2621 | ], |
| 2622 | "type": "string" |
| 2623 | }, |
| 2624 | "monitoredResourceTypes": { |
| 2625 | "description": "Read-only. If present, then a time series, which is identified partially by a metric type and a MonitoredResourceDescriptor, that is associated with this metric type can only be associated with one of the monitored resource types listed here.", |
| 2626 | "items": { |
| 2627 | "type": "string" |
| 2628 | }, |
| 2629 | "type": "array" |
| 2630 | }, |
| 2631 | "name": { |
| 2632 | "description": "The resource name of the metric descriptor.", |
| 2633 | "type": "string" |
| 2634 | }, |
| 2635 | "type": { |
| 2636 | "description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined metric types have the DNS name `custom.googleapis.com` or `external.googleapis.com`. Metric types should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\" \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"", |
| 2637 | "type": "string" |
| 2638 | }, |
| 2639 | "unit": { |
| 2640 | "description": "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", |
| 2641 | "type": "string" |
| 2642 | }, |
| 2643 | "valueType": { |
| 2644 | "description": "Whether the measurement is an integer, a floating-point number, etc. Some combinations of `metric_kind` and `value_type` might not be supported.", |
| 2645 | "enum": [ |
| 2646 | "VALUE_TYPE_UNSPECIFIED", |
| 2647 | "BOOL", |
| 2648 | "INT64", |
| 2649 | "DOUBLE", |
| 2650 | "STRING", |
| 2651 | "DISTRIBUTION", |
| 2652 | "MONEY" |
| 2653 | ], |
| 2654 | "enumDescriptions": [ |
| 2655 | "Do not use this default value.", |
| 2656 | "The value is a boolean. This value type can be used only if the metric kind is `GAUGE`.", |
| 2657 | "The value is a signed 64-bit integer.", |
| 2658 | "The value is a double precision floating point number.", |
| 2659 | "The value is a text string. This value type can be used only if the metric kind is `GAUGE`.", |
| 2660 | "The value is a `Distribution`.", |
| 2661 | "The value is money." |
| 2662 | ], |
| 2663 | "type": "string" |
| 2664 | } |
| 2665 | }, |
| 2666 | "type": "object" |
| 2667 | }, |
| 2668 | "MetricDescriptorMetadata": { |
| 2669 | "description": "Additional annotations that can be used to guide the usage of a metric.", |
| 2670 | "id": "MetricDescriptorMetadata", |
| 2671 | "properties": { |
| 2672 | "ingestDelay": { |
| 2673 | "description": "The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.", |
| 2674 | "format": "google-duration", |
| 2675 | "type": "string" |
| 2676 | }, |
| 2677 | "launchStage": { |
| 2678 | "description": "Deprecated. Must use the MetricDescriptor.launch_stage instead.", |
| 2679 | "enum": [ |
| 2680 | "LAUNCH_STAGE_UNSPECIFIED", |
| 2681 | "UNIMPLEMENTED", |
| 2682 | "PRELAUNCH", |
| 2683 | "EARLY_ACCESS", |
| 2684 | "ALPHA", |
| 2685 | "BETA", |
| 2686 | "GA", |
| 2687 | "DEPRECATED" |
| 2688 | ], |
| 2689 | "enumDescriptions": [ |
| 2690 | "Do not use this default value.", |
| 2691 | "The feature is not yet implemented. Users can not use it.", |
| 2692 | "Prelaunch features are hidden from users and are only visible internally.", |
| 2693 | "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", |
| 2694 | "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don\u2019t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", |
| 2695 | "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", |
| 2696 | "GA features are open to all developers and are considered stable and fully qualified for production use.", |
| 2697 | "Deprecated features are scheduled to be shut down and removed. For more information, see the \u201cDeprecation Policy\u201d section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." |
| 2698 | ], |
| 2699 | "type": "string" |
| 2700 | }, |
| 2701 | "samplePeriod": { |
| 2702 | "description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.", |
| 2703 | "format": "google-duration", |
| 2704 | "type": "string" |
| 2705 | } |
| 2706 | }, |
| 2707 | "type": "object" |
| 2708 | }, |
| 2709 | "MetricRule": { |
| 2710 | "description": "Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.", |
| 2711 | "id": "MetricRule", |
| 2712 | "properties": { |
| 2713 | "metricCosts": { |
| 2714 | "additionalProperties": { |
| 2715 | "format": "int64", |
| 2716 | "type": "string" |
| 2717 | }, |
| 2718 | "description": "Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.", |
| 2719 | "type": "object" |
| 2720 | }, |
| 2721 | "selector": { |
| 2722 | "description": "Selects the methods to which this rule applies. Refer to selector for syntax details.", |
| 2723 | "type": "string" |
| 2724 | } |
| 2725 | }, |
| 2726 | "type": "object" |
| 2727 | }, |
| 2728 | "Mixin": { |
| 2729 | "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", |
| 2730 | "id": "Mixin", |
| 2731 | "properties": { |
| 2732 | "name": { |
| 2733 | "description": "The fully qualified name of the interface which is included.", |
| 2734 | "type": "string" |
| 2735 | }, |
| 2736 | "root": { |
| 2737 | "description": "If non-empty specifies a path under which inherited HTTP paths are rooted.", |
| 2738 | "type": "string" |
| 2739 | } |
| 2740 | }, |
| 2741 | "type": "object" |
| 2742 | }, |
| 2743 | "MonitoredResourceDescriptor": { |
| 2744 | "description": "An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of `\"gce_instance\"` and specifies the use of the labels `\"instance_id\"` and `\"zone\"` to identify particular VM instances. Different APIs can support different monitored resource types. APIs generally provide a `list` method that returns the monitored resource descriptors used by the API. ", |
| 2745 | "id": "MonitoredResourceDescriptor", |
| 2746 | "properties": { |
| 2747 | "description": { |
| 2748 | "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.", |
| 2749 | "type": "string" |
| 2750 | }, |
| 2751 | "displayName": { |
| 2752 | "description": "Optional. A concise name for the monitored resource type that might be displayed in user interfaces. It should be a Title Cased Noun Phrase, without any article or other determiners. For example, `\"Google Cloud SQL Database\"`.", |
| 2753 | "type": "string" |
| 2754 | }, |
| 2755 | "labels": { |
| 2756 | "description": "Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels `\"database_id\"` and `\"zone\"`.", |
| 2757 | "items": { |
| 2758 | "$ref": "LabelDescriptor" |
| 2759 | }, |
| 2760 | "type": "array" |
| 2761 | }, |
| 2762 | "launchStage": { |
| 2763 | "description": "Optional. The launch stage of the monitored resource definition.", |
| 2764 | "enum": [ |
| 2765 | "LAUNCH_STAGE_UNSPECIFIED", |
| 2766 | "UNIMPLEMENTED", |
| 2767 | "PRELAUNCH", |
| 2768 | "EARLY_ACCESS", |
| 2769 | "ALPHA", |
| 2770 | "BETA", |
| 2771 | "GA", |
| 2772 | "DEPRECATED" |
| 2773 | ], |
| 2774 | "enumDescriptions": [ |
| 2775 | "Do not use this default value.", |
| 2776 | "The feature is not yet implemented. Users can not use it.", |
| 2777 | "Prelaunch features are hidden from users and are only visible internally.", |
| 2778 | "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", |
| 2779 | "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don\u2019t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", |
| 2780 | "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", |
| 2781 | "GA features are open to all developers and are considered stable and fully qualified for production use.", |
| 2782 | "Deprecated features are scheduled to be shut down and removed. For more information, see the \u201cDeprecation Policy\u201d section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." |
| 2783 | ], |
| 2784 | "type": "string" |
| 2785 | }, |
| 2786 | "name": { |
| 2787 | "description": "Optional. The resource name of the monitored resource descriptor: `\"projects/{project_id}/monitoredResourceDescriptors/{type}\"` where {type} is the value of the `type` field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format `\"monitoredResourceDescriptors/{type}\"`.", |
| 2788 | "type": "string" |
| 2789 | }, |
| 2790 | "type": { |
| 2791 | "description": "Required. The monitored resource type. For example, the type `\"cloudsql_database\"` represents databases in Google Cloud SQL.", |
| 2792 | "type": "string" |
| 2793 | } |
| 2794 | }, |
| 2795 | "type": "object" |
| 2796 | }, |
| 2797 | "Monitoring": { |
| 2798 | "description": "Monitoring configuration of the service. The example below shows how to configure monitored resources and metrics for monitoring. In the example, a monitored resource and two metrics are defined. The `library.googleapis.com/book/returned_count` metric is sent to both producer and consumer projects, whereas the `library.googleapis.com/book/num_overdue` metric is only sent to the consumer project. monitored_resources: - type: library.googleapis.com/Branch display_name: \"Library Branch\" description: \"A branch of a library.\" launch_stage: GA labels: - key: resource_container description: \"The Cloud container (ie. project id) for the Branch.\" - key: location description: \"The location of the library branch.\" - key: branch_id description: \"The id of the branch.\" metrics: - name: library.googleapis.com/book/returned_count display_name: \"Books Returned\" description: \"The count of books that have been returned.\" launch_stage: GA metric_kind: DELTA value_type: INT64 unit: \"1\" labels: - key: customer_id description: \"The id of the customer.\" - name: library.googleapis.com/book/num_overdue display_name: \"Books Overdue\" description: \"The current number of overdue books.\" launch_stage: GA metric_kind: GAUGE value_type: INT64 unit: \"1\" labels: - key: customer_id description: \"The id of the customer.\" monitoring: producer_destinations: - monitored_resource: library.googleapis.com/Branch metrics: - library.googleapis.com/book/returned_count consumer_destinations: - monitored_resource: library.googleapis.com/Branch metrics: - library.googleapis.com/book/returned_count - library.googleapis.com/book/num_overdue", |
| 2799 | "id": "Monitoring", |
| 2800 | "properties": { |
| 2801 | "consumerDestinations": { |
| 2802 | "description": "Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.", |
| 2803 | "items": { |
| 2804 | "$ref": "MonitoringDestination" |
| 2805 | }, |
| 2806 | "type": "array" |
| 2807 | }, |
| 2808 | "producerDestinations": { |
| 2809 | "description": "Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used once in the Monitoring configuration.", |
| 2810 | "items": { |
| 2811 | "$ref": "MonitoringDestination" |
| 2812 | }, |
| 2813 | "type": "array" |
| 2814 | } |
| 2815 | }, |
| 2816 | "type": "object" |
| 2817 | }, |
| 2818 | "MonitoringDestination": { |
| 2819 | "description": "Configuration of a specific monitoring destination (the producer project or the consumer project).", |
| 2820 | "id": "MonitoringDestination", |
| 2821 | "properties": { |
| 2822 | "metrics": { |
| 2823 | "description": "Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.", |
| 2824 | "items": { |
| 2825 | "type": "string" |
| 2826 | }, |
| 2827 | "type": "array" |
| 2828 | }, |
| 2829 | "monitoredResource": { |
| 2830 | "description": "The monitored resource type. The type must be defined in Service.monitored_resources section.", |
| 2831 | "type": "string" |
| 2832 | } |
| 2833 | }, |
| 2834 | "type": "object" |
| 2835 | }, |
| 2836 | "OAuthRequirements": { |
| 2837 | "description": "OAuth scopes are a way to define data and permissions on data. For example, there are scopes defined for \"Read-only access to Google Calendar\" and \"Access to Cloud Platform\". Users can consent to a scope for an application, giving it permission to access that data on their behalf. OAuth scope specifications should be fairly coarse grained; a user will need to see and understand the text description of what your scope means. In most cases: use one or at most two OAuth scopes for an entire family of products. If your product has multiple APIs, you should probably be sharing the OAuth scope across all of those APIs. When you need finer grained OAuth consent screens: talk with your product management about how developers will use them in practice. Please note that even though each of the canonical scopes is enough for a request to be accepted and passed to the backend, a request can still fail due to the backend requiring additional scopes or permissions.", |
| 2838 | "id": "OAuthRequirements", |
| 2839 | "properties": { |
| 2840 | "canonicalScopes": { |
| 2841 | "description": "The list of publicly documented OAuth scopes that are allowed access. An OAuth token containing any of these scopes will be accepted. Example: canonical_scopes: https://www.googleapis.com/auth/calendar, https://www.googleapis.com/auth/calendar.read", |
| 2842 | "type": "string" |
| 2843 | } |
| 2844 | }, |
| 2845 | "type": "object" |
| 2846 | }, |
| 2847 | "Operation": { |
| 2848 | "description": "This resource represents a long-running operation that is the result of a network API call.", |
| 2849 | "id": "Operation", |
| 2850 | "properties": { |
| 2851 | "done": { |
| 2852 | "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", |
| 2853 | "type": "boolean" |
| 2854 | }, |
| 2855 | "error": { |
| 2856 | "$ref": "Status", |
| 2857 | "description": "The error result of the operation in case of failure or cancellation." |
| 2858 | }, |
| 2859 | "metadata": { |
| 2860 | "additionalProperties": { |
| 2861 | "description": "Properties of the object. Contains field @type with type URL.", |
| 2862 | "type": "any" |
| 2863 | }, |
| 2864 | "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", |
| 2865 | "type": "object" |
| 2866 | }, |
| 2867 | "name": { |
| 2868 | "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", |
| 2869 | "type": "string" |
| 2870 | }, |
| 2871 | "response": { |
| 2872 | "additionalProperties": { |
| 2873 | "description": "Properties of the object. Contains field @type with type URL.", |
| 2874 | "type": "any" |
| 2875 | }, |
| 2876 | "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", |
| 2877 | "type": "object" |
| 2878 | } |
| 2879 | }, |
| 2880 | "type": "object" |
| 2881 | }, |
| 2882 | "OperationMetadata": { |
| 2883 | "description": "The operation metadata returned for the batchend services operation.", |
| 2884 | "id": "OperationMetadata", |
| 2885 | "properties": { |
| 2886 | "resourceNames": { |
| 2887 | "description": "The full name of the resources that this operation is directly associated with.", |
| 2888 | "items": { |
| 2889 | "type": "string" |
| 2890 | }, |
| 2891 | "type": "array" |
| 2892 | } |
| 2893 | }, |
| 2894 | "type": "object" |
| 2895 | }, |
| 2896 | "Option": { |
| 2897 | "description": "A protocol buffer option, which can be attached to a message, field, enumeration, etc.", |
| 2898 | "id": "Option", |
| 2899 | "properties": { |
| 2900 | "name": { |
| 2901 | "description": "The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, `\"map_entry\"`. For custom options, it should be the fully-qualified name. For example, `\"google.api.http\"`.", |
| 2902 | "type": "string" |
| 2903 | }, |
| 2904 | "value": { |
| 2905 | "additionalProperties": { |
| 2906 | "description": "Properties of the object. Contains field @type with type URL.", |
| 2907 | "type": "any" |
| 2908 | }, |
| 2909 | "description": "The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.", |
| 2910 | "type": "object" |
| 2911 | } |
| 2912 | }, |
| 2913 | "type": "object" |
| 2914 | }, |
| 2915 | "OverrideInlineSource": { |
| 2916 | "description": "Import data embedded in the request message", |
| 2917 | "id": "OverrideInlineSource", |
| 2918 | "properties": { |
| 2919 | "overrides": { |
| 2920 | "description": "The overrides to create. Each override must have a value for 'metric' and 'unit', to specify which metric and which limit the override should be applied to. The 'name' field of the override does not need to be set; it is ignored.", |
| 2921 | "items": { |
| 2922 | "$ref": "QuotaOverride" |
| 2923 | }, |
| 2924 | "type": "array" |
| 2925 | } |
| 2926 | }, |
| 2927 | "type": "object" |
| 2928 | }, |
| 2929 | "Page": { |
| 2930 | "description": "Represents a documentation page. A page can contain subpages to represent nested documentation set structure.", |
| 2931 | "id": "Page", |
| 2932 | "properties": { |
| 2933 | "content": { |
| 2934 | "description": "The Markdown content of the page. You can use (== include {path} ==) to include content from a Markdown file.", |
| 2935 | "type": "string" |
| 2936 | }, |
| 2937 | "name": { |
| 2938 | "description": "The name of the page. It will be used as an identity of the page to generate URI of the page, text of the link to this page in navigation, etc. The full page name (start from the root page name to this page concatenated with `.`) can be used as reference to the page in your documentation. For example: pages: - name: Tutorial content: (== include tutorial.md ==) subpages: - name: Java content: (== include tutorial_java.md ==) You can reference `Java` page using Markdown reference link syntax: `Java`.", |
| 2939 | "type": "string" |
| 2940 | }, |
| 2941 | "subpages": { |
| 2942 | "description": "Subpages of this page. The order of subpages specified here will be honored in the generated docset.", |
| 2943 | "items": { |
| 2944 | "$ref": "Page" |
| 2945 | }, |
| 2946 | "type": "array" |
| 2947 | } |
| 2948 | }, |
| 2949 | "type": "object" |
| 2950 | }, |
| 2951 | "Quota": { |
| 2952 | "description": "Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: \"1/min/{project}\" # rate limit for consumer projects values: STANDARD: 10000 # The metric rules bind all methods to the read_calls metric, # except for the UpdateBook and DeleteBook methods. These two methods # are mapped to the write_calls metric, with the UpdateBook method # consuming at twice rate as the DeleteBook method. metric_rules: - selector: \"*\" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64 ", |
| 2953 | "id": "Quota", |
| 2954 | "properties": { |
| 2955 | "limits": { |
| 2956 | "description": "List of `QuotaLimit` definitions for the service.", |
| 2957 | "items": { |
| 2958 | "$ref": "QuotaLimit" |
| 2959 | }, |
| 2960 | "type": "array" |
| 2961 | }, |
| 2962 | "metricRules": { |
| 2963 | "description": "List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.", |
| 2964 | "items": { |
| 2965 | "$ref": "MetricRule" |
| 2966 | }, |
| 2967 | "type": "array" |
| 2968 | } |
| 2969 | }, |
| 2970 | "type": "object" |
| 2971 | }, |
| 2972 | "QuotaBucket": { |
| 2973 | "description": "A quota bucket is a quota provisioning unit for a specific set of dimensions.", |
| 2974 | "id": "QuotaBucket", |
| 2975 | "properties": { |
| 2976 | "adminOverride": { |
| 2977 | "$ref": "QuotaOverride", |
| 2978 | "description": "Admin override on this quota bucket." |
| 2979 | }, |
| 2980 | "consumerOverride": { |
| 2981 | "$ref": "QuotaOverride", |
| 2982 | "description": "Consumer override on this quota bucket." |
| 2983 | }, |
| 2984 | "defaultLimit": { |
| 2985 | "description": "The default limit of this quota bucket, as specified by the service configuration.", |
| 2986 | "format": "int64", |
| 2987 | "type": "string" |
| 2988 | }, |
| 2989 | "dimensions": { |
| 2990 | "additionalProperties": { |
| 2991 | "type": "string" |
| 2992 | }, |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 2993 | "description": "The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 2994 | "type": "object" |
| 2995 | }, |
| 2996 | "effectiveLimit": { |
| 2997 | "description": "The effective limit of this quota bucket. Equal to default_limit if there are no overrides.", |
| 2998 | "format": "int64", |
| 2999 | "type": "string" |
| 3000 | }, |
| 3001 | "producerOverride": { |
| 3002 | "$ref": "QuotaOverride", |
| 3003 | "description": "Producer override on this quota bucket." |
| 3004 | } |
| 3005 | }, |
| 3006 | "type": "object" |
| 3007 | }, |
| 3008 | "QuotaLimit": { |
| 3009 | "description": "`QuotaLimit` defines a specific limit that applies over a specified duration for a limit type. There can be at most one limit for a duration and limit type combination defined within a `QuotaGroup`.", |
| 3010 | "id": "QuotaLimit", |
| 3011 | "properties": { |
| 3012 | "defaultLimit": { |
| 3013 | "description": "Default number of tokens that can be consumed during the specified duration. This is the number of tokens assigned when a client application developer activates the service for his/her project. Specifying a value of 0 will block all requests. This can be used if you are provisioning quota to selected consumers and blocking others. Similarly, a value of -1 will indicate an unlimited quota. No other negative values are allowed. Used by group-based quotas only.", |
| 3014 | "format": "int64", |
| 3015 | "type": "string" |
| 3016 | }, |
| 3017 | "description": { |
| 3018 | "description": "Optional. User-visible, extended description for this quota limit. Should be used only when more context is needed to understand this limit than provided by the limit's display name (see: `display_name`).", |
| 3019 | "type": "string" |
| 3020 | }, |
| 3021 | "displayName": { |
| 3022 | "description": "User-visible display name for this limit. Optional. If not set, the UI will provide a default display name based on the quota configuration. This field can be used to override the default display name generated from the configuration.", |
| 3023 | "type": "string" |
| 3024 | }, |
| 3025 | "duration": { |
| 3026 | "description": "Duration of this limit in textual notation. Must be \"100s\" or \"1d\". Used by group-based quotas only.", |
| 3027 | "type": "string" |
| 3028 | }, |
| 3029 | "freeTier": { |
| 3030 | "description": "Free tier value displayed in the Developers Console for this limit. The free tier is the number of tokens that will be subtracted from the billed amount when billing is enabled. This field can only be set on a limit with duration \"1d\", in a billable group; it is invalid on any other limit. If this field is not set, it defaults to 0, indicating that there is no free tier for this service. Used by group-based quotas only.", |
| 3031 | "format": "int64", |
| 3032 | "type": "string" |
| 3033 | }, |
| 3034 | "maxLimit": { |
| 3035 | "description": "Maximum number of tokens that can be consumed during the specified duration. Client application developers can override the default limit up to this maximum. If specified, this value cannot be set to a value less than the default limit. If not specified, it is set to the default limit. To allow clients to apply overrides with no upper bound, set this to -1, indicating unlimited maximum quota. Used by group-based quotas only.", |
| 3036 | "format": "int64", |
| 3037 | "type": "string" |
| 3038 | }, |
| 3039 | "metric": { |
| 3040 | "description": "The name of the metric this quota limit applies to. The quota limits with the same metric will be checked together during runtime. The metric must be defined within the service config.", |
| 3041 | "type": "string" |
| 3042 | }, |
| 3043 | "name": { |
| 3044 | "description": "Name of the quota limit. The name must be provided, and it must be unique within the service. The name can only include alphanumeric characters as well as '-'. The maximum length of the limit name is 64 characters.", |
| 3045 | "type": "string" |
| 3046 | }, |
| 3047 | "unit": { |
| 3048 | "description": "Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", |
| 3049 | "type": "string" |
| 3050 | }, |
| 3051 | "values": { |
| 3052 | "additionalProperties": { |
| 3053 | "format": "int64", |
| 3054 | "type": "string" |
| 3055 | }, |
| 3056 | "description": "Tiered limit values. You must specify this as a key:value pair, with an integer value that is the maximum number of requests allowed for the specified unit. Currently only STANDARD is supported.", |
| 3057 | "type": "object" |
| 3058 | } |
| 3059 | }, |
| 3060 | "type": "object" |
| 3061 | }, |
| 3062 | "QuotaOverride": { |
| 3063 | "description": "A quota override", |
| 3064 | "id": "QuotaOverride", |
| 3065 | "properties": { |
| 3066 | "adminOverrideAncestor": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 3067 | "description": "The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 3068 | "type": "string" |
| 3069 | }, |
| 3070 | "dimensions": { |
| 3071 | "additionalProperties": { |
| 3072 | "type": "string" |
| 3073 | }, |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 3074 | "description": "If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. For example, an override on a limit with the unit `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the override is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in `{brackets}` in the unit (besides `{project}` or `{user}`) is a defined key. * `project` is not a valid key; the project is already specified in the parent resource name. * `user` is not a valid key; the API does not support quota overrides that apply only to a specific user. * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * If any valid key other than `region` or `zone` appears in the map, then all valid keys other than `region` or `zone` must also appear in the map.", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 3075 | "type": "object" |
| 3076 | }, |
| 3077 | "metric": { |
| 3078 | "description": "The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus`", |
| 3079 | "type": "string" |
| 3080 | }, |
| 3081 | "name": { |
| 3082 | "description": "The resource name of the override. This name is generated by the server when the override is created. Example names would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", |
| 3083 | "type": "string" |
| 3084 | }, |
| 3085 | "overrideValue": { |
| 3086 | "description": "The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota).", |
| 3087 | "format": "int64", |
| 3088 | "type": "string" |
| 3089 | }, |
| 3090 | "unit": { |
| 3091 | "description": "The limit unit of the limit to which this override applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.", |
| 3092 | "type": "string" |
| 3093 | } |
| 3094 | }, |
| 3095 | "type": "object" |
| 3096 | }, |
| 3097 | "Service": { |
| 3098 | "description": "A service that is available for use by the consumer.", |
| 3099 | "id": "Service", |
| 3100 | "properties": { |
| 3101 | "config": { |
| 3102 | "$ref": "ServiceConfig", |
| 3103 | "description": "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." |
| 3104 | }, |
| 3105 | "name": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 3106 | "description": "The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 3107 | "type": "string" |
| 3108 | }, |
| 3109 | "parent": { |
yoshi-code-bot | 3dd1527 | 2021-04-21 15:07:48 -0700 | [diff] [blame] | 3110 | "description": "The resource name of the consumer. A valid name would be: - `projects/123`", |
Anthonios Partheniou | 10f4b67 | 2021-04-13 14:47:53 -0400 | [diff] [blame] | 3111 | "type": "string" |
| 3112 | }, |
| 3113 | "state": { |
| 3114 | "description": "Whether or not the service has been enabled for use by the consumer.", |
| 3115 | "enum": [ |
| 3116 | "STATE_UNSPECIFIED", |
| 3117 | "DISABLED", |
| 3118 | "ENABLED" |
| 3119 | ], |
| 3120 | "enumDescriptions": [ |
| 3121 | "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.", |
| 3122 | "The service cannot be used by this consumer. It has either been explicitly disabled, or has never been enabled.", |
| 3123 | "The service has been explicitly enabled for use by this consumer." |
| 3124 | ], |
| 3125 | "type": "string" |
| 3126 | } |
| 3127 | }, |
| 3128 | "type": "object" |
| 3129 | }, |
| 3130 | "ServiceConfig": { |
| 3131 | "description": "The configuration of the service.", |
| 3132 | "id": "ServiceConfig", |
| 3133 | "properties": { |
| 3134 | "apis": { |
| 3135 | "description": "A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.", |
| 3136 | "items": { |
| 3137 | "$ref": "Api" |
| 3138 | }, |
| 3139 | "type": "array" |
| 3140 | }, |
| 3141 | "authentication": { |
| 3142 | "$ref": "Authentication", |
| 3143 | "description": "Auth configuration. Contains only the OAuth rules." |
| 3144 | }, |
| 3145 | "documentation": { |
| 3146 | "$ref": "Documentation", |
| 3147 | "description": "Additional API documentation. Contains only the summary and the documentation URL." |
| 3148 | }, |
| 3149 | "endpoints": { |
| 3150 | "description": "Configuration for network endpoints. Contains only the names and aliases of the endpoints.", |
| 3151 | "items": { |
| 3152 | "$ref": "Endpoint" |
| 3153 | }, |
| 3154 | "type": "array" |
| 3155 | }, |
| 3156 | "monitoredResources": { |
| 3157 | "description": "Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations.", |
| 3158 | "items": { |
| 3159 | "$ref": "MonitoredResourceDescriptor" |
| 3160 | }, |
| 3161 | "type": "array" |
| 3162 | }, |
| 3163 | "monitoring": { |
| 3164 | "$ref": "Monitoring", |
| 3165 | "description": "Monitoring configuration. This should not include the 'producer_destinations' field." |
| 3166 | }, |
| 3167 | "name": { |
| 3168 | "description": "The DNS address at which this service is available. An example DNS address would be: `calendar.googleapis.com`.", |
| 3169 | "type": "string" |
| 3170 | }, |
| 3171 | "quota": { |
| 3172 | "$ref": "Quota", |
| 3173 | "description": "Quota configuration." |
| 3174 | }, |
| 3175 | "title": { |
| 3176 | "description": "The product title for this service.", |
| 3177 | "type": "string" |
| 3178 | }, |
| 3179 | "usage": { |
| 3180 | "$ref": "Usage", |
| 3181 | "description": "Configuration controlling usage of this service." |
| 3182 | } |
| 3183 | }, |
| 3184 | "type": "object" |
| 3185 | }, |
| 3186 | "ServiceIdentity": { |
| 3187 | "description": "Service identity for a service. This is the identity that service producer should use to access consumer resources.", |
| 3188 | "id": "ServiceIdentity", |
| 3189 | "properties": { |
| 3190 | "email": { |
| 3191 | "description": "The email address of the service account that a service producer would use to access consumer resources.", |
| 3192 | "type": "string" |
| 3193 | }, |
| 3194 | "uniqueId": { |
| 3195 | "description": "The unique and stable id of the service account. https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount", |
| 3196 | "type": "string" |
| 3197 | } |
| 3198 | }, |
| 3199 | "type": "object" |
| 3200 | }, |
| 3201 | "SourceContext": { |
| 3202 | "description": "`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.", |
| 3203 | "id": "SourceContext", |
| 3204 | "properties": { |
| 3205 | "fileName": { |
| 3206 | "description": "The path-qualified name of the .proto file that contained the associated protobuf element. For example: `\"google/protobuf/source_context.proto\"`.", |
| 3207 | "type": "string" |
| 3208 | } |
| 3209 | }, |
| 3210 | "type": "object" |
| 3211 | }, |
| 3212 | "SourceInfo": { |
| 3213 | "description": "Source information used to create a Service Config", |
| 3214 | "id": "SourceInfo", |
| 3215 | "properties": { |
| 3216 | "sourceFiles": { |
| 3217 | "description": "All files used during config generation.", |
| 3218 | "items": { |
| 3219 | "additionalProperties": { |
| 3220 | "description": "Properties of the object. Contains field @type with type URL.", |
| 3221 | "type": "any" |
| 3222 | }, |
| 3223 | "type": "object" |
| 3224 | }, |
| 3225 | "type": "array" |
| 3226 | } |
| 3227 | }, |
| 3228 | "type": "object" |
| 3229 | }, |
| 3230 | "Status": { |
| 3231 | "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", |
| 3232 | "id": "Status", |
| 3233 | "properties": { |
| 3234 | "code": { |
| 3235 | "description": "The status code, which should be an enum value of google.rpc.Code.", |
| 3236 | "format": "int32", |
| 3237 | "type": "integer" |
| 3238 | }, |
| 3239 | "details": { |
| 3240 | "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", |
| 3241 | "items": { |
| 3242 | "additionalProperties": { |
| 3243 | "description": "Properties of the object. Contains field @type with type URL.", |
| 3244 | "type": "any" |
| 3245 | }, |
| 3246 | "type": "object" |
| 3247 | }, |
| 3248 | "type": "array" |
| 3249 | }, |
| 3250 | "message": { |
| 3251 | "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", |
| 3252 | "type": "string" |
| 3253 | } |
| 3254 | }, |
| 3255 | "type": "object" |
| 3256 | }, |
| 3257 | "SystemParameter": { |
| 3258 | "description": "Define a parameter's name and location. The parameter may be passed as either an HTTP header or a URL query parameter, and if both are passed the behavior is implementation-dependent.", |
| 3259 | "id": "SystemParameter", |
| 3260 | "properties": { |
| 3261 | "httpHeader": { |
| 3262 | "description": "Define the HTTP header name to use for the parameter. It is case insensitive.", |
| 3263 | "type": "string" |
| 3264 | }, |
| 3265 | "name": { |
| 3266 | "description": "Define the name of the parameter, such as \"api_key\" . It is case sensitive.", |
| 3267 | "type": "string" |
| 3268 | }, |
| 3269 | "urlQueryParameter": { |
| 3270 | "description": "Define the URL query parameter name to use for the parameter. It is case sensitive.", |
| 3271 | "type": "string" |
| 3272 | } |
| 3273 | }, |
| 3274 | "type": "object" |
| 3275 | }, |
| 3276 | "SystemParameterRule": { |
| 3277 | "description": "Define a system parameter rule mapping system parameter definitions to methods.", |
| 3278 | "id": "SystemParameterRule", |
| 3279 | "properties": { |
| 3280 | "parameters": { |
| 3281 | "description": "Define parameters. Multiple names may be defined for a parameter. For a given method call, only one of them should be used. If multiple names are used the behavior is implementation-dependent. If none of the specified names are present the behavior is parameter-dependent.", |
| 3282 | "items": { |
| 3283 | "$ref": "SystemParameter" |
| 3284 | }, |
| 3285 | "type": "array" |
| 3286 | }, |
| 3287 | "selector": { |
| 3288 | "description": "Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details.", |
| 3289 | "type": "string" |
| 3290 | } |
| 3291 | }, |
| 3292 | "type": "object" |
| 3293 | }, |
| 3294 | "SystemParameters": { |
| 3295 | "description": "### System parameter configuration A system parameter is a special kind of parameter defined by the API system, not by an individual API. It is typically mapped to an HTTP header and/or a URL query parameter. This configuration specifies which methods change the names of the system parameters.", |
| 3296 | "id": "SystemParameters", |
| 3297 | "properties": { |
| 3298 | "rules": { |
| 3299 | "description": "Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules: - selector: \"*\" parameters: - name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules: - selector: \"/ListShelves\" parameters: - name: api_key http_header: Api-Key1 - name: api_key http_header: Api-Key2 **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 3300 | "items": { |
| 3301 | "$ref": "SystemParameterRule" |
| 3302 | }, |
| 3303 | "type": "array" |
| 3304 | } |
| 3305 | }, |
| 3306 | "type": "object" |
| 3307 | }, |
| 3308 | "Type": { |
| 3309 | "description": "A protocol buffer message type.", |
| 3310 | "id": "Type", |
| 3311 | "properties": { |
| 3312 | "fields": { |
| 3313 | "description": "The list of fields.", |
| 3314 | "items": { |
| 3315 | "$ref": "Field" |
| 3316 | }, |
| 3317 | "type": "array" |
| 3318 | }, |
| 3319 | "name": { |
| 3320 | "description": "The fully qualified message name.", |
| 3321 | "type": "string" |
| 3322 | }, |
| 3323 | "oneofs": { |
| 3324 | "description": "The list of types appearing in `oneof` definitions in this type.", |
| 3325 | "items": { |
| 3326 | "type": "string" |
| 3327 | }, |
| 3328 | "type": "array" |
| 3329 | }, |
| 3330 | "options": { |
| 3331 | "description": "The protocol buffer options.", |
| 3332 | "items": { |
| 3333 | "$ref": "Option" |
| 3334 | }, |
| 3335 | "type": "array" |
| 3336 | }, |
| 3337 | "sourceContext": { |
| 3338 | "$ref": "SourceContext", |
| 3339 | "description": "The source context." |
| 3340 | }, |
| 3341 | "syntax": { |
| 3342 | "description": "The source syntax.", |
| 3343 | "enum": [ |
| 3344 | "SYNTAX_PROTO2", |
| 3345 | "SYNTAX_PROTO3" |
| 3346 | ], |
| 3347 | "enumDescriptions": [ |
| 3348 | "Syntax `proto2`.", |
| 3349 | "Syntax `proto3`." |
| 3350 | ], |
| 3351 | "type": "string" |
| 3352 | } |
| 3353 | }, |
| 3354 | "type": "object" |
| 3355 | }, |
| 3356 | "UpdateAdminQuotaPolicyMetadata": { |
| 3357 | "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.", |
| 3358 | "id": "UpdateAdminQuotaPolicyMetadata", |
| 3359 | "properties": {}, |
| 3360 | "type": "object" |
| 3361 | }, |
| 3362 | "Usage": { |
| 3363 | "description": "Configuration controlling usage of a service.", |
| 3364 | "id": "Usage", |
| 3365 | "properties": { |
| 3366 | "producerNotificationChannel": { |
| 3367 | "description": "The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supports [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification channel. To use Google Cloud Pub/Sub as the channel, this must be the name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format documented in https://cloud.google.com/pubsub/docs/overview.", |
| 3368 | "type": "string" |
| 3369 | }, |
| 3370 | "requirements": { |
| 3371 | "description": "Requirements that must be satisfied before a consumer project can use the service. Each requirement is of the form /; for example 'serviceusage.googleapis.com/billing-enabled'. For Google APIs, a Terms of Service requirement must be included here. Google Cloud APIs must include \"serviceusage.googleapis.com/tos/cloud\". Other Google APIs should include \"serviceusage.googleapis.com/tos/universal\". Additional ToS can be included based on the business needs.", |
| 3372 | "items": { |
| 3373 | "type": "string" |
| 3374 | }, |
| 3375 | "type": "array" |
| 3376 | }, |
| 3377 | "rules": { |
| 3378 | "description": "A list of usage rules that apply to individual API methods. **NOTE:** All service configuration rules follow \"last one wins\" order.", |
| 3379 | "items": { |
| 3380 | "$ref": "UsageRule" |
| 3381 | }, |
| 3382 | "type": "array" |
| 3383 | } |
| 3384 | }, |
| 3385 | "type": "object" |
| 3386 | }, |
| 3387 | "UsageRule": { |
| 3388 | "description": "Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: \"*\" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allow_unregistered_calls: true", |
| 3389 | "id": "UsageRule", |
| 3390 | "properties": { |
| 3391 | "allowUnregisteredCalls": { |
| 3392 | "description": "If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application.", |
| 3393 | "type": "boolean" |
| 3394 | }, |
| 3395 | "selector": { |
| 3396 | "description": "Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details.", |
| 3397 | "type": "string" |
| 3398 | }, |
| 3399 | "skipServiceControl": { |
| 3400 | "description": "If true, the selected method should skip service control and the control plane features, such as quota and billing, will not be available. This flag is used by Google Cloud Endpoints to bypass checks for internal methods, such as service health check methods.", |
| 3401 | "type": "boolean" |
| 3402 | } |
| 3403 | }, |
| 3404 | "type": "object" |
| 3405 | } |
| 3406 | }, |
| 3407 | "servicePath": "", |
| 3408 | "title": "Service Usage API", |
| 3409 | "version": "v1beta1", |
| 3410 | "version_module": true |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 3411 | } |