1{ 2 "kind": "discovery#restDescription", 3 "discoveryVersion": "v1", 4 "id": "servicemanagement:v1", 5 "name": "servicemanagement", 6 "version": "v1", 7 "revision": "0", 8 "title": "Google Service Management API", 9 "description": "The service management API for Google Cloud Platform", 10 "ownerDomain": "google.com", 11 "ownerName": "Google", 12 "icons": { 13 "x16": "http://www.google.com/images/icons/product/search-16.gif", 14 "x32": "http://www.google.com/images/icons/product/search-32.gif" 15 }, 16 "documentationLink": "https://cloud.google.com/service-management/", 17 "protocol": "rest", 18 "rootUrl": "https://servicemanagement.googleapis.com/", 19 "servicePath": "", 20 "baseUrl": "https://servicemanagement.googleapis.com/", 21 "batchPath": "batch", 22 "parameters": { 23 "access_token": { 24 "type": "string", 25 "description": "OAuth access token.", 26 "location": "query" 27 }, 28 "alt": { 29 "type": "string", 30 "description": "Data format for response.", 31 "default": "json", 32 "enum": [ 33 "json", 34 "media", 35 "proto" 36 ], 37 "enumDescriptions": [ 38 "Responses with Content-Type of application/json", 39 "Media download with context-dependent Content-Type", 40 "Responses with Content-Type of application/x-protobuf" 41 ], 42 "location": "query" 43 }, 44 "bearer_token": { 45 "type": "string", 46 "description": "OAuth bearer token.", 47 "location": "query" 48 }, 49 "callback": { 50 "type": "string", 51 "description": "JSONP", 52 "location": "query" 53 }, 54 "fields": { 55 "type": "string", 56 "description": "Selector specifying which fields to include in a partial response.", 57 "location": "query" 58 }, 59 "key": { 60 "type": "string", 61 "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.", 62 "location": "query" 63 }, 64 "oauth_token": { 65 "type": "string", 66 "description": "OAuth 2.0 token for the current user.", 67 "location": "query" 68 }, 69 "pp": { 70 "type": "boolean", 71 "description": "Pretty-print response.", 72 "default": "true", 73 "location": "query" 74 }, 75 "prettyPrint": { 76 "type": "boolean", 77 "description": "Returns response with indentations and line breaks.", 78 "default": "true", 79 "location": "query" 80 }, 81 "quotaUser": { 82 "type": "string", 83 "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.", 84 "location": "query" 85 }, 86 "upload_protocol": { 87 "type": "string", 88 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", 89 "location": "query" 90 }, 91 "uploadType": { 92 "type": "string", 93 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", 94 "location": "query" 95 }, 96 "$.xgafv": { 97 "type": "string", 98 "description": "V1 error format.", 99 "enum": [ 100 "1", 101 "2" 102 ], 103 "enumDescriptions": [ 104 "v1 error format", 105 "v2 error format" 106 ], 107 "location": "query" 108 } 109 }, 110 "auth": { 111 "oauth2": { 112 "scopes": { 113 "https://www.googleapis.com/auth/cloud-platform": { 114 "description": "View and manage your data across Google Cloud Platform services" 115 }, 116 "https://www.googleapis.com/auth/service.management": { 117 "description": "Manage your Google API service configuration" 118 } 119 } 120 } 121 }, 122 "schemas": { 123 "ListServicesResponse": { 124 "id": "ListServicesResponse", 125 "description": "Response message for `ListServices` method.", 126 "type": "object", 127 "properties": { 128 "services": { 129 "description": "The results of the query.", 130 "type": "array", 131 "items": { 132 "$ref": "ManagedService" 133 } 134 }, 135 "nextPageToken": { 136 "description": "Token that can be passed to `ListServices` to resume a paginated query.", 137 "type": "string" 138 } 139 } 140 }, 141 "ManagedService": { 142 "id": "ManagedService", 143 "description": "The full representation of an API Service that is managed by the\n`ServiceManager` API. Includes both the service configuration, as well as\nother control plane deployment related information.", 144 "type": "object", 145 "properties": { 146 "serviceName": { 147 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. This name must match `google.api.Service.name` in the\n`service_config` field.", 148 "type": "string" 149 }, 150 "producerProjectId": { 151 "description": "ID of the project that produces and owns this service.", 152 "type": "string" 153 }, 154 "generation": { 155 "description": "A server-assigned monotonically increasing number that changes whenever a\nmutation is made to the `ManagedService` or any of its components via the\n`ServiceManager` API.", 156 "type": "string", 157 "format": "int64" 158 }, 159 "serviceConfig": { 160 "description": "The service's generated configuration.", 161 "$ref": "Service" 162 }, 163 "configSource": { 164 "description": "User-supplied source configuration for the service. This is distinct from\nthe generated configuration provided in `google.api.Service`.\nThis is NOT populated on GetService calls at the moment.\nNOTE: Any upsert operation that contains both a service_config\nand a config_source is considered invalid and will result in\nan error being returned.", 165 "$ref": "ConfigSource" 166 }, 167 "operations": { 168 "description": "Read-only view of pending operations affecting this resource, if requested.", 169 "type": "array", 170 "items": { 171 "$ref": "Operation" 172 } 173 }, 174 "projectSettings": { 175 "description": "Read-only view of settings for a particular consumer project, if requested.", 176 "$ref": "ProjectSettings" 177 } 178 } 179 }, 180 "Service": { 181 "id": "Service", 182 "description": "`Service` is the root object of the configuration schema. It\ndescribes basic information like the name of the service and the\nexposed API interfaces, and delegates other aspects to configuration\nsub-sections.\n\nExample:\n\n type: google.api.Service\n config_version: 1\n name: calendar.googleapis.com\n title: Google Calendar API\n apis:\n - name: google.calendar.Calendar\n backend:\n rules:\n - selector: \"*\"\n address: calendar.example.com", 183 "type": "object", 184 "properties": { 185 "configVersion": { 186 "description": "The version of the service configuration. The config version may\ninfluence interpretation of the configuration, for example, to\ndetermine defaults. This is documented together with applicable\noptions. The current default for the config version itself is `3`.", 187 "type": "integer", 188 "format": "uint32" 189 }, 190 "name": { 191 "description": "The DNS address at which this service is available,\ne.g. `calendar.googleapis.com`.", 192 "type": "string" 193 }, 194 "id": { 195 "description": "A unique ID for a specific instance of this message, typically assigned\nby the client for tracking purpose. If empty, the server may choose to\ngenerate one instead.", 196 "type": "string" 197 }, 198 "title": { 199 "description": "The product title associated with this service.", 200 "type": "string" 201 }, 202 "producerProjectId": { 203 "description": "The id of the Google developer project that owns the service.\nMembers of this project can manage the service configuration,\nmanage consumption of the service, etc.", 204 "type": "string" 205 }, 206 "apis": { 207 "description": "A list of API interfaces exported by this service. Only the `name` field\nof the google.protobuf.Api needs to be provided by the configuration\nauthor, as the remaining fields will be derived from the IDL during the\nnormalization process. It is an error to specify an API interface here\nwhich cannot be resolved against the associated IDL files.", 208 "type": "array", 209 "items": { 210 "$ref": "Api" 211 } 212 }, 213 "types": { 214 "description": "A list of all proto message types included in this API service.\nTypes referenced directly or indirectly by the `apis` are\nautomatically included. Messages which are not referenced but\nshall be included, such as types used by the `google.protobuf.Any` type,\nshould be listed here by name. Example:\n\n types:\n - name: google.protobuf.Int32", 215 "type": "array", 216 "items": { 217 "$ref": "Type" 218 } 219 }, 220 "enums": { 221 "description": "A list of all enum types included in this API service. Enums\nreferenced directly or indirectly by the `apis` are automatically\nincluded. Enums which are not referenced but shall be included\nshould be listed here by name. Example:\n\n enums:\n - name: google.someapi.v1.SomeEnum", 222 "type": "array", 223 "items": { 224 "$ref": "Enum" 225 } 226 }, 227 "documentation": { 228 "description": "Additional API documentation.", 229 "$ref": "Documentation" 230 }, 231 "visibility": { 232 "description": "API visibility configuration.", 233 "$ref": "Visibility" 234 }, 235 "backend": { 236 "description": "API backend configuration.", 237 "$ref": "Backend" 238 }, 239 "http": { 240 "description": "HTTP configuration.", 241 "$ref": "Http" 242 }, 243 "quota": { 244 "description": "Quota configuration.", 245 "$ref": "Quota" 246 }, 247 "authentication": { 248 "description": "Auth configuration.", 249 "$ref": "Authentication" 250 }, 251 "context": { 252 "description": "Context configuration.", 253 "$ref": "Context" 254 }, 255 "usage": { 256 "description": "Configuration controlling usage of this service.", 257 "$ref": "Usage" 258 }, 259 "customError": { 260 "description": "Custom error configuration.", 261 "$ref": "CustomError" 262 }, 263 "projectProperties": { 264 "description": "Configuration of per-consumer project properties.", 265 "$ref": "ProjectProperties" 266 }, 267 "control": { 268 "description": "Configuration for the service control plane.", 269 "$ref": "Control" 270 }, 271 "logs": { 272 "description": "Defines the logs used by this service.", 273 "type": "array", 274 "items": { 275 "$ref": "LogDescriptor" 276 } 277 }, 278 "metrics": { 279 "description": "Defines the metrics used by this service.", 280 "type": "array", 281 "items": { 282 "$ref": "MetricDescriptor" 283 } 284 }, 285 "monitoredResources": { 286 "description": "Defines the monitored resources used by this service. This is required\nby the Service.monitoring and Service.logging configurations.\n", 287 "type": "array", 288 "items": { 289 "$ref": "MonitoredResourceDescriptor" 290 } 291 }, 292 "billing": { 293 "description": "Billing configuration of the service.", 294 "$ref": "Billing" 295 }, 296 "logging": { 297 "description": "Logging configuration of the service.", 298 "$ref": "Logging" 299 }, 300 "monitoring": { 301 "description": "Monitoring configuration of the service.", 302 "$ref": "Monitoring" 303 }, 304 "systemParameters": { 305 "description": "Configuration for system parameters.", 306 "$ref": "SystemParameters" 307 }, 308 "systemTypes": { 309 "description": "A list of all proto message types included in this API service.\nIt serves similar purpose as [google.api.Service.types], except that\nthese types are not needed by user-defined APIs. Therefore, they will not\nshow up in the generated discovery doc. This field should only be used\nto define system APIs in ESF.", 310 "type": "array", 311 "items": { 312 "$ref": "Type" 313 } 314 } 315 } 316 }, 317 "Api": { 318 "id": "Api", 319 "description": "Api is a light-weight descriptor for a protocol buffer service.", 320 "type": "object", 321 "properties": { 322 "name": { 323 "description": "The fully qualified name of this api, including package name\nfollowed by the api's simple name.", 324 "type": "string" 325 }, 326 "methods": { 327 "description": "The methods of this api, in unspecified order.", 328 "type": "array", 329 "items": { 330 "$ref": "Method" 331 } 332 }, 333 "options": { 334 "description": "Any metadata attached to the API.", 335 "type": "array", 336 "items": { 337 "$ref": "Option" 338 } 339 }, 340 "version": { 341 "description": "A version string for this api. If specified, must have the form\n`major-version.minor-version`, as in `1.10`. If the minor version\nis omitted, it defaults to zero. If the entire version field is\nempty, the major version is derived from the package name, as\noutlined below. If the field is not empty, the version in the\npackage name will be verified to be consistent with what is\nprovided here.\n\nThe versioning schema uses [semantic\nversioning](http:\/\/semver.org) where the major version number\nindicates a breaking change and the minor version an additive,\nnon-breaking change. Both version numbers are signals to users\nwhat to expect from different versions, and should be carefully\nchosen based on the product plan.\n\nThe major version is also reflected in the package name of the\nAPI, which must end in `v<major-version>`, as in\n`google.feature.v1`. For major versions 0 and 1, the suffix can\nbe omitted. Zero major versions must only be used for\nexperimental, none-GA apis.\n\n", 342 "type": "string" 343 }, 344 "sourceContext": { 345 "description": "Source context for the protocol buffer service represented by this\nmessage.", 346 "$ref": "SourceContext" 347 }, 348 "mixins": { 349 "description": "Included APIs. See Mixin.", 350 "type": "array", 351 "items": { 352 "$ref": "Mixin" 353 } 354 }, 355 "syntax": { 356 "description": "The source syntax of the service.", 357 "enumDescriptions": [ 358 "Syntax `proto2`.", 359 "Syntax `proto3`." 360 ], 361 "type": "string", 362 "enum": [ 363 "SYNTAX_PROTO2", 364 "SYNTAX_PROTO3" 365 ] 366 } 367 } 368 }, 369 "Method": { 370 "id": "Method", 371 "description": "Method represents a method of an api.", 372 "type": "object", 373 "properties": { 374 "name": { 375 "description": "The simple name of this method.", 376 "type": "string" 377 }, 378 "requestTypeUrl": { 379 "description": "A URL of the input message type.", 380 "type": "string" 381 }, 382 "requestStreaming": { 383 "description": "If true, the request is streamed.", 384 "type": "boolean" 385 }, 386 "responseTypeUrl": { 387 "description": "The URL of the output message type.", 388 "type": "string" 389 }, 390 "responseStreaming": { 391 "description": "If true, the response is streamed.", 392 "type": "boolean" 393 }, 394 "options": { 395 "description": "Any metadata attached to the method.", 396 "type": "array", 397 "items": { 398 "$ref": "Option" 399 } 400 }, 401 "syntax": { 402 "description": "The source syntax of this method.", 403 "enumDescriptions": [ 404 "Syntax `proto2`.", 405 "Syntax `proto3`." 406 ], 407 "type": "string", 408 "enum": [ 409 "SYNTAX_PROTO2", 410 "SYNTAX_PROTO3" 411 ] 412 } 413 } 414 }, 415 "Option": { 416 "id": "Option", 417 "description": "A protocol buffer option, which can be attached to a message, field,\nenumeration, etc.", 418 "type": "object", 419 "properties": { 420 "name": { 421 "description": "The option's name. For example, `\"java_package\"`.", 422 "type": "string" 423 }, 424 "value": { 425 "description": "The option's value. For example, `\"com.google.protobuf\"`.", 426 "type": "object", 427 "additionalProperties": { 428 "type": "any", 429 "description": "Properties of the object. Contains field @type with type URL." 430 } 431 } 432 } 433 }, 434 "SourceContext": { 435 "id": "SourceContext", 436 "description": "`SourceContext` represents information about the source of a\nprotobuf element, like the file in which it is defined.", 437 "type": "object", 438 "properties": { 439 "fileName": { 440 "description": "The path-qualified name of the .proto file that contained the associated\nprotobuf element. For example: `\"google\/protobuf\/source_context.proto\"`.", 441 "type": "string" 442 } 443 } 444 }, 445 "Mixin": { 446 "id": "Mixin", 447 "description": "Declares an API to be included in this API. The including API must\nredeclare all the methods from the included API, but documentation\nand options are inherited as follows:\n\n- If after comment and whitespace stripping, the documentation\n string of the redeclared method is empty, it will be inherited\n from the original method.\n\n- Each annotation belonging to the service config (http,\n visibility) which is not set in the redeclared method will be\n inherited.\n\n- If an http annotation is inherited, the path pattern will be\n modified as follows. Any version prefix will be replaced by the\n version of the including API plus the root path if specified.\n\nExample of a simple mixin:\n\n package google.acl.v1;\n service AccessControl {\n \/\/ Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"\/v1\/{resource=**}:getAcl\";\n }\n }\n\n package google.storage.v2;\n service Storage {\n \/\/ rpc GetAcl(GetAclRequest) returns (Acl);\n\n \/\/ Get a data record.\n rpc GetData(GetDataRequest) returns (Data) {\n option (google.api.http).get = \"\/v2\/{resource=**}\";\n }\n }\n\nExample of a mixin configuration:\n\n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.AccessControl\n\nThe mixin construct implies that all methods in `AccessControl` are\nalso declared with same name and request\/response types in\n`Storage`. A documentation generator or annotation processor will\nsee the effective `Storage.GetAcl` method after inherting\ndocumentation and annotations as follows:\n\n service Storage {\n \/\/ Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"\/v2\/{resource=**}:getAcl\";\n }\n ...\n }\n\nNote how the version in the path pattern changed from `v1` to `v2`.\n\nIf the `root` field in the mixin is specified, it should be a\nrelative path under which inherited HTTP paths are placed. Example:\n\n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.AccessControl\n root: acls\n\nThis implies the following inherited HTTP annotation:\n\n service Storage {\n \/\/ Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"\/v2\/acls\/{resource=**}:getAcl\";\n }\n ...\n }", 448 "type": "object", 449 "properties": { 450 "name": { 451 "description": "The fully qualified name of the API which is included.", 452 "type": "string" 453 }, 454 "root": { 455 "description": "If non-empty specifies a path under which inherited HTTP paths\nare rooted.", 456 "type": "string" 457 } 458 } 459 }, 460 "Type": { 461 "id": "Type", 462 "description": "A protocol buffer message type.", 463 "type": "object", 464 "properties": { 465 "name": { 466 "description": "The fully qualified message name.", 467 "type": "string" 468 }, 469 "fields": { 470 "description": "The list of fields.", 471 "type": "array", 472 "items": { 473 "$ref": "Field" 474 } 475 }, 476 "oneofs": { 477 "description": "The list of types appearing in `oneof` definitions in this type.", 478 "type": "array", 479 "items": { 480 "type": "string" 481 } 482 }, 483 "options": { 484 "description": "The protocol buffer options.", 485 "type": "array", 486 "items": { 487 "$ref": "Option" 488 } 489 }, 490 "sourceContext": { 491 "description": "The source context.", 492 "$ref": "SourceContext" 493 }, 494 "syntax": { 495 "description": "The source syntax.", 496 "enumDescriptions": [ 497 "Syntax `proto2`.", 498 "Syntax `proto3`." 499 ], 500 "type": "string", 501 "enum": [ 502 "SYNTAX_PROTO2", 503 "SYNTAX_PROTO3" 504 ] 505 } 506 } 507 }, 508 "Field": { 509 "id": "Field", 510 "description": "A single field of a message type.", 511 "type": "object", 512 "properties": { 513 "kind": { 514 "description": "The field type.", 515 "enumDescriptions": [ 516 "Field type unknown.", 517 "Field type double.", 518 "Field type float.", 519 "Field type int64.", 520 "Field type uint64.", 521 "Field type int32.", 522 "Field type fixed64.", 523 "Field type fixed32.", 524 "Field type bool.", 525 "Field type string.", 526 "Field type group. Proto2 syntax only, and deprecated.", 527 "Field type message.", 528 "Field type bytes.", 529 "Field type uint32.", 530 "Field type enum.", 531 "Field type sfixed32.", 532 "Field type sfixed64.", 533 "Field type sint32.", 534 "Field type sint64." 535 ], 536 "type": "string", 537 "enum": [ 538 "TYPE_UNKNOWN", 539 "TYPE_DOUBLE", 540 "TYPE_FLOAT", 541 "TYPE_INT64", 542 "TYPE_UINT64", 543 "TYPE_INT32", 544 "TYPE_FIXED64", 545 "TYPE_FIXED32", 546 "TYPE_BOOL", 547 "TYPE_STRING", 548 "TYPE_GROUP", 549 "TYPE_MESSAGE", 550 "TYPE_BYTES", 551 "TYPE_UINT32", 552 "TYPE_ENUM", 553 "TYPE_SFIXED32", 554 "TYPE_SFIXED64", 555 "TYPE_SINT32", 556 "TYPE_SINT64" 557 ] 558 }, 559 "cardinality": { 560 "description": "The field cardinality.", 561 "enumDescriptions": [ 562 "For fields with unknown cardinality.", 563 "For optional fields.", 564 "For required fields. Proto2 syntax only.", 565 "For repeated fields." 566 ], 567 "type": "string", 568 "enum": [ 569 "CARDINALITY_UNKNOWN", 570 "CARDINALITY_OPTIONAL", 571 "CARDINALITY_REQUIRED", 572 "CARDINALITY_REPEATED" 573 ] 574 }, 575 "number": { 576 "description": "The field number.", 577 "type": "integer", 578 "format": "int32" 579 }, 580 "name": { 581 "description": "The field name.", 582 "type": "string" 583 }, 584 "typeUrl": { 585 "description": "The field type URL, without the scheme, for message or enumeration\ntypes. Example: `\"type.googleapis.com\/google.protobuf.Timestamp\"`.", 586 "type": "string" 587 }, 588 "oneofIndex": { 589 "description": "The index of the field type in `Type.oneofs`, for message or enumeration\ntypes. The first type has index 1; zero means the type is not in the list.", 590 "type": "integer", 591 "format": "int32" 592 }, 593 "packed": { 594 "description": "Whether to use alternative packed wire representation.", 595 "type": "boolean" 596 }, 597 "options": { 598 "description": "The protocol buffer options.", 599 "type": "array", 600 "items": { 601 "$ref": "Option" 602 } 603 }, 604 "jsonName": { 605 "description": "The field JSON name.", 606 "type": "string" 607 }, 608 "defaultValue": { 609 "description": "The string value of the default value of this field. Proto2 syntax only.", 610 "type": "string" 611 } 612 } 613 }, 614 "Enum": { 615 "id": "Enum", 616 "description": "Enum type definition.", 617 "type": "object", 618 "properties": { 619 "name": { 620 "description": "Enum type name.", 621 "type": "string" 622 }, 623 "enumvalue": { 624 "description": "Enum value definitions.", 625 "type": "array", 626 "items": { 627 "$ref": "EnumValue" 628 } 629 }, 630 "options": { 631 "description": "Protocol buffer options.", 632 "type": "array", 633 "items": { 634 "$ref": "Option" 635 } 636 }, 637 "sourceContext": { 638 "description": "The source context.", 639 "$ref": "SourceContext" 640 }, 641 "syntax": { 642 "description": "The source syntax.", 643 "enumDescriptions": [ 644 "Syntax `proto2`.", 645 "Syntax `proto3`." 646 ], 647 "type": "string", 648 "enum": [ 649 "SYNTAX_PROTO2", 650 "SYNTAX_PROTO3" 651 ] 652 } 653 } 654 }, 655 "EnumValue": { 656 "id": "EnumValue", 657 "description": "Enum value definition.", 658 "type": "object", 659 "properties": { 660 "name": { 661 "description": "Enum value name.", 662 "type": "string" 663 }, 664 "number": { 665 "description": "Enum value number.", 666 "type": "integer", 667 "format": "int32" 668 }, 669 "options": { 670 "description": "Protocol buffer options.", 671 "type": "array", 672 "items": { 673 "$ref": "Option" 674 } 675 } 676 } 677 }, 678 "Documentation": { 679 "id": "Documentation", 680 "description": "`Documentation` provides the information for describing a service.\n\nExample:\n<pre><code>documentation:\n summary: >\n The Google Calendar API gives access\n to most calendar features.\n pages:\n - name: Overview\n content: (== include google\/foo\/overview.md ==)\n - name: Tutorial\n content: (== include google\/foo\/tutorial.md ==)\n subpages;\n - name: Java\n content: (== include google\/foo\/tutorial_java.md ==)\n rules:\n - selector: google.calendar.Calendar.Get\n description: >\n ...\n - selector: google.calendar.Calendar.Put\n description: >\n ...\n<\/code><\/pre>\nDocumentation is provided in markdown syntax. In addition to\nstandard markdown features, definition lists, tables and fenced\ncode blocks are supported. Section headers can be provided and are\ninterpreted relative to the section nesting of the context where\na documentation fragment is embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvia the config at normalization time, where documentation provided\nby config rules overrides IDL provided.\n\nA number of constructs specific to the API platform are supported\nin documentation text.\n\nIn order to reference a proto element, the following\nnotation can be used:\n<pre><code>[fully.qualified.proto.name][]<\/code><\/pre>\nTo override the display text used for the link, this can be used:\n<pre><code>[display text][fully.qualified.proto.name]<\/code><\/pre>\nText can be excluded from doc using the following notation:\n<pre><code>(-- internal comment --)<\/code><\/pre>\nComments can be made conditional using a visibility label. The below\ntext will be only rendered if the `BETA` label is available:\n<pre><code>(--BETA: comment for BETA users --)<\/code><\/pre>\nA few directives are available in documentation. Note that\ndirectives must appear on a single line to be properly\nidentified. The `include` directive includes a markdown file from\nan external source:\n<pre><code>(== include path\/to\/file ==)<\/code><\/pre>\nThe `resource_for` directive marks a message to be the resource of\na collection in REST view. If it is not specified, tools attempt\nto infer the resource from the operations in a collection:\n<pre><code>(== resource_for v1.shelves.books ==)<\/code><\/pre>\nThe directive `suppress_warning` does not directly affect documentation\nand is documented together with service config validation.", 681 "type": "object", 682 "properties": { 683 "summary": { 684 "description": "A short summary of what the service does. Can only be provided by\nplain text.", 685 "type": "string" 686 }, 687 "pages": { 688 "description": "The top level pages for the documentation set.", 689 "type": "array", 690 "items": { 691 "$ref": "Page" 692 } 693 }, 694 "rules": { 695 "description": "Documentation rules for individual elements of the service.", 696 "type": "array", 697 "items": { 698 "$ref": "DocumentationRule" 699 } 700 }, 701 "documentationRootUrl": { 702 "description": "The URL to the root of documentation.", 703 "type": "string" 704 }, 705 "overview": { 706 "description": "Declares a single overview page. For example:\n<pre><code>documentation:\n summary: ...\n overview: (== include overview.md ==)\n<\/code><\/pre>\nThis is a shortcut for the following declaration (using pages style):\n<pre><code>documentation:\n summary: ...\n pages:\n - name: Overview\n content: (== include overview.md ==)\n<\/code><\/pre>\nNote: you cannot specify both `overview` field and `pages` field.", 707 "type": "string" 708 } 709 } 710 }, 711 "Page": { 712 "id": "Page", 713 "description": "Represents a documentation page. A page can contain subpages to represent\nnested documentation set structure.", 714 "type": "object", 715 "properties": { 716 "name": { 717 "description": "The name of the page. It will be used as an identity of the page to\ngenerate URI of the page, text of the link to this page in navigation,\netc. The full page name (start from the root page name to this page\nconcatenated with `.`) can be used as reference to the page in your\ndocumentation. For example:\n<pre><code>pages:\n- name: Tutorial\n content: (== include tutorial.md ==)\n subpages:\n - name: Java\n content: (== include tutorial_java.md ==)\n<\/code><\/pre>\nYou can reference `Java` page using Markdown reference link syntax:\n`Java`.", 718 "type": "string" 719 }, 720 "content": { 721 "description": "The Markdown content of the page. You can use <code>(== include {path} ==)<\/code>\nto include content from a Markdown file.", 722 "type": "string" 723 }, 724 "subpages": { 725 "description": "Subpages of this page. The order of subpages specified here will be\nhonored in the generated docset.", 726 "type": "array", 727 "items": { 728 "$ref": "Page" 729 } 730 } 731 } 732 }, 733 "DocumentationRule": { 734 "id": "DocumentationRule", 735 "description": "A documentation rule provides information about individual API elements.", 736 "type": "object", 737 "properties": { 738 "selector": { 739 "description": "The selector is a comma-separated list of patterns. Each pattern is a\nqualified name of the element which may end in \"*\", indicating a wildcard.\nWildcards are only allowed at the end and for a whole component of the\nqualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"foo.*.bar\". To\nspecify a default for all applicable elements, the whole pattern \"*\"\nis used.", 740 "type": "string" 741 }, 742 "description": { 743 "description": "Description of the selected API(s).", 744 "type": "string" 745 }, 746 "deprecationDescription": { 747 "description": "Deprecation description of the selected element(s). It can be provided if an\nelement is marked as `deprecated`.", 748 "type": "string" 749 } 750 } 751 }, 752 "Visibility": { 753 "id": "Visibility", 754 "description": "`Visibility` defines restrictions for the visibility of service\nelements. Restrictions are specified using visibility labels\n(e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.\n\nUsers and projects can have access to more than one visibility label. The\neffective visibility for multiple labels is the union of each label's\nelements, plus any unrestricted elements.\n\nIf an element and its parents have no restrictions, visibility is\nunconditionally granted.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: TRUSTED_TESTER\n - selector: google.calendar.Calendar.Delegate\n restriction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for the restricted methods\nEnhancedSearch and Delegate.", 755 "type": "object", 756 "properties": { 757 "rules": { 758 "description": "A list of visibility rules providing visibility configuration for\nindividual API elements.", 759 "type": "array", 760 "items": { 761 "$ref": "VisibilityRule" 762 } 763 }, 764 "enforceRuntimeVisibility": { 765 "description": "Controls whether visibility rules are enforced at runtime for requests to\nall APIs and methods.\n\nIf true, requests without method visibility will receive a\nNOT_FOUND error, and any non-visible fields will be scrubbed from\nthe response messages. In service config version 0, the default is false.\nIn later config versions, it's true.\n\nNote, the `enforce_runtime_visibility` specified in a visibility rule\noverrides this setting for the APIs or methods asscoiated with the rule.", 766 "type": "boolean" 767 } 768 } 769 }, 770 "VisibilityRule": { 771 "id": "VisibilityRule", 772 "description": "A visibility rule provides visibility configuration for an individual API\nelement.", 773 "type": "object", 774 "properties": { 775 "selector": { 776 "description": "Selects methods, messages, fields, enums, etc. to which this rule applies.\n\nRefer to selector for syntax details.", 777 "type": "string" 778 }, 779 "restriction": { 780 "description": "Lists the visibility labels for this rule. Any of the listed labels grants\nvisibility to the element.\n\nIf a rule has multiple labels, removing one of the labels but not all of\nthem can break clients.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: GOOGLE_INTERNAL, TRUSTED_TESTER\n\nRemoving GOOGLE_INTERNAL from this restriction will break clients that\nrely on this method and only had access to it through GOOGLE_INTERNAL.", 781 "type": "string" 782 }, 783 "enforceRuntimeVisibility": { 784 "description": "Controls whether visibility is enforced at runtime for requests to an API\nmethod. This setting has meaning only when the selector applies to a method\nor an API.\n\nIf true, requests without method visibility will receive a\nNOT_FOUND error, and any non-visible fields will be scrubbed from\nthe response messages. The default is determined by the value of\ngoogle.api.Visibility.enforce_runtime_visibility.", 785 "type": "boolean" 786 } 787 } 788 }, 789 "Backend": { 790 "id": "Backend", 791 "description": "`Backend` defines the backend configuration for a service.", 792 "type": "object", 793 "properties": { 794 "rules": { 795 "description": "A list of backend rules providing configuration for individual API\nelements.", 796 "type": "array", 797 "items": { 798 "$ref": "BackendRule" 799 } 800 } 801 } 802 }, 803 "BackendRule": { 804 "id": "BackendRule", 805 "description": "A backend rule provides configuration for an individual API element.", 806 "type": "object", 807 "properties": { 808 "selector": { 809 "description": "Selects the methods to which this rule applies.\n\nRefer to selector for syntax details.", 810 "type": "string" 811 }, 812 "address": { 813 "description": "The address of the API backend.\n", 814 "type": "string" 815 }, 816 "deadline": { 817 "description": "The number of seconds to wait for a response from a request. The\ndefault depends on the deployment context.", 818 "type": "number", 819 "format": "double" 820 } 821 } 822 }, 823 "Http": { 824 "id": "Http", 825 "description": "Defines the HTTP configuration for a service. It contains a list of\nHttpRule, each specifying the mapping of an RPC method\nto one or more HTTP REST API methods.", 826 "type": "object", 827 "properties": { 828 "rules": { 829 "description": "A list of HTTP rules for configuring the HTTP REST API methods.", 830 "type": "array", 831 "items": { 832 "$ref": "HttpRule" 833 } 834 } 835 } 836 }, 837 "HttpRule": { 838 "id": "HttpRule", 839 "description": "`HttpRule` defines the mapping of an RPC method to one or more HTTP\nREST APIs. The mapping determines what portions of the request\nmessage are populated from the path, query parameters, or body of\nthe HTTP request. The mapping is typically specified as an\n`google.api.http` annotation, see \"google\/api\/annotations.proto\"\nfor details.\n\nThe mapping consists of a field specifying the path template and\nmethod kind. The path template can refer to fields in the request\nmessage, as in the example below which describes a REST GET\noperation on a resource collection of messages:\n\n```proto\nservice Messaging {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n option (google.api.http).get = \"\/v1\/messages\/{message_id}\/{sub.subfield}\";\n }\n}\nmessage GetMessageRequest {\n message SubMessage {\n string subfield = 1;\n }\n string message_id = 1; \/\/ mapped to the URL\n SubMessage sub = 2; \/\/ `sub.subfield` is url-mapped\n}\nmessage Message {\n string text = 1; \/\/ content of the resource\n}\n```\n\nThis definition enables an automatic, bidrectional mapping of HTTP\nJSON to RPC. Example:\n\nHTTP | RPC\n-----|-----\n`GET \/v1\/messages\/123456\/foo` | `GetMessage(message_id: \"123456\" sub: SubMessage(subfield: \"foo\"))`\n\nIn general, not only fields but also field paths can be referenced\nfrom a path pattern. Fields mapped to the path pattern cannot be\nrepeated and must have a primitive (non-message) type.\n\nAny fields in the request message which are not bound by the path\npattern automatically become (optional) HTTP query\nparameters. Assume the following definition of the request message:\n\n```proto\nmessage GetMessageRequest {\n message SubMessage {\n string subfield = 1;\n }\n string message_id = 1; \/\/ mapped to the URL\n int64 revision = 2; \/\/ becomes a parameter\n SubMessage sub = 3; \/\/ `sub.subfield` becomes a parameter\n}\n```\n\nThis enables a HTTP JSON to RPC mapping as below:\n\nHTTP | RPC\n-----|-----\n`GET \/v1\/messages\/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))`\n\nNote that fields which are mapped to HTTP parameters must have a\nprimitive type or a repeated primitive type. Message types are not\nallowed. In the case of a repeated type, the parameter can be\nrepeated in the URL, as in `...?param=A¶m=B`.\n\nFor HTTP method kinds which allow a request body, the `body` field\nspecifies the mapping. Consider a REST update method on the\nmessage resource collection:\n\n```proto\nservice Messaging {\n rpc UpdateMessage(UpdateMessageRequest) returns (Message) {\n option (google.api.http) = {\n put: \"\/v1\/messages\/{message_id}\"\n body: \"message\"\n };\n }\n}\nmessage UpdateMessageRequest {\n string message_id = 1; \/\/ mapped to the URL\n Message message = 2; \/\/ mapped to the body\n}\n```\n\nThe following HTTP JSON to RPC mapping is enabled, where the\nrepresentation of the JSON in the request body is determined by\nprotos JSON encoding:\n\nHTTP | RPC\n-----|-----\n`PUT \/v1\/messages\/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" message { text: \"Hi!\" })`\n\nThe special name `*` can be used in the body mapping to define that\nevery field not bound by the path template should be mapped to the\nrequest body. This enables the following alternative definition of\nthe update method:\n\n```proto\nservice Messaging {\n rpc UpdateMessage(Message) returns (Message) {\n option (google.api.http) = {\n put: \"\/v1\/messages\/{message_id}\"\n body: \"*\"\n };\n }\n}\nmessage Message {\n string message_id = 1;\n string text = 2;\n}\n```\n\nThe following HTTP JSON to RPC mapping is enabled:\n\nHTTP | RPC\n-----|-----\n`PUT \/v1\/messages\/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(message_id: \"123456\" text: \"Hi!\")`\n\nNote that when using `*` in the body mapping, it is not possible to\nhave HTTP parameters, as all fields not bound by the path end in\nthe body. This makes this option more rarely used in practice of\ndefining REST APIs. The common usage of `*` is in custom methods\nwhich don't use the URL at all for transferring data.\n\nIt is possible to define multiple HTTP methods for one RPC by using\nthe `additional_bindings` option. Example:\n\n```proto\nservice Messaging {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n option (google.api.http) = {\n get: \"\/v1\/messages\/{message_id}\"\n additional_bindings {\n get: \"\/v1\/users\/{user_id}\/messages\/{message_id}\"\n }\n };\n }\n}\nmessage GetMessageRequest {\n string message_id = 1;\n string user_id = 2;\n}\n```\n\nThis enables the following two alternative HTTP JSON to RPC\nmappings:\n\nHTTP | RPC\n-----|-----\n`GET \/v1\/messages\/123456` | `GetMessage(message_id: \"123456\")`\n`GET \/v1\/users\/me\/messages\/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n\n# Rules for HTTP mapping\n\nThe rules for mapping HTTP path, query parameters, and body fields\nto the request message are as follows:\n\n1. The `body` field specifies either `*` or a field path, or is\n omitted. If omitted, it assumes there is no HTTP body.\n2. Leaf fields (recursive expansion of nested messages in the\n request) can be classified into three types:\n (a) Matched in the URL template.\n (b) Covered by body (if body is `*`, everything except (a) fields;\n else everything under the body field)\n (c) All other fields.\n3. URL query parameters found in the HTTP request are mapped to (c) fields.\n4. Any body sent with an HTTP request can contain only (b) fields.\n\nThe syntax of the path template is as follows:\n\n Template = \"\/\" Segments [ Verb ] ;\n Segments = Segment { \"\/\" Segment } ;\n Segment = \"*\" | \"**\" | LITERAL | Variable ;\n Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n FieldPath = IDENT { \".\" IDENT } ;\n Verb = \":\" LITERAL ;\n\nThe syntax `*` matches a single path segment. It follows the semantics of\n[RFC 6570](https:\/\/tools.ietf.org\/html\/rfc6570) Section 3.2.2 Simple String\nExpansion.\n\nThe syntax `**` matches zero or more path segments. It follows the semantics\nof [RFC 6570](https:\/\/tools.ietf.org\/html\/rfc6570) Section 3.2.3 Reserved\nExpansion.\n\nThe syntax `LITERAL` matches literal text in the URL path.\n\nThe syntax `Variable` matches the entire path as specified by its template;\nthis nested template must not contain further variables. If a variable\nmatches a single path segment, its template may be omitted, e.g. `{var}`\nis equivalent to `{var=*}`.\n\nNOTE: the field paths in variables and in the `body` must not refer to\nrepeated fields or map fields.\n\nUse CustomHttpPattern to specify any HTTP method that is not included in the\n`pattern` field, such as HEAD, or \"*\" to leave the HTTP method unspecified for\na given URL path rule. The wild-card rule is useful for services that provide\ncontent to Web (HTML) clients.", 840 "type": "object", 841 "properties": { 842 "selector": { 843 "description": "Selects methods to which this rule applies.\n\nRefer to selector for syntax details.", 844 "type": "string" 845 }, 846 "get": { 847 "description": "Used for listing and getting information about resources.", 848 "type": "string" 849 }, 850 "put": { 851 "description": "Used for updating a resource.", 852 "type": "string" 853 }, 854 "post": { 855 "description": "Used for creating a resource.", 856 "type": "string" 857 }, 858 "delete": { 859 "description": "Used for deleting a resource.", 860 "type": "string" 861 }, 862 "patch": { 863 "description": "Used for updating a resource.", 864 "type": "string" 865 }, 866 "custom": { 867 "description": "Custom pattern is used for defining custom verbs.", 868 "$ref": "CustomHttpPattern" 869 }, 870 "body": { 871 "description": "The name of the request field whose value is mapped to the HTTP body, or\n`*` for mapping all fields not captured by the path pattern to the HTTP\nbody. NOTE: the referred field must not be a repeated field.", 872 "type": "string" 873 }, 874 "mediaUpload": { 875 "description": "Do not use this. For media support, add instead\n[][google.bytestream.RestByteStream] as an API to your\nconfiguration.", 876 "$ref": "MediaUpload" 877 }, 878 "mediaDownload": { 879 "description": "Do not use this. For media support, add instead\n[][google.bytestream.RestByteStream] as an API to your\nconfiguration.", 880 "$ref": "MediaDownload" 881 }, 882 "additionalBindings": { 883 "description": "Additional HTTP bindings for the selector. Nested bindings must\nnot contain an `additional_bindings` field themselves (that is,\nthe nesting may only be one level deep).", 884 "type": "array", 885 "items": { 886 "$ref": "HttpRule" 887 } 888 } 889 } 890 }, 891 "CustomHttpPattern": { 892 "id": "CustomHttpPattern", 893 "description": "A custom pattern is used for defining custom HTTP verb.", 894 "type": "object", 895 "properties": { 896 "kind": { 897 "description": "The name of this custom HTTP verb.", 898 "type": "string" 899 }, 900 "path": { 901 "description": "The path matched by this custom verb.", 902 "type": "string" 903 } 904 } 905 }, 906 "MediaUpload": { 907 "id": "MediaUpload", 908 "description": "Do not use this. For media support, add instead\n[][google.bytestream.RestByteStream] as an API to your\nconfiguration.", 909 "type": "object", 910 "properties": { 911 "enabled": { 912 "description": "Whether upload is enabled.", 913 "type": "boolean" 914 } 915 } 916 }, 917 "MediaDownload": { 918 "id": "MediaDownload", 919 "description": "Do not use this. For media support, add instead\n[][google.bytestream.RestByteStream] as an API to your\nconfiguration.", 920 "type": "object", 921 "properties": { 922 "enabled": { 923 "description": "Whether download is enabled.", 924 "type": "boolean" 925 } 926 } 927 }, 928 "Quota": { 929 "id": "Quota", 930 "description": "Quota configuration helps to achieve fairness and budgeting in service\nusage.\n\n- Fairness is achieved through the use of short-term quota limits\n that are usually defined over a time window of several seconds or\n minutes. When such a limit is applied, for example at the user\n level, it ensures that no single user will monopolize the service\n or a given customer's allocated portion of it.\n- Budgeting is achieved through the use of long-term quota limits\n that are usually defined over a time window of one or more\n days. These limits help client application developers predict the\n usage and help budgeting.\n\nQuota enforcement uses a simple token-based algorithm for resource sharing.\n\nThe quota configuration structure is as follows:\n\n- `QuotaLimit` defines a single enforceable limit with a specified\n token amount that can be consumed over a specific duration and\n applies to a particular entity, like a project or an end user. If\n the limit applies to a user, each user making the request will\n get the specified number of tokens to consume. When the tokens\n run out, the requests from that user will be blocked until the\n duration elapses and the next duration window starts.\n\n- `QuotaGroup` groups a set of quota limits.\n\n- `QuotaRule` maps a method to a set of quota groups. This allows\n sharing of quota groups across methods as well as one method\n consuming tokens from more than one quota group. When a group\n contains multiple limits, requests to a method consuming tokens\n from that group must satisfy all the limits in that group.\n\nExample:\n\n quota:\n groups:\n - name: ReadGroup\n limits:\n - description: Daily Limit\n name: ProjectQpd\n default_limit: 10000\n duration: 1d\n limit_by: CLIENT_PROJECT\n\n - description: Per-second Limit\n name: UserQps\n default_limit: 20000\n duration: 100s\n limit_by: USER\n\n - name: WriteGroup\n limits:\n - description: Daily Limit\n name: ProjectQpd\n default_limit: 1000\n max_limit: 1000\n duration: 1d\n limit_by: CLIENT_PROJECT\n\n - description: Per-second Limit\n name: UserQps\n default_limit: 2000\n max_limit: 4000\n duration: 100s\n limit_by: USER\n\n rules:\n - selector: \"*\"\n groups:\n - group: ReadGroup\n - selector: google.calendar.Calendar.Update\n groups:\n - group: WriteGroup\n cost: 2\n - selector: google.calendar.Calendar.Delete\n groups:\n - group: WriteGroup\n\nHere, the configuration defines two quota groups: ReadGroup and WriteGroup,\neach defining its own daily and per-second limits. Note that One Platform\nenforces per-second limits averaged over a duration of 100 seconds. The rules\nmap ReadGroup for all methods, except for the Update and Delete methods.\nThese two methods consume from WriteGroup, with Update method consuming at\ntwice the rate as Delete method.\n\nMultiple quota groups can be specified for a method. The quota limits in all\nof those groups will be enforced. Example:\n\n quota:\n groups:\n - name: WriteGroup\n limits:\n - description: Daily Limit\n name: ProjectQpd\n default_limit: 1000\n max_limit: 1000\n duration: 1d\n limit_by: CLIENT_PROJECT\n\n - description: Per-second Limit\n name: UserQps\n default_limit: 2000\n max_limit: 4000\n duration: 100s\n limit_by: USER\n\n - name: StorageGroup\n limits:\n - description: Storage Quota\n name: StorageQuota\n default_limit: 1000\n duration: 0\n limit_by: USER\n\n rules:\n - selector: google.calendar.Calendar.Create\n groups:\n - group: StorageGroup\n - group: WriteGroup\n - selector: google.calendar.Calendar.Delete\n groups:\n - group: StorageGroup\n\nIn the above example, the Create and Delete methods manage the user's\nstorage space. In addition, Create method uses WriteGroup to manage the\nrequests. In this case, requests to Create method need to satisfy all quota\nlimits defined in both quota groups.\n\nOne can disable quota for selected method(s) identified by the selector by\nsetting disable_quota to ture. For example,\n\n rules:\n - selector: \"*\"\n group:\n - group ReadGroup\n - selector: google.calendar.Calendar.Select\n disable_quota: true\n", 931 "type": "object", 932 "properties": { 933 "groups": { 934 "description": "List of `QuotaGroup` definitions for the service.", 935 "type": "array", 936 "items": { 937 "$ref": "QuotaGroup" 938 } 939 }, 940 "rules": { 941 "description": "List of `QuotaRule` definitions, each one mapping a selected method to one\nor more quota groups.", 942 "type": "array", 943 "items": { 944 "$ref": "QuotaRule" 945 } 946 } 947 } 948 }, 949 "QuotaGroup": { 950 "id": "QuotaGroup", 951 "description": "`QuotaGroup` defines a set of quota limits to enforce.", 952 "type": "object", 953 "properties": { 954 "name": { 955 "description": "Name of this quota group. Must be unique within the service.\n\nQuota group name is used as part of the id for quota limits. Once the quota\ngroup has been put into use, the name of the quota group should be\nimmutable.", 956 "type": "string" 957 }, 958 "description": { 959 "description": "User-visible description of this quota group.", 960 "type": "string" 961 }, 962 "limits": { 963 "description": "Quota limits to be enforced when this quota group is used. A request must\nsatisfy all the limits in a group for it to be permitted.", 964 "type": "array", 965 "items": { 966 "$ref": "QuotaLimit" 967 } 968 }, 969 "billable": { 970 "description": "Indicates if the quota limits defined in this quota group apply to\nconsumers who have active billing. Quota limits defined in billable\ngroups will be applied only to consumers who have active billing. The\namount of tokens consumed from billable quota group will also be reported\nfor billing. Quota limits defined in non-billable groups will be applied\nonly to consumers who have no active billing.", 971 "type": "boolean" 972 } 973 } 974 }, 975 "QuotaLimit": { 976 "id": "QuotaLimit", 977 "description": "`QuotaLimit` defines a specific limit that applies over a specified duration\nfor a limit type. There can be at most one limit for a duration and limit\ntype combination defined within a `QuotaGroup`.", 978 "type": "object", 979 "properties": { 980 "name": { 981 "description": "Name of the quota limit. Must be unique within the quota group.\nThis name is used to refer to the limit when overriding the limit on\na per-project basis. If a name is not provided, it will be generated\nfrom the limit_by and duration fields.\n\nThe maximum length of the limit name is 64 characters.\n\nThe name of a limit is used as a unique identifier for this limit.\nTherefore, once a limit has been put into use, its name should be\nimmutable. You can use the display_name field to provide a user-friendly\nname for the limit. The display name can be evolved over time without\naffecting the identity of the limit.\n", 982 "type": "string" 983 }, 984 "limitBy": { 985 "description": "Limit type to use for enforcing this quota limit. Each unique value gets\nthe defined number of tokens to consume from. For a quota limit that uses\nuser type, each user making requests through the same client application\nproject will get his\/her own pool of tokens to consume, whereas for a limit\nthat uses client project type, all users making requests through the same\nclient application project share a single pool of tokens.", 986 "enumDescriptions": [ 987 "ID of the project owned by the client application developer making the\nrequest.", 988 "ID of the end user making the request using the client application." 989 ], 990 "type": "string", 991 "enum": [ 992 "CLIENT_PROJECT", 993 "USER" 994 ] 995 }, 996 "description": { 997 "description": "Optional. User-visible, extended description for this quota limit.\nShould be used only when more context is needed to understand this limit\nthan provided by the limit's display name (see: `display_name`).", 998 "type": "string" 999 }, 1000 "defaultLimit": { 1001 "description": "Default number of tokens that can be consumed during the specified\nduration. This is the number of tokens assigned when a client\napplication developer activates the service for his\/her project.\n\nSpecifying a value of 0 will block all requests. This can be used if you\nare provisioning quota to selected consumers and blocking others.\nSimilarly, a value of -1 will indicate an unlimited quota. No other\nnegative values are allowed.", 1002 "type": "string", 1003 "format": "int64" 1004 }, 1005 "maxLimit": { 1006 "description": "Maximum number of tokens that can be consumed during the specified\nduration. Client application developers can override the default limit up\nto this maximum. If specified, this value cannot be set to a value less\nthan the default limit. If not specified, it is set to the default limit.\n\nTo allow clients to apply overrides with no upper bound, set this to -1,\nindicating unlimited maximum quota.", 1007 "type": "string", 1008 "format": "int64" 1009 }, 1010 "freeTier": { 1011 "description": "Free tier value displayed in the Developers Console for this limit.\nThe free tier is the number of tokens that will be subtracted from the\nbilled amount when billing is enabled.\nThis field can only be set on a limit with duration \"1d\", in a billable\ngroup; it is invalid on any other limit. If this field is not set, it\ndefaults to 0, indicating that there is no free tier for this service.", 1012 "type": "string", 1013 "format": "int64" 1014 }, 1015 "duration": { 1016 "description": "Duration of this limit in textual notation. Example: \"100s\", \"24h\", \"1d\".\nFor duration longer than a day, only multiple of days is supported. We\nsupport only \"100s\" and \"1d\" for now. Additional support will be added in\nthe future. \"0\" indicates indefinite duration.", 1017 "type": "string" 1018 }, 1019 "displayName": { 1020 "description": "User-visible display name for this limit.\nOptional. If not set, the UI will provide a default display name based on\nthe quota configuration. This field can be used to override the default\ndisplay name generated from the configuration.", 1021 "type": "string" 1022 } 1023 } 1024 }, 1025 "QuotaRule": { 1026 "id": "QuotaRule", 1027 "description": "`QuotaRule` maps a method to a set of `QuotaGroup`s.", 1028 "type": "object", 1029 "properties": { 1030 "selector": { 1031 "description": "Selects methods to which this rule applies.\n\nRefer to selector for syntax details.", 1032 "type": "string" 1033 }, 1034 "groups": { 1035 "description": "Quota groups to be used for this method. This supports associating a cost\nwith each quota group.", 1036 "type": "array", 1037 "items": { 1038 "$ref": "QuotaGroupMapping" 1039 } 1040 }, 1041 "disableQuota": { 1042 "description": "Indicates if quota checking should be enforced. Quota will be disabled for\nmethods without quota rules or with quota rules having this field set to\ntrue. When this field is set to true, no quota group mapping is allowed.", 1043 "type": "boolean" 1044 } 1045 } 1046 }, 1047 "QuotaGroupMapping": { 1048 "id": "QuotaGroupMapping", 1049 "description": "A quota group mapping.", 1050 "type": "object", 1051 "properties": { 1052 "group": { 1053 "description": "The `QuotaGroup.name` of the group. Requests for the mapped methods will\nconsume tokens from each of the limits defined in this group.", 1054 "type": "string" 1055 }, 1056 "cost": { 1057 "description": "Number of tokens to consume for each request. This allows different cost\nto be associated with different methods that consume from the same quota\ngroup. By default, each request will cost one token.", 1058 "type": "integer", 1059 "format": "int32" 1060 } 1061 } 1062 }, 1063 "Authentication": { 1064 "id": "Authentication", 1065 "description": "`Authentication` defines the authentication configuration for an API.\n\nExample for an API targeted for external use:\n\n name: calendar.googleapis.com\n authentication:\n rules:\n - selector: \"*\"\n oauth:\n canonical_scopes: https:\/\/www.googleapis.com\/auth\/calendar\n\n - selector: google.calendar.Delegate\n oauth:\n canonical_scopes: https:\/\/www.googleapis.com\/auth\/calendar.read", 1066 "type": "object", 1067 "properties": { 1068 "rules": { 1069 "description": "Individual rules for authentication.", 1070 "type": "array", 1071 "items": { 1072 "$ref": "AuthenticationRule" 1073 } 1074 }, 1075 "providers": { 1076 "description": "Defines a set of authentication providers that a service supports.", 1077 "type": "array", 1078 "items": { 1079 "$ref": "AuthProvider" 1080 } 1081 } 1082 } 1083 }, 1084 "AuthenticationRule": { 1085 "id": "AuthenticationRule", 1086 "description": "Authentication rules for the service.\n\nBy default, if a method has any authentication requirements, every request\nmust include a valid credential matching one of the requirements.\nIt's an error to include more than one kind of credential in a single\nrequest.\n\nIf a method doesn't have any auth requirements, request credentials will be\nignored.\n", 1087 "type": "object", 1088 "properties": { 1089 "selector": { 1090 "description": "Selects the methods to which this rule applies.\n\nRefer to selector for syntax details.", 1091 "type": "string" 1092 }, 1093 "oauth": { 1094 "description": "The requirements for OAuth credentials.", 1095 "$ref": "OAuthRequirements" 1096 }, 1097 "allowWithoutCredential": { 1098 "description": "Whether to allow requests without a credential. If quota is enabled, an\nAPI key is required for such request to pass the quota check.\n", 1099 "type": "boolean" 1100 }, 1101 "requirements": { 1102 "description": "Requirements for additional authentication providers.", 1103 "type": "array", 1104 "items": { 1105 "$ref": "AuthRequirement" 1106 } 1107 } 1108 } 1109 }, 1110 "OAuthRequirements": { 1111 "id": "OAuthRequirements", 1112 "description": "OAuth scopes are a way to define data and permissions on data. For example,\nthere are scopes defined for \"Read-only access to Google Calendar\" and\n\"Access to Cloud Platform\". Users can consent to a scope for an application,\ngiving it permission to access that data on their behalf.\n\nOAuth scope specifications should be fairly coarse grained; a user will need\nto see and understand the text description of what your scope means.\n\nIn most cases: use one or at most two OAuth scopes for an entire family of\nproducts. If your product has multiple APIs, you should probably be sharing\nthe OAuth scope across all of those APIs.\n\nWhen you need finer grained OAuth consent screens: talk with your product\nmanagement about how developers will use them in practice.\n\nPlease note that even though each of the canonical scopes is enough for a\nrequest to be accepted and passed to the backend, a request can still fail\ndue to the backend requiring additional scopes or permissions.\n", 1113 "type": "object", 1114 "properties": { 1115 "canonicalScopes": { 1116 "description": "The list of publicly documented OAuth scopes that are allowed access. An\nOAuth token containing any of these scopes will be accepted.\n\nExample:\n\n canonical_scopes: https:\/\/www.googleapis.com\/auth\/calendar,\n https:\/\/www.googleapis.com\/auth\/calendar.read", 1117 "type": "string" 1118 } 1119 } 1120 }, 1121 "AuthRequirement": { 1122 "id": "AuthRequirement", 1123 "description": "User-defined authentication requirements, including support for\n[JSON Web Token (JWT)](https:\/\/tools.ietf.org\/html\/draft-ietf-oauth-json-web-token-32).", 1124 "type": "object", 1125 "properties": { 1126 "providerId": { 1127 "description": "id from authentication provider.\n\nExample:\n\n provider_id: bookstore_auth", 1128 "type": "string" 1129 }, 1130 "audiences": { 1131 "description": "The list of JWT\n[audiences](https:\/\/tools.ietf.org\/html\/draft-ietf-oauth-json-web-token-32#section-4.1.3).\nthat are allowed to access. A JWT containing any of these audiences will\nbe accepted. When this setting is absent, only JWTs with audience\n\"https:\/\/Service_name\/API_name\"\nwill be accepted. For example, if no audiences are in the setting,\nLibraryService API will only accept JWTs with the following audience\n\"https:\/\/library-example.googleapis.com\/google.example.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.apps.googleusercontent.com,\n bookstore_web.apps.googleusercontent.com", 1132 "type": "string" 1133 } 1134 } 1135 }, 1136 "AuthProvider": { 1137 "id": "AuthProvider", 1138 "description": "Configuration for an anthentication provider, including support for\n[JSON Web Token (JWT)](https:\/\/tools.ietf.org\/html\/draft-ietf-oauth-json-web-token-32).", 1139 "type": "object", 1140 "properties": { 1141 "id": { 1142 "description": "The unique identifier of the auth provider. It will be referred to by\n`AuthRequirement.provider_id`.\n\nExample: \"bookstore_auth\".", 1143 "type": "string" 1144 }, 1145 "issuer": { 1146 "description": "Identifies the principal that issued the JWT. See\nhttps:\/\/tools.ietf.org\/html\/draft-ietf-oauth-json-web-token-32#section-4.1.1\nUsually a URL or an email address.\n\nExample: https:\/\/securetoken.google.com\nExample: 1234567-compute@developer.gserviceaccount.com", 1147 "type": "string" 1148 }, 1149 "jwksUri": { 1150 "description": "URL of the provider's public key set to validate signature of the JWT. See\n[OpenID Discovery](https:\/\/openid.net\/specs\/openid-connect-discovery-1_0.html#ProviderMetadata).\nOptional if the key set document:\n - can be retrieved from\n [OpenID Discovery](https:\/\/openid.net\/specs\/openid-connect-discovery-1_0.html\n of the issuer.\n - can be inferred from the email domain of the issuer (e.g. a Google service account).\n\nExample: https:\/\/www.googleapis.com\/oauth2\/v1\/certs", 1151 "type": "string" 1152 } 1153 } 1154 }, 1155 "Context": { 1156 "id": "Context", 1157 "description": "`Context` defines which contexts an API requests.\n\nExample:\n\n context:\n rules:\n - selector: \"*\"\n requested:\n - google.rpc.context.ProjectContext\n - google.rpc.context.OriginContext\n\nThe above specifies that all methods in the API request\n`google.rpc.context.ProjectContext` and\n`google.rpc.context.OriginContext`.\n\nAvailable context types are defined in package\n`google.rpc.context`.", 1158 "type": "object", 1159 "properties": { 1160 "rules": { 1161 "description": "List of rules for context, applicable to methods.", 1162 "type": "array", 1163 "items": { 1164 "$ref": "ContextRule" 1165 } 1166 } 1167 } 1168 }, 1169 "ContextRule": { 1170 "id": "ContextRule", 1171 "description": "A context rule provides information about the context for an individual API\nelement.", 1172 "type": "object", 1173 "properties": { 1174 "selector": { 1175 "description": "Selects the methods to which this rule applies.\n\nRefer to selector for syntax details.", 1176 "type": "string" 1177 }, 1178 "requested": { 1179 "description": "A list of full type names of requested contexts.", 1180 "type": "array", 1181 "items": { 1182 "type": "string" 1183 } 1184 }, 1185 "provided": { 1186 "description": "A list of full type names of provided contexts.", 1187 "type": "array", 1188 "items": { 1189 "type": "string" 1190 } 1191 } 1192 } 1193 }, 1194 "Usage": { 1195 "id": "Usage", 1196 "description": "Configuration controlling usage of a service.", 1197 "type": "object", 1198 "properties": { 1199 "serviceAccess": { 1200 "description": "Controls which users can see or activate the service.", 1201 "enumDescriptions": [ 1202 "The service can only be seen\/used by users identified in the service's\naccess control policy.\n\nIf the service has not been whitelisted by your domain administrator\nfor out-of-org publishing, then this mode will be treated like\nORG_RESTRICTED.", 1203 "The service can be seen\/used by anyone.\n\nIf the service has not been whitelisted by your domain administrator\nfor out-of-org publishing, then this mode will be treated like\nORG_PUBLIC.\n\nThe discovery document for the service will also be public and allow\nunregistered access.", 1204 "The service can be seen\/used by users identified in the service's\naccess control policy and they are within the organization that owns the\nservice.\n\nAccess is further constrained to the group\ncontrolled by the administrator of the project\/org that owns the\nservice.", 1205 "The service can be seen\/used by the group of users controlled by the\nadministrator of the project\/org that owns the service." 1206 ], 1207 "type": "string", 1208 "enum": [ 1209 "RESTRICTED", 1210 "PUBLIC", 1211 "ORG_RESTRICTED", 1212 "ORG_PUBLIC" 1213 ] 1214 }, 1215 "requirements": { 1216 "description": "Requirements that must be satisfied before a consumer project can use the\nservice. Each requirement is of the form <service.name>\/<requirement-id>;\nfor example 'serviceusage.googleapis.com\/billing-enabled'.", 1217 "type": "array", 1218 "items": { 1219 "type": "string" 1220 } 1221 }, 1222 "dependsOnServices": { 1223 "description": "Services that must be activated in order for this service to be used.\nThe set of services activated as a result of these relations are all\nactivated in parallel with no guaranteed order of activation.\nEach string is a service name, e.g. `calendar.googleapis.com`.", 1224 "type": "array", 1225 "items": { 1226 "type": "string" 1227 } 1228 }, 1229 "activationHooks": { 1230 "description": "Services that must be contacted before a consumer can begin using the\nservice. Each service will be contacted in sequence, and, if any activation\ncall fails, the entire activation will fail. Each hook is of the form\n<service.name>\/<hook-id>, where <hook-id> is optional; for example:\n'robotservice.googleapis.com\/default'.", 1231 "type": "array", 1232 "items": { 1233 "type": "string" 1234 } 1235 }, 1236 "deactivationHooks": { 1237 "description": "Services that must be contacted before a consumer can deactivate a\nservice. Each service will be contacted in sequence, and, if any\ndeactivation call fails, the entire deactivation will fail. Each hook is\nof the form <service.name>\/<hook-id>, where <hook-id> is optional; for\nexample:\n'compute.googleapis.com\/'.", 1238 "type": "array", 1239 "items": { 1240 "type": "string" 1241 } 1242 }, 1243 "rules": { 1244 "description": "Individual rules for configuring usage on selected methods.", 1245 "type": "array", 1246 "items": { 1247 "$ref": "UsageRule" 1248 } 1249 } 1250 } 1251 }, 1252 "UsageRule": { 1253 "id": "UsageRule", 1254 "description": "Usage configuration rules for the service.\n\nNOTE: Under development.\n\n\nUse this rule to configure unregistered calls for the service. Unregistered\ncalls are calls that do not contain consumer project identity.\n(Example: calls that do not contain an API key).\nBy default, API methods do not allow unregistered calls, and each method call\nmust be identified by a consumer project identity. Use this rule to\nallow\/disallow unregistered calls.\n\nExample of an API that wants to allow unregistered calls for entire service.\n\n usage:\n rules:\n - selector: \"*\"\n allow_unregistered_calls: true\n\nExample of a method that wants to allow unregistered calls.\n\n usage:\n rules:\n - selector: \"google.example.library.v1.LibraryService.CreateBook\"\n allow_unregistered_calls: true", 1255 "type": "object", 1256 "properties": { 1257 "selector": { 1258 "description": "Selects the methods to which this rule applies. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for syntax details.", 1259 "type": "string" 1260 }, 1261 "allowUnregisteredCalls": { 1262 "description": "True, if the method allows unregistered calls; false otherwise.", 1263 "type": "boolean" 1264 } 1265 } 1266 }, 1267 "CustomError": { 1268 "id": "CustomError", 1269 "description": "Customize service error responses. For example, list any service\nspecific protobuf types that can appear in error detail lists of\nerror responses.\n\nExample:\n\n custom_error:\n types:\n - google.foo.v1.CustomError\n - google.foo.v1.AnotherError\n", 1270 "type": "object", 1271 "properties": { 1272 "rules": { 1273 "description": "The list of custom error rules to select to which messages this should\napply.", 1274 "type": "array", 1275 "items": { 1276 "$ref": "CustomErrorRule" 1277 } 1278 }, 1279 "types": { 1280 "description": "The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.", 1281 "type": "array", 1282 "items": { 1283 "type": "string" 1284 } 1285 } 1286 } 1287 }, 1288 "CustomErrorRule": { 1289 "id": "CustomErrorRule", 1290 "description": "A custom error rule.", 1291 "type": "object", 1292 "properties": { 1293 "selector": { 1294 "description": "Selects messages to which this rule applies.\n\nRefer to selector for syntax details.", 1295 "type": "string" 1296 }, 1297 "isErrorType": { 1298 "description": "Mark this message as possible payload in error response. Otherwise,\nobjects of this type will be filtered when they appear in error payload.", 1299 "type": "boolean" 1300 } 1301 } 1302 }, 1303 "ProjectProperties": { 1304 "id": "ProjectProperties", 1305 "description": "A descriptor for defining project properties for a service. One service may\nhave many consumer projects, and the service may want to behave differently\ndepending on some properties on the project. For example, a project may be\nassociated with a school, or a business, or a government agency, a business\ntype property on the project may affect how a service responds to the client.\nThis descriptor defines which properties are allowed to be set on a project.\n\nExample:\n\n project_properties:\n properties:\n - name: NO_WATERMARK\n type: BOOL\n description: Allows usage of the API without watermarks.\n - name: EXTENDED_TILE_CACHE_PERIOD\n type: INT64", 1306 "type": "object", 1307 "properties": { 1308 "properties": { 1309 "description": "List of per consumer project-specific properties.", 1310 "type": "array", 1311 "items": { 1312 "$ref": "Property" 1313 } 1314 } 1315 } 1316 }, 1317 "Property": { 1318 "id": "Property", 1319 "description": "Defines project properties.\n\nAPI services can define properties that can be assigned to consumer projects\nso that backends can perform response customization without having to make\nadditional calls or maintain additional storage. For example, Maps API\ndefines properties that controls map tile cache period, or whether to embed a\nwatermark in a result.\n\nThese values can be set via API producer console. Only API providers can\ndefine and set these properties.", 1320 "type": "object", 1321 "properties": { 1322 "name": { 1323 "description": "The name of the property (a.k.a key).", 1324 "type": "string" 1325 }, 1326 "type": { 1327 "description": "The type of this property.", 1328 "enumDescriptions": [ 1329 "The type is unspecified, and will result in an error.", 1330 "The type is `int64`.", 1331 "The type is `bool`.", 1332 "The type is `string`.", 1333 "The type is 'double'." 1334 ], 1335 "type": "string", 1336 "enum": [ 1337 "UNSPECIFIED", 1338 "INT64", 1339 "BOOL", 1340 "STRING", 1341 "DOUBLE" 1342 ] 1343 }, 1344 "description": { 1345 "description": "The description of the property", 1346 "type": "string" 1347 } 1348 } 1349 }, 1350 "Control": { 1351 "id": "Control", 1352 "description": "Selects and configures the service controller used by the service. The\nservice controller handles features like abuse, quota, billing, logging,\nmonitoring, etc.\n", 1353 "type": "object", 1354 "properties": { 1355 "environment": { 1356 "description": "The service control environment to use. If empty, no control plane\nfeature (like quota and billing) will be enabled.", 1357 "type": "string" 1358 } 1359 } 1360 }, 1361 "LogDescriptor": { 1362 "id": "LogDescriptor", 1363 "description": "A description of a log type. Example in YAML format:\n\n - name: library.googleapis.com\/activity_history\n description: The history of borrowing and returning library items.\n display_name: Activity\n labels:\n - key: \/customer_id\n description: Identifier of a library customer", 1364 "type": "object", 1365 "properties": { 1366 "name": { 1367 "description": "The name of the log. It must be less than 512 characters long and can\ninclude the following characters: upper- and lower-case alphanumeric\ncharacters [A-Za-z0-9], and punctuation characters including\nslash, underscore, hyphen, period [\/_-.].", 1368 "type": "string" 1369 }, 1370 "labels": { 1371 "description": "The set of labels that are available to describe a specific log entry.\nRuntime requests that contain labels not specified here are\nconsidered invalid.", 1372 "type": "array", 1373 "items": { 1374 "$ref": "LabelDescriptor" 1375 } 1376 }, 1377 "description": { 1378 "description": "A human-readable description of this log. This information appears in\nthe documentation and can contain details.", 1379 "type": "string" 1380 }, 1381 "displayName": { 1382 "description": "The human-readable name for this log. This information appears on\nthe user interface and should be concise.", 1383 "type": "string" 1384 } 1385 } 1386 }, 1387 "LabelDescriptor": { 1388 "id": "LabelDescriptor", 1389 "description": "A description of a label.", 1390 "type": "object", 1391 "properties": { 1392 "key": { 1393 "description": "The label key.", 1394 "type": "string" 1395 }, 1396 "valueType": { 1397 "description": "The type of data that can be assigned to the label.", 1398 "enumDescriptions": [ 1399 "A variable-length string. This is the default.", 1400 "Boolean; true or false.", 1401 "A 64-bit signed integer." 1402 ], 1403 "type": "string", 1404 "enum": [ 1405 "STRING", 1406 "BOOL", 1407 "INT64" 1408 ] 1409 }, 1410 "description": { 1411 "description": "A human-readable description for the label.", 1412 "type": "string" 1413 } 1414 } 1415 }, 1416 "MetricDescriptor": { 1417 "id": "MetricDescriptor", 1418 "description": "Defines a metric type and its schema.", 1419 "type": "object", 1420 "properties": { 1421 "name": { 1422 "description": "Resource name. The format of the name may vary between different\nimplementations. For examples:\n\n projects\/{project_id}\/metricDescriptors\/{type=**}\n metricDescriptors\/{type=**}", 1423 "type": "string" 1424 }, 1425 "type": { 1426 "description": "The metric type including a DNS name prefix, for example\n`\"compute.googleapis.com\/instance\/cpu\/utilization\"`. Metric types\nshould use a natural hierarchical grouping such as the following:\n\n compute.googleapis.com\/instance\/cpu\/utilization\n compute.googleapis.com\/instance\/disk\/read_ops_count\n compute.googleapis.com\/instance\/network\/received_bytes_count\n\nNote that if the metric type changes, the monitoring data will be\ndiscontinued, and anything depends on it will break, such as monitoring\ndashboards, alerting rules and quota limits. Therefore, once a metric has\nbeen published, its type should be immutable.", 1427 "type": "string" 1428 }, 1429 "labels": { 1430 "description": "The set of labels that can be used to describe a specific instance of this\nmetric type. For example, the\n`compute.googleapis.com\/instance\/network\/received_bytes_count` metric type\nhas a label, `loadbalanced`, that specifies whether the traffic was\nreceived through a load balanced IP address.", 1431 "type": "array", 1432 "items": { 1433 "$ref": "LabelDescriptor" 1434 } 1435 }, 1436 "metricKind": { 1437 "description": "Whether the metric records instantaneous values, changes to a value, etc.", 1438 "enumDescriptions": [ 1439 "Do not use this default value.", 1440 "Instantaneous measurements of a varying quantity.", 1441 "Changes over non-overlapping time intervals.", 1442 "Cumulative value over time intervals that can overlap.\nThe overlapping intervals must have the same start time." 1443 ], 1444 "type": "string", 1445 "enum": [ 1446 "METRIC_KIND_UNSPECIFIED", 1447 "GAUGE", 1448 "DELTA", 1449 "CUMULATIVE" 1450 ] 1451 }, 1452 "valueType": { 1453 "description": "Whether the measurement is an integer, a floating-point number, etc.", 1454 "enumDescriptions": [ 1455 "Do not use this default value.", 1456 "The value is a boolean.\nThis value type can be used only if the metric kind is `GAUGE`.", 1457 "The value is a signed 64-bit integer.", 1458 "The value is a double precision floating point number.", 1459 "The value is a text string.\nThis value type can be used only if the metric kind is `GAUGE`.", 1460 "The value is a `Distribution`.", 1461 "The value is money." 1462 ], 1463 "type": "string", 1464 "enum": [ 1465 "VALUE_TYPE_UNSPECIFIED", 1466 "BOOL", 1467 "INT64", 1468 "DOUBLE", 1469 "STRING", 1470 "DISTRIBUTION", 1471 "MONEY" 1472 ] 1473 }, 1474 "unit": { 1475 "description": "The unit in which the metric value is reported. It is only applicable\nif the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The\nsupported units are a subset of [The Unified Code for Units of\nMeasure](http:\/\/unitsofmeasure.org\/ucum.html) standard:\n\n**Basic units (UNIT)**\n\n* `bit` bit\n* `By` byte\n* `s` second\n* `min` minute\n* `h` hour\n* `d` day\n\n**Prefixes (PREFIX)**\n\n* `k` kilo (10**3)\n* `M` mega (10**6)\n* `G` giga (10**9)\n* `T` tera (10**12)\n* `P` peta (10**15)\n* `E` exa (10**18)\n* `Z` zetta (10**21)\n* `Y` yotta (10**24)\n* `m` milli (10**-3)\n* `u` micro (10**-6)\n* `n` nano (10**-9)\n* `p` pico (10**-12)\n* `f` femto (10**-15)\n* `a` atto (10**-18)\n* `z` zepto (10**-21)\n* `y` yocto (10**-24)\n* `Ki` kibi (2**10)\n* `Mi` mebi (2**20)\n* `Gi` gibi (2**30)\n* `Ti` tebi (2**40)\n\n**Grammar**\n\nThe grammar includes the dimensionless unit `1`, such as `1\/s`.\n\nThe grammar also includes these connectors:\n\n* `\/` division (as an infix operator, e.g. `1\/s`).\n* `.` multiplication (as an infix operator, e.g. `GBy.d`)\n\nThe grammar for a unit is as follows:\n\n Expression = Component { \".\" Component } { \"\/\" Component } ;\n\n Component = [ PREFIX ] UNIT [ Annotation ]\n | Annotation\n | \"1\"\n ;\n\n Annotation = \"{\" NAME \"}\" ;\n\nNotes:\n\n* `Annotation` is just a comment if it follows a `UNIT` and is\n equivalent to `1` if it is used alone. For examples,\n `{requests}\/s == 1\/s`, `By{transmitted}\/s == By\/s`.\n* `NAME` is a sequence of non-blank printable ASCII characters not\n containing '{' or '}'.", 1476 "type": "string" 1477 }, 1478 "description": { 1479 "description": "A detailed description of the metric, which can be used in documentation.", 1480 "type": "string" 1481 }, 1482 "displayName": { 1483 "description": "A concise name for the metric, which can be displayed in user interfaces.\nUse sentence case without an ending period, for example \"Request count\".", 1484 "type": "string" 1485 } 1486 } 1487 }, 1488 "MonitoredResourceDescriptor": { 1489 "id": "MonitoredResourceDescriptor", 1490 "description": "An object that describes the schema of a MonitoredResource object using a\ntype name and a set of labels. For example, the monitored resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zone\"` to identify particular VM instances.\n\nDifferent APIs can support different monitored resource types. APIs generally\nprovide a `list` method that returns the monitored resource descriptors used\nby the API.", 1491 "type": "object", 1492 "properties": { 1493 "name": { 1494 "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects\/{project_id}\/monitoredResourceDescriptors\/{type}\"` where\n{type} is the value of the `type` field in this object and\n{project_id} is a project ID that provides API-specific context for\naccessing the type. APIs that do not use project information can use the\nresource name format `\"monitoredResourceDescriptors\/{type}\"`.", 1495 "type": "string" 1496 }, 1497 "type": { 1498 "description": "Required. The monitored resource type. For example, the type\n`\"cloudsql_database\"` represents databases in Google Cloud SQL.\nThe maximum length of this value is 256 characters.", 1499 "type": "string" 1500 }, 1501 "displayName": { 1502 "description": "Optional. A concise name for the monitored resource type that might be\ndisplayed in user interfaces. For example, `\"Google Cloud SQL Database\"`.", 1503 "type": "string" 1504 }, 1505 "description": { 1506 "description": "Optional. A detailed description of the monitored resource type that might\nbe used in documentation.", 1507 "type": "string" 1508 }, 1509 "labels": { 1510 "description": "Required. A set of labels used to describe instances of this monitored\nresource type. For example, an individual Google Cloud SQL database is\nidentified by values for the labels `\"database_id\"` and `\"zone\"`.", 1511 "type": "array", 1512 "items": { 1513 "$ref": "LabelDescriptor" 1514 } 1515 } 1516 } 1517 }, 1518 "Billing": { 1519 "id": "Billing", 1520 "description": "Billing related configuration of the service.\n\nThe following example shows how to configure metrics for billing:\n\n metrics:\n - name: library.googleapis.com\/read_calls\n metric_kind: DELTA\n value_type: INT64\n - name: library.googleapis.com\/write_calls\n metric_kind: DELTA\n value_type: INT64\n billing:\n metrics:\n - library.googleapis.com\/read_calls\n - library.googleapis.com\/write_calls\n\nThe next example shows how to enable billing status check and customize the\ncheck behavior. It makes sure billing status check is included in the `Check`\nmethod of [Service Control API](https:\/\/cloud.google.com\/service-control\/).\nIn the example, \"google.storage.Get\" method can be served when the billing\nstatus is either `current` or `delinquent`, while \"google.storage.Write\"\nmethod can only be served when the billing status is `current`:\n\n billing:\n rules:\n - selector: google.storage.Get\n allowed_statuses:\n - current\n - delinquent\n - selector: google.storage.Write\n allowed_statuses: current\n\nMostly services should only allow `current` status when serving requests.\nIn addition, services can choose to allow both `current` and `delinquent`\nstatuses when serving read-only requests to resources. If there's no\nmatching selector for operation, no billing status check will be performed.\n", 1521 "type": "object", 1522 "properties": { 1523 "metrics": { 1524 "description": "Names of the metrics to report to billing. Each name must\nbe defined in Service.metrics section.", 1525 "type": "array", 1526 "items": { 1527 "type": "string" 1528 } 1529 }, 1530 "rules": { 1531 "description": "A list of billing status rules for configuring billing status check.", 1532 "type": "array", 1533 "items": { 1534 "$ref": "BillingStatusRule" 1535 } 1536 }, 1537 "areaUnderCurveParams": { 1538 "description": "Per resource grouping for delta billing based resource configs.", 1539 "type": "array", 1540 "items": { 1541 "$ref": "AreaUnderCurveParams" 1542 } 1543 } 1544 } 1545 }, 1546 "BillingStatusRule": { 1547 "id": "BillingStatusRule", 1548 "description": "Defines the billing status requirements for operations.\n\nWhen used with\n[Service Control API](https:\/\/cloud.google.com\/service-control\/), the\nfollowing statuses are supported:\n\n- **current**: the associated billing account is up to date and capable of\n paying for resource usages.\n- **delinquent**: the associated billing account has a correctable problem,\n such as late payment.\n\nMostly services should only allow `current` status when serving requests.\nIn addition, services can choose to allow both `current` and `delinquent`\nstatuses when serving read-only requests to resources. If the list of\nallowed_statuses is empty, it means no billing requirement.\n", 1549 "type": "object", 1550 "properties": { 1551 "selector": { 1552 "description": "Selects the operation names to which this rule applies.\nRefer to selector for syntax details.", 1553 "type": "string" 1554 }, 1555 "allowedStatuses": { 1556 "description": "Allowed billing statuses. The billing status check passes if the actual\nbilling status matches any of the provided values here.", 1557 "type": "array", 1558 "items": { 1559 "type": "string" 1560 } 1561 } 1562 } 1563 }, 1564 "AreaUnderCurveParams": { 1565 "id": "AreaUnderCurveParams", 1566 "description": "AreaUnderCurveParams groups the metrics relevant to generating\nduration based metric from base (snapshot) metric and delta\n(change) metric. The generated metric has two dimensions:\n resource usage metric and the duration the metric applies.\n\nEssentially the generated metric is the Area Under Curve(AUC) of\nthe \"duration - resource\" usage curve. This AUC metric is readily\nappliable to billing since \"billable resource usage\" depends on\nresource usage and duration of the resource used.\n\nA service config may contain multiple resources and corresponding\nmetrics. AreaUnderCurveParams groups the relevant ones: which\nsnapshot_metric and change_metric are used to produce which\ngenerated_metric.\n", 1567 "type": "object", 1568 "properties": { 1569 "snapshotMetric": { 1570 "description": "Total usage of a resource at a particular timestamp. This should be\na GAUGE metric.", 1571 "type": "string" 1572 }, 1573 "changeMetric": { 1574 "description": "Change of resource usage at a particular timestamp. This should a\nDELTA metric.", 1575 "type": "string" 1576 }, 1577 "generatedMetric": { 1578 "description": "Metric generated from snapshot_metric and change_metric. This\nis also a DELTA metric.", 1579 "type": "string" 1580 } 1581 } 1582 }, 1583 "Logging": { 1584 "id": "Logging", 1585 "description": "Logging configuration of the service.\n\nThe following example shows how to configure logs to be sent to the\nproducer and consumer projects. In the example,\nthe `library.googleapis.com\/activity_history` log is\nsent to both the producer and consumer projects, whereas\nthe `library.googleapis.com\/purchase_history` log is only sent to the\nproducer project:\n\n monitored_resources:\n - type: library.googleapis.com\/branch\n labels:\n - key: \/city\n description: The city where the library branch is located in.\n - key: \/name\n description: The name of the branch.\n logs:\n - name: library.googleapis.com\/activity_history\n labels:\n - key: \/customer_id\n - name: library.googleapis.com\/purchase_history\n logging:\n producer_destinations:\n - monitored_resource: library.googleapis.com\/branch\n logs:\n - library.googleapis.com\/activity_history\n - library.googleapis.com\/purchase_history\n consumer_destinations:\n - monitored_resource: library.googleapis.com\/branch\n logs:\n - library.googleapis.com\/activity_history\n", 1586 "type": "object", 1587 "properties": { 1588 "producerDestinations": { 1589 "description": "Logging configurations for sending logs to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none producer destination.", 1590 "type": "array", 1591 "items": { 1592 "$ref": "LoggingDestination" 1593 } 1594 }, 1595 "consumerDestinations": { 1596 "description": "Logging configurations for sending logs to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none consumer destination.", 1597 "type": "array", 1598 "items": { 1599 "$ref": "LoggingDestination" 1600 } 1601 } 1602 } 1603 }, 1604 "LoggingDestination": { 1605 "id": "LoggingDestination", 1606 "description": "Configuration of a specific logging destination (the producer project\nor the consumer project).", 1607 "type": "object", 1608 "properties": { 1609 "monitoredResource": { 1610 "description": "The monitored resource type. The type must be defined in\nService.monitored_resources section.", 1611 "type": "string" 1612 }, 1613 "logs": { 1614 "description": "Names of the logs to be sent to this destination. Each name must\nbe defined in the Service.logs section.", 1615 "type": "array", 1616 "items": { 1617 "type": "string" 1618 } 1619 } 1620 } 1621 }, 1622 "Monitoring": { 1623 "id": "Monitoring", 1624 "description": "Monitoring configuration of the service.\n\nThe example below shows how to configure monitored resources and metrics\nfor monitoring. In the example, a monitored resource and two metrics are\ndefined. The `library.googleapis.com\/book\/returned_count` metric is sent\nto both producer and consumer projects, whereas the\n`library.googleapis.com\/book\/overdue_count` metric is only sent to the\nconsumer project.\n\n monitored_resources:\n - type: library.googleapis.com\/branch\n labels:\n - key: \/city\n description: The city where the library branch is located in.\n - key: \/name\n description: The name of the branch.\n metrics:\n - name: library.googleapis.com\/book\/returned_count\n metric_kind: DELTA\n value_type: INT64\n labels:\n - key: \/customer_id\n - name: library.googleapis.com\/book\/overdue_count\n metric_kind: GAUGE\n value_type: INT64\n labels:\n - key: \/customer_id\n monitoring:\n producer_destinations:\n - monitored_resource: library.googleapis.com\/branch\n metrics:\n - library.googleapis.com\/book\/returned_count\n consumer_destinations:\n - monitored_resource: library.googleapis.com\/branch\n metrics:\n - library.googleapis.com\/book\/returned_count\n - library.googleapis.com\/book\/overdue_count\n", 1625 "type": "object", 1626 "properties": { 1627 "producerDestinations": { 1628 "description": "Monitoring configurations for sending metrics to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A metric can be used in at most\none producer destination.", 1629 "type": "array", 1630 "items": { 1631 "$ref": "MonitoringDestination" 1632 } 1633 }, 1634 "consumerDestinations": { 1635 "description": "Monitoring configurations for sending metrics to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A metric can be used in at most\none consumer destination.", 1636 "type": "array", 1637 "items": { 1638 "$ref": "MonitoringDestination" 1639 } 1640 } 1641 } 1642 }, 1643 "MonitoringDestination": { 1644 "id": "MonitoringDestination", 1645 "description": "Configuration of a specific monitoring destination (the producer project\nor the consumer project).", 1646 "type": "object", 1647 "properties": { 1648 "monitoredResource": { 1649 "description": "The monitored resource type. The type must be defined in\nService.monitored_resources section.", 1650 "type": "string" 1651 }, 1652 "metrics": { 1653 "description": "Names of the metrics to report to this monitoring destination.\nEach name must be defined in Service.metrics section.", 1654 "type": "array", 1655 "items": { 1656 "type": "string" 1657 } 1658 } 1659 } 1660 }, 1661 "SystemParameters": { 1662 "id": "SystemParameters", 1663 "description": "### System parameter configuration\n\nA system parameter is a special kind of parameter defined by the API\nsystem, not by an individual API. It is typically mapped to an HTTP header\nand\/or a URL query parameter. This configuration specifies which methods\nchange the names of the system parameters.", 1664 "type": "object", 1665 "properties": { 1666 "rules": { 1667 "description": "Define system parameters.\n\nThe parameters defined here will override the default parameters\nimplemented by the system. If this field is missing from the service\nconfig, default system parameters will be used. Default system parameters\nand names is implementation-dependent.\n\nExample: define api key and alt name for all methods\n\nsystem_parameters\n rules:\n - selector: \"*\"\n parameters:\n - name: api_key\n url_query_parameter: api_key\n - name: alt\n http_header: Response-Content-Type\n\nExample: define 2 api key names for a specific method.\n\nsystem_parameters\n rules:\n - selector: \"\/ListShelves\"\n parameters:\n - name: api_key\n http_header: Api-Key1\n - name: api_key\n http_header: Api-Key2", 1668 "type": "array", 1669 "items": { 1670 "$ref": "SystemParameterRule" 1671 } 1672 } 1673 } 1674 }, 1675 "SystemParameterRule": { 1676 "id": "SystemParameterRule", 1677 "description": "Define a system parameter rule mapping system parameter definitions to\nmethods.", 1678 "type": "object", 1679 "properties": { 1680 "selector": { 1681 "description": "Selects the methods to which this rule applies. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for syntax details.", 1682 "type": "string" 1683 }, 1684 "parameters": { 1685 "description": "Define parameters. Multiple names may be defined for a parameter.\nFor a given method call, only one of them should be used. If multiple\nnames are used the behavior is implementation-dependent.\nIf none of the specified names are present the behavior is\nparameter-dependent.", 1686 "type": "array", 1687 "items": { 1688 "$ref": "SystemParameter" 1689 } 1690 } 1691 } 1692 }, 1693 "SystemParameter": { 1694 "id": "SystemParameter", 1695 "description": "Define a parameter's name and location. The parameter may be passed as either\nan HTTP header or a URL query parameter, and if both are passed the behavior\nis implementation-dependent.", 1696 "type": "object", 1697 "properties": { 1698 "name": { 1699 "description": "Define the name of the parameter, such as \"api_key\", \"alt\", \"callback\",\nand etc. It is case sensitive.", 1700 "type": "string" 1701 }, 1702 "httpHeader": { 1703 "description": "Define the HTTP header name to use for the parameter. It is case\ninsensitive.", 1704 "type": "string" 1705 }, 1706 "urlQueryParameter": { 1707 "description": "Define the URL query parameter name to use for the parameter. It is case\nsensitive.", 1708 "type": "string" 1709 } 1710 } 1711 }, 1712 "ConfigSource": { 1713 "id": "ConfigSource", 1714 "description": "Represents a user-specified configuration for a service (as opposed to the\nthe generated service config form provided by `google.api.Service`). This is\nmeant to encode service config as manipulated directly by customers,\nrather than the config form resulting from toolchain generation and\nnormalization.", 1715 "type": "object", 1716 "properties": { 1717 "id": { 1718 "description": "A unique ID for a specific instance of this message, typically assigned\nby the client for tracking purpose. If empty, the server may choose to\ngenerate one instead.", 1719 "type": "string" 1720 }, 1721 "options": { 1722 "description": "Options to cover use of source config within ServiceManager and tools", 1723 "$ref": "ConfigOptions" 1724 }, 1725 "files": { 1726 "description": "Set of source configuration files that are used to generate a service\nconfig (`google.api.Service`).", 1727 "type": "array", 1728 "items": { 1729 "$ref": "ConfigFile" 1730 } 1731 }, 1732 "openApiSpec": { 1733 "description": "OpenAPI specification", 1734 "$ref": "OpenApiSpec" 1735 }, 1736 "protoSpec": { 1737 "description": "Protocol buffer API specification", 1738 "$ref": "ProtoSpec" 1739 } 1740 } 1741 }, 1742 "ConfigOptions": { 1743 "id": "ConfigOptions", 1744 "description": "A set of options to cover use of source config within `ServiceManager`\nand related tools.", 1745 "type": "object", 1746 "properties": { 1747 } 1748 }, 1749 "ConfigFile": { 1750 "id": "ConfigFile", 1751 "description": "Generic specification of a source configuration file", 1752 "type": "object", 1753 "properties": { 1754 "filePath": { 1755 "description": "The file name of the configuration file (full or relative path).", 1756 "type": "string" 1757 }, 1758 "contents": { 1759 "description": "DEPRECATED. The contents of the configuration file. Use file_contents\nmoving forward.", 1760 "type": "string" 1761 }, 1762 "fileContents": { 1763 "description": "The bytes that constitute the file.", 1764 "type": "string", 1765 "format": "byte" 1766 }, 1767 "fileType": { 1768 "description": "The kind of configuration file represented. This is used to determine\nthe method for generating `google.api.Service` using this file.", 1769 "enumDescriptions": [ 1770 "Unknown file type.", 1771 "YAML-specification of service.", 1772 "OpenAPI specification, serialized in JSON.", 1773 "OpenAPI specification, serialized in YAML.", 1774 "FileDescriptorSet, generated by protoc.\n\nTo generate, use protoc with imports and source info included.\nFor an example test.proto file, the following command would put the value\nin a new file named out.pb.\n\n$protoc --include_imports --include_source_info test.proto -o out.pb" 1775 ], 1776 "type": "string", 1777 "enum": [ 1778 "FILE_TYPE_UNSPECIFIED", 1779 "SERVICE_CONFIG_YAML", 1780 "OPEN_API_JSON", 1781 "OPEN_API_YAML", 1782 "FILE_DESCRIPTOR_SET_PROTO" 1783 ] 1784 } 1785 } 1786 }, 1787 "OpenApiSpec": { 1788 "id": "OpenApiSpec", 1789 "description": "A collection of OpenAPI specification files.", 1790 "type": "object", 1791 "properties": { 1792 "openApiFiles": { 1793 "description": "Individual files.", 1794 "type": "array", 1795 "items": { 1796 "$ref": "ConfigFile" 1797 } 1798 } 1799 } 1800 }, 1801 "ProtoSpec": { 1802 "id": "ProtoSpec", 1803 "description": "A collection of protocol buffer service specification files.", 1804 "type": "object", 1805 "properties": { 1806 "protoDescriptor": { 1807 "description": "A complete descriptor of a protocol buffer specification", 1808 "$ref": "ProtoDescriptor" 1809 } 1810 } 1811 }, 1812 "ProtoDescriptor": { 1813 "id": "ProtoDescriptor", 1814 "description": "Contains a serialized protoc-generated protocol buffer message descriptor set\nalong with a URL that describes the type of the descriptor message.", 1815 "type": "object", 1816 "properties": { 1817 "typeUrl": { 1818 "description": "A URL\/resource name whose content describes the type of the\nserialized protocol buffer message.\n\nOnly 'type.googleapis.com\/google.protobuf.FileDescriptorSet' is supported.\nIf the type_url is not specificed,\n'type.googleapis.com\/google.protobuf.FileDescriptorSet' will be assumed.\n", 1819 "type": "string" 1820 }, 1821 "value": { 1822 "description": "Must be a valid serialized protocol buffer descriptor set.\n\nTo generate, use protoc with imports and source info included.\nFor an example test.proto file, the following command would put the value\nin a new file named descriptor.pb.\n\n$protoc --include_imports --include_source_info test.proto -o descriptor.pb", 1823 "type": "string", 1824 "format": "byte" 1825 } 1826 } 1827 }, 1828 "Operation": { 1829 "id": "Operation", 1830 "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.", 1831 "type": "object", 1832 "properties": { 1833 "name": { 1834 "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations\/some\/unique\/name`.", 1835 "type": "string" 1836 }, 1837 "metadata": { 1838 "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.", 1839 "type": "object", 1840 "additionalProperties": { 1841 "type": "any", 1842 "description": "Properties of the object. Contains field @type with type URL." 1843 } 1844 }, 1845 "done": { 1846 "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.", 1847 "type": "boolean" 1848 }, 1849 "error": { 1850 "description": "The error result of the operation in case of failure.", 1851 "$ref": "Status" 1852 }, 1853 "response": { 1854 "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`\/`Create`\/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.", 1855 "type": "object", 1856 "additionalProperties": { 1857 "type": "any", 1858 "description": "Properties of the object. Contains field @type with type URL." 1859 } 1860 } 1861 } 1862 }, 1863 "Status": { 1864 "id": "Status", 1865 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https:\/\/github.com\/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security\/privacy reasons.", 1866 "type": "object", 1867 "properties": { 1868 "code": { 1869 "description": "The status code, which should be an enum value of google.rpc.Code.", 1870 "type": "integer", 1871 "format": "int32" 1872 }, 1873 "message": { 1874 "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.", 1875 "type": "string" 1876 }, 1877 "details": { 1878 "description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.", 1879 "type": "array", 1880 "items": { 1881 "type": "object", 1882 "additionalProperties": { 1883 "type": "any", 1884 "description": "Properties of the object. Contains field @type with type URL." 1885 } 1886 } 1887 } 1888 } 1889 }, 1890 "ProjectSettings": { 1891 "id": "ProjectSettings", 1892 "description": "Settings that control how a consumer project uses a service.", 1893 "type": "object", 1894 "properties": { 1895 "serviceName": { 1896 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements.", 1897 "type": "string" 1898 }, 1899 "consumerProjectId": { 1900 "description": "ID for the project consuming this service.", 1901 "type": "string" 1902 }, 1903 "usageSettings": { 1904 "description": "Settings that control whether this service is usable by the consumer\nproject.", 1905 "$ref": "UsageSettings" 1906 }, 1907 "quotaSettings": { 1908 "description": "Settings that control how much or how fast the service can be used by the\nconsumer project.", 1909 "$ref": "QuotaSettings" 1910 }, 1911 "visibilitySettings": { 1912 "description": "Settings that control which features of the service are visible to the\nconsumer project.", 1913 "$ref": "VisibilitySettings" 1914 }, 1915 "properties": { 1916 "description": "Service-defined per-consumer properties.\n\nA key-value mapping a string key to a google.protobuf.ListValue proto.\nValues in the list are typed as defined in the Service configuration's\nconsumer.properties field.", 1917 "type": "object", 1918 "additionalProperties": { 1919 "type": "array", 1920 "items": { 1921 "type": "any" 1922 } 1923 } 1924 }, 1925 "operations": { 1926 "description": "Read-only view of pending operations affecting this resource, if requested.", 1927 "type": "array", 1928 "items": { 1929 "$ref": "Operation" 1930 } 1931 } 1932 } 1933 }, 1934 "UsageSettings": { 1935 "id": "UsageSettings", 1936 "description": "Usage settings for a consumer of a service.", 1937 "type": "object", 1938 "properties": { 1939 "consumerEnableStatus": { 1940 "description": "Consumer controlled setting to enable\/disable use of this service by the\nconsumer project. The default value of this is controlled by the service\nconfiguration.", 1941 "enumDescriptions": [ 1942 "The service is disabled.", 1943 "The service is enabled." 1944 ], 1945 "type": "string", 1946 "enum": [ 1947 "DISABLED", 1948 "ENABLED" 1949 ] 1950 } 1951 } 1952 }, 1953 "QuotaSettings": { 1954 "id": "QuotaSettings", 1955 "description": "Per-consumer overrides for quota settings. See google\/api\/quota.proto\nfor the corresponding service configuration which provides the default\nvalues.", 1956 "type": "object", 1957 "properties": { 1958 "consumerOverrides": { 1959 "description": "Quota overrides set by the consumer. Consumer overrides will only have\nan effect up to the max_limit specified in the service config, or the\nthe producer override, if one exists.\n\nThe key for this map is one of the following:\n\n- '<GROUP_NAME>\/<LIMIT_NAME>' for quotas defined within quota groups,\nwhere GROUP_NAME is the google.api.QuotaGroup.name field and\nLIMIT_NAME is the google.api.QuotaLimit.name field from the service\nconfig. For example: 'ReadGroup\/ProjectDaily'.\n\n- '<LIMIT_NAME>' for quotas defined without quota groups, where LIMIT_NAME\nis the google.api.QuotaLimit.name field from the service config. For\nexample: 'borrowedCountPerOrganization'.", 1960 "type": "object", 1961 "additionalProperties": { 1962 "$ref": "QuotaLimitOverride" 1963 } 1964 }, 1965 "producerOverrides": { 1966 "description": "Quota overrides set by the producer. Note that if a consumer override is\nalso specified, then the minimum of the two will be used. This allows\nconsumers to cap their usage voluntarily.\n\nThe key for this map is one of the following:\n\n- '<GROUP_NAME>\/<LIMIT_NAME>' for quotas defined within quota groups,\nwhere GROUP_NAME is the google.api.QuotaGroup.name field and\nLIMIT_NAME is the google.api.QuotaLimit.name field from the service\nconfig. For example: 'ReadGroup\/ProjectDaily'.\n\n- '<LIMIT_NAME>' for quotas defined without quota groups, where LIMIT_NAME\nis the google.api.QuotaLimit.name field from the service config. For\nexample: 'borrowedCountPerOrganization'.", 1967 "type": "object", 1968 "additionalProperties": { 1969 "$ref": "QuotaLimitOverride" 1970 } 1971 }, 1972 "effectiveQuotas": { 1973 "description": "The effective quota limits for each group, derived from the service\ndefaults together with any producer or consumer overrides.\nFor each limit, the effective value is the minimum of the producer\nand consumer overrides if either is present, or else the service default\nif neither is present.\nDEPRECATED. Use effective_quota_groups instead.", 1974 "type": "object", 1975 "additionalProperties": { 1976 "$ref": "QuotaLimitOverride" 1977 } 1978 }, 1979 "variableTermQuotas": { 1980 "description": "Quotas that are active over a specified time period. Only writeable\nby the producer.", 1981 "type": "array", 1982 "items": { 1983 "$ref": "VariableTermQuota" 1984 } 1985 }, 1986 "effectiveQuotaGroups": { 1987 "description": "Use this field for quota limits defined under quota groups.\nCombines service quota configuration and project-specific settings, as\na map from quota group name to the effective quota information for that\ngroup.\nOutput-only.", 1988 "type": "array", 1989 "items": { 1990 "$ref": "EffectiveQuotaGroup" 1991 } 1992 } 1993 } 1994 }, 1995 "QuotaLimitOverride": { 1996 "id": "QuotaLimitOverride", 1997 "description": "Specifies a custom quota limit that is applied for this consumer project.\nThis overrides the default value in google.api.QuotaLimit.", 1998 "type": "object", 1999 "properties": { 2000 "limit": { 2001 "description": "The new limit for this project.\nMay be -1 (unlimited), 0 (block), or any positive integer.", 2002 "type": "string", 2003 "format": "int64" 2004 }, 2005 "unlimited": { 2006 "description": "Indicates the override is to provide unlimited quota. If true,\nany value set for limit will be ignored.\nDEPRECATED. Use a limit value of -1 instead.", 2007 "type": "boolean" 2008 } 2009 } 2010 }, 2011 "VariableTermQuota": { 2012 "id": "VariableTermQuota", 2013 "description": "A variable term quota is a bucket of tokens that is consumed over a\nspecified (usually long) time period. When present, it overrides any\n\"1d\" duration per-project quota specified on the group.\n\nVariable terms run from midnight to midnight, start_date to end_date\n(inclusive) in the America\/Los_Angeles time zone.", 2014 "type": "object", 2015 "properties": { 2016 "groupName": { 2017 "description": "The quota group that has the variable term quota applied to it.\nThis must be a google.api.QuotaGroup.name specified in the\nservice configuration.", 2018 "type": "string" 2019 }, 2020 "startDate": { 2021 "description": "The beginning of the active period for the variable term quota.\nYYYYMMdd date format, e.g. 20140730.", 2022 "type": "string" 2023 }, 2024 "endDate": { 2025 "description": "The effective end of the active period for the variable term quota\n(inclusive). This must be no more than 5 years after start_date.\nYYYYMMdd date format, e.g. 20140730.", 2026 "type": "string" 2027 }, 2028 "displayEndDate": { 2029 "description": "The displayed end of the active period for the variable term quota.\nThis may be before the effective end to give the user a grace period.\nYYYYMMdd date format, e.g. 20140730.", 2030 "type": "string" 2031 }, 2032 "createTime": { 2033 "description": "Time when this variable term quota was created. If multiple quotas\nare simultaneously active, then the quota with the latest create_time\nis the effective one.", 2034 "type": "string", 2035 "format": "google-datetime" 2036 }, 2037 "limit": { 2038 "description": "The number of tokens available during the configured term.", 2039 "type": "string", 2040 "format": "int64" 2041 }, 2042 "quotaUsage": { 2043 "description": "The usage data of this quota.", 2044 "$ref": "QuotaUsage" 2045 } 2046 } 2047 }, 2048 "QuotaUsage": { 2049 "id": "QuotaUsage", 2050 "description": "Specifies the used quota amount for a quota limit at a particular time.", 2051 "type": "object", 2052 "properties": { 2053 "usage": { 2054 "description": "The used quota value at the \"query_time\".", 2055 "type": "string", 2056 "format": "int64" 2057 }, 2058 "startTime": { 2059 "description": "The time the quota duration started.", 2060 "type": "string", 2061 "format": "google-datetime" 2062 }, 2063 "endTime": { 2064 "description": "The time the quota duration ended.", 2065 "type": "string", 2066 "format": "google-datetime" 2067 }, 2068 "queryTime": { 2069 "description": "The time the quota usage data was queried.", 2070 "type": "string", 2071 "format": "google-datetime" 2072 } 2073 } 2074 }, 2075 "EffectiveQuotaGroup": { 2076 "id": "EffectiveQuotaGroup", 2077 "description": "An effective quota group contains both the metadata for a quota group\nas derived from the service config, and the effective limits in that\ngroup as calculated from producer and consumer overrides together with\nservice defaults.", 2078 "type": "object", 2079 "properties": { 2080 "baseGroup": { 2081 "description": "The service configuration for this quota group, minus the quota limits,\nwhich are replaced by the effective limits below.", 2082 "$ref": "QuotaGroup" 2083 }, 2084 "billingInteraction": { 2085 2086 "enumDescriptions": [ 2087 "The interaction between this quota group and the project billing status\nis unspecified.", 2088 "This quota group is enforced only when the consumer project\nis not billable.", 2089 "This quota group is enforced only when the consumer project\nis billable.", 2090 "This quota group is enforced regardless of the consumer project's\nbilling status." 2091 ], 2092 "type": "string", 2093 "enum": [ 2094 "BILLING_INTERACTION_UNSPECIFIED", 2095 "NONBILLABLE_ONLY", 2096 "BILLABLE_ONLY", 2097 "ANY_BILLING_STATUS" 2098 ] 2099 }, 2100 "quotas": { 2101 "description": "The usage and limit information for each limit within this quota group.", 2102 "type": "array", 2103 "items": { 2104 "$ref": "QuotaInfo" 2105 } 2106 } 2107 } 2108 }, 2109 "QuotaInfo": { 2110 "id": "QuotaInfo", 2111 "description": "Metadata about an individual quota, containing usage and limit information.", 2112 "type": "object", 2113 "properties": { 2114 "limit": { 2115 "description": "The effective limit for this quota.", 2116 "$ref": "EffectiveQuotaLimit" 2117 }, 2118 "currentUsage": { 2119 "description": "The usage data for this quota as it applies to the current limit.", 2120 "$ref": "QuotaUsage" 2121 }, 2122 "historicalUsage": { 2123 "description": "The historical usage data of this quota limit. Currently it is only\navailable for daily quota limit, that is, base_limit.duration = \"1d\".", 2124 "type": "array", 2125 "items": { 2126 "$ref": "QuotaUsage" 2127 } 2128 } 2129 } 2130 }, 2131 "EffectiveQuotaLimit": { 2132 "id": "EffectiveQuotaLimit", 2133 "description": "An effective quota limit contains the metadata for a quota limit\nas derived from the service config, together with fields that describe\nthe effective limit value and what overrides can be applied to it.", 2134 "type": "object", 2135 "properties": { 2136 "baseLimit": { 2137 "description": "The service's configuration for this quota limit.", 2138 "$ref": "QuotaLimit" 2139 }, 2140 "key": { 2141 "description": "The key used to identify this limit when applying overrides.\nThe consumer_overrides and producer_overrides maps are keyed\nby strings of the form \"QuotaGroupName\/QuotaLimitName\".", 2142 "type": "string" 2143 }, 2144 "maxConsumerOverrideAllowed": { 2145 "description": "The maximum override value that a consumer may specify.", 2146 "type": "string", 2147 "format": "int64" 2148 }, 2149 "effectiveLimit": { 2150 "description": "The effective limit value, based on the stored producer and consumer\noverrides and the service defaults.", 2151 "type": "string", 2152 "format": "int64" 2153 } 2154 } 2155 }, 2156 "VisibilitySettings": { 2157 "id": "VisibilitySettings", 2158 "description": "Settings that control which features of the service are visible to the\nconsumer project.", 2159 "type": "object", 2160 "properties": { 2161 "visibilityLabels": { 2162 "description": "The set of visibility labels that are used to determine what API surface is\nvisible to calls made by this project. The visible surface is a union of\nthe surface features associated with each label listed here, plus the\npublicly visible (unrestricted) surface.\n\nThe service producer may add or remove labels at any time. The service\nconsumer may add a label if the calling user has been granted permission\nto do so by the producer. The service consumer may also remove any label\nat any time.", 2163 "type": "array", 2164 "items": { 2165 "type": "string" 2166 } 2167 } 2168 } 2169 }, 2170 "ListServiceConfigsResponse": { 2171 "id": "ListServiceConfigsResponse", 2172 "description": "Response message for ListServiceConfigs method.", 2173 "type": "object", 2174 "properties": { 2175 "serviceConfigs": { 2176 "description": "The list of service config resources.", 2177 "type": "array", 2178 "items": { 2179 "$ref": "Service" 2180 } 2181 }, 2182 "nextPageToken": { 2183 "description": "The token of the next page of results.", 2184 "type": "string" 2185 } 2186 } 2187 }, 2188 "SubmitConfigSourceRequest": { 2189 "id": "SubmitConfigSourceRequest", 2190 "description": "Request message for SubmitConfigSource method.", 2191 "type": "object", 2192 "properties": { 2193 "configSource": { 2194 "description": "The source configuration for the service.", 2195 "$ref": "ConfigSource" 2196 }, 2197 "validateOnly": { 2198 "description": "Optional. If set, this will result in the generation of a\n`google.api.Service` configuration based on the `ConfigSource` provided,\nbut the generated config and the sources will NOT be persisted.", 2199 "type": "boolean" 2200 } 2201 } 2202 }, 2203 "ConvertConfigRequest": { 2204 "id": "ConvertConfigRequest", 2205 "description": "Request message for `ConvertConfig` method.", 2206 "type": "object", 2207 "properties": { 2208 "swaggerSpec": { 2209 "description": "The swagger specification for an API.", 2210 "$ref": "SwaggerSpec" 2211 }, 2212 "openApiSpec": { 2213 "description": "The OpenAPI specification for an API.", 2214 "$ref": "OpenApiSpec" 2215 }, 2216 "serviceName": { 2217 "description": "The service name to use for constructing the normalized service\nconfiguration equivalent of the provided configuration specification.", 2218 "type": "string" 2219 }, 2220 "configSpec": { 2221 "description": "Input configuration\nFor this version of API, the supported type is OpenApiSpec", 2222 "type": "object", 2223 "additionalProperties": { 2224 "type": "any", 2225 "description": "Properties of the object. Contains field @type with type URL." 2226 } 2227 } 2228 } 2229 }, 2230 "SwaggerSpec": { 2231 "id": "SwaggerSpec", 2232 "description": "A collection of swagger specification files.", 2233 "type": "object", 2234 "properties": { 2235 "swaggerFiles": { 2236 "description": "The individual files.", 2237 "type": "array", 2238 "items": { 2239 "$ref": "File" 2240 } 2241 } 2242 } 2243 }, 2244 "File": { 2245 "id": "File", 2246 "description": "A single swagger specification file.", 2247 "type": "object", 2248 "properties": { 2249 "path": { 2250 "description": "The relative path of the swagger spec file.", 2251 "type": "string" 2252 }, 2253 "contents": { 2254 "description": "The contents of the swagger spec file.", 2255 "type": "string" 2256 } 2257 } 2258 }, 2259 "ConvertConfigResponse": { 2260 "id": "ConvertConfigResponse", 2261 "description": "Response message for `ConvertConfig` method.", 2262 "type": "object", 2263 "properties": { 2264 "serviceConfig": { 2265 "description": "The service configuration. Not set if errors occured during conversion.", 2266 "$ref": "Service" 2267 }, 2268 "diagnostics": { 2269 "description": "Any errors or warnings that occured during config conversion.", 2270 "type": "array", 2271 "items": { 2272 "$ref": "Diagnostic" 2273 } 2274 } 2275 } 2276 }, 2277 "Diagnostic": { 2278 "id": "Diagnostic", 2279 "description": "A collection that represents a diagnostic message (error or warning)", 2280 "type": "object", 2281 "properties": { 2282 "location": { 2283 "description": "Location of the cause or context of the diagnostic information.", 2284 "type": "string" 2285 }, 2286 "kind": { 2287 "description": "The kind of diagnostic information provided.", 2288 "enumDescriptions": [ 2289 "Warnings and errors", 2290 "Only errors" 2291 ], 2292 "type": "string", 2293 "enum": [ 2294 "WARNING", 2295 "ERROR" 2296 ] 2297 }, 2298 "message": { 2299 "description": "The string message of the diagnostic information.", 2300 "type": "string" 2301 } 2302 } 2303 }, 2304 "EnableServiceRequest": { 2305 "id": "EnableServiceRequest", 2306 "description": "Request message for EnableService method.", 2307 "type": "object", 2308 "properties": { 2309 "consumerId": { 2310 "description": "The identity of consumer resource which service enablement will be\napplied to.\n\nThe Google Service Management implementation accepts the following\nforms: \"project:<project_id>\", \"project_number:<project_number>\".\n\nNote: this is made compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", 2311 "type": "string" 2312 } 2313 } 2314 }, 2315 "DisableServiceRequest": { 2316 "id": "DisableServiceRequest", 2317 "description": "Request message for DisableService method.", 2318 "type": "object", 2319 "properties": { 2320 "consumerId": { 2321 "description": "The identity of consumer resource which service disablement will be\napplied to.\n\nThe Google Service Management implementation accepts the following\nforms: \"project:<project_id>\", \"project_number:<project_number>\".\n\nNote: this is made compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", 2322 "type": "string" 2323 } 2324 } 2325 }, 2326 "ServiceAccessPolicy": { 2327 "id": "ServiceAccessPolicy", 2328 "description": "Policy describing who can access a service and any visibility labels on that\nservice.", 2329 "type": "object", 2330 "properties": { 2331 "serviceName": { 2332 "description": "The service protected by this policy.", 2333 "type": "string" 2334 }, 2335 "accessList": { 2336 "description": "ACL for access to the unrestricted surface of the service.", 2337 "$ref": "ServiceAccessList" 2338 }, 2339 "visibilityLabelAccessLists": { 2340 "description": "ACLs for access to restricted parts of the service. The map key is the\nvisibility label that is being controlled. Note that access to any label\nalso implies access to the unrestricted surface.", 2341 "type": "object", 2342 "additionalProperties": { 2343 "$ref": "ServiceAccessList" 2344 } 2345 } 2346 } 2347 }, 2348 "ServiceAccessList": { 2349 "id": "ServiceAccessList", 2350 "description": "List of users and groups that are granted access to a service or visibility\nlabel.", 2351 "type": "object", 2352 "properties": { 2353 "members": { 2354 "description": "Members that are granted access.\n\n- \"user:{$user_email}\" - Grant access to an individual user\n- \"group:{$group_email}\" - Grant access to direct members of the group\n- \"domain:{$domain}\" - Grant access to all members of the domain. For now,\n domain membership check will be similar to Devconsole\/TT check:\n compare domain part of the user email to configured domain name.\n When IAM integration is complete, this will be replaced with IAM\n check.", 2355 "type": "array", 2356 "items": { 2357 "type": "string" 2358 } 2359 } 2360 } 2361 }, 2362 "QueryUserAccessResponse": { 2363 "id": "QueryUserAccessResponse", 2364 "description": "Request message for QueryUserAccess method.", 2365 "type": "object", 2366 "properties": { 2367 "canAccessService": { 2368 "description": "True if the user can access the service and any unrestricted API surface.", 2369 "type": "boolean" 2370 }, 2371 "accessibleVisibilityLabels": { 2372 "description": "Any visibility labels on the service that are accessible by the user.", 2373 "type": "array", 2374 "items": { 2375 "type": "string" 2376 } 2377 } 2378 } 2379 }, 2380 "CustomerSettings": { 2381 "id": "CustomerSettings", 2382 "description": "Settings that control how a customer (identified by a billing account) uses\na service", 2383 "type": "object", 2384 "properties": { 2385 "serviceName": { 2386 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements.", 2387 "type": "string" 2388 }, 2389 "customerId": { 2390 "description": "ID for the customer that consumes the service (see above).\nThe supported types of customers are:\n\n1. domain:{domain}\nA Google Apps domain name. For example, google.com.\n\n2. billingAccount:{billing_account_id}\nA Google Cloud Plafrom billing account. For Example, 123456-7890ab-cdef12.\n", 2391 "type": "string" 2392 }, 2393 "quotaSettings": { 2394 "description": "Settings that control how much or how fast the service can be used by the\nconsumer projects owned by the customer collectively.", 2395 "$ref": "QuotaSettings" 2396 } 2397 } 2398 }, 2399 "CompositeOperationMetadata": { 2400 "id": "CompositeOperationMetadata", 2401 "description": "Metadata for composite operations.", 2402 "type": "object", 2403 "properties": { 2404 "childOperations": { 2405 "description": "The child operations. The details of the asynchronous\nchild operations are stored in a separate row and not in this\nmetadata. Only the operation name is stored here.", 2406 "type": "array", 2407 "items": { 2408 "$ref": "Operation" 2409 } 2410 }, 2411 "originalRequest": { 2412 "description": "Original request that triggered this operation.", 2413 "type": "object", 2414 "additionalProperties": { 2415 "type": "any", 2416 "description": "Properties of the object. Contains field @type with type URL." 2417 } 2418 }, 2419 "responseFieldMasks": { 2420 "description": "Defines which part of the response a child operation will contribute.\nEach key of the map is the name of a child operation. Each value is a\nfield mask that identifies what that child operation contributes to the\nresponse, for example, \"quota_settings\", \"visiblity_settings\", etc.", 2421 "type": "object", 2422 "additionalProperties": { 2423 "type": "string", 2424 "format": "google-fieldmask" 2425 } 2426 }, 2427 "persisted": { 2428 "description": "Indicates whether the requested state change has been persisted. Once this\nfield is set, it is guaranteed to propagate to all backends eventually, but\nit may not be visible immediately. Clients that are not concerned with\nwaiting on propagation can stop polling the operation once the persisted\nfield is set", 2429 "type": "boolean" 2430 } 2431 } 2432 }, 2433 "OperationMetadata": { 2434 "id": "OperationMetadata", 2435 "description": "The metadata associated with a long running operation resource.", 2436 "type": "object", 2437 "properties": { 2438 "resourceNames": { 2439 "description": "The full name of the resources that this operation is directly\nassociated with.", 2440 "type": "array", 2441 "items": { 2442 "type": "string" 2443 } 2444 }, 2445 "steps": { 2446 "description": "Detailed status information for each step. The order is undetermined.", 2447 "type": "array", 2448 "items": { 2449 "$ref": "Step" 2450 } 2451 }, 2452 "progressPercentage": { 2453 "description": "Percentage of completion of this operation, ranging from 0 to 100.", 2454 "type": "integer", 2455 "format": "int32" 2456 }, 2457 "startTime": { 2458 "description": "The start time of the operation.", 2459 "type": "string", 2460 "format": "google-datetime" 2461 } 2462 } 2463 }, 2464 "Step": { 2465 "id": "Step", 2466 "description": "Represents the status of one operation step.", 2467 "type": "object", 2468 "properties": { 2469 "description": { 2470 "description": "The short description of the step.", 2471 "type": "string" 2472 }, 2473 "status": { 2474 "description": "The status code.", 2475 "enumDescriptions": [ 2476 "Unspecifed code.", 2477 "The step has completed without errors.", 2478 "The step has not started yet.", 2479 "The step is in progress.", 2480 "The step has completed with errors." 2481 ], 2482 "type": "string", 2483 "enum": [ 2484 "STATUS_UNSPECIFIED", 2485 "DONE", 2486 "NOT_STARTED", 2487 "IN_PROGRESS", 2488 "FAILED" 2489 ] 2490 } 2491 } 2492 } 2493 }, 2494 "resources": { 2495 "services": { 2496 "methods": { 2497 "list": { 2498 "id": "servicemanagement.services.list", 2499 "path": "v1/services", 2500 "flatPath": "v1/services", 2501 "httpMethod": "GET", 2502 "description": "Lists all managed services. If the `consumer_project_id` is specified,\nthe project's settings for the specified service are also returned.", 2503 "parameters": { 2504 "producerProjectId": { 2505 "description": "Include services produced by the specified project.", 2506 "location": "query", 2507 "type": "string" 2508 }, 2509 "category": { 2510 "description": "Include services only in the specified category. Supported categories are\nservicemanagement.googleapis.com\/categories\/google-services or\nservicemanagement.googleapis.com\/categories\/play-games.", 2511 "location": "query", 2512 "type": "string" 2513 }, 2514 "consumerProjectId": { 2515 "description": "Include services consumed by the specified project.\n\nIf project_settings is expanded, then this field controls which project\nproject_settings is populated for.", 2516 "location": "query", 2517 "type": "string" 2518 }, 2519 "expand": { 2520 "description": "Fields to expand in any results. By default, the following fields\nare not fully included in list results:\n- `operations`\n- `project_settings`\n- `project_settings.operations`\n- `quota_usage` (It requires `project_settings`)", 2521 "location": "query", 2522 "type": "string", 2523 "format": "google-fieldmask" 2524 }, 2525 "pageSize": { 2526 "description": "Requested size of the next page of data.", 2527 "location": "query", 2528 "type": "integer", 2529 "format": "int32" 2530 }, 2531 "pageToken": { 2532 "description": "Token identifying which result to start with; returned by a previous list\ncall.", 2533 "location": "query", 2534 "type": "string" 2535 } 2536 }, 2537 "parameterOrder": [ 2538 ], 2539 "response": { 2540 "$ref": "ListServicesResponse" 2541 }, 2542 "scopes": [ 2543 "https://www.googleapis.com/auth/cloud-platform", 2544 "https://www.googleapis.com/auth/service.management" 2545 ] 2546 }, 2547 "get": { 2548 "id": "servicemanagement.services.get", 2549 "path": "v1/services/{serviceName}", 2550 "flatPath": "v1/services/{serviceName}", 2551 "httpMethod": "GET", 2552 "description": "Gets a managed service. If the `consumer_project_id` is specified,\nthe project's settings for the specified service are also returned.", 2553 "parameters": { 2554 "serviceName": { 2555 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2556 "location": "path", 2557 "required": true, 2558 "type": "string" 2559 }, 2560 "expand": { 2561 "description": "Fields to expand in any results. By default, the following fields\nare not present in the result:\n- `operations`\n- `project_settings`\n- `project_settings.operations`\n- `quota_usage` (It requires `project_settings`)\n- `historical_quota_usage` (It requires `project_settings`)", 2562 "location": "query", 2563 "type": "string", 2564 "format": "google-fieldmask" 2565 }, 2566 "consumerProjectId": { 2567 "description": "If project_settings is expanded, return settings for the specified\nconsumer project.", 2568 "location": "query", 2569 "type": "string" 2570 }, 2571 "view": { 2572 "description": "If project_settings is expanded, request only fields for the specified\nview.", 2573 "location": "query", 2574 "type": "string", 2575 "enum": [ 2576 "PROJECT_SETTINGS_VIEW_UNSPECIFIED", 2577 "CONSUMER_VIEW", 2578 "PRODUCER_VIEW", 2579 "ALL" 2580 ] 2581 } 2582 }, 2583 "parameterOrder": [ 2584 "serviceName" 2585 ], 2586 "response": { 2587 "$ref": "ManagedService" 2588 }, 2589 "scopes": [ 2590 "https://www.googleapis.com/auth/cloud-platform", 2591 "https://www.googleapis.com/auth/service.management" 2592 ] 2593 }, 2594 "create": { 2595 "id": "servicemanagement.services.create", 2596 "path": "v1/services", 2597 "flatPath": "v1/services", 2598 "httpMethod": "POST", 2599 "description": "Creates a new managed service.\n\nOperation<response: ManagedService>", 2600 "parameters": { 2601 }, 2602 "parameterOrder": [ 2603 ], 2604 "request": { 2605 "$ref": "ManagedService" 2606 }, 2607 "response": { 2608 "$ref": "Operation" 2609 }, 2610 "scopes": [ 2611 "https://www.googleapis.com/auth/cloud-platform", 2612 "https://www.googleapis.com/auth/service.management" 2613 ] 2614 }, 2615 "delete": { 2616 "id": "servicemanagement.services.delete", 2617 "path": "v1/services/{serviceName}", 2618 "flatPath": "v1/services/{serviceName}", 2619 "httpMethod": "DELETE", 2620 "description": "Deletes a managed service.\n\nOperation<response: google.protobuf.Empty>", 2621 "parameters": { 2622 "serviceName": { 2623 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2624 "location": "path", 2625 "required": true, 2626 "type": "string" 2627 } 2628 }, 2629 "parameterOrder": [ 2630 "serviceName" 2631 ], 2632 "response": { 2633 "$ref": "Operation" 2634 }, 2635 "scopes": [ 2636 "https://www.googleapis.com/auth/cloud-platform", 2637 "https://www.googleapis.com/auth/service.management" 2638 ] 2639 }, 2640 "getConfig": { 2641 "id": "servicemanagement.services.getConfig", 2642 "path": "v1/services/{serviceName}/config", 2643 "flatPath": "v1/services/{serviceName}/config", 2644 "httpMethod": "GET", 2645 "description": "Gets a service config (version) for a managed service. If `config_id` is\nnot specified, the latest service config will be returned.", 2646 "parameters": { 2647 "serviceName": { 2648 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2649 "location": "path", 2650 "required": true, 2651 "type": "string" 2652 }, 2653 "configId": { 2654 "description": "The id of the service config resource.\nOptional. If it is not specified, the latest version of config will be\nreturned.", 2655 "location": "query", 2656 "type": "string" 2657 } 2658 }, 2659 "parameterOrder": [ 2660 "serviceName" 2661 ], 2662 "response": { 2663 "$ref": "Service" 2664 }, 2665 "scopes": [ 2666 "https://www.googleapis.com/auth/cloud-platform", 2667 "https://www.googleapis.com/auth/service.management" 2668 ] 2669 }, 2670 "convertConfig": { 2671 "id": "servicemanagement.services.convertConfig", 2672 "path": "v1/services:convertConfig", 2673 "flatPath": "v1/services:convertConfig", 2674 "httpMethod": "POST", 2675 "description": "DEPRECATED. `SubmitConfigSource` with `validate_only=true` will provide\nconfig conversion moving forward.\n\nConverts an API specification (e.g. Swagger spec) to an\nequivalent `google.api.Service`.", 2676 "parameters": { 2677 }, 2678 "parameterOrder": [ 2679 ], 2680 "request": { 2681 "$ref": "ConvertConfigRequest" 2682 }, 2683 "response": { 2684 "$ref": "ConvertConfigResponse" 2685 }, 2686 "scopes": [ 2687 "https://www.googleapis.com/auth/cloud-platform", 2688 "https://www.googleapis.com/auth/service.management" 2689 ] 2690 }, 2691 "enable": { 2692 "id": "servicemanagement.services.enable", 2693 "path": "v1/services/{serviceName}:enable", 2694 "flatPath": "v1/services/{serviceName}:enable", 2695 "httpMethod": "POST", 2696 "description": "Enable a managed service for a project with default setting.\nIf the managed service has dependencies, they will be enabled as well.\n\nOperation<response: EnableServiceResponse>\n", 2697 "parameters": { 2698 "serviceName": { 2699 "description": "Name of the service to enable. Specifying an unknown service name will\ncause the request to fail.", 2700 "location": "path", 2701 "required": true, 2702 "type": "string" 2703 } 2704 }, 2705 "parameterOrder": [ 2706 "serviceName" 2707 ], 2708 "request": { 2709 "$ref": "EnableServiceRequest" 2710 }, 2711 "response": { 2712 "$ref": "Operation" 2713 }, 2714 "scopes": [ 2715 "https://www.googleapis.com/auth/cloud-platform", 2716 "https://www.googleapis.com/auth/service.management" 2717 ] 2718 }, 2719 "disable": { 2720 "id": "servicemanagement.services.disable", 2721 "path": "v1/services/{serviceName}:disable", 2722 "flatPath": "v1/services/{serviceName}:disable", 2723 "httpMethod": "POST", 2724 "description": "Disable a managed service for a project.\nGoogle Service Management will only disable the managed service even if\nthere are other services depend on the managed service.\n\nOperation<response: DisableServiceResponse>\n", 2725 "parameters": { 2726 "serviceName": { 2727 "description": "Name of the service to disable. Specifying an unknown service name\nwill cause the request to fail.", 2728 "location": "path", 2729 "required": true, 2730 "type": "string" 2731 } 2732 }, 2733 "parameterOrder": [ 2734 "serviceName" 2735 ], 2736 "request": { 2737 "$ref": "DisableServiceRequest" 2738 }, 2739 "response": { 2740 "$ref": "Operation" 2741 }, 2742 "scopes": [ 2743 "https://www.googleapis.com/auth/cloud-platform", 2744 "https://www.googleapis.com/auth/service.management" 2745 ] 2746 }, 2747 "update": { 2748 "id": "servicemanagement.services.update", 2749 "path": "v1/services/{serviceName}", 2750 "flatPath": "v1/services/{serviceName}", 2751 "httpMethod": "PUT", 2752 "description": "Updates the configuration of a service. If the specified service does not\nalready exist, then it is created.\n\nOperation<response: ManagedService>", 2753 "parameters": { 2754 "serviceName": { 2755 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2756 "location": "path", 2757 "required": true, 2758 "type": "string" 2759 }, 2760 "updateMask": { 2761 "description": "A mask specifying which fields to update.\nUpdate mask has been deprecated on UpdateService service method. Please\nuse PatchService method instead to do partial updates.", 2762 "location": "query", 2763 "type": "string", 2764 "format": "google-fieldmask" 2765 } 2766 }, 2767 "parameterOrder": [ 2768 "serviceName" 2769 ], 2770 "request": { 2771 "$ref": "ManagedService" 2772 }, 2773 "response": { 2774 "$ref": "Operation" 2775 }, 2776 "scopes": [ 2777 "https://www.googleapis.com/auth/cloud-platform", 2778 "https://www.googleapis.com/auth/service.management" 2779 ] 2780 }, 2781 "patch": { 2782 "id": "servicemanagement.services.patch", 2783 "path": "v1/services/{serviceName}", 2784 "flatPath": "v1/services/{serviceName}", 2785 "httpMethod": "PATCH", 2786 "description": "Updates the specified subset of the configuration. If the specified service\ndoes not exists the patch operation fails.\n\nOperation<response: ManagedService>", 2787 "parameters": { 2788 "serviceName": { 2789 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2790 "location": "path", 2791 "required": true, 2792 "type": "string" 2793 }, 2794 "updateMask": { 2795 "description": "A mask specifying which fields to update.", 2796 "location": "query", 2797 "type": "string", 2798 "format": "google-fieldmask" 2799 } 2800 }, 2801 "parameterOrder": [ 2802 "serviceName" 2803 ], 2804 "request": { 2805 "$ref": "ManagedService" 2806 }, 2807 "response": { 2808 "$ref": "Operation" 2809 }, 2810 "scopes": [ 2811 "https://www.googleapis.com/auth/cloud-platform", 2812 "https://www.googleapis.com/auth/service.management" 2813 ] 2814 }, 2815 "updateConfig": { 2816 "id": "servicemanagement.services.updateConfig", 2817 "path": "v1/services/{serviceName}/config", 2818 "flatPath": "v1/services/{serviceName}/config", 2819 "httpMethod": "PUT", 2820 "description": "Updates the specified subset of the service resource. Equivalent to\ncalling `UpdateService` with only the `service_config` field updated.\n\nOperation<response: google.api.Service>", 2821 "parameters": { 2822 "serviceName": { 2823 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2824 "location": "path", 2825 "required": true, 2826 "type": "string" 2827 }, 2828 "updateMask": { 2829 "description": "A mask specifying which fields to update.\nUpdate mask has been deprecated on UpdateServiceConfig service method.\nPlease use PatchServiceConfig method instead to do partial updates.", 2830 "location": "query", 2831 "type": "string", 2832 "format": "google-fieldmask" 2833 } 2834 }, 2835 "parameterOrder": [ 2836 "serviceName" 2837 ], 2838 "request": { 2839 "$ref": "Service" 2840 }, 2841 "response": { 2842 "$ref": "Operation" 2843 }, 2844 "scopes": [ 2845 "https://www.googleapis.com/auth/cloud-platform", 2846 "https://www.googleapis.com/auth/service.management" 2847 ] 2848 }, 2849 "patchConfig": { 2850 "id": "servicemanagement.services.patchConfig", 2851 "path": "v1/services/{serviceName}/config", 2852 "flatPath": "v1/services/{serviceName}/config", 2853 "httpMethod": "PATCH", 2854 "description": "Updates the specified subset of the service resource. Equivalent to\ncalling `PatchService` with only the `service_config` field updated.\n\nOperation<response: google.api.Service>", 2855 "parameters": { 2856 "serviceName": { 2857 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2858 "location": "path", 2859 "required": true, 2860 "type": "string" 2861 }, 2862 "updateMask": { 2863 "description": "A mask specifying which fields to update.", 2864 "location": "query", 2865 "type": "string", 2866 "format": "google-fieldmask" 2867 } 2868 }, 2869 "parameterOrder": [ 2870 "serviceName" 2871 ], 2872 "request": { 2873 "$ref": "Service" 2874 }, 2875 "response": { 2876 "$ref": "Operation" 2877 }, 2878 "scopes": [ 2879 "https://www.googleapis.com/auth/cloud-platform", 2880 "https://www.googleapis.com/auth/service.management" 2881 ] 2882 }, 2883 "getAccessPolicy": { 2884 "id": "servicemanagement.services.getAccessPolicy", 2885 "path": "v1/services/{serviceName}/accessPolicy", 2886 "flatPath": "v1/services/{serviceName}/accessPolicy", 2887 "httpMethod": "GET", 2888 "description": "Producer method to retrieve current policy.", 2889 "parameters": { 2890 "serviceName": { 2891 "description": "The name of the service. For example: `example.googleapis.com`.", 2892 "location": "path", 2893 "required": true, 2894 "type": "string" 2895 } 2896 }, 2897 "parameterOrder": [ 2898 "serviceName" 2899 ], 2900 "response": { 2901 "$ref": "ServiceAccessPolicy" 2902 }, 2903 "scopes": [ 2904 "https://www.googleapis.com/auth/cloud-platform", 2905 "https://www.googleapis.com/auth/service.management" 2906 ] 2907 }, 2908 "updateAccessPolicy": { 2909 "id": "servicemanagement.services.updateAccessPolicy", 2910 "path": "v1/services/{serviceName}/accessPolicy", 2911 "flatPath": "v1/services/{serviceName}/accessPolicy", 2912 "httpMethod": "PUT", 2913 "description": "Producer method to update the current policy. This method will return an\nerror if the policy is too large (more than 50 entries across all lists).", 2914 "parameters": { 2915 "serviceName": { 2916 "description": "The name of the service. For example: `example.googleapis.com`.\nIf set, policy's service_name should be same as this one.", 2917 "location": "path", 2918 "required": true, 2919 "type": "string" 2920 } 2921 }, 2922 "parameterOrder": [ 2923 "serviceName" 2924 ], 2925 "request": { 2926 "$ref": "ServiceAccessPolicy" 2927 }, 2928 "response": { 2929 "$ref": "ServiceAccessPolicy" 2930 }, 2931 "scopes": [ 2932 "https://www.googleapis.com/auth/cloud-platform", 2933 "https://www.googleapis.com/auth/service.management" 2934 ] 2935 } 2936 } 2937 , 2938 "resources": { 2939 "configs": { 2940 "methods": { 2941 "list": { 2942 "id": "servicemanagement.services.configs.list", 2943 "path": "v1/services/{serviceName}/configs", 2944 "flatPath": "v1/services/{serviceName}/configs", 2945 "httpMethod": "GET", 2946 "description": "Lists the history of the service config for a managed service,\nfrom the newest to the oldest.\n", 2947 "parameters": { 2948 "serviceName": { 2949 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2950 "location": "path", 2951 "required": true, 2952 "type": "string" 2953 }, 2954 "pageToken": { 2955 "description": "The token of the page to retrieve.", 2956 "location": "query", 2957 "type": "string" 2958 }, 2959 "pageSize": { 2960 "description": "The max number of items to include in the response list.", 2961 "location": "query", 2962 "type": "integer", 2963 "format": "int32" 2964 } 2965 }, 2966 "parameterOrder": [ 2967 "serviceName" 2968 ], 2969 "response": { 2970 "$ref": "ListServiceConfigsResponse" 2971 }, 2972 "scopes": [ 2973 "https://www.googleapis.com/auth/cloud-platform", 2974 "https://www.googleapis.com/auth/service.management" 2975 ] 2976 }, 2977 "get": { 2978 "id": "servicemanagement.services.configs.get", 2979 "path": "v1/services/{serviceName}/configs/{configId}", 2980 "flatPath": "v1/services/{serviceName}/configs/{configId}", 2981 "httpMethod": "GET", 2982 "description": "Gets a service config (version) for a managed service. If `config_id` is\nnot specified, the latest service config will be returned.", 2983 "parameters": { 2984 "serviceName": { 2985 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 2986 "location": "path", 2987 "required": true, 2988 "type": "string" 2989 }, 2990 "configId": { 2991 "description": "The id of the service config resource.\nOptional. If it is not specified, the latest version of config will be\nreturned.", 2992 "location": "path", 2993 "required": true, 2994 "type": "string" 2995 } 2996 }, 2997 "parameterOrder": [ 2998 "serviceName", 2999 "configId" 3000 ], 3001 "response": { 3002 "$ref": "Service" 3003 }, 3004 "scopes": [ 3005 "https://www.googleapis.com/auth/cloud-platform", 3006 "https://www.googleapis.com/auth/service.management" 3007 ] 3008 }, 3009 "create": { 3010 "id": "servicemanagement.services.configs.create", 3011 "path": "v1/services/{serviceName}/configs", 3012 "flatPath": "v1/services/{serviceName}/configs", 3013 "httpMethod": "POST", 3014 "description": "Creates a new service config (version) for a managed service. This method\nonly stores the service config, but does not apply the service config to\nany backend services.\n", 3015 "parameters": { 3016 "serviceName": { 3017 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 3018 "location": "path", 3019 "required": true, 3020 "type": "string" 3021 } 3022 }, 3023 "parameterOrder": [ 3024 "serviceName" 3025 ], 3026 "request": { 3027 "$ref": "Service" 3028 }, 3029 "response": { 3030 "$ref": "Service" 3031 }, 3032 "scopes": [ 3033 "https://www.googleapis.com/auth/cloud-platform", 3034 "https://www.googleapis.com/auth/service.management" 3035 ] 3036 }, 3037 "submit": { 3038 "id": "servicemanagement.services.configs.submit", 3039 "path": "v1/services/{serviceName}/configs:submit", 3040 "flatPath": "v1/services/{serviceName}/configs:submit", 3041 "httpMethod": "POST", 3042 "description": "Creates a new service config (version) for a managed service based on\nuser-supplied configuration sources files (for example: OpenAPI\nSpecification). This method stores the source configurations as well as the\ngenerated service config. It does NOT apply the service config to any\nbackend services.\n\nOperation<response: SubmitConfigSourceResponse>\n", 3043 "parameters": { 3044 "serviceName": { 3045 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 3046 "location": "path", 3047 "required": true, 3048 "type": "string" 3049 } 3050 }, 3051 "parameterOrder": [ 3052 "serviceName" 3053 ], 3054 "request": { 3055 "$ref": "SubmitConfigSourceRequest" 3056 }, 3057 "response": { 3058 "$ref": "Operation" 3059 }, 3060 "scopes": [ 3061 "https://www.googleapis.com/auth/cloud-platform", 3062 "https://www.googleapis.com/auth/service.management" 3063 ] 3064 } 3065 } 3066 }, 3067 "accessPolicy": { 3068 "methods": { 3069 "query": { 3070 "id": "servicemanagement.services.accessPolicy.query", 3071 "path": "v1/services/{serviceName}/accessPolicy:query", 3072 "flatPath": "v1/services/{serviceName}/accessPolicy:query", 3073 "httpMethod": "POST", 3074 "description": "Method to query the accessibility of a service and any associated\nvisibility labels for a specified user.\n\nMembers of the producer project may call this method and specify any user.\n\nAny user may call this method, but must specify their own email address.\nIn this case the method will return NOT_FOUND if the user has no access to\nthe service.", 3075 "parameters": { 3076 "serviceName": { 3077 "description": "The service to query access for.", 3078 "location": "path", 3079 "required": true, 3080 "type": "string" 3081 }, 3082 "userEmail": { 3083 "description": "The user to query access for.", 3084 "location": "query", 3085 "type": "string" 3086 } 3087 }, 3088 "parameterOrder": [ 3089 "serviceName" 3090 ], 3091 "response": { 3092 "$ref": "QueryUserAccessResponse" 3093 }, 3094 "scopes": [ 3095 "https://www.googleapis.com/auth/cloud-platform", 3096 "https://www.googleapis.com/auth/service.management" 3097 ] 3098 } 3099 } 3100 }, 3101 "customerSettings": { 3102 "methods": { 3103 "get": { 3104 "id": "servicemanagement.services.customerSettings.get", 3105 "path": "v1/services/{serviceName}/customerSettings/{customerId}", 3106 "flatPath": "v1/services/{serviceName}/customerSettings/{customerId}", 3107 "httpMethod": "GET", 3108 "description": "Retrieves the settings that control the specified customer's usage of the\nservice.", 3109 "parameters": { 3110 "serviceName": { 3111 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`. This field is\nrequired.", 3112 "location": "path", 3113 "required": true, 3114 "type": "string" 3115 }, 3116 "customerId": { 3117 "description": "ID for the customer. See the comment for `CustomerSettings.customer_id`\nfield of message for its format. This field is required.", 3118 "location": "path", 3119 "required": true, 3120 "type": "string" 3121 }, 3122 "expand": { 3123 "description": "Fields to expand in any results.", 3124 "location": "query", 3125 "type": "string", 3126 "format": "google-fieldmask" 3127 }, 3128 "view": { 3129 "description": "Request only fields for the specified view.", 3130 "location": "query", 3131 "type": "string", 3132 "enum": [ 3133 "PROJECT_SETTINGS_VIEW_UNSPECIFIED", 3134 "CONSUMER_VIEW", 3135 "PRODUCER_VIEW", 3136 "ALL" 3137 ] 3138 } 3139 }, 3140 "parameterOrder": [ 3141 "serviceName", 3142 "customerId" 3143 ], 3144 "response": { 3145 "$ref": "CustomerSettings" 3146 }, 3147 "scopes": [ 3148 "https://www.googleapis.com/auth/cloud-platform", 3149 "https://www.googleapis.com/auth/service.management" 3150 ] 3151 }, 3152 "patch": { 3153 "id": "servicemanagement.services.customerSettings.patch", 3154 "path": "v1/services/{serviceName}/customerSettings/{customerId}", 3155 "flatPath": "v1/services/{serviceName}/customerSettings/{customerId}", 3156 "httpMethod": "PATCH", 3157 "description": "Updates specified subset of the settings that control the specified\ncustomer's usage of the service. Attempts to update a field not\ncontrolled by the caller will result in an access denied error.\n\nOperation<response: CustomerSettings>", 3158 "parameters": { 3159 "serviceName": { 3160 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`. This field is\nrequired.", 3161 "location": "path", 3162 "required": true, 3163 "type": "string" 3164 }, 3165 "customerId": { 3166 "description": "ID for the customer. See the comment for `CustomerSettings.customer_id`\nfield of message for its format. This field is required.", 3167 "location": "path", 3168 "required": true, 3169 "type": "string" 3170 }, 3171 "updateMask": { 3172 "description": "The field mask specifying which fields are to be updated.", 3173 "location": "query", 3174 "type": "string", 3175 "format": "google-fieldmask" 3176 } 3177 }, 3178 "parameterOrder": [ 3179 "serviceName", 3180 "customerId" 3181 ], 3182 "request": { 3183 "$ref": "CustomerSettings" 3184 }, 3185 "response": { 3186 "$ref": "Operation" 3187 }, 3188 "scopes": [ 3189 "https://www.googleapis.com/auth/cloud-platform", 3190 "https://www.googleapis.com/auth/service.management" 3191 ] 3192 } 3193 } 3194 }, 3195 "projectSettings": { 3196 "methods": { 3197 "get": { 3198 "id": "servicemanagement.services.projectSettings.get", 3199 "path": "v1/services/{serviceName}/projectSettings/{consumerProjectId}", 3200 "flatPath": "v1/services/{serviceName}/projectSettings/{consumerProjectId}", 3201 "httpMethod": "GET", 3202 "description": "Retrieves the settings that control the specified consumer project's usage\nof the service.", 3203 "parameters": { 3204 "serviceName": { 3205 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 3206 "location": "path", 3207 "required": true, 3208 "type": "string" 3209 }, 3210 "consumerProjectId": { 3211 "description": "The project ID of the consumer.", 3212 "location": "path", 3213 "required": true, 3214 "type": "string" 3215 }, 3216 "expand": { 3217 "description": "Fields to expand in any results. By default, the following fields\nare not present in the result:\n- `operations`\n- `quota_usage`", 3218 "location": "query", 3219 "type": "string", 3220 "format": "google-fieldmask" 3221 }, 3222 "view": { 3223 "description": "Request only the fields for the specified view.", 3224 "location": "query", 3225 "type": "string", 3226 "enum": [ 3227 "PROJECT_SETTINGS_VIEW_UNSPECIFIED", 3228 "CONSUMER_VIEW", 3229 "PRODUCER_VIEW", 3230 "ALL" 3231 ] 3232 } 3233 }, 3234 "parameterOrder": [ 3235 "serviceName", 3236 "consumerProjectId" 3237 ], 3238 "response": { 3239 "$ref": "ProjectSettings" 3240 }, 3241 "scopes": [ 3242 "https://www.googleapis.com/auth/cloud-platform", 3243 "https://www.googleapis.com/auth/service.management" 3244 ] 3245 }, 3246 "update": { 3247 "id": "servicemanagement.services.projectSettings.update", 3248 "path": "v1/services/{serviceName}/projectSettings/{consumerProjectId}", 3249 "flatPath": "v1/services/{serviceName}/projectSettings/{consumerProjectId}", 3250 "httpMethod": "PUT", 3251 "description": "NOTE: Currently unsupported. Use PatchProjectSettings instead.\n\nUpdates the settings that control the specified consumer project's usage\nof the service. Attempts to update a field not controlled by the caller\nwill result in an access denied error.\n\nOperation<response: ProjectSettings>", 3252 "parameters": { 3253 "serviceName": { 3254 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 3255 "location": "path", 3256 "required": true, 3257 "type": "string" 3258 }, 3259 "consumerProjectId": { 3260 "description": "The project ID of the consumer.", 3261 "location": "path", 3262 "required": true, 3263 "type": "string" 3264 } 3265 }, 3266 "parameterOrder": [ 3267 "serviceName", 3268 "consumerProjectId" 3269 ], 3270 "request": { 3271 "$ref": "ProjectSettings" 3272 }, 3273 "response": { 3274 "$ref": "Operation" 3275 }, 3276 "scopes": [ 3277 "https://www.googleapis.com/auth/cloud-platform", 3278 "https://www.googleapis.com/auth/service.management" 3279 ] 3280 }, 3281 "patch": { 3282 "id": "servicemanagement.services.projectSettings.patch", 3283 "path": "v1/services/{serviceName}/projectSettings/{consumerProjectId}", 3284 "flatPath": "v1/services/{serviceName}/projectSettings/{consumerProjectId}", 3285 "httpMethod": "PATCH", 3286 "description": "Updates specified subset of the settings that control the specified\nconsumer project's usage of the service. Attempts to update a field not\ncontrolled by the caller will result in an access denied error.\n\nOperation<response: ProjectSettings>", 3287 "parameters": { 3288 "serviceName": { 3289 "description": "The name of the service. See the `ServiceManager` overview for naming\nrequirements. For example: `example.googleapis.com`.", 3290 "location": "path", 3291 "required": true, 3292 "type": "string" 3293 }, 3294 "consumerProjectId": { 3295 "description": "The project ID of the consumer.", 3296 "location": "path", 3297 "required": true, 3298 "type": "string" 3299 }, 3300 "updateMask": { 3301 "description": "The field mask specifying which fields are to be updated.", 3302 "location": "query", 3303 "type": "string", 3304 "format": "google-fieldmask" 3305 } 3306 }, 3307 "parameterOrder": [ 3308 "serviceName", 3309 "consumerProjectId" 3310 ], 3311 "request": { 3312 "$ref": "ProjectSettings" 3313 }, 3314 "response": { 3315 "$ref": "Operation" 3316 }, 3317 "scopes": [ 3318 "https://www.googleapis.com/auth/cloud-platform", 3319 "https://www.googleapis.com/auth/service.management" 3320 ] 3321 } 3322 } 3323 } 3324 } 3325 }, 3326 "v1": { 3327 "methods": { 3328 "convertConfig": { 3329 "id": "servicemanagement.convertConfig", 3330 "path": "v1:convertConfig", 3331 "flatPath": "v1:convertConfig", 3332 "httpMethod": "POST", 3333 "description": "DEPRECATED. `SubmitConfigSource` with `validate_only=true` will provide\nconfig conversion moving forward.\n\nConverts an API specification (e.g. Swagger spec) to an\nequivalent `google.api.Service`.", 3334 "parameters": { 3335 }, 3336 "parameterOrder": [ 3337 ], 3338 "request": { 3339 "$ref": "ConvertConfigRequest" 3340 }, 3341 "response": { 3342 "$ref": "ConvertConfigResponse" 3343 }, 3344 "scopes": [ 3345 "https://www.googleapis.com/auth/cloud-platform", 3346 "https://www.googleapis.com/auth/service.management" 3347 ] 3348 } 3349 } 3350 }, 3351 "operations": { 3352 "methods": { 3353 "get": { 3354 "id": "servicemanagement.operations.get", 3355 "path": "v1/operations/{operationsId}", 3356 "flatPath": "v1/operations/{operationsId}", 3357 "httpMethod": "GET", 3358 "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", 3359 "parameters": { 3360 "operationsId": { 3361 "description": "Part of `name`. The name of the operation resource.", 3362 "location": "path", 3363 "required": true, 3364 "type": "string" 3365 } 3366 }, 3367 "parameterOrder": [ 3368 "operationsId" 3369 ], 3370 "response": { 3371 "$ref": "Operation" 3372 }, 3373 "scopes": [ 3374 "https://www.googleapis.com/auth/cloud-platform", 3375 "https://www.googleapis.com/auth/service.management" 3376 ] 3377 } 3378 } 3379 } 3380 }, 3381 "basePath": "" 3382} 3383