Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: discovery/googleapis/servicemanagement__v1.json

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/servicecontrol__v1.json ('k') | discovery/googleapis/serviceuser__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform.read-only": { 5 "https://www.googleapis.com/auth/cloud-platform.read-only": {
6 "description": "View your data across Google Cloud Platform services" 6 "description": "View your data across Google Cloud Platform services"
7 }, 7 },
8 "https://www.googleapis.com/auth/service.management.readonly": { 8 "https://www.googleapis.com/auth/service.management.readonly": {
9 "description": "View your Google API service configuration" 9 "description": "View your Google API service configuration"
10 }, 10 },
(...skipping 27 matching lines...) Expand all
38 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 38 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
39 "location": "query", 39 "location": "query",
40 "type": "string" 40 "type": "string"
41 }, 41 },
42 "prettyPrint": { 42 "prettyPrint": {
43 "default": "true", 43 "default": "true",
44 "description": "Returns response with indentations and line breaks." , 44 "description": "Returns response with indentations and line breaks." ,
45 "location": "query", 45 "location": "query",
46 "type": "boolean" 46 "type": "boolean"
47 }, 47 },
48 "uploadType": {
49 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
50 "location": "query",
51 "type": "string"
52 },
48 "fields": { 53 "fields": {
49 "description": "Selector specifying which fields to include in a par tial response.", 54 "description": "Selector specifying which fields to include in a par tial response.",
50 "location": "query", 55 "location": "query",
51 "type": "string" 56 "type": "string"
52 }, 57 },
53 "uploadType": {
54 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
55 "location": "query",
56 "type": "string"
57 },
58 "$.xgafv": { 58 "$.xgafv": {
59 "description": "V1 error format.", 59 "description": "V1 error format.",
60 "enum": [ 60 "enum": [
61 "1", 61 "1",
62 "2" 62 "2"
63 ], 63 ],
64 "enumDescriptions": [ 64 "enumDescriptions": [
65 "v1 error format", 65 "v1 error format",
66 "v2 error format" 66 "v2 error format"
67 ], 67 ],
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 "bearer_token": { 118 "bearer_token": {
119 "description": "OAuth bearer token.", 119 "description": "OAuth bearer token.",
120 "location": "query", 120 "location": "query",
121 "type": "string" 121 "type": "string"
122 } 122 }
123 }, 123 },
124 "protocol": "rest", 124 "protocol": "rest",
125 "resources": { 125 "resources": {
126 "services": { 126 "services": {
127 "methods": { 127 "methods": {
128 "undelete": {
129 "description": "Revives a previously deleted managed service . The method restores the\nservice using the configuration at the time the servi ce was deleted.\nThe target service must exist and must have been deleted within the\nlast 30 days.\n\nOperation<response: UndeleteServiceResponse>",
130 "httpMethod": "POST",
131 "id": "servicemanagement.services.undelete",
132 "parameterOrder": [
133 "serviceName"
134 ],
135 "parameters": {
136 "serviceName": {
137 "description": "The name of the service. See the [ov erview](/service-management/overview)\nfor naming requirements. For example: `ex ample.googleapis.com`.",
138 "location": "path",
139 "required": true,
140 "type": "string"
141 }
142 },
143 "path": "v1/services/{serviceName}:undelete",
144 "response": {
145 "$ref": "Operation"
146 },
147 "scopes": [
148 "https://www.googleapis.com/auth/cloud-platform",
149 "https://www.googleapis.com/auth/service.management"
150 ]
151 },
152 "list": { 128 "list": {
153 "description": "Lists managed services.\n\nReturns all publi c services. For authenticated users, also returns all\nservices the calling user has \"servicemanagement.services.get\" permission\nfor.\n\n**BETA:** If the cal ler specifies the `consumer_id`, it returns only the\nservices enabled on the co nsumer. The `consumer_id` must have the format\nof \"project:{PROJECT-ID}\".", 129 "description": "Lists managed services.\n\nReturns all publi c services. For authenticated users, also returns all\nservices the calling user has \"servicemanagement.services.get\" permission\nfor.\n\n**BETA:** If the cal ler specifies the `consumer_id`, it returns only the\nservices enabled on the co nsumer. The `consumer_id` must have the format\nof \"project:{PROJECT-ID}\".",
154 "httpMethod": "GET", 130 "httpMethod": "GET",
155 "id": "servicemanagement.services.list", 131 "id": "servicemanagement.services.list",
156 "parameterOrder": [], 132 "parameterOrder": [],
157 "parameters": { 133 "parameters": {
134 "producerProjectId": {
135 "description": "Include services produced by the spe cified project.",
136 "location": "query",
137 "type": "string"
138 },
158 "consumerId": { 139 "consumerId": {
159 "description": "Include services consumed by the spe cified consumer.\n\nThe Google Service Management implementation accepts the fol lowing\nforms:\n- project:<project_id>", 140 "description": "Include services consumed by the spe cified consumer.\n\nThe Google Service Management implementation accepts the fol lowing\nforms:\n- project:<project_id>",
160 "location": "query", 141 "location": "query",
161 "type": "string" 142 "type": "string"
162 }, 143 },
163 "pageToken": { 144 "pageToken": {
164 "description": "Token identifying which result to st art with; returned by a previous list\ncall.", 145 "description": "Token identifying which result to st art with; returned by a previous list\ncall.",
165 "location": "query", 146 "location": "query",
166 "type": "string" 147 "type": "string"
167 }, 148 },
168 "pageSize": { 149 "pageSize": {
169 "description": "Requested size of the next page of d ata.", 150 "description": "Requested size of the next page of d ata.",
170 "format": "int32", 151 "format": "int32",
171 "location": "query", 152 "location": "query",
172 "type": "integer" 153 "type": "integer"
173 },
174 "producerProjectId": {
175 "description": "Include services produced by the spe cified project.",
176 "location": "query",
177 "type": "string"
178 } 154 }
179 }, 155 },
180 "path": "v1/services", 156 "path": "v1/services",
181 "response": { 157 "response": {
182 "$ref": "ListServicesResponse" 158 "$ref": "ListServicesResponse"
183 }, 159 },
184 "scopes": [ 160 "scopes": [
185 "https://www.googleapis.com/auth/cloud-platform", 161 "https://www.googleapis.com/auth/cloud-platform",
186 "https://www.googleapis.com/auth/cloud-platform.read-onl y", 162 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
187 "https://www.googleapis.com/auth/service.management", 163 "https://www.googleapis.com/auth/service.management",
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 ] 255 ]
280 }, 256 },
281 "getConfig": { 257 "getConfig": {
282 "description": "Gets a service configuration (version) for a managed service.", 258 "description": "Gets a service configuration (version) for a managed service.",
283 "httpMethod": "GET", 259 "httpMethod": "GET",
284 "id": "servicemanagement.services.getConfig", 260 "id": "servicemanagement.services.getConfig",
285 "parameterOrder": [ 261 "parameterOrder": [
286 "serviceName" 262 "serviceName"
287 ], 263 ],
288 "parameters": { 264 "parameters": {
289 "view": {
290 "description": "Specifies which parts of the Service Config should be returned in the\nresponse.",
291 "enum": [
292 "BASIC",
293 "FULL"
294 ],
295 "location": "query",
296 "type": "string"
297 },
298 "serviceName": { 265 "serviceName": {
299 "description": "The name of the service. See the [o verview](/service-management/overview)\nfor naming requirements. For example: ` example.googleapis.com`.", 266 "description": "The name of the service. See the [o verview](/service-management/overview)\nfor naming requirements. For example: ` example.googleapis.com`.",
300 "location": "path", 267 "location": "path",
301 "required": true, 268 "required": true,
302 "type": "string" 269 "type": "string"
303 }, 270 },
304 "configId": { 271 "configId": {
305 "description": "The id of the service configuration resource.", 272 "description": "The id of the service configuration resource.",
306 "location": "query", 273 "location": "query",
307 "type": "string" 274 "type": "string"
275 },
276 "view": {
277 "description": "Specifies which parts of the Service Config should be returned in the\nresponse.",
278 "enum": [
279 "BASIC",
280 "FULL"
281 ],
282 "location": "query",
283 "type": "string"
308 } 284 }
309 }, 285 },
310 "path": "v1/services/{serviceName}/config", 286 "path": "v1/services/{serviceName}/config",
311 "response": { 287 "response": {
312 "$ref": "Service" 288 "$ref": "Service"
313 }, 289 },
314 "scopes": [ 290 "scopes": [
315 "https://www.googleapis.com/auth/cloud-platform", 291 "https://www.googleapis.com/auth/cloud-platform",
316 "https://www.googleapis.com/auth/cloud-platform.read-onl y", 292 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
317 "https://www.googleapis.com/auth/service.management", 293 "https://www.googleapis.com/auth/service.management",
318 "https://www.googleapis.com/auth/service.management.read only" 294 "https://www.googleapis.com/auth/service.management.read only"
319 ] 295 ]
320 }, 296 },
321 "enable": { 297 "delete": {
322 "description": "Enable a managed service for a project with default setting.\n\nOperation<response: EnableServiceResponse>\n\ngoogle.rpc.Sta tus errors may contain a\ngoogle.rpc.PreconditionFailure error detail.", 298 "description": "Deletes a managed service. This method will change the service to the\n`Soft-Delete` state for 30 days. Within this period, service producers may\ncall UndeleteService to restore the service.\nAfter 30 da ys, the service will be permanently deleted.\n\nOperation<response: google.proto buf.Empty>",
323 "httpMethod": "POST", 299 "httpMethod": "DELETE",
324 "id": "servicemanagement.services.enable", 300 "id": "servicemanagement.services.delete",
325 "parameterOrder": [ 301 "parameterOrder": [
326 "serviceName" 302 "serviceName"
327 ], 303 ],
328 "parameters": { 304 "parameters": {
329 "serviceName": { 305 "serviceName": {
330 "description": "Name of the service to enable. Speci fying an unknown service name will\ncause the request to fail.", 306 "description": "The name of the service. See the [o verview](/service-management/overview)\nfor naming requirements. For example: ` example.googleapis.com`.",
331 "location": "path", 307 "location": "path",
332 "required": true, 308 "required": true,
333 "type": "string" 309 "type": "string"
334 } 310 }
335 }, 311 },
336 "path": "v1/services/{serviceName}:enable", 312 "path": "v1/services/{serviceName}",
337 "request": {
338 "$ref": "EnableServiceRequest"
339 },
340 "response": { 313 "response": {
341 "$ref": "Operation" 314 "$ref": "Operation"
342 }, 315 },
343 "scopes": [ 316 "scopes": [
344 "https://www.googleapis.com/auth/cloud-platform", 317 "https://www.googleapis.com/auth/cloud-platform",
345 "https://www.googleapis.com/auth/service.management" 318 "https://www.googleapis.com/auth/service.management"
346 ] 319 ]
347 }, 320 },
348 "delete": { 321 "enable": {
349 "description": "Deletes a managed service. This method will change the service to the\n`Soft-Delete` state for 30 days. Within this period, service producers may\ncall UndeleteService to restore the service.\nAfter 30 da ys, the service will be permanently deleted.\n\nOperation<response: google.proto buf.Empty>", 322 "description": "Enables a service for a project, so it can b e used\nfor the project. See\n[Cloud Auth Guide](https://cloud.google.com/docs/a uthentication) for\nmore information.\n\nOperation<response: EnableServiceRespon se>",
350 "httpMethod": "DELETE", 323 "httpMethod": "POST",
351 "id": "servicemanagement.services.delete", 324 "id": "servicemanagement.services.enable",
352 "parameterOrder": [ 325 "parameterOrder": [
353 "serviceName" 326 "serviceName"
354 ], 327 ],
355 "parameters": { 328 "parameters": {
356 "serviceName": { 329 "serviceName": {
357 "description": "The name of the service. See the [o verview](/service-management/overview)\nfor naming requirements. For example: ` example.googleapis.com`.", 330 "description": "Name of the service to enable. Speci fying an unknown service name will\ncause the request to fail.",
358 "location": "path", 331 "location": "path",
359 "required": true, 332 "required": true,
360 "type": "string" 333 "type": "string"
361 } 334 }
362 }, 335 },
363 "path": "v1/services/{serviceName}", 336 "path": "v1/services/{serviceName}:enable",
337 "request": {
338 "$ref": "EnableServiceRequest"
339 },
364 "response": { 340 "response": {
365 "$ref": "Operation" 341 "$ref": "Operation"
366 }, 342 },
367 "scopes": [ 343 "scopes": [
368 "https://www.googleapis.com/auth/cloud-platform", 344 "https://www.googleapis.com/auth/cloud-platform",
369 "https://www.googleapis.com/auth/service.management" 345 "https://www.googleapis.com/auth/service.management"
370 ] 346 ]
371 }, 347 },
372 "setIamPolicy": { 348 "setIamPolicy": {
373 "description": "Sets the access control policy on the specif ied resource. Replaces any\nexisting policy.", 349 "description": "Sets the access control policy on the specif ied resource. Replaces any\nexisting policy.",
(...skipping 17 matching lines...) Expand all
391 }, 367 },
392 "response": { 368 "response": {
393 "$ref": "Policy" 369 "$ref": "Policy"
394 }, 370 },
395 "scopes": [ 371 "scopes": [
396 "https://www.googleapis.com/auth/cloud-platform", 372 "https://www.googleapis.com/auth/cloud-platform",
397 "https://www.googleapis.com/auth/service.management" 373 "https://www.googleapis.com/auth/service.management"
398 ] 374 ]
399 }, 375 },
400 "disable": { 376 "disable": {
401 "description": "Disable a managed service for a project.\n\n Operation<response: DisableServiceResponse>", 377 "description": "Disables a service for a project, so it can no longer be\nbe used for the project. It prevents accidental usage that may cau se\nunexpected billing charges or security leaks.\n\nOperation<response: Disable ServiceResponse>",
402 "httpMethod": "POST", 378 "httpMethod": "POST",
403 "id": "servicemanagement.services.disable", 379 "id": "servicemanagement.services.disable",
404 "parameterOrder": [ 380 "parameterOrder": [
405 "serviceName" 381 "serviceName"
406 ], 382 ],
407 "parameters": { 383 "parameters": {
408 "serviceName": { 384 "serviceName": {
409 "description": "Name of the service to disable. Spec ifying an unknown service name\nwill cause the request to fail.", 385 "description": "Name of the service to disable. Spec ifying an unknown service name\nwill cause the request to fail.",
410 "location": "path", 386 "location": "path",
411 "required": true, 387 "required": true,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 "request": { 420 "request": {
445 "$ref": "GetIamPolicyRequest" 421 "$ref": "GetIamPolicyRequest"
446 }, 422 },
447 "response": { 423 "response": {
448 "$ref": "Policy" 424 "$ref": "Policy"
449 }, 425 },
450 "scopes": [ 426 "scopes": [
451 "https://www.googleapis.com/auth/cloud-platform", 427 "https://www.googleapis.com/auth/cloud-platform",
452 "https://www.googleapis.com/auth/service.management" 428 "https://www.googleapis.com/auth/service.management"
453 ] 429 ]
430 },
431 "undelete": {
432 "description": "Revives a previously deleted managed service . The method restores the\nservice using the configuration at the time the servi ce was deleted.\nThe target service must exist and must have been deleted within the\nlast 30 days.\n\nOperation<response: UndeleteServiceResponse>",
433 "httpMethod": "POST",
434 "id": "servicemanagement.services.undelete",
435 "parameterOrder": [
436 "serviceName"
437 ],
438 "parameters": {
439 "serviceName": {
440 "description": "The name of the service. See the [ov erview](/service-management/overview)\nfor naming requirements. For example: `ex ample.googleapis.com`.",
441 "location": "path",
442 "required": true,
443 "type": "string"
444 }
445 },
446 "path": "v1/services/{serviceName}:undelete",
447 "response": {
448 "$ref": "Operation"
449 },
450 "scopes": [
451 "https://www.googleapis.com/auth/cloud-platform",
452 "https://www.googleapis.com/auth/service.management"
453 ]
454 } 454 }
455 }, 455 },
456 "resources": { 456 "resources": {
457 "rollouts": {
458 "methods": {
459 "list": {
460 "description": "Lists the history of the service con figuration rollouts for a managed\nservice, from the newest to the oldest.",
461 "httpMethod": "GET",
462 "id": "servicemanagement.services.rollouts.list",
463 "parameterOrder": [
464 "serviceName"
465 ],
466 "parameters": {
467 "pageSize": {
468 "description": "The max number of items to i nclude in the response list.",
469 "format": "int32",
470 "location": "query",
471 "type": "integer"
472 },
473 "serviceName": {
474 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
475 "location": "path",
476 "required": true,
477 "type": "string"
478 },
479 "pageToken": {
480 "description": "The token of the page to ret rieve.",
481 "location": "query",
482 "type": "string"
483 }
484 },
485 "path": "v1/services/{serviceName}/rollouts",
486 "response": {
487 "$ref": "ListServiceRolloutsResponse"
488 },
489 "scopes": [
490 "https://www.googleapis.com/auth/cloud-platform" ,
491 "https://www.googleapis.com/auth/cloud-platform. read-only",
492 "https://www.googleapis.com/auth/service.managem ent",
493 "https://www.googleapis.com/auth/service.managem ent.readonly"
494 ]
495 },
496 "get": {
497 "description": "Gets a service configuration rollout .",
498 "httpMethod": "GET",
499 "id": "servicemanagement.services.rollouts.get",
500 "parameterOrder": [
501 "serviceName",
502 "rolloutId"
503 ],
504 "parameters": {
505 "serviceName": {
506 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
507 "location": "path",
508 "required": true,
509 "type": "string"
510 },
511 "rolloutId": {
512 "description": "The id of the rollout resour ce.",
513 "location": "path",
514 "required": true,
515 "type": "string"
516 }
517 },
518 "path": "v1/services/{serviceName}/rollouts/{rollout Id}",
519 "response": {
520 "$ref": "Rollout"
521 },
522 "scopes": [
523 "https://www.googleapis.com/auth/cloud-platform" ,
524 "https://www.googleapis.com/auth/cloud-platform. read-only",
525 "https://www.googleapis.com/auth/service.managem ent",
526 "https://www.googleapis.com/auth/service.managem ent.readonly"
527 ]
528 },
529 "create": {
530 "description": "Creates a new service configuration rollout. Based on rollout, the\nGoogle Service Management will roll out the serv ice configurations to\ndifferent backend services. For example, the logging conf iguration will be\npushed to Google Cloud Logging.\n\nPlease note that any previ ous pending and running Rollouts and associated\nOperations will be automaticall y cancelled so that the latest Rollout will\nnot be blocked by previous Rollouts .\n\nOperation<response: Rollout>",
531 "httpMethod": "POST",
532 "id": "servicemanagement.services.rollouts.create",
533 "parameterOrder": [
534 "serviceName"
535 ],
536 "parameters": {
537 "serviceName": {
538 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
539 "location": "path",
540 "required": true,
541 "type": "string"
542 }
543 },
544 "path": "v1/services/{serviceName}/rollouts",
545 "request": {
546 "$ref": "Rollout"
547 },
548 "response": {
549 "$ref": "Operation"
550 },
551 "scopes": [
552 "https://www.googleapis.com/auth/cloud-platform" ,
553 "https://www.googleapis.com/auth/service.managem ent"
554 ]
555 }
556 }
557 },
558 "configs": { 457 "configs": {
559 "methods": { 458 "methods": {
560 "submit": { 459 "submit": {
561 "description": "Creates a new service configuration (version) for a managed service based\non\nuser-supplied configuration source fi les (for example: OpenAPI\nSpecification). This method stores the source configu rations as well as the\ngenerated service configuration. To rollout the service configuration to\nother services,\nplease call CreateServiceRollout.\n\nOperatio n<response: SubmitConfigSourceResponse>", 460 "description": "Creates a new service configuration (version) for a managed service based\non\nuser-supplied configuration source fi les (for example: OpenAPI\nSpecification). This method stores the source configu rations as well as the\ngenerated service configuration. To rollout the service configuration to\nother services,\nplease call CreateServiceRollout.\n\nOperatio n<response: SubmitConfigSourceResponse>",
562 "httpMethod": "POST", 461 "httpMethod": "POST",
563 "id": "servicemanagement.services.configs.submit", 462 "id": "servicemanagement.services.configs.submit",
564 "parameterOrder": [ 463 "parameterOrder": [
565 "serviceName" 464 "serviceName"
566 ], 465 ],
567 "parameters": { 466 "parameters": {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 }, 522 },
624 "get": { 523 "get": {
625 "description": "Gets a service configuration (versio n) for a managed service.", 524 "description": "Gets a service configuration (versio n) for a managed service.",
626 "httpMethod": "GET", 525 "httpMethod": "GET",
627 "id": "servicemanagement.services.configs.get", 526 "id": "servicemanagement.services.configs.get",
628 "parameterOrder": [ 527 "parameterOrder": [
629 "serviceName", 528 "serviceName",
630 "configId" 529 "configId"
631 ], 530 ],
632 "parameters": { 531 "parameters": {
532 "view": {
533 "description": "Specifies which parts of the Service Config should be returned in the\nresponse.",
534 "enum": [
535 "BASIC",
536 "FULL"
537 ],
538 "location": "query",
539 "type": "string"
540 },
633 "serviceName": { 541 "serviceName": {
634 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.", 542 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
635 "location": "path", 543 "location": "path",
636 "required": true, 544 "required": true,
637 "type": "string" 545 "type": "string"
638 }, 546 },
639 "configId": { 547 "configId": {
640 "description": "The id of the service config uration resource.", 548 "description": "The id of the service config uration resource.",
641 "location": "path", 549 "location": "path",
642 "required": true, 550 "required": true,
643 "type": "string" 551 "type": "string"
644 },
645 "view": {
646 "description": "Specifies which parts of the Service Config should be returned in the\nresponse.",
647 "enum": [
648 "BASIC",
649 "FULL"
650 ],
651 "location": "query",
652 "type": "string"
653 } 552 }
654 }, 553 },
655 "path": "v1/services/{serviceName}/configs/{configId }", 554 "path": "v1/services/{serviceName}/configs/{configId }",
656 "response": { 555 "response": {
657 "$ref": "Service" 556 "$ref": "Service"
658 }, 557 },
659 "scopes": [ 558 "scopes": [
660 "https://www.googleapis.com/auth/cloud-platform" , 559 "https://www.googleapis.com/auth/cloud-platform" ,
661 "https://www.googleapis.com/auth/cloud-platform. read-only", 560 "https://www.googleapis.com/auth/cloud-platform. read-only",
662 "https://www.googleapis.com/auth/service.managem ent", 561 "https://www.googleapis.com/auth/service.managem ent",
(...skipping 21 matching lines...) Expand all
684 }, 583 },
685 "response": { 584 "response": {
686 "$ref": "Service" 585 "$ref": "Service"
687 }, 586 },
688 "scopes": [ 587 "scopes": [
689 "https://www.googleapis.com/auth/cloud-platform" , 588 "https://www.googleapis.com/auth/cloud-platform" ,
690 "https://www.googleapis.com/auth/service.managem ent" 589 "https://www.googleapis.com/auth/service.managem ent"
691 ] 590 ]
692 } 591 }
693 } 592 }
593 },
594 "rollouts": {
595 "methods": {
596 "list": {
597 "description": "Lists the history of the service con figuration rollouts for a managed\nservice, from the newest to the oldest.",
598 "httpMethod": "GET",
599 "id": "servicemanagement.services.rollouts.list",
600 "parameterOrder": [
601 "serviceName"
602 ],
603 "parameters": {
604 "pageSize": {
605 "description": "The max number of items to i nclude in the response list.",
606 "format": "int32",
607 "location": "query",
608 "type": "integer"
609 },
610 "serviceName": {
611 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
612 "location": "path",
613 "required": true,
614 "type": "string"
615 },
616 "pageToken": {
617 "description": "The token of the page to ret rieve.",
618 "location": "query",
619 "type": "string"
620 }
621 },
622 "path": "v1/services/{serviceName}/rollouts",
623 "response": {
624 "$ref": "ListServiceRolloutsResponse"
625 },
626 "scopes": [
627 "https://www.googleapis.com/auth/cloud-platform" ,
628 "https://www.googleapis.com/auth/cloud-platform. read-only",
629 "https://www.googleapis.com/auth/service.managem ent",
630 "https://www.googleapis.com/auth/service.managem ent.readonly"
631 ]
632 },
633 "get": {
634 "description": "Gets a service configuration rollout .",
635 "httpMethod": "GET",
636 "id": "servicemanagement.services.rollouts.get",
637 "parameterOrder": [
638 "serviceName",
639 "rolloutId"
640 ],
641 "parameters": {
642 "rolloutId": {
643 "description": "The id of the rollout resour ce.",
644 "location": "path",
645 "required": true,
646 "type": "string"
647 },
648 "serviceName": {
649 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
650 "location": "path",
651 "required": true,
652 "type": "string"
653 }
654 },
655 "path": "v1/services/{serviceName}/rollouts/{rollout Id}",
656 "response": {
657 "$ref": "Rollout"
658 },
659 "scopes": [
660 "https://www.googleapis.com/auth/cloud-platform" ,
661 "https://www.googleapis.com/auth/cloud-platform. read-only",
662 "https://www.googleapis.com/auth/service.managem ent",
663 "https://www.googleapis.com/auth/service.managem ent.readonly"
664 ]
665 },
666 "create": {
667 "description": "Creates a new service configuration rollout. Based on rollout, the\nGoogle Service Management will roll out the serv ice configurations to\ndifferent backend services. For example, the logging conf iguration will be\npushed to Google Cloud Logging.\n\nPlease note that any previ ous pending and running Rollouts and associated\nOperations will be automaticall y cancelled so that the latest Rollout will\nnot be blocked by previous Rollouts .\n\nOperation<response: Rollout>",
668 "httpMethod": "POST",
669 "id": "servicemanagement.services.rollouts.create",
670 "parameterOrder": [
671 "serviceName"
672 ],
673 "parameters": {
674 "serviceName": {
675 "description": "The name of the service. Se e the [overview](/service-management/overview)\nfor naming requirements. For ex ample: `example.googleapis.com`.",
676 "location": "path",
677 "required": true,
678 "type": "string"
679 }
680 },
681 "path": "v1/services/{serviceName}/rollouts",
682 "request": {
683 "$ref": "Rollout"
684 },
685 "response": {
686 "$ref": "Operation"
687 },
688 "scopes": [
689 "https://www.googleapis.com/auth/cloud-platform" ,
690 "https://www.googleapis.com/auth/service.managem ent"
691 ]
692 }
693 }
694 } 694 }
695 } 695 }
696 }, 696 },
697 "operations": { 697 "operations": {
698 "methods": { 698 "methods": {
699 "list": {
700 "description": "Lists service operations that match the spec ified filter in the request.",
701 "httpMethod": "GET",
702 "id": "servicemanagement.operations.list",
703 "parameterOrder": [],
704 "parameters": {
705 "name": {
706 "description": "Not used.",
707 "location": "query",
708 "type": "string"
709 },
710 "pageToken": {
711 "description": "The standard list page token.",
712 "location": "query",
713 "type": "string"
714 },
715 "pageSize": {
716 "description": "The maximum number of operations to return. If unspecified, defaults to\n50. The maximum value is 100.",
717 "format": "int32",
718 "location": "query",
719 "type": "integer"
720 },
721 "filter": {
722 "description": "A string for filtering Operations.\n The following filter fields are supported&#58;\n\n * serviceName&#58; Require d. Only `=` operator is allowed.\n * startTime&#58; The time this job was start ed, in ISO 8601 format.\n Allowed operators are `>=`, `>`, `<=`, and `<`.\n * status&#58; Can be `done`, `in_progress`, or `failed`. Allowed\n operators are `=`, and `!=`.\n\n Filter expression supports conjunction (AND) and disjun ction (OR)\n logical operators. However, the serviceName restriction must be at the\n top-level and can only be combined with other restrictions via the AND\n logical operator.\n\n Examples&#58;\n\n * `serviceName={some-service}.google apis.com`\n * `serviceName={some-service}.googleapis.com AND startTime>=\"2017- 02-01\"`\n * `serviceName={some-service}.googleapis.com AND status=done`\n * ` serviceName={some-service}.googleapis.com AND (status=done OR startTime>=\"2017- 02-01\")`",
723 "location": "query",
724 "type": "string"
725 }
726 },
727 "path": "v1/operations",
728 "response": {
729 "$ref": "ListOperationsResponse"
730 },
731 "scopes": [
732 "https://www.googleapis.com/auth/cloud-platform",
733 "https://www.googleapis.com/auth/service.management"
734 ]
735 },
699 "get": { 736 "get": {
700 "description": "Gets the latest state of a long-running oper ation. Clients can use this\nmethod to poll the operation result at intervals a s recommended by the API\nservice.", 737 "description": "Gets the latest state of a long-running oper ation. Clients can use this\nmethod to poll the operation result at intervals a s recommended by the API\nservice.",
701 "httpMethod": "GET", 738 "httpMethod": "GET",
702 "id": "servicemanagement.operations.get", 739 "id": "servicemanagement.operations.get",
703 "parameterOrder": [ 740 "parameterOrder": [
704 "name" 741 "name"
705 ], 742 ],
706 "parameters": { 743 "parameters": {
707 "name": { 744 "name": {
708 "description": "The name of the operation resource." , 745 "description": "The name of the operation resource." ,
709 "location": "path", 746 "location": "path",
710 "pattern": "^operations/.+$", 747 "pattern": "^operations/.+$",
711 "required": true, 748 "required": true,
712 "type": "string" 749 "type": "string"
713 } 750 }
714 }, 751 },
715 "path": "v1/{+name}", 752 "path": "v1/{+name}",
716 "response": { 753 "response": {
717 "$ref": "Operation" 754 "$ref": "Operation"
718 }, 755 },
719 "scopes": [ 756 "scopes": [
720 "https://www.googleapis.com/auth/cloud-platform", 757 "https://www.googleapis.com/auth/cloud-platform",
721 "https://www.googleapis.com/auth/service.management" 758 "https://www.googleapis.com/auth/service.management"
722 ] 759 ]
723 } 760 }
724 } 761 }
725 } 762 }
726 }, 763 },
727 "revision": "20170227", 764 "revision": "20170317",
728 "rootUrl": "https://servicemanagement.googleapis.com/", 765 "rootUrl": "https://servicemanagement.googleapis.com/",
729 "schemas": { 766 "schemas": {
730 "LogConfig": { 767 "Logging": {
731 "description": "Specifies what kind of log the caller must write\nIn crement a streamz counter with the specified metric and field names.\n\nMetric n ames should start with a '/', generally be lowercase-only,\nand end in \"_count\ ". Field names should not contain an initial slash.\nThe actual exported metric names will have \"/iam/policy\" prepended.\n\nField names correspond to IAM requ est parameters and field values are\ntheir respective values.\n\nAt present the only supported field names are\n - \"iam_principal\", corresponding to IAMCont ext.principal;\n - \"\" (empty string), resulting in one aggretated counter wi th no field.\n\nExamples:\n counter { metric: \"/debug_access_count\" field: \ "iam_principal\" }\n ==> increment counter /iam/policy/backend_debug_access_cou nt\n {iam_principal=[value of IAMContext.principal]}\n\nA t this time we do not support:\n* multiple field names (though this may be suppo rted in the future)\n* decrementing the counter\n* incrementing it by anything o ther than 1", 768 "description": "Logging configuration of the service.\n\nThe followi ng example shows how to configure logs to be sent to the\nproducer and consumer projects. In the example, the `activity_history`\nlog is sent to both the produc er and consumer projects, whereas the\n`purchase_history` log is only sent to th e producer project.\n\n monitored_resources:\n - type: library.googleapis. com/branch\n labels:\n - key: /city\n description: The city whe re the library branch is located in.\n - key: /name\n description: T he name of the branch.\n logs:\n - name: activity_history\n labels:\n - key: /customer_id\n - name: purchase_history\n logging:\n pro ducer_destinations:\n - monitored_resource: library.googleapis.com/branch\n logs:\n - activity_history\n - purchase_history\n con sumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n logs:\n - activity_history",
732 "id": "LogConfig", 769 "id": "Logging",
733 "properties": { 770 "properties": {
734 "counter": { 771 "producerDestinations": {
735 "$ref": "CounterOptions", 772 "description": "Logging configurations for sending logs to t he producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none pr oducer destination.",
736 "description": "Counter options." 773 "items": {
737 }, 774 "$ref": "LoggingDestination"
738 "dataAccess": { 775 },
739 "$ref": "DataAccessOptions", 776 "type": "array"
740 "description": "Data access options." 777 },
741 }, 778 "consumerDestinations": {
742 "cloudAudit": { 779 "description": "Logging configurations for sending logs to t he consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none co nsumer destination.",
743 "$ref": "CloudAuditOptions", 780 "items": {
744 "description": "Cloud audit options." 781 "$ref": "LoggingDestination"
745 } 782 },
746 }, 783 "type": "array"
747 "type": "object" 784 }
748 }, 785 },
749 "LogDescriptor": { 786 "type": "object"
750 "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", 787 },
751 "id": "LogDescriptor", 788 "Method": {
752 "properties": { 789 "description": "Method represents a method of an api.",
753 "description": { 790 "id": "Method",
754 "description": "A human-readable description of this log. Th is information appears in\nthe documentation and can contain details.", 791 "properties": {
755 "type": "string" 792 "responseStreaming": {
756 }, 793 "description": "If true, the response is streamed.",
757 "displayName": { 794 "type": "boolean"
758 "description": "The human-readable name for this log. This i nformation appears on\nthe user interface and should be concise.",
759 "type": "string"
760 },
761 "labels": {
762 "description": "The set of labels that are available to desc ribe a specific log entry.\nRuntime requests that contain labels not specified h ere are\nconsidered invalid.",
763 "items": {
764 "$ref": "LabelDescriptor"
765 },
766 "type": "array"
767 }, 795 },
768 "name": { 796 "name": {
769 "description": "The name of the log. It must be less than 51 2 characters long and can\ninclude the following characters: upper- and lower-ca se alphanumeric\ncharacters [A-Za-z0-9], and punctuation characters including\ns lash, underscore, hyphen, period [/_-.].", 797 "description": "The simple name of this method.",
770 "type": "string" 798 "type": "string"
771 } 799 },
772 }, 800 "requestTypeUrl": {
773 "type": "object" 801 "description": "A URL of the input message type.",
774 }, 802 "type": "string"
775 "ConfigFile": { 803 },
776 "description": "Generic specification of a source configuration file ", 804 "requestStreaming": {
777 "id": "ConfigFile", 805 "description": "If true, the request is streamed.",
778 "properties": {
779 "fileContents": {
780 "description": "The bytes that constitute the file.",
781 "format": "byte",
782 "type": "string"
783 },
784 "filePath": {
785 "description": "The file name of the configuration file (ful l or relative path).",
786 "type": "string"
787 },
788 "fileType": {
789 "description": "The type of configuration file this represen ts.",
790 "enum": [
791 "FILE_TYPE_UNSPECIFIED",
792 "SERVICE_CONFIG_YAML",
793 "OPEN_API_JSON",
794 "OPEN_API_YAML",
795 "FILE_DESCRIPTOR_SET_PROTO"
796 ],
797 "enumDescriptions": [
798 "Unknown file type.",
799 "YAML-specification of service.",
800 "OpenAPI specification, serialized in JSON.",
801 "OpenAPI specification, serialized in YAML.",
802 "FileDescriptorSet, generated by protoc.\n\nTo generate, use protoc with imports and source info included.\nFor an example test.proto fi le, the following command would put the value\nin a new file named out.pb.\n\n$p rotoc --include_imports --include_source_info test.proto -o out.pb"
803 ],
804 "type": "string"
805 }
806 },
807 "type": "object"
808 },
809 "MonitoredResourceDescriptor": {
810 "description": "An object that describes the schema of a MonitoredRe source object using a\ntype name and a set of labels. For example, the monitore d resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\" gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zo ne\"` to identify particular VM instances.\n\nDifferent APIs can support differe nt monitored resource types. APIs generally\nprovide a `list` method that return s the monitored resource descriptors used\nby the API.",
811 "id": "MonitoredResourceDescriptor",
812 "properties": {
813 "displayName": {
814 "description": "Optional. A concise name for the monitored r esource type that might be\ndisplayed in user interfaces. It should be a Title C ased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Go ogle Cloud SQL Database\"`.",
815 "type": "string"
816 },
817 "description": {
818 "description": "Optional. A detailed description of the moni tored resource type that might\nbe used in documentation.",
819 "type": "string"
820 },
821 "type": {
822 "description": "Required. The monitored resource type. For e xample, the type\n`\"cloudsql_database\"` represents databases in Google Cloud S QL.\nThe maximum length of this value is 256 characters.",
823 "type": "string"
824 },
825 "labels": {
826 "description": "Required. A set of labels used to describe i nstances of this monitored\nresource type. For example, an individual Google Clo ud SQL database is\nidentified by values for the labels `\"database_id\"` and `\ "zone\"`.",
827 "items": {
828 "$ref": "LabelDescriptor"
829 },
830 "type": "array"
831 },
832 "name": {
833 "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{ty pe}\"` where\n{type} is the value of the `type` field in this object and\n{proje ct_id} is a project ID that provides API-specific context for\naccessing the typ e. APIs that do not use project information can use the\nresource name format ` \"monitoredResourceDescriptors/{type}\"`.",
834 "type": "string"
835 }
836 },
837 "type": "object"
838 },
839 "CustomErrorRule": {
840 "description": "A custom error rule.",
841 "id": "CustomErrorRule",
842 "properties": {
843 "isErrorType": {
844 "description": "Mark this message as possible payload in err or response. Otherwise,\nobjects of this type will be filtered when they appear in error payload.",
845 "type": "boolean" 806 "type": "boolean"
846 }, 807 },
847 "selector": {
848 "description": "Selects messages to which this rule applies. \n\nRefer to selector for syntax details.",
849 "type": "string"
850 }
851 },
852 "type": "object"
853 },
854 "MediaDownload": {
855 "description": "Use this only for Scotty Requests. Do not use this f or media support using\nBytestream, add instead [][google.bytestream.RestByteStr eam] as an API to\nyour configuration for Bytestream methods.",
856 "id": "MediaDownload",
857 "properties": {
858 "enabled": {
859 "description": "Whether download is enabled.",
860 "type": "boolean"
861 },
862 "downloadService": {
863 "description": "DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED.\n\nSpecify name of the download service if one is used for download.",
864 "type": "string"
865 }
866 },
867 "type": "object"
868 },
869 "ChangeReport": {
870 "description": "Change report associated with a particular service c onfiguration.\n\nIt contains a list of ConfigChanges based on the comparison bet ween\ntwo service configurations.",
871 "id": "ChangeReport",
872 "properties": {
873 "configChanges": {
874 "description": "List of changes between two service configur ations.\nThe changes will be alphabetically sorted based on the identifier\nof e ach change.\nA ConfigChange identifier is a dot separated path to the configurat ion.\nExample: visibility.rules[selector='LibraryService.CreateBook'].restrictio n",
875 "items": {
876 "$ref": "ConfigChange"
877 },
878 "type": "array"
879 }
880 },
881 "type": "object"
882 },
883 "DisableServiceRequest": {
884 "description": "Request message for DisableService method.",
885 "id": "DisableServiceRequest",
886 "properties": {
887 "consumerId": {
888 "description": "The identity of consumer resource which serv ice disablement will be\napplied to.\n\nThe Google Service Management implementa tion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is made compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.",
889 "type": "string"
890 }
891 },
892 "type": "object"
893 },
894 "SubmitConfigSourceResponse": {
895 "description": "Response message for SubmitConfigSource method.",
896 "id": "SubmitConfigSourceResponse",
897 "properties": {
898 "serviceConfig": {
899 "$ref": "Service",
900 "description": "The generated service configuration."
901 }
902 },
903 "type": "object"
904 },
905 "MediaUpload": {
906 "description": "Use this only for Scotty Requests. Do not use this f or media support using\nBytestream, add instead [][google.bytestream.RestByteStr eam] as an API to\nyour configuration for Bytestream methods.",
907 "id": "MediaUpload",
908 "properties": {
909 "enabled": {
910 "description": "Whether upload is enabled.",
911 "type": "boolean"
912 },
913 "uploadService": {
914 "description": "DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED.\n\nSpecify name of the upload service if one is used for upload.",
915 "type": "string"
916 }
917 },
918 "type": "object"
919 },
920 "Advice": {
921 "description": "Generated advice about this change, used for providi ng more\ninformation about how a change will affect the existing service.",
922 "id": "Advice",
923 "properties": {
924 "description": {
925 "description": "Useful description for why this advice was a pplied and what actions should\nbe taken to mitigate any implied risks.",
926 "type": "string"
927 }
928 },
929 "type": "object"
930 },
931 "ManagedService": {
932 "description": "The full representation of a Service that is managed by\nGoogle Service Management.",
933 "id": "ManagedService",
934 "properties": {
935 "producerProjectId": {
936 "description": "ID of the project that produces and owns thi s service.",
937 "type": "string"
938 },
939 "serviceName": {
940 "description": "The name of the service. See the [overview]( /service-management/overview)\nfor naming requirements.",
941 "type": "string"
942 }
943 },
944 "type": "object"
945 },
946 "UsageRule": {
947 "description": "Usage configuration rules for the service.\n\nNOTE: Under development.\n\n\nUse this rule to configure unregistered calls for the se rvice. Unregistered\ncalls are calls that do not contain consumer project identi ty.\n(Example: calls that do not contain an API key).\nBy default, API methods d o not allow unregistered calls, and each method call\nmust be identified by a co nsumer project identity. Use this rule to\nallow/disallow unregistered calls.\n\ nExample of an API that wants to allow unregistered calls for entire service.\n\ n usage:\n rules:\n - selector: \"*\"\n allow_unregistered_c alls: true\n\nExample of a method that wants to allow unregistered calls.\n\n usage:\n rules:\n - selector: \"google.example.library.v1.LibraryServ ice.CreateBook\"\n allow_unregistered_calls: true",
948 "id": "UsageRule",
949 "properties": {
950 "allowUnregisteredCalls": {
951 "description": "True, if the method allows unregistered call s; false otherwise.",
952 "type": "boolean"
953 },
954 "selector": {
955 "description": "Selects the methods to which this rule appli es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta x details.",
956 "type": "string"
957 }
958 },
959 "type": "object"
960 },
961 "TrafficPercentStrategy": {
962 "description": "Strategy that specifies how Google Service Control s hould select\ndifferent\nversions of service configurations based on traffic per centage.\n\nOne example of how to gradually rollout a new service configuration using\nthis\nstrategy:\nDay 1\n\n Rollout {\n id: \"example.googleapis.c om/rollout_20160206\"\n traffic_percent_strategy {\n percentages: {\ n \"example.googleapis.com/20160201\": 70.00\n \"example.googl eapis.com/20160206\": 30.00\n }\n }\n }\n\nDay 2\n\n Rollout { \n id: \"example.googleapis.com/rollout_20160207\"\n traffic_percent_s trategy: {\n percentages: {\n \"example.googleapis.com/20160206\ ": 100.00\n }\n }\n }",
963 "id": "TrafficPercentStrategy",
964 "properties": {
965 "percentages": {
966 "additionalProperties": {
967 "format": "double",
968 "type": "number"
969 },
970 "description": "Maps service configuration IDs to their corr esponding traffic percentage.\nKey is the service configuration ID, Value is the traffic percentage\nwhich must be greater than 0.0 and the sum must equal to 10 0.0.",
971 "type": "object"
972 }
973 },
974 "type": "object"
975 },
976 "AuthRequirement": {
977 "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).",
978 "id": "AuthRequirement",
979 "properties": {
980 "audiences": {
981 "description": "NOTE: This will be deprecated soon, once Aut hProvider.audiences is\nimplemented and accepted in all the runtime components.\ n\nThe list of JWT\n[audiences](https://tools.ietf.org/html/draft-ietf-oauth-jso n-web-token-32#section-4.1.3).\nthat are allowed to access. A JWT containing any of these audiences will\nbe accepted. When this setting is absent, only JWTs wi th audience\n\"https://Service_name/API_name\"\nwill be accepted. For example, i f no audiences are in the setting,\nLibraryService API will only accept JWTs wit h the following audience\n\"https://library-example.googleapis.com/google.exampl e.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.a pps.googleusercontent.com,\n bookstore_web.apps.googleusercontent. com",
982 "type": "string"
983 },
984 "providerId": {
985 "description": "id from authentication provider.\n\nExample: \n\n provider_id: bookstore_auth",
986 "type": "string"
987 }
988 },
989 "type": "object"
990 },
991 "Condition": {
992 "description": "A condition to be met.",
993 "id": "Condition",
994 "properties": {
995 "values": {
996 "description": "The objects of the condition. This is mutual ly exclusive with 'value'.",
997 "items": {
998 "type": "string"
999 },
1000 "type": "array"
1001 },
1002 "iam": {
1003 "description": "Trusted attributes supplied by the IAM syste m.",
1004 "enum": [
1005 "NO_ATTR",
1006 "AUTHORITY",
1007 "ATTRIBUTION",
1008 "APPROVER",
1009 "JUSTIFICATION_TYPE"
1010 ],
1011 "enumDescriptions": [
1012 "Default non-attribute.",
1013 "Either principal or (if present) authority selector.",
1014 "The principal (even if an authority selector is present ), which\nmust only be used for attribution, not authorization.",
1015 "An approver (distinct from the requester) that has auth orized this\nrequest.\nWhen used with IN, the condition indicates that one of th e approvers\nassociated with the request matches the specified principal, or is a\nmember of the specified group. Approvers can only grant additional\naccess, a nd are thus only used in a strictly positive context\n(e.g. ALLOW/IN or DENY/NOT _IN).\nSee: go/rpc-security-policy-dynamicauth.",
1016 "What types of justifications have been supplied with th is request.\nString values should match enum names from tech.iam.JustificationTy pe,\ne.g. \"MANUAL_STRING\". It is not permitted to grant access based on\nthe * absence* of a justification, so justification conditions can only\nbe used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).\n\nMultiple justifications , e.g., a Buganizer ID and a manually-entered\nreason, are normal and supported. "
1017 ],
1018 "type": "string"
1019 },
1020 "op": {
1021 "description": "An operator to apply the subject with.",
1022 "enum": [
1023 "NO_OP",
1024 "EQUALS",
1025 "NOT_EQUALS",
1026 "IN",
1027 "NOT_IN",
1028 "DISCHARGED"
1029 ],
1030 "enumDescriptions": [
1031 "Default no-op.",
1032 "DEPRECATED. Use IN instead.",
1033 "DEPRECATED. Use NOT_IN instead.",
1034 "The condition is true if the subject (or any element of it if it is\na set) matches any of the supplied values.",
1035 "The condition is true if the subject (or every element of it if it is\na set) matches none of the supplied values.",
1036 "Subject is discharged"
1037 ],
1038 "type": "string"
1039 },
1040 "svc": {
1041 "description": "Trusted attributes discharged by the service .",
1042 "type": "string"
1043 },
1044 "value": {
1045 "description": "DEPRECATED. Use 'values' instead.",
1046 "type": "string"
1047 },
1048 "sys": {
1049 "description": "Trusted attributes supplied by any service t hat owns resources and uses\nthe IAM system for access control.",
1050 "enum": [
1051 "NO_ATTR",
1052 "REGION",
1053 "SERVICE",
1054 "NAME",
1055 "IP"
1056 ],
1057 "enumDescriptions": [
1058 "Default non-attribute type",
1059 "Region of the resource",
1060 "Service name",
1061 "Resource name",
1062 "IP address of the caller"
1063 ],
1064 "type": "string"
1065 }
1066 },
1067 "type": "object"
1068 },
1069 "Documentation": {
1070 "description": "`Documentation` provides the information for describ ing a service.\n\nExample:\n<pre><code>documentation:\n summary: >\n The Goo gle Calendar API gives access\n to most calendar features.\n pages:\n - nam e: Overview\n content: &#40;== include google/foo/overview.md ==&#41;\n - na me: Tutorial\n content: &#40;== include google/foo/tutorial.md ==&#41;\n s ubpages;\n - name: Java\n content: &#40;== include google/foo/tutorial_j ava.md ==&#41;\n rules:\n - selector: google.calendar.Calendar.Get\n descri ption: >\n ...\n - selector: google.calendar.Calendar.Put\n description : >\n ...\n</code></pre>\nDocumentation is provided in markdown syntax. In addition to\nstandard markdown features, definition lists, tables and fenced\nco de blocks are supported. Section headers can be provided and are\ninterpreted re lative to the section nesting of the context where\na documentation fragment is embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvi a the config at normalization time, where documentation provided\nby config rule s overrides IDL provided.\n\nA number of constructs specific to the API platform are supported\nin documentation text.\n\nIn order to reference a proto element, the following\nnotation can be used:\n<pre><code>&#91;fully.qualified.proto.nam e]&#91;]</code></pre>\nTo override the display text used for the link, this can be used:\n<pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></ pre>\nText can be excluded from doc using the following notation:\n<pre><code>&# 40;-- internal comment --&#41;</code></pre>\nComments can be made conditional us ing a visibility label. The below\ntext will be only rendered if the `BETA` labe l is available:\n<pre><code>&#40;--BETA: comment for BETA users --&#41;</code></ pre>\nA few directives are available in documentation. Note that\ndirectives mus t appear on a single line to be properly\nidentified. The `include` directive in cludes a markdown file from\nan external source:\n<pre><code>&#40;== include pat h/to/file ==&#41;</code></pre>\nThe `resource_for` directive marks a message to be the resource of\na collection in REST view. If it is not specified, tools att empt\nto infer the resource from the operations in a collection:\n<pre><code>&#4 0;== resource_for v1.shelves.books ==&#41;</code></pre>\nThe directive `suppress _warning` does not directly affect documentation\nand is documented together wit h service config validation.",
1071 "id": "Documentation",
1072 "properties": {
1073 "pages": {
1074 "description": "The top level pages for the documentation se t.",
1075 "items": {
1076 "$ref": "Page"
1077 },
1078 "type": "array"
1079 },
1080 "summary": {
1081 "description": "A short summary of what the service does. Ca n only be provided by\nplain text.",
1082 "type": "string"
1083 },
1084 "documentationRootUrl": {
1085 "description": "The URL to the root of documentation.",
1086 "type": "string"
1087 },
1088 "rules": {
1089 "description": "A list of documentation rules that apply to individual API elements.\n\n**NOTE:** All service configuration rules follow \"l ast one wins\" order.",
1090 "items": {
1091 "$ref": "DocumentationRule"
1092 },
1093 "type": "array"
1094 },
1095 "overview": {
1096 "description": "Declares a single overview page. For example :\n<pre><code>documentation:\n summary: ...\n overview: &#40;== include overvi ew.md ==&#41;\n</code></pre>\nThis is a shortcut for the following declaration ( using pages style):\n<pre><code>documentation:\n summary: ...\n pages:\n - na me: Overview\n content: &#40;== include overview.md ==&#41;\n</code></pre>\nN ote: you cannot specify both `overview` field and `pages` field.",
1097 "type": "string"
1098 }
1099 },
1100 "type": "object"
1101 },
1102 "AuditLogConfig": {
1103 "description": "Provides the configuration for logging a type of per missions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type \": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and ' DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.",
1104 "id": "AuditLogConfig",
1105 "properties": {
1106 "exemptedMembers": {
1107 "description": "Specifies the identities that do not cause l ogging for this type of\npermission.\nFollows the same format of Binding.members .",
1108 "items": {
1109 "type": "string"
1110 },
1111 "type": "array"
1112 },
1113 "logType": {
1114 "description": "The log type that this config enables.",
1115 "enum": [
1116 "LOG_TYPE_UNSPECIFIED",
1117 "ADMIN_READ",
1118 "DATA_WRITE",
1119 "DATA_READ"
1120 ],
1121 "enumDescriptions": [
1122 "Default case. Should never be this.",
1123 "Admin reads. Example: CloudIAM getIamPolicy",
1124 "Data writes. Example: CloudSQL Users create",
1125 "Data reads. Example: CloudSQL Users list"
1126 ],
1127 "type": "string"
1128 }
1129 },
1130 "type": "object"
1131 },
1132 "ConfigSource": {
1133 "description": "Represents a source file which is used to generate t he service configuration\ndefined by `google.api.Service`.",
1134 "id": "ConfigSource",
1135 "properties": {
1136 "id": {
1137 "description": "A unique ID for a specific instance of this message, typically assigned\nby the client for tracking purpose. If empty, the s erver may choose to\ngenerate one instead.",
1138 "type": "string"
1139 },
1140 "files": {
1141 "description": "Set of source configuration files that are u sed to generate a service\nconfiguration (`google.api.Service`).",
1142 "items": {
1143 "$ref": "ConfigFile"
1144 },
1145 "type": "array"
1146 }
1147 },
1148 "type": "object"
1149 },
1150 "BackendRule": {
1151 "description": "A backend rule provides configuration for an individ ual API element.",
1152 "id": "BackendRule",
1153 "properties": {
1154 "deadline": {
1155 "description": "The number of seconds to wait for a response from a request. The\ndefault depends on the deployment context.",
1156 "format": "double",
1157 "type": "number"
1158 },
1159 "address": {
1160 "description": "The address of the API backend.",
1161 "type": "string"
1162 },
1163 "selector": {
1164 "description": "Selects the methods to which this rule appli es.\n\nRefer to selector for syntax details.",
1165 "type": "string"
1166 }
1167 },
1168 "type": "object"
1169 },
1170 "AuthenticationRule": {
1171 "description": "Authentication rules for the service.\n\nBy default, if a method has any authentication requirements, every request\nmust include a valid credential matching one of the requirements.\nIt's an error to include mor e than one kind of credential in a single\nrequest.\n\nIf a method doesn't have any auth requirements, request credentials will be\nignored.",
1172 "id": "AuthenticationRule",
1173 "properties": {
1174 "requirements": {
1175 "description": "Requirements for additional authentication p roviders.",
1176 "items": {
1177 "$ref": "AuthRequirement"
1178 },
1179 "type": "array"
1180 },
1181 "selector": {
1182 "description": "Selects the methods to which this rule appli es.\n\nRefer to selector for syntax details.",
1183 "type": "string"
1184 },
1185 "allowWithoutCredential": {
1186 "description": "Whether to allow requests without a credenti al. The credential can be\nan OAuth token, Google cookies (first-party auth) or EndUserCreds.\n\nFor requests without credentials, if the service control enviro nment is\nspecified, each incoming request **must** be associated with a service \nconsumer. This can be done by passing an API key that belongs to a consumer\np roject.",
1187 "type": "boolean"
1188 },
1189 "oauth": {
1190 "$ref": "OAuthRequirements",
1191 "description": "The requirements for OAuth credentials."
1192 }
1193 },
1194 "type": "object"
1195 },
1196 "UndeleteServiceResponse": {
1197 "description": "Response message for UndeleteService method.",
1198 "id": "UndeleteServiceResponse",
1199 "properties": {
1200 "service": {
1201 "$ref": "ManagedService",
1202 "description": "Revived service resource."
1203 }
1204 },
1205 "type": "object"
1206 },
1207 "Policy": {
1208 "description": "Defines an Identity and Access Management (IAM) poli cy. It is used to\nspecify access control policies for Cloud Platform resources. \n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n `members` to a `role`, where the members can be user accounts, Google groups,\nG oogle domains, and service accounts. A `role` is a named list of permissions\nde fined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike @example.com\",\n \"group:admins@example.com\",\n \"domain :google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccoun t.com\",\n ]\n },\n {\n \"role\": \"roles/viewer \",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide ](https://cloud.google.com/iam).",
1209 "id": "Policy",
1210 "properties": {
1211 "auditConfigs": {
1212 "description": "Specifies cloud audit logging configuration for this policy.",
1213 "items": {
1214 "$ref": "AuditConfig"
1215 },
1216 "type": "array"
1217 },
1218 "bindings": {
1219 "description": "Associates a list of `members` to a `role`.\ nMultiple `bindings` must not be specified for the same `role`.\n`bindings` with no members will result in an error.",
1220 "items": {
1221 "$ref": "Binding"
1222 },
1223 "type": "array"
1224 },
1225 "etag": {
1226 "description": "`etag` is used for optimistic concurrency co ntrol as a way to help\nprevent simultaneous updates of a policy from overwritin g each other.\nIt is strongly suggested that systems make use of the `etag` in t he\nread-modify-write cycle to perform policy updates in order to avoid race\nco nditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that t heir change will be applied to the same version of the policy.\n\nIf no `etag` i s provided in the call to `setIamPolicy`, then the existing\npolicy is overwritt en blindly.",
1227 "format": "byte",
1228 "type": "string"
1229 },
1230 "iamOwned": {
1231 "type": "boolean"
1232 },
1233 "rules": {
1234 "description": "If more than one rule is specified, the rule s are applied in the following\nmanner:\n- All matching LOG rules are always app lied.\n- If any DENY/DENY_WITH_LOG rule matches, permission is denied.\n Loggin g will be applied if one or more matching rule requires logging.\n- Otherwise, i f any ALLOW/ALLOW_WITH_LOG rule matches, permission is\n granted.\n Logging wi ll be applied if one or more matching rule requires logging.\n- Otherwise, if no rule applies, permission is denied.",
1235 "items": {
1236 "$ref": "Rule"
1237 },
1238 "type": "array"
1239 },
1240 "version": {
1241 "description": "Version of the `Policy`. The default version is 0.",
1242 "format": "int32",
1243 "type": "integer"
1244 }
1245 },
1246 "type": "object"
1247 },
1248 "Api": {
1249 "description": "Api is a light-weight descriptor for a protocol buff er service.",
1250 "id": "Api",
1251 "properties": {
1252 "mixins": {
1253 "description": "Included APIs. See Mixin.",
1254 "items": {
1255 "$ref": "Mixin"
1256 },
1257 "type": "array"
1258 },
1259 "options": {
1260 "description": "Any metadata attached to the API.",
1261 "items": {
1262 "$ref": "Option"
1263 },
1264 "type": "array"
1265 },
1266 "methods": {
1267 "description": "The methods of this api, in unspecified orde r.",
1268 "items": {
1269 "$ref": "Method"
1270 },
1271 "type": "array"
1272 },
1273 "name": {
1274 "description": "The fully qualified name of this api, includ ing package name\nfollowed by the api's simple name.",
1275 "type": "string"
1276 },
1277 "syntax": { 808 "syntax": {
1278 "description": "The source syntax of the service.", 809 "description": "The source syntax of this method.",
1279 "enum": [ 810 "enum": [
1280 "SYNTAX_PROTO2", 811 "SYNTAX_PROTO2",
1281 "SYNTAX_PROTO3" 812 "SYNTAX_PROTO3"
1282 ], 813 ],
1283 "enumDescriptions": [ 814 "enumDescriptions": [
1284 "Syntax `proto2`.", 815 "Syntax `proto2`.",
1285 "Syntax `proto3`." 816 "Syntax `proto3`."
1286 ], 817 ],
1287 "type": "string" 818 "type": "string"
1288 }, 819 },
1289 "sourceContext": { 820 "responseTypeUrl": {
1290 "$ref": "SourceContext", 821 "description": "The URL of the output message type.",
1291 "description": "Source context for the protocol buffer servi ce represented by this\nmessage." 822 "type": "string"
1292 }, 823 },
1293 "version": { 824 "options": {
1294 "description": "A version string for this api. If specified, must have the form\n`major-version.minor-version`, as in `1.10`. If the minor v ersion\nis omitted, it defaults to zero. If the entire version field is\nempty, the major version is derived from the package name, as\noutlined below. If the f ield is not empty, the version in the\npackage name will be verified to be consi stent with what is\nprovided here.\n\nThe versioning schema uses [semantic\nvers ioning](http://semver.org) where the major version number\nindicates a breaking change and the minor version an additive,\nnon-breaking change. Both version num bers are signals to users\nwhat to expect from different versions, and should be carefully\nchosen based on the product plan.\n\nThe major version is also refle cted in the package name of the\nAPI, which must end in `v<major-version>`, as i n\n`google.feature.v1`. For major versions 0 and 1, the suffix can\nbe omitted. Zero major versions must only be used for\nexperimental, none-GA apis.\n", 825 "description": "Any metadata attached to the method.",
1295 "type": "string" 826 "items": {
1296 } 827 "$ref": "Option"
1297 }, 828 },
1298 "type": "object" 829 "type": "array"
1299 }, 830 }
1300 "DataAccessOptions": { 831 },
1301 "description": "Write a Data Access (Gin) log", 832 "type": "object"
1302 "id": "DataAccessOptions", 833 },
1303 "properties": {}, 834 "ListServiceRolloutsResponse": {
1304 "type": "object" 835 "description": "Response message for ListServiceRollouts method.",
1305 }, 836 "id": "ListServiceRolloutsResponse",
1306 "Authentication": { 837 "properties": {
1307 "description": "`Authentication` defines the authentication configur ation for an API.\n\nExample for an API targeted for external use:\n\n name: calendar.googleapis.com\n authentication:\n providers:\n - id: goog le_calendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n issuer: https://securetoken.google.com\n rules:\n - selector: \"*\"\n requirements:\n provider_id: google_calendar_auth", 838 "rollouts": {
1308 "id": "Authentication", 839 "description": "The list of rollout resources.",
1309 "properties": { 840 "items": {
1310 "providers": { 841 "$ref": "Rollout"
1311 "description": "Defines a set of authentication providers th at a service supports.", 842 },
1312 "items": { 843 "type": "array"
1313 "$ref": "AuthProvider" 844 },
845 "nextPageToken": {
846 "description": "The token of the next page of results.",
847 "type": "string"
848 }
849 },
850 "type": "object"
851 },
852 "ConfigRef": {
853 "description": "Represents a service configuration with its name and id.",
854 "id": "ConfigRef",
855 "properties": {
856 "name": {
857 "description": "Resource name of a service config. It must h ave the following\nformat: \"services/{service name}/configs/{config id}\".",
858 "type": "string"
859 }
860 },
861 "type": "object"
862 },
863 "Mixin": {
864 "description": "Declares an API to be included in this API. The incl uding API must\nredeclare all the methods from the included API, but documentati on\nand options are inherited as follows:\n\n- If after comment and whitespace s tripping, the documentation\n string of the redeclared method is empty, it will be inherited\n from the original method.\n\n- Each annotation belonging to the service config (http,\n visibility) which is not set in the redeclared method will be\n inherited.\n\n- If an http annotation is inherited, the path pattern will be\n modified as follows. Any version prefix will be replaced by the\n ve rsion of the including API plus the root path if specified.\n\nExample of a simp le mixin:\n\n package google.acl.v1;\n service AccessControl {\n // G et the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"/v1/{resource=**}:getAcl\";\n }\n }\n\n package google.storage.v2;\n service Storage {\n // rp c GetAcl(GetAclRequest) returns (Acl);\n\n // Get a data record.\n rpc GetData(GetDataRequest) returns (Data) {\n option (google.api.http).get = \"/v2/{resource=**}\";\n }\n }\n\nExample of a mixin configuration:\n\ n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.AccessControl\n\nThe mixin construct implies that all methods in ` AccessControl` are\nalso declared with same name and request/response types in\n `Storage`. A documentation generator or annotation processor will\nsee the effec tive `Storage.GetAcl` method after inherting\ndocumentation and annotations as f ollows:\n\n service Storage {\n // Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"/v2/{resource=**}:getAcl\";\n }\n ...\n }\n\nNote how the vers ion in the path pattern changed from `v1` to `v2`.\n\nIf the `root` field in the mixin is specified, it should be a\nrelative path under which inherited HTTP pa ths are placed. Example:\n\n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.AccessControl\n root: acls\n\nTh is implies the following inherited HTTP annotation:\n\n service Storage {\n // Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns ( Acl) {\n option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\" ;\n }\n ...\n }",
865 "id": "Mixin",
866 "properties": {
867 "root": {
868 "description": "If non-empty specifies a path under which in herited HTTP paths\nare rooted.",
869 "type": "string"
870 },
871 "name": {
872 "description": "The fully qualified name of the API which is included.",
873 "type": "string"
874 }
875 },
876 "type": "object"
877 },
878 "FlowOperationMetadata": {
879 "description": "The metadata associated with a long running operatio n resource.",
880 "id": "FlowOperationMetadata",
881 "properties": {
882 "isPersisted": {
883 "description": "Is the update for the operation persisted?",
884 "type": "boolean"
885 },
886 "flowName": {
887 "description": "The name of the top-level flow corresponding to this operation.\nMust be equal to the \"name\" field for a FlowName enum.",
888 "type": "string"
889 },
890 "resourceNames": {
891 "description": "The full name of the resources that this flo w is directly associated with.",
892 "items": {
893 "type": "string"
894 },
895 "type": "array"
896 },
897 "cancelState": {
898 "description": "The state of the operation with respect to c ancellation.",
899 "enum": [
900 "RUNNING",
901 "UNCANCELLABLE",
902 "CANCELLED"
903 ],
904 "enumDescriptions": [
905 "Default state, cancellable but not cancelled.",
906 "The operation has proceeded past the point of no return and cannot\nbe cancelled.",
907 "The operation has been cancelled, work should cease\nan d any needed rollback steps executed."
908 ],
909 "type": "string"
910 },
911 "deadline": {
912 "description": "Deadline for the flow to complete, to preven t orphaned Operations.\n\nIf the flow has not completed by this time, it may be terminated by\nthe engine, or force-failed by Operation lookup.\n\nNote that thi s is not a hard deadline after which the Flow will\ndefinitely be failed, rather it is a deadline after which it is reasonable\nto suspect a problem and other p arts of the system may kill operation\nto ensure we don't have orphans.\nsee als o: go/prevent-orphaned-operations",
913 "format": "google-datetime",
914 "type": "string"
915 },
916 "startTime": {
917 "description": "The start time of the operation.",
918 "format": "google-datetime",
919 "type": "string"
920 }
921 },
922 "type": "object"
923 },
924 "CustomError": {
925 "description": "Customize service error responses. For example, lis t any service\nspecific protobuf types that can appear in error detail lists of\ nerror responses.\n\nExample:\n\n custom_error:\n types:\n - google .foo.v1.CustomError\n - google.foo.v1.AnotherError",
926 "id": "CustomError",
927 "properties": {
928 "types": {
929 "description": "The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.",
930 "items": {
931 "type": "string"
1314 }, 932 },
1315 "type": "array" 933 "type": "array"
1316 }, 934 },
1317 "rules": { 935 "rules": {
1318 "description": "A list of authentication rules that apply to individual API methods.\n\n**NOTE:** All service configuration rules follow \"l ast one wins\" order.", 936 "description": "The list of custom error rules that apply to individual API messages.\n\n**NOTE:** All service configuration rules follow \" last one wins\" order.",
1319 "items": { 937 "items": {
1320 "$ref": "AuthenticationRule" 938 "$ref": "CustomErrorRule"
1321 }, 939 },
1322 "type": "array" 940 "type": "array"
1323 } 941 }
1324 }, 942 },
1325 "type": "object" 943 "type": "object"
1326 }, 944 },
1327 "Operation": { 945 "CounterOptions": {
1328 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.", 946 "description": "Options for counters",
1329 "id": "Operation", 947 "id": "CounterOptions",
1330 "properties": { 948 "properties": {
1331 "error": { 949 "metric": {
1332 "$ref": "Status", 950 "description": "The metric to update.",
1333 "description": "The error result of the operation in case of failure or cancellation." 951 "type": "string"
1334 }, 952 },
1335 "metadata": { 953 "field": {
1336 "additionalProperties": { 954 "description": "The field value to attribute.",
1337 "description": "Properties of the object. Contains field @type with type URL.", 955 "type": "string"
1338 "type": "any" 956 }
1339 }, 957 },
1340 "description": "Service-specific metadata associated with th e operation. It typically\ncontains progress information and common metadata su ch as create time.\nSome services might not provide such metadata. Any method t hat returns a\nlong-running operation should document the metadata type, if any. ", 958 "type": "object"
1341 "type": "object" 959 },
1342 }, 960 "Http": {
1343 "done": { 961 "description": "Defines the HTTP configuration for a service. It con tains a list of\nHttpRule, each specifying the mapping of an RPC method\nto one or more HTTP REST API methods.",
1344 "description": "If the value is `false`, it means the operat ion is still in progress.\nIf true, the operation is completed, and either `erro r` or `response` is\navailable.", 962 "id": "Http",
1345 "type": "boolean" 963 "properties": {
1346 }, 964 "rules": {
1347 "response": { 965 "description": "A list of HTTP configuration rules that appl y to individual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
1348 "additionalProperties": { 966 "items": {
1349 "description": "Properties of the object. Contains field @type with type URL.", 967 "$ref": "HttpRule"
1350 "type": "any" 968 },
1351 }, 969 "type": "array"
1352 "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delet e`, the response is\n`google.protobuf.Empty`. If the original method is standar d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi nal method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.", 970 }
1353 "type": "object" 971 },
1354 }, 972 "type": "object"
1355 "name": { 973 },
1356 "description": "The server-assigned name, which is only uniq ue within the same service that\noriginally returns it. If you use the default H TTP mapping, the\n`name` should have the format of `operations/some/unique/name` .", 974 "SourceInfo": {
1357 "type": "string" 975 "description": "Source information used to create a Service Config",
1358 } 976 "id": "SourceInfo",
1359 }, 977 "properties": {
1360 "type": "object" 978 "sourceFiles": {
1361 }, 979 "description": "All files used during config generation.",
1362 "Page": {
1363 "description": "Represents a documentation page. A page can contain subpages to represent\nnested documentation set structure.",
1364 "id": "Page",
1365 "properties": {
1366 "subpages": {
1367 "description": "Subpages of this page. The order of subpages specified here will be\nhonored in the generated docset.",
1368 "items": {
1369 "$ref": "Page"
1370 },
1371 "type": "array"
1372 },
1373 "name": {
1374 "description": "The name of the page. It will be used as an identity of the page to\ngenerate URI of the page, text of the link to this page in navigation,\netc. The full page name (start from the root page name to this page\nconcatenated with `.`) can be used as reference to the page in your\ndocum entation. For example:\n<pre><code>pages:\n- name: Tutorial\n content: &#40;== include tutorial.md ==&#41;\n subpages:\n - name: Java\n content: &#40;== i nclude tutorial_java.md ==&#41;\n</code></pre>\nYou can reference `Java` page us ing Markdown reference link syntax:\n`Java`.",
1375 "type": "string"
1376 },
1377 "content": {
1378 "description": "The Markdown content of the page. You can us e <code>&#40;== include {path} ==&#41;</code>\nto include content from a Markdow n file.",
1379 "type": "string"
1380 }
1381 },
1382 "type": "object"
1383 },
1384 "Status": {
1385 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Lan guage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\ n\nThe error model and the `Status` message can be used in a variety of\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e across different environments.\n\nExample uses of this error model include:\n\ n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.",
1386 "id": "Status",
1387 "properties": {
1388 "code": {
1389 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
1390 "format": "int32",
1391 "type": "integer"
1392 },
1393 "message": {
1394 "description": "A developer-facing error message, which shou ld be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
1395 "type": "string"
1396 },
1397 "details": {
1398 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
1399 "items": { 980 "items": {
1400 "additionalProperties": { 981 "additionalProperties": {
1401 "description": "Properties of the object. Contains f ield @type with type URL.", 982 "description": "Properties of the object. Contains f ield @type with type URL.",
1402 "type": "any" 983 "type": "any"
1403 }, 984 },
1404 "type": "object" 985 "type": "object"
1405 }, 986 },
1406 "type": "array" 987 "type": "array"
1407 } 988 }
1408 }, 989 },
1409 "type": "object" 990 "type": "object"
1410 }, 991 },
1411 "Binding": { 992 "Control": {
1412 "description": "Associates `members` with a `role`.", 993 "description": "Selects and configures the service controller used b y the service. The\nservice controller handles features like abuse, quota, bill ing, logging,\nmonitoring, etc.",
1413 "id": "Binding", 994 "id": "Control",
1414 "properties": { 995 "properties": {
1415 "members": { 996 "environment": {
1416 "description": "Specifies the identities requesting access f or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al lUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident ifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a spec ific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\ n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{e mailid}`: An email address that represents a Google group.\n For example, `adm ins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represe nts all the\n users of that domain. For example, `google.com` or `example.com` .\n\n", 997 "description": "The service control environment to use. If e mpty, no control plane\nfeature (like quota and billing) will be enabled.",
1417 "items": { 998 "type": "string"
1418 "type": "string" 999 }
1419 }, 1000 },
1420 "type": "array" 1001 "type": "object"
1421 }, 1002 },
1422 "role": { 1003 "SystemParameter": {
1423 "description": "Role that is assigned to `members`.\nFor exa mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", 1004 "description": "Define a parameter's name and location. The paramete r may be passed as either\nan HTTP header or a URL query parameter, and if both are passed the behavior\nis implementation-dependent.",
1424 "type": "string" 1005 "id": "SystemParameter",
1425 } 1006 "properties": {
1426 }, 1007 "httpHeader": {
1427 "type": "object" 1008 "description": "Define the HTTP header name to use for the p arameter. It is case\ninsensitive.",
1428 }, 1009 "type": "string"
1429 "AuthProvider": { 1010 },
1430 "description": "Configuration for an anthentication provider, includ ing support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-o auth-json-web-token-32).",
1431 "id": "AuthProvider",
1432 "properties": {
1433 "audiences": {
1434 "description": "The list of JWT\n[audiences](https://tools.i etf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).\nthat are allowe d to access. A JWT containing any of these audiences will\nbe accepted. When thi s setting is absent, only JWTs with audience\n\"https://Service_name/API_name\"\ nwill be accepted. For example, if no audiences are in the setting,\nLibraryServ ice API will only accept JWTs with the following audience\n\"https://library-exa mple.googleapis.com/google.example.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.apps.googleusercontent.com,\n book store_web.apps.googleusercontent.com",
1435 "type": "string"
1436 },
1437 "id": {
1438 "description": "The unique identifier of the auth provider. It will be referred to by\n`AuthRequirement.provider_id`.\n\nExample: \"bookstor e_auth\".",
1439 "type": "string"
1440 },
1441 "issuer": {
1442 "description": "Identifies the principal that issued the JWT . See\nhttps://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4. 1.1\nUsually a URL or an email address.\n\nExample: https://securetoken.google.c om\nExample: 1234567-compute@developer.gserviceaccount.com",
1443 "type": "string"
1444 },
1445 "jwksUri": {
1446 "description": "URL of the provider's public key set to vali date signature of the JWT. See\n[OpenID Discovery](https://openid.net/specs/open id-connect-discovery-1_0.html#ProviderMetadata).\nOptional if the key set docume nt:\n - can be retrieved from\n [OpenID Discovery](https://openid.net/specs/op enid-connect-discovery-1_0.html\n of the issuer.\n - can be inferred from the email domain of the issuer (e.g. a Google service account).\n\nExample: https:// www.googleapis.com/oauth2/v1/certs",
1447 "type": "string"
1448 }
1449 },
1450 "type": "object"
1451 },
1452 "EnumValue": {
1453 "description": "Enum value definition.",
1454 "id": "EnumValue",
1455 "properties": {
1456 "name": { 1011 "name": {
1457 "description": "Enum value name.", 1012 "description": "Define the name of the parameter, such as \" api_key\" . It is case sensitive.",
1458 "type": "string" 1013 "type": "string"
1014 },
1015 "urlQueryParameter": {
1016 "description": "Define the URL query parameter name to use f or the parameter. It is case\nsensitive.",
1017 "type": "string"
1018 }
1019 },
1020 "type": "object"
1021 },
1022 "Field": {
1023 "description": "A single field of a message type.",
1024 "id": "Field",
1025 "properties": {
1026 "oneofIndex": {
1027 "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.",
1028 "format": "int32",
1029 "type": "integer"
1030 },
1031 "packed": {
1032 "description": "Whether to use alternative packed wire repre sentation.",
1033 "type": "boolean"
1034 },
1035 "cardinality": {
1036 "description": "The field cardinality.",
1037 "enum": [
1038 "CARDINALITY_UNKNOWN",
1039 "CARDINALITY_OPTIONAL",
1040 "CARDINALITY_REQUIRED",
1041 "CARDINALITY_REPEATED"
1042 ],
1043 "enumDescriptions": [
1044 "For fields with unknown cardinality.",
1045 "For optional fields.",
1046 "For required fields. Proto2 syntax only.",
1047 "For repeated fields."
1048 ],
1049 "type": "string"
1050 },
1051 "defaultValue": {
1052 "description": "The string value of the default value of thi s field. Proto2 syntax only.",
1053 "type": "string"
1054 },
1055 "name": {
1056 "description": "The field name.",
1057 "type": "string"
1058 },
1059 "typeUrl": {
1060 "description": "The field type URL, without the scheme, for message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.T imestamp\"`.",
1061 "type": "string"
1062 },
1063 "number": {
1064 "description": "The field number.",
1065 "format": "int32",
1066 "type": "integer"
1067 },
1068 "kind": {
1069 "description": "The field type.",
1070 "enum": [
1071 "TYPE_UNKNOWN",
1072 "TYPE_DOUBLE",
1073 "TYPE_FLOAT",
1074 "TYPE_INT64",
1075 "TYPE_UINT64",
1076 "TYPE_INT32",
1077 "TYPE_FIXED64",
1078 "TYPE_FIXED32",
1079 "TYPE_BOOL",
1080 "TYPE_STRING",
1081 "TYPE_GROUP",
1082 "TYPE_MESSAGE",
1083 "TYPE_BYTES",
1084 "TYPE_UINT32",
1085 "TYPE_ENUM",
1086 "TYPE_SFIXED32",
1087 "TYPE_SFIXED64",
1088 "TYPE_SINT32",
1089 "TYPE_SINT64"
1090 ],
1091 "enumDescriptions": [
1092 "Field type unknown.",
1093 "Field type double.",
1094 "Field type float.",
1095 "Field type int64.",
1096 "Field type uint64.",
1097 "Field type int32.",
1098 "Field type fixed64.",
1099 "Field type fixed32.",
1100 "Field type bool.",
1101 "Field type string.",
1102 "Field type group. Proto2 syntax only, and deprecated.",
1103 "Field type message.",
1104 "Field type bytes.",
1105 "Field type uint32.",
1106 "Field type enum.",
1107 "Field type sfixed32.",
1108 "Field type sfixed64.",
1109 "Field type sint32.",
1110 "Field type sint64."
1111 ],
1112 "type": "string"
1113 },
1114 "jsonName": {
1115 "description": "The field JSON name.",
1116 "type": "string"
1117 },
1118 "options": {
1119 "description": "The protocol buffer options.",
1120 "items": {
1121 "$ref": "Option"
1122 },
1123 "type": "array"
1124 }
1125 },
1126 "type": "object"
1127 },
1128 "Monitoring": {
1129 "description": "Monitoring configuration of the service.\n\nThe exam ple below shows how to configure monitored resources and metrics\nfor monitoring . In the example, a monitored resource and two metrics are\ndefined. The `librar y.googleapis.com/book/returned_count` metric is sent\nto both producer and consu mer projects, whereas the\n`library.googleapis.com/book/overdue_count` metric is only sent to the\nconsumer project.\n\n monitored_resources:\n - type: li brary.googleapis.com/branch\n labels:\n - key: /city\n descript ion: The city where the library branch is located in.\n - key: /name\n description: The name of the branch.\n metrics:\n - name: library.googl eapis.com/book/returned_count\n metric_kind: DELTA\n value_type: INT64 \n labels:\n - key: /customer_id\n - name: library.googleapis.com/b ook/overdue_count\n metric_kind: GAUGE\n value_type: INT64\n labe ls:\n - key: /customer_id\n monitoring:\n producer_destinations:\n - monitored_resource: library.googleapis.com/branch\n metrics:\n - library.googleapis.com/book/returned_count\n consumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n metrics:\n - library.googleapis.com/book/returned_count\n - library.googleapis. com/book/overdue_count",
1130 "id": "Monitoring",
1131 "properties": {
1132 "consumerDestinations": {
1133 "description": "Monitoring configurations for sending metric s to the consumer project.\nThere can be multiple consumer destinations, each on e must have a\ndifferent monitored resource type. A metric can be used in at mos t\none consumer destination.",
1134 "items": {
1135 "$ref": "MonitoringDestination"
1136 },
1137 "type": "array"
1138 },
1139 "producerDestinations": {
1140 "description": "Monitoring configurations for sending metric s to the producer project.\nThere can be multiple producer destinations, each on e must have a\ndifferent monitored resource type. A metric can be used in at mos t\none producer destination.",
1141 "items": {
1142 "$ref": "MonitoringDestination"
1143 },
1144 "type": "array"
1145 }
1146 },
1147 "type": "object"
1148 },
1149 "TestIamPermissionsRequest": {
1150 "description": "Request message for `TestIamPermissions` method.",
1151 "id": "TestIamPermissionsRequest",
1152 "properties": {
1153 "permissions": {
1154 "description": "The set of permissions to check for the `res ource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed . For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/ov erview#permissions).",
1155 "items": {
1156 "type": "string"
1157 },
1158 "type": "array"
1159 }
1160 },
1161 "type": "object"
1162 },
1163 "Enum": {
1164 "description": "Enum type definition.",
1165 "id": "Enum",
1166 "properties": {
1167 "name": {
1168 "description": "Enum type name.",
1169 "type": "string"
1170 },
1171 "enumvalue": {
1172 "description": "Enum value definitions.",
1173 "items": {
1174 "$ref": "EnumValue"
1175 },
1176 "type": "array"
1459 }, 1177 },
1460 "options": { 1178 "options": {
1461 "description": "Protocol buffer options.", 1179 "description": "Protocol buffer options.",
1462 "items": { 1180 "items": {
1463 "$ref": "Option" 1181 "$ref": "Option"
1464 }, 1182 },
1465 "type": "array" 1183 "type": "array"
1466 }, 1184 },
1467 "number": { 1185 "sourceContext": {
1468 "description": "Enum value number.", 1186 "$ref": "SourceContext",
1469 "format": "int32", 1187 "description": "The source context."
1470 "type": "integer" 1188 },
1471 } 1189 "syntax": {
1472 }, 1190 "description": "The source syntax.",
1473 "type": "object" 1191 "enum": [
1474 }, 1192 "SYNTAX_PROTO2",
1475 "Service": { 1193 "SYNTAX_PROTO3"
1476 "description": "`Service` is the root object of Google service confi guration schema. It\ndescribes basic information about a service, such as the na me and the\ntitle, and delegates other aspects to sub-sections. Each sub-section is\neither a proto message or a repeated proto message that configures a\nspeci fic aspect, such as auth. See each proto message definition for details.\n\nExam ple:\n\n type: google.api.Service\n config_version: 3\n name: calendar. googleapis.com\n title: Google Calendar API\n apis:\n - name: google.ca lendar.v3.Calendar\n authentication:\n providers:\n - id: google_ca lendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n issuer: https://securetoken.google.com\n rules:\n - selector: \"*\" \n requirements:\n provider_id: google_calendar_auth", 1194 ],
1477 "id": "Service", 1195 "enumDescriptions": [
1478 "properties": { 1196 "Syntax `proto2`.",
1479 "types": { 1197 "Syntax `proto3`."
1480 "description": "A list of all proto message types included i n this API service.\nTypes referenced directly or indirectly by the `apis` are\n automatically included. Messages which are not referenced but\nshall be include d, such as types used by the `google.protobuf.Any` type,\nshould be listed here by name. Example:\n\n types:\n - name: google.protobuf.Int32", 1198 ],
1481 "items": { 1199 "type": "string"
1482 "$ref": "Type" 1200 }
1483 }, 1201 },
1484 "type": "array" 1202 "type": "object"
1485 }, 1203 },
1486 "http": { 1204 "EnableServiceRequest": {
1487 "$ref": "Http", 1205 "description": "Request message for EnableService method.",
1488 "description": "HTTP configuration." 1206 "id": "EnableServiceRequest",
1489 }, 1207 "properties": {
1490 "systemParameters": { 1208 "consumerId": {
1491 "$ref": "SystemParameters", 1209 "description": "The identity of consumer resource which serv ice enablement will be\napplied to.\n\nThe Google Service Management implementat ion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is m ade compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.",
1492 "description": "System parameter configuration." 1210 "type": "string"
1493 }, 1211 }
1494 "backend": { 1212 },
1495 "$ref": "Backend", 1213 "type": "object"
1496 "description": "API backend configuration." 1214 },
1497 }, 1215 "LabelDescriptor": {
1498 "documentation": { 1216 "description": "A description of a label.",
1499 "$ref": "Documentation", 1217 "id": "LabelDescriptor",
1500 "description": "Additional API documentation." 1218 "properties": {
1501 }, 1219 "key": {
1502 "logging": { 1220 "description": "The label key.",
1503 "$ref": "Logging", 1221 "type": "string"
1504 "description": "Logging configuration." 1222 },
1505 }, 1223 "description": {
1506 "monitoredResources": { 1224 "description": "A human-readable description for the label." ,
1507 "description": "Defines the monitored resources used by this service. This is required\nby the Service.monitoring and Service.logging config urations.", 1225 "type": "string"
1508 "items": { 1226 },
1509 "$ref": "MonitoredResourceDescriptor" 1227 "valueType": {
1510 }, 1228 "description": "The type of data that can be assigned to the label.",
1511 "type": "array" 1229 "enum": [
1512 }, 1230 "STRING",
1513 "context": { 1231 "BOOL",
1514 "$ref": "Context", 1232 "INT64"
1515 "description": "Context configuration." 1233 ],
1516 }, 1234 "enumDescriptions": [
1517 "enums": { 1235 "A variable-length string. This is the default.",
1518 "description": "A list of all enum types included in this AP I service. Enums\nreferenced directly or indirectly by the `apis` are automatic ally\nincluded. Enums which are not referenced but shall be included\nshould be listed here by name. Example:\n\n enums:\n - name: google.someapi.v1.Some Enum", 1236 "Boolean; true or false.",
1519 "items": { 1237 "A 64-bit signed integer."
1520 "$ref": "Enum" 1238 ],
1239 "type": "string"
1240 }
1241 },
1242 "type": "object"
1243 },
1244 "Diagnostic": {
1245 "description": "Represents a diagnostic message (error or warning)",
1246 "id": "Diagnostic",
1247 "properties": {
1248 "message": {
1249 "description": "Message describing the error or warning.",
1250 "type": "string"
1251 },
1252 "location": {
1253 "description": "File name and line number of the error or wa rning.",
1254 "type": "string"
1255 },
1256 "kind": {
1257 "description": "The kind of diagnostic information provided. ",
1258 "enum": [
1259 "WARNING",
1260 "ERROR"
1261 ],
1262 "enumDescriptions": [
1263 "Warnings and errors",
1264 "Only errors"
1265 ],
1266 "type": "string"
1267 }
1268 },
1269 "type": "object"
1270 },
1271 "GenerateConfigReportResponse": {
1272 "description": "Response message for GenerateConfigReport method.",
1273 "id": "GenerateConfigReportResponse",
1274 "properties": {
1275 "changeReports": {
1276 "description": "list of ChangeReport, each corresponding to comparison between two\nservice configurations.",
1277 "items": {
1278 "$ref": "ChangeReport"
1521 }, 1279 },
1522 "type": "array" 1280 "type": "array"
1523 }, 1281 },
1524 "id": { 1282 "id": {
1525 "description": "A unique ID for a specific instance of this message, typically assigned\nby the client for tracking purpose. If empty, the s erver may choose to\ngenerate one instead.", 1283 "description": "ID of the service configuration this report belongs to.",
1526 "type": "string" 1284 "type": "string"
1527 }, 1285 },
1528 "usage": { 1286 "diagnostics": {
1529 "$ref": "Usage", 1287 "description": "Errors / Linter warnings associated with the service definition this\nreport\nbelongs to.",
1530 "description": "Configuration controlling usage of this serv ice." 1288 "items": {
1531 }, 1289 "$ref": "Diagnostic"
1532 "metrics": { 1290 },
1533 "description": "Defines the metrics used by this service.", 1291 "type": "array"
1534 "items": { 1292 },
1535 "$ref": "MetricDescriptor" 1293 "serviceName": {
1536 }, 1294 "description": "Name of the service this report belongs to." ,
1537 "type": "array" 1295 "type": "string"
1538 }, 1296 }
1539 "authentication": { 1297 },
1540 "$ref": "Authentication", 1298 "type": "object"
1541 "description": "Auth configuration." 1299 },
1542 }, 1300 "Type": {
1543 "experimental": { 1301 "description": "A protocol buffer message type.",
1544 "$ref": "Experimental", 1302 "id": "Type",
1545 "description": "Experimental configuration." 1303 "properties": {
1546 }, 1304 "fields": {
1547 "control": { 1305 "description": "The list of fields.",
1548 "$ref": "Control", 1306 "items": {
1549 "description": "Configuration for the service control plane. " 1307 "$ref": "Field"
1550 }, 1308 },
1551 "configVersion": { 1309 "type": "array"
1552 "description": "The version of the service configuration. Th e config version may\ninfluence interpretation of the configuration, for example , to\ndetermine defaults. This is documented together with applicable\noptions. The current default for the config version itself is `3`.",
1553 "format": "uint32",
1554 "type": "integer"
1555 },
1556 "monitoring": {
1557 "$ref": "Monitoring",
1558 "description": "Monitoring configuration."
1559 },
1560 "producerProjectId": {
1561 "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.",
1562 "type": "string"
1563 },
1564 "systemTypes": {
1565 "description": "A list of all proto message types included i n this API service.\nIt serves similar purpose as [google.api.Service.types], ex cept that\nthese types are not needed by user-defined APIs. Therefore, they will not\nshow up in the generated discovery doc. This field should only be used\nto define system APIs in ESF.",
1566 "items": {
1567 "$ref": "Type"
1568 },
1569 "type": "array"
1570 },
1571 "visibility": {
1572 "$ref": "Visibility",
1573 "description": "API visibility configuration."
1574 }, 1310 },
1575 "name": { 1311 "name": {
1576 "description": "The DNS address at which this service is ava ilable,\ne.g. `calendar.googleapis.com`.", 1312 "description": "The fully qualified message name.",
1577 "type": "string" 1313 "type": "string"
1578 }, 1314 },
1579 "customError": { 1315 "oneofs": {
1580 "$ref": "CustomError", 1316 "description": "The list of types appearing in `oneof` defin itions in this type.",
1581 "description": "Custom error configuration." 1317 "items": {
1582 }, 1318 "type": "string"
1583 "title": { 1319 },
1584 "description": "The product title associated with this servi ce.", 1320 "type": "array"
1585 "type": "string" 1321 },
1586 }, 1322 "sourceContext": {
1587 "endpoints": { 1323 "$ref": "SourceContext",
1588 "description": "Configuration for network endpoints. If thi s is empty, then an endpoint\nwith the same name as the service is automatically generated to service all\ndefined APIs.", 1324 "description": "The source context."
1589 "items": { 1325 },
1590 "$ref": "Endpoint" 1326 "syntax": {
1591 }, 1327 "description": "The source syntax.",
1592 "type": "array" 1328 "enum": [
1329 "SYNTAX_PROTO2",
1330 "SYNTAX_PROTO3"
1331 ],
1332 "enumDescriptions": [
1333 "Syntax `proto2`.",
1334 "Syntax `proto3`."
1335 ],
1336 "type": "string"
1337 },
1338 "options": {
1339 "description": "The protocol buffer options.",
1340 "items": {
1341 "$ref": "Option"
1342 },
1343 "type": "array"
1344 }
1345 },
1346 "type": "object"
1347 },
1348 "Experimental": {
1349 "description": "Experimental service configuration. These configurat ion options can\nonly be used by whitelisted users.",
1350 "id": "Experimental",
1351 "properties": {
1352 "authorization": {
1353 "$ref": "AuthorizationConfig",
1354 "description": "Authorization configuration."
1355 }
1356 },
1357 "type": "object"
1358 },
1359 "ListServiceConfigsResponse": {
1360 "description": "Response message for ListServiceConfigs method.",
1361 "id": "ListServiceConfigsResponse",
1362 "properties": {
1363 "serviceConfigs": {
1364 "description": "The list of service configuration resources. ",
1365 "items": {
1366 "$ref": "Service"
1367 },
1368 "type": "array"
1369 },
1370 "nextPageToken": {
1371 "description": "The token of the next page of results.",
1372 "type": "string"
1373 }
1374 },
1375 "type": "object"
1376 },
1377 "AuditConfig": {
1378 "description": "Specifies the audit configuration for a service.\nTh e configuration determines which permission types are logged, and what\nidentiti es, if any, are exempted from logging.\nAn AuditConifg must have one or more Aud itLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_t ypes\nspecified in each AuditConfig are enabled, and the exempted_members in eac h\nAuditConfig are exempted.\nExample Policy with multiple AuditConfigs:\n{\n \ "audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_lo g_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"e xempted_members\": [\n \"user:foo@gmail.com\"\n ]\n } ,\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice@googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \" user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n}\nFor fooser vice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRIT E logging.",
1379 "id": "AuditConfig",
1380 "properties": {
1381 "auditLogConfigs": {
1382 "description": "The configuration for logging of each type o f permission.\nNext ID: 4",
1383 "items": {
1384 "$ref": "AuditLogConfig"
1385 },
1386 "type": "array"
1387 },
1388 "exemptedMembers": {
1389 "items": {
1390 "type": "string"
1391 },
1392 "type": "array"
1393 },
1394 "service": {
1395 "description": "Specifies a service that will be enabled for audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com `.\n`allServices` is a special value that covers all services.",
1396 "type": "string"
1397 }
1398 },
1399 "type": "object"
1400 },
1401 "Backend": {
1402 "description": "`Backend` defines the backend configuration for a se rvice.",
1403 "id": "Backend",
1404 "properties": {
1405 "rules": {
1406 "description": "A list of API backend rules that apply to in dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
1407 "items": {
1408 "$ref": "BackendRule"
1409 },
1410 "type": "array"
1411 }
1412 },
1413 "type": "object"
1414 },
1415 "SubmitConfigSourceRequest": {
1416 "description": "Request message for SubmitConfigSource method.",
1417 "id": "SubmitConfigSourceRequest",
1418 "properties": {
1419 "configSource": {
1420 "$ref": "ConfigSource",
1421 "description": "The source configuration for the service."
1422 },
1423 "validateOnly": {
1424 "description": "Optional. If set, this will result in the ge neration of a\n`google.api.Service` configuration based on the `ConfigSource` pr ovided,\nbut the generated config and the sources will NOT be persisted.",
1425 "type": "boolean"
1426 }
1427 },
1428 "type": "object"
1429 },
1430 "AuthorizationConfig": {
1431 "description": "Configuration of authorization.\n\nThis section dete rmines the authorization provider, if unspecified, then no\nauthorization check will be done.\n\nExample:\n\n experimental:\n authorization:\n pr ovider: firebaserules.googleapis.com",
1432 "id": "AuthorizationConfig",
1433 "properties": {
1434 "provider": {
1435 "description": "The name of the authorization provider, such as\nfirebaserules.googleapis.com.",
1436 "type": "string"
1437 }
1438 },
1439 "type": "object"
1440 },
1441 "DocumentationRule": {
1442 "description": "A documentation rule provides information about indi vidual API elements.",
1443 "id": "DocumentationRule",
1444 "properties": {
1445 "deprecationDescription": {
1446 "description": "Deprecation description of the selected elem ent(s). It can be provided if an\nelement is marked as `deprecated`.",
1447 "type": "string"
1448 },
1449 "selector": {
1450 "description": "The selector is a comma-separated list of pa tterns. Each pattern is a\nqualified name of the element which may end in \"*\", indicating a wildcard.\nWildcards are only allowed at the end and for a whole c omponent of the\nqualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"f oo.*.bar\". To\nspecify a default for all applicable elements, the whole pattern \"*\"\nis used.",
1451 "type": "string"
1452 },
1453 "description": {
1454 "description": "Description of the selected API(s).",
1455 "type": "string"
1456 }
1457 },
1458 "type": "object"
1459 },
1460 "CloudAuditOptions": {
1461 "description": "Write a Cloud Audit log",
1462 "id": "CloudAuditOptions",
1463 "properties": {},
1464 "type": "object"
1465 },
1466 "ContextRule": {
1467 "description": "A context rule provides information about the contex t for an individual API\nelement.",
1468 "id": "ContextRule",
1469 "properties": {
1470 "requested": {
1471 "description": "A list of full type names of requested conte xts.",
1472 "items": {
1473 "type": "string"
1474 },
1475 "type": "array"
1476 },
1477 "selector": {
1478 "description": "Selects the methods to which this rule appli es.\n\nRefer to selector for syntax details.",
1479 "type": "string"
1480 },
1481 "provided": {
1482 "description": "A list of full type names of provided contex ts.",
1483 "items": {
1484 "type": "string"
1485 },
1486 "type": "array"
1487 }
1488 },
1489 "type": "object"
1490 },
1491 "SourceContext": {
1492 "description": "`SourceContext` represents information about the sou rce of a\nprotobuf element, like the file in which it is defined.",
1493 "id": "SourceContext",
1494 "properties": {
1495 "fileName": {
1496 "description": "The path-qualified name of the .proto file t hat contained the associated\nprotobuf element. For example: `\"google/protobuf /source_context.proto\"`.",
1497 "type": "string"
1498 }
1499 },
1500 "type": "object"
1501 },
1502 "MetricDescriptor": {
1503 "description": "Defines a metric type and its schema. Once a metric descriptor is created,\ndeleting or altering it stops data collection and makes the metric type's\nexisting data unusable.",
1504 "id": "MetricDescriptor",
1505 "properties": {
1506 "unit": {
1507 "description": "The unit in which the metric value is report ed. It is only applicable\nif the `value_type` is `INT64`, `DOUBLE`, or `DISTRIB UTION`. The\nsupported units are a subset of [The Unified Code for Units of\nMea sure](http://unitsofmeasure.org/ucum.html) standard:\n\n**Basic units (UNIT)**\n \n* `bit` bit\n* `By` byte\n* `s` second\n* `min` minute\n* `h` h our\n* `d` day\n\n**Prefixes (PREFIX)**\n\n* `k` kilo (10**3)\n* `M` mega (10**6)\n* `G` giga (10**9)\n* `T` tera (10**12)\n* `P ` peta (10**15)\n* `E` exa (10**18)\n* `Z` zetta (10**21)\n * `Y` yotta (10**24)\n* `m` milli (10**-3)\n* `u` micro (10**- 6)\n* `n` nano (10**-9)\n* `p` pico (10**-12)\n* `f` femto ( 10**-15)\n* `a` atto (10**-18)\n* `z` zepto (10**-21)\n* `y` yo cto (10**-24)\n* `Ki` kibi (2**10)\n* `Mi` mebi (2**20)\n* `Gi` gibi (2**30)\n* `Ti` tebi (2**40)\n\n**Grammar**\n\nThe grammar includ es the dimensionless unit `1`, such as `1/s`.\n\nThe grammar also includes these connectors:\n\n* `/` division (as an infix operator, e.g. `1/s`).\n* `.` multiplication (as an infix operator, e.g. `GBy.d`)\n\nThe grammar for a unit is as follows:\n\n Expression = Component { \".\" Component } { \"/\" Component } ;\n\n Component = [ PREFIX ] UNIT [ Annotation ]\n | Annotati on\n | \"1\"\n ;\n\n Annotation = \"{\" NAME \"}\" ;\n\nNotes:\n\n* `Annotation` is just a comment if it follows a `UNIT` and is\n equivalent to `1` if it is used alone. For examples,\n `{requests}/s == 1/s` , `By{transmitted}/s == By/s`.\n* `NAME` is a sequence of non-blank printable AS CII characters not\n containing '{' or '}'.",
1508 "type": "string"
1509 },
1510 "labels": {
1511 "description": "The set of labels that can be used to descri be a specific\ninstance of this metric type. For example, the\n`appengine.google apis.com/http/server/response_latencies` metric\ntype has a label for the HTTP r esponse code, `response_code`, so\nyou can look at latencies for successful resp onses or just\nfor responses that failed.",
1512 "items": {
1513 "$ref": "LabelDescriptor"
1514 },
1515 "type": "array"
1516 },
1517 "name": {
1518 "description": "The resource name of the metric descriptor. Depending on the\nimplementation, the name typically includes: (1) the parent re source name\nthat defines the scope of the metric type or of its data; and (2) t he\nmetric's URL-encoded type, which also appears in the `type` field of this\nd escriptor. For example, following is the resource name of a custom\nmetric withi n the GCP project `my-project-id`:\n\n \"projects/my-project-id/metricDescrip tors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"",
1519 "type": "string"
1520 },
1521 "type": {
1522 "description": "The metric type, including its DNS name pref ix. The type is not\nURL-encoded. All user-defined custom metric types have the DNS name\n`custom.googleapis.com`. Metric types should use a natural hierarchi cal\ngrouping. For example:\n\n \"custom.googleapis.com/invoice/paid/amount\" \n \"appengine.googleapis.com/http/server/response_latencies\"",
1523 "type": "string"
1524 },
1525 "valueType": {
1526 "description": "Whether the measurement is an integer, a flo ating-point number, etc.\nSome combinations of `metric_kind` and `value_type` mi ght not be supported.",
1527 "enum": [
1528 "VALUE_TYPE_UNSPECIFIED",
1529 "BOOL",
1530 "INT64",
1531 "DOUBLE",
1532 "STRING",
1533 "DISTRIBUTION",
1534 "MONEY"
1535 ],
1536 "enumDescriptions": [
1537 "Do not use this default value.",
1538 "The value is a boolean.\nThis value type can be used on ly if the metric kind is `GAUGE`.",
1539 "The value is a signed 64-bit integer.",
1540 "The value is a double precision floating point number." ,
1541 "The value is a text string.\nThis value type can be use d only if the metric kind is `GAUGE`.",
1542 "The value is a `Distribution`.",
1543 "The value is money."
1544 ],
1545 "type": "string"
1546 },
1547 "metricKind": {
1548 "description": "Whether the metric records instantaneous val ues, changes to a value, etc.\nSome combinations of `metric_kind` and `value_typ e` might not be supported.",
1549 "enum": [
1550 "METRIC_KIND_UNSPECIFIED",
1551 "GAUGE",
1552 "DELTA",
1553 "CUMULATIVE"
1554 ],
1555 "enumDescriptions": [
1556 "Do not use this default value.",
1557 "An instantaneous measurement of a value.",
1558 "The change in a value during a time interval.",
1559 "A value accumulated over a time interval. Cumulative\n measurements in a time series should have the same start time\nand increasing en d times, until an event resets the cumulative\nvalue to zero and sets a new star t time for the following\npoints."
1560 ],
1561 "type": "string"
1562 },
1563 "description": {
1564 "description": "A detailed description of the metric, which can be used in documentation.",
1565 "type": "string"
1566 },
1567 "displayName": {
1568 "description": "A concise name for the metric, which can be displayed in user interfaces.\nUse sentence case without an ending period, for e xample \"Request count\".",
1569 "type": "string"
1570 }
1571 },
1572 "type": "object"
1573 },
1574 "ListServicesResponse": {
1575 "description": "Response message for `ListServices` method.",
1576 "id": "ListServicesResponse",
1577 "properties": {
1578 "services": {
1579 "description": "The returned services will only have the nam e field set.",
1580 "items": {
1581 "$ref": "ManagedService"
1582 },
1583 "type": "array"
1584 },
1585 "nextPageToken": {
1586 "description": "Token that can be passed to `ListServices` t o resume a paginated query.",
1587 "type": "string"
1588 }
1589 },
1590 "type": "object"
1591 },
1592 "Endpoint": {
1593 "description": "`Endpoint` describes a network endpoint that serves a set of APIs.\nA service may expose any number of endpoints, and all endpoints share the\nsame service configuration, such as quota configuration and monitorin g\nconfiguration.\n\nExample service configuration:\n\n name: library-example .googleapis.com\n endpoints:\n # Below entry makes 'google.example.libra ry.v1.Library'\n # API be served from endpoint address library-example.goog leapis.com.\n # It also allows HTTP OPTIONS calls to be passed to the backe nd, for\n # it to decide whether the subsequent cross-origin request is\n # allowed to proceed.\n - name: library-example.googleapis.com\n all ow_cors: true",
1594 "id": "Endpoint",
1595 "properties": {
1596 "aliases": {
1597 "description": "DEPRECATED: This field is no longer supporte d. Instead of using aliases,\nplease specify multiple google.api.Endpoint for ea ch of the intented\nalias.\n\nAdditional names that this endpoint will be hosted on.",
1598 "items": {
1599 "type": "string"
1600 },
1601 "type": "array"
1602 },
1603 "features": {
1604 "description": "The list of features enabled on this endpoin t.",
1605 "items": {
1606 "type": "string"
1607 },
1608 "type": "array"
1609 },
1610 "allowCors": {
1611 "description": "Allowing\n[CORS](https://en.wikipedia.org/wi ki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the ba ckends served from this endpoint to\nreceive and respond to HTTP OPTIONS request s. The response will be used by\nthe browser to determine whether the subsequent cross-origin request is\nallowed to proceed.",
1612 "type": "boolean"
1613 },
1614 "name": {
1615 "description": "The canonical name of this endpoint.",
1616 "type": "string"
1593 }, 1617 },
1594 "apis": { 1618 "apis": {
1595 "description": "A list of API interfaces exported by this se rvice. Only the `name` field\nof the google.protobuf.Api needs to be provided by the configuration\nauthor, as the remaining fields will be derived from the IDL during the\nnormalization process. It is an error to specify an API interface h ere\nwhich cannot be resolved against the associated IDL files.", 1619 "description": "The list of APIs served by this endpoint.",
1596 "items": { 1620 "items": {
1597 "$ref": "Api" 1621 "type": "string"
1598 }, 1622 },
1599 "type": "array" 1623 "type": "array"
1600 }, 1624 }
1601 "logs": { 1625 },
1602 "description": "Defines the logs used by this service.", 1626 "type": "object"
1603 "items": { 1627 },
1604 "$ref": "LogDescriptor" 1628 "OAuthRequirements": {
1605 }, 1629 "description": "OAuth scopes are a way to define data and permission s on data. For example,\nthere are scopes defined for \"Read-only access to Goog le Calendar\" and\n\"Access to Cloud Platform\". Users can consent to a scope fo r an application,\ngiving it permission to access that data on their behalf.\n\n OAuth scope specifications should be fairly coarse grained; a user will need\nto see and understand the text description of what your scope means.\n\nIn most ca ses: use one or at most two OAuth scopes for an entire family of\nproducts. If y our product has multiple APIs, you should probably be sharing\nthe OAuth scope a cross all of those APIs.\n\nWhen you need finer grained OAuth consent screens: t alk with your product\nmanagement about how developers will use them in practice .\n\nPlease note that even though each of the canonical scopes is enough for a\n request to be accepted and passed to the backend, a request can still fail\ndue to the backend requiring additional scopes or permissions.",
1606 "type": "array" 1630 "id": "OAuthRequirements",
1607 } 1631 "properties": {
1608 }, 1632 "canonicalScopes": {
1609 "type": "object" 1633 "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 ",
1610 }, 1634 "type": "string"
1611 "CustomHttpPattern": { 1635 }
1612 "description": "A custom pattern is used for defining custom HTTP ve rb.", 1636 },
1613 "id": "CustomHttpPattern", 1637 "type": "object"
1614 "properties": { 1638 },
1615 "kind": { 1639 "TestIamPermissionsResponse": {
1616 "description": "The name of this custom HTTP verb.", 1640 "description": "Response message for `TestIamPermissions` method.",
1617 "type": "string" 1641 "id": "TestIamPermissionsResponse",
1618 }, 1642 "properties": {
1619 "path": { 1643 "permissions": {
1620 "description": "The path matched by this custom verb.", 1644 "description": "A subset of `TestPermissionsRequest.permissi ons` that the caller is\nallowed.",
1621 "type": "string" 1645 "items": {
1622 } 1646 "type": "string"
1623 }, 1647 },
1624 "type": "object"
1625 },
1626 "OperationMetadata": {
1627 "description": "The metadata associated with a long running operatio n resource.",
1628 "id": "OperationMetadata",
1629 "properties": {
1630 "startTime": {
1631 "description": "The start time of the operation.",
1632 "format": "google-datetime",
1633 "type": "string"
1634 },
1635 "resourceNames": {
1636 "description": "The full name of the resources that this ope ration is directly\nassociated with.",
1637 "items": {
1638 "type": "string"
1639 },
1640 "type": "array"
1641 },
1642 "steps": {
1643 "description": "Detailed status information for each step. T he order is undetermined.",
1644 "items": {
1645 "$ref": "Step"
1646 },
1647 "type": "array"
1648 },
1649 "progressPercentage": {
1650 "description": "Percentage of completion of this operation, ranging from 0 to 100.",
1651 "format": "int32",
1652 "type": "integer"
1653 }
1654 },
1655 "type": "object"
1656 },
1657 "SystemParameterRule": {
1658 "description": "Define a system parameter rule mapping system parame ter definitions to\nmethods.",
1659 "id": "SystemParameterRule",
1660 "properties": {
1661 "parameters": {
1662 "description": "Define parameters. Multiple names may be def ined for a parameter.\nFor a given method call, only one of them should be used. If multiple\nnames are used the behavior is implementation-dependent.\nIf none of the specified names are present the behavior is\nparameter-dependent.",
1663 "items": {
1664 "$ref": "SystemParameter"
1665 },
1666 "type": "array"
1667 },
1668 "selector": {
1669 "description": "Selects the methods to which this rule appli es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta x details.",
1670 "type": "string"
1671 }
1672 },
1673 "type": "object"
1674 },
1675 "HttpRule": {
1676 "description": "`HttpRule` defines the mapping of an RPC method to o ne or more HTTP\nREST APIs. The mapping determines what portions of the request \nmessage are populated from the path, query parameters, or body of\nthe HTTP re quest. The mapping is typically specified as an\n`google.api.http` annotation, see \"google/api/annotations.proto\"\nfor details.\n\nThe mapping consists of a field specifying the path template and\nmethod kind. The path template can refe r to fields in the request\nmessage, as in the example below which describes a R EST GET\noperation on a resource collection of messages:\n\n\n service Messag ing {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n opti on (google.api.http).get = \"/v1/messages/{message_id}/{sub.subfield}\";\n }\n }\n message GetMessageRequest {\n message SubMessage {\n s tring subfield = 1;\n }\n string message_id = 1; // mapped to the URL\ n SubMessage sub = 2; // `sub.subfield` is url-mapped\n }\n messag e Message {\n string text = 1; // content of the resource\n }\n\nThe sam e http annotation can alternatively be expressed inside the\n`GRPC API Configura tion` YAML file.\n\n http:\n rules:\n - selector: <proto_package_ name>.Messaging.GetMessage\n get: /v1/messages/{message_id}/{sub.subfie ld}\n\nThis definition enables an automatic, bidrectional mapping of HTTP\nJSON to RPC. Example:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456/foo` | `G etMessage(message_id: \"123456\" sub: SubMessage(subfield: \"foo\"))`\n\nIn gene ral, not only fields but also field paths can be referenced\nfrom a path pattern . Fields mapped to the path pattern cannot be\nrepeated and must have a primitiv e (non-message) type.\n\nAny fields in the request message which are not bound b y the path\npattern automatically become (optional) HTTP query\nparameters. Assu me the following definition of the request message:\n\n\n message GetMessageR equest {\n message SubMessage {\n string subfield = 1;\n }\n string message_id = 1; // mapped to the URL\n int64 revision = 2; // becomes a parameter\n SubMessage sub = 3; // `sub.subfield` becomes a pa rameter\n }\n\n\nThis enables a HTTP JSON to RPC mapping as below:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMe ssage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))`\n\ nNote that fields which are mapped to HTTP parameters must have a\nprimitive typ e or a repeated primitive type. Message types are not\nallowed. In the case of a repeated type, the parameter can be\nrepeated in the URL, as in `...?param=A&pa ram=B`.\n\nFor HTTP method kinds which allow a request body, the `body` field\ns pecifies the mapping. Consider a REST update method on the\nmessage resource col lection:\n\n\n service Messaging {\n rpc UpdateMessage(UpdateMessageRequ est) returns (Message) {\n option (google.api.http) = {\n put: \ "/v1/messages/{message_id}\"\n body: \"message\"\n };\n }\n }\n message UpdateMessageRequest {\n string message_id = 1; // mappe d to the URL\n Message message = 2; // mapped to the body\n }\n\n\nThe following HTTP JSON to RPC mapping is enabled, where the\nrepresentation of the JSON in the request body is determined by\nprotos JSON encoding:\n\nHTTP | RPC\ n-----|-----\n`PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(m essage_id: \"123456\" message { text: \"Hi!\" })`\n\nThe special name `*` can be used in the body mapping to define that\nevery field not bound by the path temp late should be mapped to the\nrequest body. This enables the following alternat ive definition of\nthe update method:\n\n service Messaging {\n rpc Upda teMessage(Message) returns (Message) {\n option (google.api.http) = {\n put: \"/v1/messages/{message_id}\"\n body: \"*\"\n };\n }\n }\n message Message {\n string message_id = 1;\n string text = 2;\n }\n\n\nThe following HTTP JSON to RPC mapping is enabled:\n\nHTT P | RPC\n-----|-----\n`PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateM essage(message_id: \"123456\" text: \"Hi!\")`\n\nNote that when using `*` in the body mapping, it is not possible to\nhave HTTP parameters, as all fields not bo und by the path end in\nthe body. This makes this option more rarely used in pra ctice of\ndefining REST APIs. The common usage of `*` is in custom methods\nwhic h don't use the URL at all for transferring data.\n\nIt is possible to define mu ltiple HTTP methods for one RPC by using\nthe `additional_bindings` option. Exam ple:\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n option (google.api.http) = {\n get: \"/v1/message s/{message_id}\"\n additional_bindings {\n get: \"/v1/users/ {user_id}/messages/{message_id}\"\n }\n };\n }\n }\n message GetMessageRequest {\n string message_id = 1;\n string user_id = 2;\n }\n\n\nThis enables the following two alternative HTTP JSON to RPC\nma ppings:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456` | `GetMessage(mess age_id: \"123456\")`\n`GET /v1/users/me/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n\n# Rules for HTTP mapping\n\nThe rules for map ping HTTP path, query parameters, and body fields\nto the request message are as follows:\n\n1. The `body` field specifies either `*` or a field path, or is\n omitted. If omitted, it assumes there is no HTTP body.\n2. Leaf fields (recursi ve expansion of nested messages in the\n request) can be classified into three types:\n (a) Matched in the URL template.\n (b) Covered by body (if body is `*`, everything except (a) fields;\n else everything under the body fi eld)\n (c) All other fields.\n3. URL query parameters found in the HTTP reque st are mapped to (c) fields.\n4. Any body sent with an HTTP request can contain only (b) fields.\n\nThe syntax of the path template is as follows:\n\n Templa te = \"/\" Segments [ Verb ] ;\n Segments = Segment { \"/\" Segment } ;\n Segment = \"*\" | \"**\" | LITERAL | Variable ;\n Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n FieldPath = IDENT { \".\" IDENT } ;\n Verb = \":\" LITERAL ;\n\nThe syntax `*` matches a single path segment. It follows the semantics of\n[RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String\nExpansion.\n\nThe syntax `**` matches zero or more path segments . It follows the semantics\nof [RFC 6570](https://tools.ietf.org/html/rfc6570) S ection 3.2.3 Reserved\nExpansion. NOTE: it must be the last segment in the path except the Verb.\n\nThe syntax `LITERAL` matches literal text in the URL path.\n \nThe syntax `Variable` matches the entire path as specified by its template;\nt his nested template must not contain further variables. If a variable\nmatches a single path segment, its template may be omitted, e.g. `{var}`\nis equivalent t o `{var=*}`.\n\nNOTE: the field paths in variables and in the `body` must not re fer to\nrepeated fields or map fields.\n\nUse CustomHttpPattern to specify any H TTP method that is not included in the\n`pattern` field, such as HEAD, or \"*\" to leave the HTTP method unspecified for\na given URL path rule. The wild-card r ule is useful for services that provide\ncontent to Web (HTML) clients.",
1677 "id": "HttpRule",
1678 "properties": {
1679 "mediaUpload": {
1680 "$ref": "MediaUpload",
1681 "description": "Use this only for Scotty Requests. Do not us e this for media support using\nBytestream, add instead\n[][google.bytestream.Re stByteStream] as an API to your\nconfiguration for Bytestream methods."
1682 },
1683 "selector": {
1684 "description": "Selects methods to which this rule applies.\ n\nRefer to selector for syntax details.",
1685 "type": "string"
1686 },
1687 "custom": {
1688 "$ref": "CustomHttpPattern",
1689 "description": "Custom pattern is used for defining custom v erbs."
1690 },
1691 "patch": {
1692 "description": "Used for updating a resource.",
1693 "type": "string"
1694 },
1695 "get": {
1696 "description": "Used for listing and getting information abo ut resources.",
1697 "type": "string"
1698 },
1699 "put": {
1700 "description": "Used for updating a resource.",
1701 "type": "string"
1702 },
1703 "delete": {
1704 "description": "Used for deleting a resource.",
1705 "type": "string"
1706 },
1707 "body": {
1708 "description": "The name of the request field whose value is mapped to the HTTP body, or\n`*` for mapping all fields not captured by the pat h pattern to the HTTP\nbody. NOTE: the referred field must not be a repeated fie ld and must be\npresent at the top-level of request message type.",
1709 "type": "string"
1710 },
1711 "post": {
1712 "description": "Used for creating a resource.",
1713 "type": "string"
1714 },
1715 "mediaDownload": {
1716 "$ref": "MediaDownload",
1717 "description": "Use this only for Scotty Requests. Do not us e this for bytestream methods.\nFor media support, add instead [][google.bytestr eam.RestByteStream] as an\nAPI to your configuration."
1718 },
1719 "additionalBindings": {
1720 "description": "Additional HTTP bindings for the selector. N ested bindings must\nnot contain an `additional_bindings` field themselves (that is,\nthe nesting may only be one level deep).",
1721 "items": {
1722 "$ref": "HttpRule"
1723 },
1724 "type": "array"
1725 },
1726 "responseBody": {
1727 "description": "The name of the response field whose value i s mapped to the HTTP body of\nresponse. Other response fields are ignored. This field is optional. When\nnot set, the response message will be used as HTTP body of response.\nNOTE: the referred field must be not a repeated field and must be present\nat the top-level of response message type.",
1728 "type": "string"
1729 }
1730 },
1731 "type": "object"
1732 },
1733 "VisibilityRule": {
1734 "description": "A visibility rule provides visibility configuration for an individual API\nelement.",
1735 "id": "VisibilityRule",
1736 "properties": {
1737 "restriction": {
1738 "description": "A comma-separated list of visibility labels that apply to the `selector`.\nAny of the listed labels can be used to grant the visibility.\n\nIf a rule has multiple labels, removing one of the labels but no t all of\nthem can break clients.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: GOOGLE_INTERNAL, TRUSTED_TESTER\n\nRemoving GOOGLE_INTERNAL from this restrictio n will break clients that\nrely on this method and only had access to it through GOOGLE_INTERNAL.",
1739 "type": "string"
1740 },
1741 "selector": {
1742 "description": "Selects methods, messages, fields, enums, et c. to which this rule applies.\n\nRefer to selector for syntax details.",
1743 "type": "string"
1744 }
1745 },
1746 "type": "object"
1747 },
1748 "MonitoringDestination": {
1749 "description": "Configuration of a specific monitoring destination ( the producer project\nor the consumer project).",
1750 "id": "MonitoringDestination",
1751 "properties": {
1752 "monitoredResource": {
1753 "description": "The monitored resource type. The type must b e defined in\nService.monitored_resources section.",
1754 "type": "string"
1755 },
1756 "metrics": {
1757 "description": "Names of the metrics to report to this monit oring destination.\nEach name must be defined in Service.metrics section.",
1758 "items": {
1759 "type": "string"
1760 },
1761 "type": "array" 1648 "type": "array"
1762 } 1649 }
1763 }, 1650 },
1764 "type": "object" 1651 "type": "object"
1765 }, 1652 },
1766 "Visibility": { 1653 "GetIamPolicyRequest": {
1767 "description": "`Visibility` defines restrictions for the visibility of service\nelements. Restrictions are specified using visibility labels\n(e.g ., TRUSTED_TESTER) that are elsewhere linked to users and projects.\n\nUsers and projects can have access to more than one visibility label. The\neffective visi bility for multiple labels is the union of each label's\nelements, plus any unre stricted elements.\n\nIf an element and its parents have no restrictions, visibi lity is\nunconditionally granted.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: TRUSTED_TESTER\n - selector: google.calendar.Calendar.Delegate\n res triction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for t he restricted methods\nEnhancedSearch and Delegate.", 1654 "description": "Request message for `GetIamPolicy` method.",
1768 "id": "Visibility", 1655 "id": "GetIamPolicyRequest",
1769 "properties": { 1656 "properties": {},
1657 "type": "object"
1658 },
1659 "Usage": {
1660 "description": "Configuration controlling usage of a service.",
1661 "id": "Usage",
1662 "properties": {
1663 "producerNotificationChannel": {
1664 "description": "The full resource name of a channel used for sending notifications to the\nservice producer.\n\nGoogle Service Management cu rrently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) a s a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name fo rmat\ndocumented in https://cloud.google.com/pubsub/docs/overview.",
1665 "type": "string"
1666 },
1770 "rules": { 1667 "rules": {
1771 "description": "A list of visibility rules that apply to ind ividual API elements.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.", 1668 "description": "A list of usage rules that apply to individu al API methods.\n\n**NOTE:** All service configuration rules follow \"last one w ins\" order.",
1772 "items": { 1669 "items": {
1773 "$ref": "VisibilityRule" 1670 "$ref": "UsageRule"
1774 }, 1671 },
1775 "type": "array" 1672 "type": "array"
1776 } 1673 },
1777 }, 1674 "requirements": {
1778 "type": "object" 1675 "description": "Requirements that must be satisfied before a consumer project can use the\nservice. Each requirement is of the form <service .name>/<requirement-id>;\nfor example 'serviceusage.googleapis.com/billing-enabl ed'.",
1779 }, 1676 "items": {
1780 "SystemParameters": { 1677 "type": "string"
1781 "description": "### System parameter configuration\n\nA system param eter is a special kind of parameter defined by the API\nsystem, not by an indivi dual API. It is typically mapped to an HTTP header\nand/or a URL query parameter . This configuration specifies which methods\nchange the names of the system par ameters.", 1678 },
1782 "id": "SystemParameters", 1679 "type": "array"
1680 }
1681 },
1682 "type": "object"
1683 },
1684 "Context": {
1685 "description": "`Context` defines which contexts an API requests.\n\ nExample:\n\n context:\n rules:\n - selector: \"*\"\n reques ted:\n - google.rpc.context.ProjectContext\n - google.rpc.context. OriginContext\n\nThe above specifies that all methods in the API request\n`googl e.rpc.context.ProjectContext` and\n`google.rpc.context.OriginContext`.\n\nAvaila ble context types are defined in package\n`google.rpc.context`.",
1686 "id": "Context",
1783 "properties": { 1687 "properties": {
1784 "rules": { 1688 "rules": {
1785 "description": "Define system parameters.\n\nThe parameters defined here will override the default parameters\nimplemented by the system. If this field is missing from the service\nconfig, default system parameters will be used. Default system parameters\nand names is implementation-dependent.\n\nEx ample: define api key for all methods\n\n system_parameters\n rules:\n - selector: \"*\"\n parameters:\n - name: api_key\n url_query_parameter: api_key\n\n\nExample: define 2 api key names for a specific method.\n\n system_parameters\n rules:\n - selector: \"/ListShelves\"\n parameters:\n - name: api_key\n http_header: Api-Key1\n - name: api_key\n http_heade r: Api-Key2\n\n**NOTE:** All service configuration rules follow \"last one wins\ " order.", 1689 "description": "A list of RPC context rules that apply to in dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
1786 "items": { 1690 "items": {
1787 "$ref": "SystemParameterRule" 1691 "$ref": "ContextRule"
1788 }, 1692 },
1789 "type": "array" 1693 "type": "array"
1790 } 1694 }
1791 }, 1695 },
1792 "type": "object" 1696 "type": "object"
1793 }, 1697 },
1794 "ConfigChange": { 1698 "Rule": {
1795 "description": "Output generated from semantically comparing two ver sions of a service\nconfiguration.\n\nIncludes detailed information about a fiel d that have changed with\napplicable advice about potential consequences for the change, such as\nbackwards-incompatibility.", 1699 "description": "A rule to be applied in a Policy.",
1796 "id": "ConfigChange", 1700 "id": "Rule",
1797 "properties": { 1701 "properties": {
1798 "changeType": { 1702 "logConfig": {
1799 "description": "The type for this change, either ADDED, REMO VED, or MODIFIED.", 1703 "description": "The config returned to callers of tech.iam.I AM.CheckPolicy for any entries\nthat match the LOG action.",
1704 "items": {
1705 "$ref": "LogConfig"
1706 },
1707 "type": "array"
1708 },
1709 "in": {
1710 "description": "If one or more 'in' clauses are specified, t he rule matches if\nthe PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.",
1711 "items": {
1712 "type": "string"
1713 },
1714 "type": "array"
1715 },
1716 "permissions": {
1717 "description": "A permission is a string of form '<service>. <resource type>.<verb>'\n(e.g., 'storage.buckets.list'). A value of '*' matches all permissions,\nand a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.",
1718 "items": {
1719 "type": "string"
1720 },
1721 "type": "array"
1722 },
1723 "action": {
1724 "description": "Required",
1800 "enum": [ 1725 "enum": [
1801 "CHANGE_TYPE_UNSPECIFIED", 1726 "NO_ACTION",
1802 "ADDED", 1727 "ALLOW",
1803 "REMOVED", 1728 "ALLOW_WITH_LOG",
1804 "MODIFIED" 1729 "DENY",
1730 "DENY_WITH_LOG",
1731 "LOG"
1805 ], 1732 ],
1806 "enumDescriptions": [ 1733 "enumDescriptions": [
1807 "No value was provided.", 1734 "Default no action.",
1808 "The changed object exists in the 'new' service configur ation, but not\nin the 'old' service configuration.", 1735 "Matching 'Entries' grant access.",
1809 "The changed object exists in the 'old' service configur ation, but not\nin the 'new' service configuration.", 1736 "Matching 'Entries' grant access and the caller promises to log\nthe request per the returned log_configs.",
1810 "The changed object exists in both service configuration s, but its value\nis different." 1737 "Matching 'Entries' deny access.",
1811 ], 1738 "Matching 'Entries' deny access and the caller promises to log\nthe request per the returned log_configs.",
1812 "type": "string" 1739 "Matching 'Entries' tell IAM.Check callers to generate l ogs."
1813 }, 1740 ],
1814 "element": { 1741 "type": "string"
1815 "description": "Object hierarchy path to the change, with le vels separated by a '.'\ncharacter. For repeated fields, an applicable unique id entifier field is\nused for the index (usually selector, name, or id). For maps, the term\n'key' is used. If the field has no unique identifier, the numeric ind ex\nis used.\nExamples:\n- visibility.rules[selector==\"google.LibraryService.Cr eateBook\"].restriction\n- quota.metric_rules[selector==\"google\"].metric_costs [key==\"reads\"].value\n- logging.producer_destinations[0]", 1742 },
1816 "type": "string" 1743 "notIn": {
1817 }, 1744 "description": "If one or more 'not_in' clauses are specifie d, the rule matches\nif the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entri es.\nThe format for in and not_in entries is the same as for members in a\nBindi ng (see google/iam/v1/policy.proto).",
1818 "oldValue": { 1745 "items": {
1819 "description": "Value of the changed object in the old Servi ce configuration,\nin JSON format. This field will not be populated if ChangeTyp e == ADDED.", 1746 "type": "string"
1820 "type": "string" 1747 },
1821 }, 1748 "type": "array"
1822 "advices": { 1749 },
1823 "description": "Collection of advice provided for this chang e, useful for determining the\npossible impact of this change.", 1750 "description": {
1824 "items": { 1751 "description": "Human-readable description of the rule.",
1825 "$ref": "Advice" 1752 "type": "string"
1826 }, 1753 },
1827 "type": "array" 1754 "conditions": {
1828 }, 1755 "description": "Additional restrictions that must be met",
1829 "newValue": { 1756 "items": {
1830 "description": "Value of the changed object in the new Servi ce configuration,\nin JSON format. This field will not be populated if ChangeTyp e == REMOVED.", 1757 "$ref": "Condition"
1831 "type": "string" 1758 },
1832 } 1759 "type": "array"
1833 }, 1760 }
1834 "type": "object" 1761 },
1835 }, 1762 "type": "object"
1836 "Rollout": { 1763 },
1837 "description": "A rollout resource that defines how service configur ation versions are pushed\nto control plane systems. Typically, you create a new version of the\nservice config, and then create a Rollout to push the service c onfig.", 1764 "LogConfig": {
1838 "id": "Rollout", 1765 "description": "Specifies what kind of log the caller must write",
1839 "properties": { 1766 "id": "LogConfig",
1840 "deleteServiceStrategy": { 1767 "properties": {
1841 "$ref": "DeleteServiceStrategy", 1768 "counter": {
1842 "description": "The strategy associated with a rollout to de lete a `ManagedService`.\nReadonly." 1769 "$ref": "CounterOptions",
1843 }, 1770 "description": "Counter options."
1844 "createTime": { 1771 },
1845 "description": "Creation time of the rollout. Readonly.", 1772 "dataAccess": {
1846 "format": "google-datetime", 1773 "$ref": "DataAccessOptions",
1847 "type": "string" 1774 "description": "Data access options."
1848 }, 1775 },
1849 "status": { 1776 "cloudAudit": {
1850 "description": "The status of this rollout. Readonly. In cas e of a failed rollout,\nthe system will automatically rollback to the current Ro llout\nversion. Readonly.", 1777 "$ref": "CloudAuditOptions",
1778 "description": "Cloud audit options."
1779 }
1780 },
1781 "type": "object"
1782 },
1783 "LogDescriptor": {
1784 "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",
1785 "id": "LogDescriptor",
1786 "properties": {
1787 "name": {
1788 "description": "The name of the log. It must be less than 51 2 characters long and can\ninclude the following characters: upper- and lower-ca se alphanumeric\ncharacters [A-Za-z0-9], and punctuation characters including\ns lash, underscore, hyphen, period [/_-.].",
1789 "type": "string"
1790 },
1791 "description": {
1792 "description": "A human-readable description of this log. Th is information appears in\nthe documentation and can contain details.",
1793 "type": "string"
1794 },
1795 "displayName": {
1796 "description": "The human-readable name for this log. This i nformation appears on\nthe user interface and should be concise.",
1797 "type": "string"
1798 },
1799 "labels": {
1800 "description": "The set of labels that are available to desc ribe a specific log entry.\nRuntime requests that contain labels not specified h ere are\nconsidered invalid.",
1801 "items": {
1802 "$ref": "LabelDescriptor"
1803 },
1804 "type": "array"
1805 }
1806 },
1807 "type": "object"
1808 },
1809 "ConfigFile": {
1810 "description": "Generic specification of a source configuration file ",
1811 "id": "ConfigFile",
1812 "properties": {
1813 "filePath": {
1814 "description": "The file name of the configuration file (ful l or relative path).",
1815 "type": "string"
1816 },
1817 "fileType": {
1818 "description": "The type of configuration file this represen ts.",
1851 "enum": [ 1819 "enum": [
1852 "ROLLOUT_STATUS_UNSPECIFIED", 1820 "FILE_TYPE_UNSPECIFIED",
1853 "IN_PROGRESS", 1821 "SERVICE_CONFIG_YAML",
1854 "SUCCESS", 1822 "OPEN_API_JSON",
1855 "CANCELLED", 1823 "OPEN_API_YAML",
1856 "FAILED", 1824 "FILE_DESCRIPTOR_SET_PROTO"
1857 "PENDING"
1858 ], 1825 ],
1859 "enumDescriptions": [ 1826 "enumDescriptions": [
1860 "No status specified.", 1827 "Unknown file type.",
1861 "The Rollout is in progress.", 1828 "YAML-specification of service.",
1862 "The Rollout has completed successfully.", 1829 "OpenAPI specification, serialized in JSON.",
1863 "The Rollout has been cancelled. This can happen if you have overlapping\nRollout pushes, and the previous ones will be cancelled.", 1830 "OpenAPI specification, serialized in YAML.",
1864 "The Rollout has failed. It is typically caused by confi guration errors.", 1831 "FileDescriptorSet, generated by protoc.\n\nTo generate, use protoc with imports and source info included.\nFor an example test.proto fi le, the following command would put the value\nin a new file named out.pb.\n\n$p rotoc --include_imports --include_source_info test.proto -o out.pb"
1865 "The Rollout has not started yet and is pending for exec ution." 1832 ],
1866 ], 1833 "type": "string"
1867 "type": "string" 1834 },
1868 }, 1835 "fileContents": {
1836 "description": "The bytes that constitute the file.",
1837 "format": "byte",
1838 "type": "string"
1839 }
1840 },
1841 "type": "object"
1842 },
1843 "MonitoredResourceDescriptor": {
1844 "description": "An object that describes the schema of a MonitoredRe source object using a\ntype name and a set of labels. For example, the monitore d resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\" gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zo ne\"` to identify particular VM instances.\n\nDifferent APIs can support differe nt monitored resource types. APIs generally\nprovide a `list` method that return s the monitored resource descriptors used\nby the API.",
1845 "id": "MonitoredResourceDescriptor",
1846 "properties": {
1847 "labels": {
1848 "description": "Required. A set of labels used to describe i nstances of this monitored\nresource type. For example, an individual Google Clo ud SQL database is\nidentified by values for the labels `\"database_id\"` and `\ "zone\"`.",
1849 "items": {
1850 "$ref": "LabelDescriptor"
1851 },
1852 "type": "array"
1853 },
1854 "name": {
1855 "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{ty pe}\"` where\n{type} is the value of the `type` field in this object and\n{proje ct_id} is a project ID that provides API-specific context for\naccessing the typ e. APIs that do not use project information can use the\nresource name format ` \"monitoredResourceDescriptors/{type}\"`.",
1856 "type": "string"
1857 },
1858 "displayName": {
1859 "description": "Optional. A concise name for the monitored r esource type that might be\ndisplayed in user interfaces. It should be a Title C ased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Go ogle Cloud SQL Database\"`.",
1860 "type": "string"
1861 },
1862 "description": {
1863 "description": "Optional. A detailed description of the moni tored resource type that might\nbe used in documentation.",
1864 "type": "string"
1865 },
1866 "type": {
1867 "description": "Required. The monitored resource type. For e xample, the type\n`\"cloudsql_database\"` represents databases in Google Cloud S QL.\nThe maximum length of this value is 256 characters.",
1868 "type": "string"
1869 }
1870 },
1871 "type": "object"
1872 },
1873 "CustomErrorRule": {
1874 "description": "A custom error rule.",
1875 "id": "CustomErrorRule",
1876 "properties": {
1877 "isErrorType": {
1878 "description": "Mark this message as possible payload in err or response. Otherwise,\nobjects of this type will be filtered when they appear in error payload.",
1879 "type": "boolean"
1880 },
1881 "selector": {
1882 "description": "Selects messages to which this rule applies. \n\nRefer to selector for syntax details.",
1883 "type": "string"
1884 }
1885 },
1886 "type": "object"
1887 },
1888 "MediaDownload": {
1889 "description": "Use this only for Scotty Requests. Do not use this f or media support using\nBytestream, add instead [][google.bytestream.RestByteStr eam] as an API to\nyour configuration for Bytestream methods.",
1890 "id": "MediaDownload",
1891 "properties": {
1892 "enabled": {
1893 "description": "Whether download is enabled.",
1894 "type": "boolean"
1895 },
1896 "downloadService": {
1897 "description": "DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED.\n\nSpecify name of the download service if one is used for download.",
1898 "type": "string"
1899 }
1900 },
1901 "type": "object"
1902 },
1903 "ChangeReport": {
1904 "description": "Change report associated with a particular service c onfiguration.\n\nIt contains a list of ConfigChanges based on the comparison bet ween\ntwo service configurations.",
1905 "id": "ChangeReport",
1906 "properties": {
1907 "configChanges": {
1908 "description": "List of changes between two service configur ations.\nThe changes will be alphabetically sorted based on the identifier\nof e ach change.\nA ConfigChange identifier is a dot separated path to the configurat ion.\nExample: visibility.rules[selector='LibraryService.CreateBook'].restrictio n",
1909 "items": {
1910 "$ref": "ConfigChange"
1911 },
1912 "type": "array"
1913 }
1914 },
1915 "type": "object"
1916 },
1917 "DisableServiceRequest": {
1918 "description": "Request message for DisableService method.",
1919 "id": "DisableServiceRequest",
1920 "properties": {
1921 "consumerId": {
1922 "description": "The identity of consumer resource which serv ice disablement will be\napplied to.\n\nThe Google Service Management implementa tion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is made compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.",
1923 "type": "string"
1924 }
1925 },
1926 "type": "object"
1927 },
1928 "SubmitConfigSourceResponse": {
1929 "description": "Response message for SubmitConfigSource method.",
1930 "id": "SubmitConfigSourceResponse",
1931 "properties": {
1932 "serviceConfig": {
1933 "$ref": "Service",
1934 "description": "The generated service configuration."
1935 }
1936 },
1937 "type": "object"
1938 },
1939 "MediaUpload": {
1940 "description": "Use this only for Scotty Requests. Do not use this f or media support using\nBytestream, add instead [][google.bytestream.RestByteStr eam] as an API to\nyour configuration for Bytestream methods.",
1941 "id": "MediaUpload",
1942 "properties": {
1943 "uploadService": {
1944 "description": "DO NOT USE THIS FIELD UNTIL THIS WARNING IS REMOVED.\n\nSpecify name of the upload service if one is used for upload.",
1945 "type": "string"
1946 },
1947 "enabled": {
1948 "description": "Whether upload is enabled.",
1949 "type": "boolean"
1950 }
1951 },
1952 "type": "object"
1953 },
1954 "Advice": {
1955 "description": "Generated advice about this change, used for providi ng more\ninformation about how a change will affect the existing service.",
1956 "id": "Advice",
1957 "properties": {
1958 "description": {
1959 "description": "Useful description for why this advice was a pplied and what actions should\nbe taken to mitigate any implied risks.",
1960 "type": "string"
1961 }
1962 },
1963 "type": "object"
1964 },
1965 "ManagedService": {
1966 "description": "The full representation of a Service that is managed by\nGoogle Service Management.",
1967 "id": "ManagedService",
1968 "properties": {
1869 "serviceName": { 1969 "serviceName": {
1870 "description": "The name of the service associated with this Rollout.", 1970 "description": "The name of the service. See the [overview]( /service-management/overview)\nfor naming requirements.",
1871 "type": "string" 1971 "type": "string"
1872 }, 1972 },
1873 "createdBy": { 1973 "producerProjectId": {
1874 "description": "The user who created the Rollout. Readonly." , 1974 "description": "ID of the project that produces and owns thi s service.",
1875 "type": "string" 1975 "type": "string"
1876 }, 1976 }
1877 "trafficPercentStrategy": { 1977 },
1878 "$ref": "TrafficPercentStrategy", 1978 "type": "object"
1879 "description": "Google Service Control selects service confi gurations based on\ntraffic percentage." 1979 },
1880 }, 1980 "UsageRule": {
1881 "rolloutId": { 1981 "description": "Usage configuration rules for the service.\n\nNOTE: Under development.\n\n\nUse this rule to configure unregistered calls for the se rvice. Unregistered\ncalls are calls that do not contain consumer project identi ty.\n(Example: calls that do not contain an API key).\nBy default, API methods d o not allow unregistered calls, and each method call\nmust be identified by a co nsumer project identity. Use this rule to\nallow/disallow unregistered calls.\n\ nExample of an API that wants to allow unregistered calls for entire service.\n\ n usage:\n rules:\n - selector: \"*\"\n allow_unregistered_c alls: true\n\nExample of a method that wants to allow unregistered calls.\n\n usage:\n rules:\n - selector: \"google.example.library.v1.LibraryServ ice.CreateBook\"\n allow_unregistered_calls: true",
1882 "description": "Optional unique identifier of this Rollout. Only lower case letters, digits\n and '-' are allowed.\n\nIf not specified by cl ient, the server will generate one. The generated id\nwill have the form of <dat e><revision number>, where \"date\" is the create\ndate in ISO 8601 format. \"r evision number\" is a monotonically increasing\npositive number that is reset ev ery day for each service.\nAn example of the generated rollout_id is '2016-02-16 r1'", 1982 "id": "UsageRule",
1883 "type": "string" 1983 "properties": {
1884 } 1984 "allowUnregisteredCalls": {
1885 }, 1985 "description": "True, if the method allows unregistered call s; false otherwise.",
1886 "type": "object" 1986 "type": "boolean"
1887 }, 1987 },
1888 "GenerateConfigReportRequest": { 1988 "selector": {
1889 "description": "Request message for GenerateConfigReport method.", 1989 "description": "Selects the methods to which this rule appli es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta x details.",
1890 "id": "GenerateConfigReportRequest", 1990 "type": "string"
1891 "properties": { 1991 }
1892 "oldConfig": { 1992 },
1993 "type": "object"
1994 },
1995 "AuthRequirement": {
1996 "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).",
1997 "id": "AuthRequirement",
1998 "properties": {
1999 "audiences": {
2000 "description": "NOTE: This will be deprecated soon, once Aut hProvider.audiences is\nimplemented and accepted in all the runtime components.\ n\nThe list of JWT\n[audiences](https://tools.ietf.org/html/draft-ietf-oauth-jso n-web-token-32#section-4.1.3).\nthat are allowed to access. A JWT containing any of these audiences will\nbe accepted. When this setting is absent, only JWTs wi th audience\n\"https://Service_name/API_name\"\nwill be accepted. For example, i f no audiences are in the setting,\nLibraryService API will only accept JWTs wit h the following audience\n\"https://library-example.googleapis.com/google.exampl e.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.a pps.googleusercontent.com,\n bookstore_web.apps.googleusercontent. com",
2001 "type": "string"
2002 },
2003 "providerId": {
2004 "description": "id from authentication provider.\n\nExample: \n\n provider_id: bookstore_auth",
2005 "type": "string"
2006 }
2007 },
2008 "type": "object"
2009 },
2010 "TrafficPercentStrategy": {
2011 "description": "Strategy that specifies how Google Service Control s hould select\ndifferent\nversions of service configurations based on traffic per centage.\n\nOne example of how to gradually rollout a new service configuration using\nthis\nstrategy:\nDay 1\n\n Rollout {\n id: \"example.googleapis.c om/rollout_20160206\"\n traffic_percent_strategy {\n percentages: {\ n \"example.googleapis.com/20160201\": 70.00\n \"example.googl eapis.com/20160206\": 30.00\n }\n }\n }\n\nDay 2\n\n Rollout { \n id: \"example.googleapis.com/rollout_20160207\"\n traffic_percent_s trategy: {\n percentages: {\n \"example.googleapis.com/20160206\ ": 100.00\n }\n }\n }",
2012 "id": "TrafficPercentStrategy",
2013 "properties": {
2014 "percentages": {
2015 "additionalProperties": {
2016 "format": "double",
2017 "type": "number"
2018 },
2019 "description": "Maps service configuration IDs to their corr esponding traffic percentage.\nKey is the service configuration ID, Value is the traffic percentage\nwhich must be greater than 0.0 and the sum must equal to 10 0.0.",
2020 "type": "object"
2021 }
2022 },
2023 "type": "object"
2024 },
2025 "Documentation": {
2026 "description": "`Documentation` provides the information for describ ing a service.\n\nExample:\n<pre><code>documentation:\n summary: >\n The Goo gle Calendar API gives access\n to most calendar features.\n pages:\n - nam e: Overview\n content: &#40;== include google/foo/overview.md ==&#41;\n - na me: Tutorial\n content: &#40;== include google/foo/tutorial.md ==&#41;\n s ubpages;\n - name: Java\n content: &#40;== include google/foo/tutorial_j ava.md ==&#41;\n rules:\n - selector: google.calendar.Calendar.Get\n descri ption: >\n ...\n - selector: google.calendar.Calendar.Put\n description : >\n ...\n</code></pre>\nDocumentation is provided in markdown syntax. In addition to\nstandard markdown features, definition lists, tables and fenced\nco de blocks are supported. Section headers can be provided and are\ninterpreted re lative to the section nesting of the context where\na documentation fragment is embedded.\n\nDocumentation from the IDL is merged with documentation defined\nvi a the config at normalization time, where documentation provided\nby config rule s overrides IDL provided.\n\nA number of constructs specific to the API platform are supported\nin documentation text.\n\nIn order to reference a proto element, the following\nnotation can be used:\n<pre><code>&#91;fully.qualified.proto.nam e]&#91;]</code></pre>\nTo override the display text used for the link, this can be used:\n<pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></ pre>\nText can be excluded from doc using the following notation:\n<pre><code>&# 40;-- internal comment --&#41;</code></pre>\nComments can be made conditional us ing a visibility label. The below\ntext will be only rendered if the `BETA` labe l is available:\n<pre><code>&#40;--BETA: comment for BETA users --&#41;</code></ pre>\nA few directives are available in documentation. Note that\ndirectives mus t appear on a single line to be properly\nidentified. The `include` directive in cludes a markdown file from\nan external source:\n<pre><code>&#40;== include pat h/to/file ==&#41;</code></pre>\nThe `resource_for` directive marks a message to be the resource of\na collection in REST view. If it is not specified, tools att empt\nto infer the resource from the operations in a collection:\n<pre><code>&#4 0;== resource_for v1.shelves.books ==&#41;</code></pre>\nThe directive `suppress _warning` does not directly affect documentation\nand is documented together wit h service config validation.",
2027 "id": "Documentation",
2028 "properties": {
2029 "pages": {
2030 "description": "The top level pages for the documentation se t.",
2031 "items": {
2032 "$ref": "Page"
2033 },
2034 "type": "array"
2035 },
2036 "summary": {
2037 "description": "A short summary of what the service does. Ca n only be provided by\nplain text.",
2038 "type": "string"
2039 },
2040 "documentationRootUrl": {
2041 "description": "The URL to the root of documentation.",
2042 "type": "string"
2043 },
2044 "rules": {
2045 "description": "A list of documentation rules that apply to individual API elements.\n\n**NOTE:** All service configuration rules follow \"l ast one wins\" order.",
2046 "items": {
2047 "$ref": "DocumentationRule"
2048 },
2049 "type": "array"
2050 },
2051 "overview": {
2052 "description": "Declares a single overview page. For example :\n<pre><code>documentation:\n summary: ...\n overview: &#40;== include overvi ew.md ==&#41;\n</code></pre>\nThis is a shortcut for the following declaration ( using pages style):\n<pre><code>documentation:\n summary: ...\n pages:\n - na me: Overview\n content: &#40;== include overview.md ==&#41;\n</code></pre>\nN ote: you cannot specify both `overview` field and `pages` field.",
2053 "type": "string"
2054 }
2055 },
2056 "type": "object"
2057 },
2058 "Condition": {
2059 "description": "A condition to be met.",
2060 "id": "Condition",
2061 "properties": {
2062 "op": {
2063 "description": "An operator to apply the subject with.",
2064 "enum": [
2065 "NO_OP",
2066 "EQUALS",
2067 "NOT_EQUALS",
2068 "IN",
2069 "NOT_IN",
2070 "DISCHARGED"
2071 ],
2072 "enumDescriptions": [
2073 "Default no-op.",
2074 "DEPRECATED. Use IN instead.",
2075 "DEPRECATED. Use NOT_IN instead.",
2076 "The condition is true if the subject (or any element of it if it is\na set) matches any of the supplied values.",
2077 "The condition is true if the subject (or every element of it if it is\na set) matches none of the supplied values.",
2078 "Subject is discharged"
2079 ],
2080 "type": "string"
2081 },
2082 "svc": {
2083 "description": "Trusted attributes discharged by the service .",
2084 "type": "string"
2085 },
2086 "value": {
2087 "description": "DEPRECATED. Use 'values' instead.",
2088 "type": "string"
2089 },
2090 "sys": {
2091 "description": "Trusted attributes supplied by any service t hat owns resources and uses\nthe IAM system for access control.",
2092 "enum": [
2093 "NO_ATTR",
2094 "REGION",
2095 "SERVICE",
2096 "NAME",
2097 "IP"
2098 ],
2099 "enumDescriptions": [
2100 "Default non-attribute type",
2101 "Region of the resource",
2102 "Service name",
2103 "Resource name",
2104 "IP address of the caller"
2105 ],
2106 "type": "string"
2107 },
2108 "iam": {
2109 "description": "Trusted attributes supplied by the IAM syste m.",
2110 "enum": [
2111 "NO_ATTR",
2112 "AUTHORITY",
2113 "ATTRIBUTION",
2114 "APPROVER",
2115 "JUSTIFICATION_TYPE"
2116 ],
2117 "enumDescriptions": [
2118 "Default non-attribute.",
2119 "Either principal or (if present) authority selector.",
2120 "The principal (even if an authority selector is present ), which\nmust only be used for attribution, not authorization.",
2121 "An approver (distinct from the requester) that has auth orized this\nrequest.\nWhen used with IN, the condition indicates that one of th e approvers\nassociated with the request matches the specified principal, or is a\nmember of the specified group. Approvers can only grant additional\naccess, a nd are thus only used in a strictly positive context\n(e.g. ALLOW/IN or DENY/NOT _IN).\nSee: go/rpc-security-policy-dynamicauth.",
2122 "What types of justifications have been supplied with th is request.\nString values should match enum names from tech.iam.JustificationTy pe,\ne.g. \"MANUAL_STRING\". It is not permitted to grant access based on\nthe * absence* of a justification, so justification conditions can only\nbe used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).\n\nMultiple justifications , e.g., a Buganizer ID and a manually-entered\nreason, are normal and supported. "
2123 ],
2124 "type": "string"
2125 },
2126 "values": {
2127 "description": "The objects of the condition. This is mutual ly exclusive with 'value'.",
2128 "items": {
2129 "type": "string"
2130 },
2131 "type": "array"
2132 }
2133 },
2134 "type": "object"
2135 },
2136 "AuditLogConfig": {
2137 "description": "Provides the configuration for logging a type of per missions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type \": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and ' DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.",
2138 "id": "AuditLogConfig",
2139 "properties": {
2140 "exemptedMembers": {
2141 "description": "Specifies the identities that do not cause l ogging for this type of\npermission.\nFollows the same format of Binding.members .",
2142 "items": {
2143 "type": "string"
2144 },
2145 "type": "array"
2146 },
2147 "logType": {
2148 "description": "The log type that this config enables.",
2149 "enum": [
2150 "LOG_TYPE_UNSPECIFIED",
2151 "ADMIN_READ",
2152 "DATA_WRITE",
2153 "DATA_READ"
2154 ],
2155 "enumDescriptions": [
2156 "Default case. Should never be this.",
2157 "Admin reads. Example: CloudIAM getIamPolicy",
2158 "Data writes. Example: CloudSQL Users create",
2159 "Data reads. Example: CloudSQL Users list"
2160 ],
2161 "type": "string"
2162 }
2163 },
2164 "type": "object"
2165 },
2166 "ConfigSource": {
2167 "description": "Represents a source file which is used to generate t he service configuration\ndefined by `google.api.Service`.",
2168 "id": "ConfigSource",
2169 "properties": {
2170 "id": {
2171 "description": "A unique ID for a specific instance of this message, typically assigned\nby the client for tracking purpose. If empty, the s erver may choose to\ngenerate one instead.",
2172 "type": "string"
2173 },
2174 "files": {
2175 "description": "Set of source configuration files that are u sed to generate a service\nconfiguration (`google.api.Service`).",
2176 "items": {
2177 "$ref": "ConfigFile"
2178 },
2179 "type": "array"
2180 }
2181 },
2182 "type": "object"
2183 },
2184 "BackendRule": {
2185 "description": "A backend rule provides configuration for an individ ual API element.",
2186 "id": "BackendRule",
2187 "properties": {
2188 "deadline": {
2189 "description": "The number of seconds to wait for a response from a request. The\ndefault depends on the deployment context.",
2190 "format": "double",
2191 "type": "number"
2192 },
2193 "address": {
2194 "description": "The address of the API backend.",
2195 "type": "string"
2196 },
2197 "selector": {
2198 "description": "Selects the methods to which this rule appli es.\n\nRefer to selector for syntax details.",
2199 "type": "string"
2200 }
2201 },
2202 "type": "object"
2203 },
2204 "AuthenticationRule": {
2205 "description": "Authentication rules for the service.\n\nBy default, if a method has any authentication requirements, every request\nmust include a valid credential matching one of the requirements.\nIt's an error to include mor e than one kind of credential in a single\nrequest.\n\nIf a method doesn't have any auth requirements, request credentials will be\nignored.",
2206 "id": "AuthenticationRule",
2207 "properties": {
2208 "oauth": {
2209 "$ref": "OAuthRequirements",
2210 "description": "The requirements for OAuth credentials."
2211 },
2212 "requirements": {
2213 "description": "Requirements for additional authentication p roviders.",
2214 "items": {
2215 "$ref": "AuthRequirement"
2216 },
2217 "type": "array"
2218 },
2219 "selector": {
2220 "description": "Selects the methods to which this rule appli es.\n\nRefer to selector for syntax details.",
2221 "type": "string"
2222 },
2223 "allowWithoutCredential": {
2224 "description": "Whether to allow requests without a credenti al. The credential can be\nan OAuth token, Google cookies (first-party auth) or EndUserCreds.\n\nFor requests without credentials, if the service control enviro nment is\nspecified, each incoming request **must** be associated with a service \nconsumer. This can be done by passing an API key that belongs to a consumer\np roject.",
2225 "type": "boolean"
2226 }
2227 },
2228 "type": "object"
2229 },
2230 "UndeleteServiceResponse": {
2231 "description": "Response message for UndeleteService method.",
2232 "id": "UndeleteServiceResponse",
2233 "properties": {
2234 "service": {
2235 "$ref": "ManagedService",
2236 "description": "Revived service resource."
2237 }
2238 },
2239 "type": "object"
2240 },
2241 "Policy": {
2242 "description": "Defines an Identity and Access Management (IAM) poli cy. It is used to\nspecify access control policies for Cloud Platform resources. \n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of\n `members` to a `role`, where the members can be user accounts, Google groups,\nG oogle domains, and service accounts. A `role` is a named list of permissions\nde fined by IAM.\n\n**Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike @example.com\",\n \"group:admins@example.com\",\n \"domain :google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccoun t.com\",\n ]\n },\n {\n \"role\": \"roles/viewer \",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\nFor a description of IAM and its features, see the\n[IAM developer's guide ](https://cloud.google.com/iam).",
2243 "id": "Policy",
2244 "properties": {
2245 "version": {
2246 "description": "Version of the `Policy`. The default version is 0.",
2247 "format": "int32",
2248 "type": "integer"
2249 },
2250 "auditConfigs": {
2251 "description": "Specifies cloud audit logging configuration for this policy.",
2252 "items": {
2253 "$ref": "AuditConfig"
2254 },
2255 "type": "array"
2256 },
2257 "bindings": {
2258 "description": "Associates a list of `members` to a `role`.\ nMultiple `bindings` must not be specified for the same `role`.\n`bindings` with no members will result in an error.",
2259 "items": {
2260 "$ref": "Binding"
2261 },
2262 "type": "array"
2263 },
2264 "etag": {
2265 "description": "`etag` is used for optimistic concurrency co ntrol as a way to help\nprevent simultaneous updates of a policy from overwritin g each other.\nIt is strongly suggested that systems make use of the `etag` in t he\nread-modify-write cycle to perform policy updates in order to avoid race\nco nditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that t heir change will be applied to the same version of the policy.\n\nIf no `etag` i s provided in the call to `setIamPolicy`, then the existing\npolicy is overwritt en blindly.",
2266 "format": "byte",
2267 "type": "string"
2268 },
2269 "iamOwned": {
2270 "type": "boolean"
2271 },
2272 "rules": {
2273 "description": "If more than one rule is specified, the rule s are applied in the following\nmanner:\n- All matching LOG rules are always app lied.\n- If any DENY/DENY_WITH_LOG rule matches, permission is denied.\n Loggin g will be applied if one or more matching rule requires logging.\n- Otherwise, i f any ALLOW/ALLOW_WITH_LOG rule matches, permission is\n granted.\n Logging wi ll be applied if one or more matching rule requires logging.\n- Otherwise, if no rule applies, permission is denied.",
2274 "items": {
2275 "$ref": "Rule"
2276 },
2277 "type": "array"
2278 }
2279 },
2280 "type": "object"
2281 },
2282 "Api": {
2283 "description": "Api is a light-weight descriptor for a protocol buff er service.",
2284 "id": "Api",
2285 "properties": {
2286 "options": {
2287 "description": "Any metadata attached to the API.",
2288 "items": {
2289 "$ref": "Option"
2290 },
2291 "type": "array"
2292 },
2293 "methods": {
2294 "description": "The methods of this api, in unspecified orde r.",
2295 "items": {
2296 "$ref": "Method"
2297 },
2298 "type": "array"
2299 },
2300 "name": {
2301 "description": "The fully qualified name of this api, includ ing package name\nfollowed by the api's simple name.",
2302 "type": "string"
2303 },
2304 "syntax": {
2305 "description": "The source syntax of the service.",
2306 "enum": [
2307 "SYNTAX_PROTO2",
2308 "SYNTAX_PROTO3"
2309 ],
2310 "enumDescriptions": [
2311 "Syntax `proto2`.",
2312 "Syntax `proto3`."
2313 ],
2314 "type": "string"
2315 },
2316 "sourceContext": {
2317 "$ref": "SourceContext",
2318 "description": "Source context for the protocol buffer servi ce represented by this\nmessage."
2319 },
2320 "version": {
2321 "description": "A version string for this api. If specified, must have the form\n`major-version.minor-version`, as in `1.10`. If the minor v ersion\nis omitted, it defaults to zero. If the entire version field is\nempty, the major version is derived from the package name, as\noutlined below. If the f ield is not empty, the version in the\npackage name will be verified to be consi stent with what is\nprovided here.\n\nThe versioning schema uses [semantic\nvers ioning](http://semver.org) where the major version number\nindicates a breaking change and the minor version an additive,\nnon-breaking change. Both version num bers are signals to users\nwhat to expect from different versions, and should be carefully\nchosen based on the product plan.\n\nThe major version is also refle cted in the package name of the\nAPI, which must end in `v<major-version>`, as i n\n`google.feature.v1`. For major versions 0 and 1, the suffix can\nbe omitted. Zero major versions must only be used for\nexperimental, none-GA apis.\n",
2322 "type": "string"
2323 },
2324 "mixins": {
2325 "description": "Included APIs. See Mixin.",
2326 "items": {
2327 "$ref": "Mixin"
2328 },
2329 "type": "array"
2330 }
2331 },
2332 "type": "object"
2333 },
2334 "DataAccessOptions": {
2335 "description": "Write a Data Access (Gin) log",
2336 "id": "DataAccessOptions",
2337 "properties": {},
2338 "type": "object"
2339 },
2340 "Authentication": {
2341 "description": "`Authentication` defines the authentication configur ation for an API.\n\nExample for an API targeted for external use:\n\n name: calendar.googleapis.com\n authentication:\n providers:\n - id: goog le_calendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n issuer: https://securetoken.google.com\n rules:\n - selector: \"*\"\n requirements:\n provider_id: google_calendar_auth",
2342 "id": "Authentication",
2343 "properties": {
2344 "rules": {
2345 "description": "A list of authentication rules that apply to individual API methods.\n\n**NOTE:** All service configuration rules follow \"l ast one wins\" order.",
2346 "items": {
2347 "$ref": "AuthenticationRule"
2348 },
2349 "type": "array"
2350 },
2351 "providers": {
2352 "description": "Defines a set of authentication providers th at a service supports.",
2353 "items": {
2354 "$ref": "AuthProvider"
2355 },
2356 "type": "array"
2357 }
2358 },
2359 "type": "object"
2360 },
2361 "Operation": {
2362 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.",
2363 "id": "Operation",
2364 "properties": {
2365 "response": {
1893 "additionalProperties": { 2366 "additionalProperties": {
1894 "description": "Properties of the object. Contains field @type with type URL.", 2367 "description": "Properties of the object. Contains field @type with type URL.",
1895 "type": "any" 2368 "type": "any"
1896 }, 2369 },
1897 "description": "Service configuration against which the comp arison will be done.\nFor this version of API, the supported types are\ngoogle.a pi.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource ,\nand google.api.Service", 2370 "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delet e`, the response is\n`google.protobuf.Empty`. If the original method is standar d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi nal method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
1898 "type": "object" 2371 "type": "object"
1899 }, 2372 },
1900 "newConfig": { 2373 "name": {
2374 "description": "The server-assigned name, which is only uniq ue within the same service that\noriginally returns it. If you use the default H TTP mapping, the\n`name` should have the format of `operations/some/unique/name` .",
2375 "type": "string"
2376 },
2377 "error": {
2378 "$ref": "Status",
2379 "description": "The error result of the operation in case of failure or cancellation."
2380 },
2381 "metadata": {
1901 "additionalProperties": { 2382 "additionalProperties": {
1902 "description": "Properties of the object. Contains field @type with type URL.", 2383 "description": "Properties of the object. Contains field @type with type URL.",
1903 "type": "any" 2384 "type": "any"
1904 }, 2385 },
1905 "description": "Service configuration for which we want to g enerate the report.\nFor this version of API, the supported types are\ngoogle.ap i.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource, \nand google.api.Service", 2386 "description": "Service-specific metadata associated with th e operation. It typically\ncontains progress information and common metadata su ch as create time.\nSome services might not provide such metadata. Any method t hat returns a\nlong-running operation should document the metadata type, if any. ",
1906 "type": "object" 2387 "type": "object"
1907 } 2388 },
1908 }, 2389 "done": {
1909 "type": "object" 2390 "description": "If the value is `false`, it means the operat ion is still in progress.\nIf true, the operation is completed, and either `erro r` or `response` is\navailable.",
1910 }, 2391 "type": "boolean"
1911 "SetIamPolicyRequest": { 2392 }
1912 "description": "Request message for `SetIamPolicy` method.", 2393 },
1913 "id": "SetIamPolicyRequest", 2394 "type": "object"
1914 "properties": { 2395 },
1915 "updateMask": { 2396 "Page": {
1916 "description": "OPTIONAL: A FieldMask specifying which field s of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, a default\nmask is used:\npaths: \"bindings, etag\"\nThis fiel d is only used by Cloud IAM.", 2397 "description": "Represents a documentation page. A page can contain subpages to represent\nnested documentation set structure.",
1917 "format": "google-fieldmask", 2398 "id": "Page",
1918 "type": "string" 2399 "properties": {
1919 }, 2400 "content": {
1920 "policy": { 2401 "description": "The Markdown content of the page. You can us e <code>&#40;== include {path} ==&#41;</code>\nto include content from a Markdow n file.",
1921 "$ref": "Policy", 2402 "type": "string"
1922 "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An emp ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec ts)\nmight reject them." 2403 },
1923 } 2404 "subpages": {
1924 }, 2405 "description": "Subpages of this page. The order of subpages specified here will be\nhonored in the generated docset.",
1925 "type": "object" 2406 "items": {
1926 }, 2407 "$ref": "Page"
1927 "Step": { 2408 },
1928 "description": "Represents the status of one operation step.", 2409 "type": "array"
1929 "id": "Step",
1930 "properties": {
1931 "description": {
1932 "description": "The short description of the step.",
1933 "type": "string"
1934 },
1935 "status": {
1936 "description": "The status code.",
1937 "enum": [
1938 "STATUS_UNSPECIFIED",
1939 "DONE",
1940 "NOT_STARTED",
1941 "IN_PROGRESS",
1942 "FAILED",
1943 "CANCELLED"
1944 ],
1945 "enumDescriptions": [
1946 "Unspecifed code.",
1947 "The operation or step has completed without errors.",
1948 "The operation or step has not started yet.",
1949 "The operation or step is in progress.",
1950 "The operation or step has completed with errors.",
1951 "The operation or step has completed with cancellation."
1952 ],
1953 "type": "string"
1954 }
1955 },
1956 "type": "object"
1957 },
1958 "DeleteServiceStrategy": {
1959 "description": "Strategy used to delete a service. This strategy is a placeholder only\nused by the system generated rollout to delete a service.",
1960 "id": "DeleteServiceStrategy",
1961 "properties": {},
1962 "type": "object"
1963 },
1964 "LoggingDestination": {
1965 "description": "Configuration of a specific logging destination (the producer project\nor the consumer project).",
1966 "id": "LoggingDestination",
1967 "properties": {
1968 "logs": {
1969 "description": "Names of the logs to be sent to this destina tion. Each name must\nbe defined in the Service.logs section. If the log name is \nnot a domain scoped name, it will be automatically prefixed with\nthe service name followed by \"/\".",
1970 "items": {
1971 "type": "string"
1972 },
1973 "type": "array"
1974 },
1975 "monitoredResource": {
1976 "description": "The monitored resource type. The type must b e defined in the\nService.monitored_resources section.",
1977 "type": "string"
1978 }
1979 },
1980 "type": "object"
1981 },
1982 "Option": {
1983 "description": "A protocol buffer option, which can be attached to a message, field,\nenumeration, etc.",
1984 "id": "Option",
1985 "properties": {
1986 "value": {
1987 "additionalProperties": {
1988 "description": "Properties of the object. Contains field @type with type URL.",
1989 "type": "any"
1990 },
1991 "description": "The option's value packed in an Any message. If the value is a primitive,\nthe corresponding wrapper type defined in google/ protobuf/wrappers.proto\nshould be used. If the value is an enum, it should be s tored as an int32\nvalue using the google.protobuf.Int32Value type.",
1992 "type": "object"
1993 }, 2410 },
1994 "name": { 2411 "name": {
1995 "description": "The option's name. For protobuf built-in opt ions (options defined in\ndescriptor.proto), this is the short name. For example , `\"map_entry\"`.\nFor custom options, it should be the fully-qualified name. F or example,\n`\"google.api.http\"`.", 2412 "description": "The name of the page. It will be used as an identity of the page to\ngenerate URI of the page, text of the link to this page in navigation,\netc. The full page name (start from the root page name to this page\nconcatenated with `.`) can be used as reference to the page in your\ndocum entation. For example:\n<pre><code>pages:\n- name: Tutorial\n content: &#40;== include tutorial.md ==&#41;\n subpages:\n - name: Java\n content: &#40;== i nclude tutorial_java.md ==&#41;\n</code></pre>\nYou can reference `Java` page us ing Markdown reference link syntax:\n`Java`.",
1996 "type": "string" 2413 "type": "string"
1997 } 2414 }
1998 }, 2415 },
1999 "type": "object" 2416 "type": "object"
2000 }, 2417 },
2001 "Logging": { 2418 "Status": {
2002 "description": "Logging configuration of the service.\n\nThe followi ng example shows how to configure logs to be sent to the\nproducer and consumer projects. In the example, the `activity_history`\nlog is sent to both the produc er and consumer projects, whereas the\n`purchase_history` log is only sent to th e producer project.\n\n monitored_resources:\n - type: library.googleapis. com/branch\n labels:\n - key: /city\n description: The city whe re the library branch is located in.\n - key: /name\n description: T he name of the branch.\n logs:\n - name: activity_history\n labels:\n - key: /customer_id\n - name: purchase_history\n logging:\n pro ducer_destinations:\n - monitored_resource: library.googleapis.com/branch\n logs:\n - activity_history\n - purchase_history\n con sumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n logs:\n - activity_history", 2419 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Lan guage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\ n\nThe error model and the `Status` message can be used in a variety of\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e across different environments.\n\nExample uses of this error model include:\n\ n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.",
2003 "id": "Logging", 2420 "id": "Status",
2004 "properties": { 2421 "properties": {
2005 "consumerDestinations": { 2422 "code": {
2006 "description": "Logging configurations for sending logs to t he consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none co nsumer destination.", 2423 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
2007 "items": {
2008 "$ref": "LoggingDestination"
2009 },
2010 "type": "array"
2011 },
2012 "producerDestinations": {
2013 "description": "Logging configurations for sending logs to t he producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none pr oducer destination.",
2014 "items": {
2015 "$ref": "LoggingDestination"
2016 },
2017 "type": "array"
2018 }
2019 },
2020 "type": "object"
2021 },
2022 "Method": {
2023 "description": "Method represents a method of an api.",
2024 "id": "Method",
2025 "properties": {
2026 "requestTypeUrl": {
2027 "description": "A URL of the input message type.",
2028 "type": "string"
2029 },
2030 "requestStreaming": {
2031 "description": "If true, the request is streamed.",
2032 "type": "boolean"
2033 },
2034 "syntax": {
2035 "description": "The source syntax of this method.",
2036 "enum": [
2037 "SYNTAX_PROTO2",
2038 "SYNTAX_PROTO3"
2039 ],
2040 "enumDescriptions": [
2041 "Syntax `proto2`.",
2042 "Syntax `proto3`."
2043 ],
2044 "type": "string"
2045 },
2046 "responseTypeUrl": {
2047 "description": "The URL of the output message type.",
2048 "type": "string"
2049 },
2050 "options": {
2051 "description": "Any metadata attached to the method.",
2052 "items": {
2053 "$ref": "Option"
2054 },
2055 "type": "array"
2056 },
2057 "responseStreaming": {
2058 "description": "If true, the response is streamed.",
2059 "type": "boolean"
2060 },
2061 "name": {
2062 "description": "The simple name of this method.",
2063 "type": "string"
2064 }
2065 },
2066 "type": "object"
2067 },
2068 "ConfigRef": {
2069 "description": "Represents a service configuration with its name and id.",
2070 "id": "ConfigRef",
2071 "properties": {
2072 "name": {
2073 "description": "Resource name of a service config. It must h ave the following\nformat: \"services/{service name}/configs/{config id}\".",
2074 "type": "string"
2075 }
2076 },
2077 "type": "object"
2078 },
2079 "ListServiceRolloutsResponse": {
2080 "description": "Response message for ListServiceRollouts method.",
2081 "id": "ListServiceRolloutsResponse",
2082 "properties": {
2083 "nextPageToken": {
2084 "description": "The token of the next page of results.",
2085 "type": "string"
2086 },
2087 "rollouts": {
2088 "description": "The list of rollout resources.",
2089 "items": {
2090 "$ref": "Rollout"
2091 },
2092 "type": "array"
2093 }
2094 },
2095 "type": "object"
2096 },
2097 "Mixin": {
2098 "description": "Declares an API to be included in this API. The incl uding API must\nredeclare all the methods from the included API, but documentati on\nand options are inherited as follows:\n\n- If after comment and whitespace s tripping, the documentation\n string of the redeclared method is empty, it will be inherited\n from the original method.\n\n- Each annotation belonging to the service config (http,\n visibility) which is not set in the redeclared method will be\n inherited.\n\n- If an http annotation is inherited, the path pattern will be\n modified as follows. Any version prefix will be replaced by the\n ve rsion of the including API plus the root path if specified.\n\nExample of a simp le mixin:\n\n package google.acl.v1;\n service AccessControl {\n // G et the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"/v1/{resource=**}:getAcl\";\n }\n }\n\n package google.storage.v2;\n service Storage {\n // rp c GetAcl(GetAclRequest) returns (Acl);\n\n // Get a data record.\n rpc GetData(GetDataRequest) returns (Data) {\n option (google.api.http).get = \"/v2/{resource=**}\";\n }\n }\n\nExample of a mixin configuration:\n\ n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.AccessControl\n\nThe mixin construct implies that all methods in ` AccessControl` are\nalso declared with same name and request/response types in\n `Storage`. A documentation generator or annotation processor will\nsee the effec tive `Storage.GetAcl` method after inherting\ndocumentation and annotations as f ollows:\n\n service Storage {\n // Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns (Acl) {\n option (google.api.http).get = \"/v2/{resource=**}:getAcl\";\n }\n ...\n }\n\nNote how the vers ion in the path pattern changed from `v1` to `v2`.\n\nIf the `root` field in the mixin is specified, it should be a\nrelative path under which inherited HTTP pa ths are placed. Example:\n\n apis:\n - name: google.storage.v2.Storage\n mixins:\n - name: google.acl.v1.AccessControl\n root: acls\n\nTh is implies the following inherited HTTP annotation:\n\n service Storage {\n // Get the underlying ACL object.\n rpc GetAcl(GetAclRequest) returns ( Acl) {\n option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\" ;\n }\n ...\n }",
2099 "id": "Mixin",
2100 "properties": {
2101 "name": {
2102 "description": "The fully qualified name of the API which is included.",
2103 "type": "string"
2104 },
2105 "root": {
2106 "description": "If non-empty specifies a path under which in herited HTTP paths\nare rooted.",
2107 "type": "string"
2108 }
2109 },
2110 "type": "object"
2111 },
2112 "CustomError": {
2113 "description": "Customize service error responses. For example, lis t any service\nspecific protobuf types that can appear in error detail lists of\ nerror responses.\n\nExample:\n\n custom_error:\n types:\n - google .foo.v1.CustomError\n - google.foo.v1.AnotherError",
2114 "id": "CustomError",
2115 "properties": {
2116 "types": {
2117 "description": "The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.",
2118 "items": {
2119 "type": "string"
2120 },
2121 "type": "array"
2122 },
2123 "rules": {
2124 "description": "The list of custom error rules that apply to individual API messages.\n\n**NOTE:** All service configuration rules follow \" last one wins\" order.",
2125 "items": {
2126 "$ref": "CustomErrorRule"
2127 },
2128 "type": "array"
2129 }
2130 },
2131 "type": "object"
2132 },
2133 "CounterOptions": {
2134 "description": "Options for counters",
2135 "id": "CounterOptions",
2136 "properties": {
2137 "metric": {
2138 "description": "The metric to update.",
2139 "type": "string"
2140 },
2141 "field": {
2142 "description": "The field value to attribute.",
2143 "type": "string"
2144 }
2145 },
2146 "type": "object"
2147 },
2148 "Http": {
2149 "description": "Defines the HTTP configuration for a service. It con tains a list of\nHttpRule, each specifying the mapping of an RPC method\nto one or more HTTP REST API methods.",
2150 "id": "Http",
2151 "properties": {
2152 "rules": {
2153 "description": "A list of HTTP configuration rules that appl y to individual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
2154 "items": {
2155 "$ref": "HttpRule"
2156 },
2157 "type": "array"
2158 }
2159 },
2160 "type": "object"
2161 },
2162 "Control": {
2163 "description": "Selects and configures the service controller used b y the service. The\nservice controller handles features like abuse, quota, bill ing, logging,\nmonitoring, etc.",
2164 "id": "Control",
2165 "properties": {
2166 "environment": {
2167 "description": "The service control environment to use. If e mpty, no control plane\nfeature (like quota and billing) will be enabled.",
2168 "type": "string"
2169 }
2170 },
2171 "type": "object"
2172 },
2173 "SystemParameter": {
2174 "description": "Define a parameter's name and location. The paramete r may be passed as either\nan HTTP header or a URL query parameter, and if both are passed the behavior\nis implementation-dependent.",
2175 "id": "SystemParameter",
2176 "properties": {
2177 "httpHeader": {
2178 "description": "Define the HTTP header name to use for the p arameter. It is case\ninsensitive.",
2179 "type": "string"
2180 },
2181 "name": {
2182 "description": "Define the name of the parameter, such as \" api_key\" . It is case sensitive.",
2183 "type": "string"
2184 },
2185 "urlQueryParameter": {
2186 "description": "Define the URL query parameter name to use f or the parameter. It is case\nsensitive.",
2187 "type": "string"
2188 }
2189 },
2190 "type": "object"
2191 },
2192 "Monitoring": {
2193 "description": "Monitoring configuration of the service.\n\nThe exam ple below shows how to configure monitored resources and metrics\nfor monitoring . In the example, a monitored resource and two metrics are\ndefined. The `librar y.googleapis.com/book/returned_count` metric is sent\nto both producer and consu mer projects, whereas the\n`library.googleapis.com/book/overdue_count` metric is only sent to the\nconsumer project.\n\n monitored_resources:\n - type: li brary.googleapis.com/branch\n labels:\n - key: /city\n descript ion: The city where the library branch is located in.\n - key: /name\n description: The name of the branch.\n metrics:\n - name: library.googl eapis.com/book/returned_count\n metric_kind: DELTA\n value_type: INT64 \n labels:\n - key: /customer_id\n - name: library.googleapis.com/b ook/overdue_count\n metric_kind: GAUGE\n value_type: INT64\n labe ls:\n - key: /customer_id\n monitoring:\n producer_destinations:\n - monitored_resource: library.googleapis.com/branch\n metrics:\n - library.googleapis.com/book/returned_count\n consumer_destinations:\n - monitored_resource: library.googleapis.com/branch\n metrics:\n - library.googleapis.com/book/returned_count\n - library.googleapis. com/book/overdue_count",
2194 "id": "Monitoring",
2195 "properties": {
2196 "consumerDestinations": {
2197 "description": "Monitoring configurations for sending metric s to the consumer project.\nThere can be multiple consumer destinations, each on e must have a\ndifferent monitored resource type. A metric can be used in at mos t\none consumer destination.",
2198 "items": {
2199 "$ref": "MonitoringDestination"
2200 },
2201 "type": "array"
2202 },
2203 "producerDestinations": {
2204 "description": "Monitoring configurations for sending metric s to the producer project.\nThere can be multiple producer destinations, each on e must have a\ndifferent monitored resource type. A metric can be used in at mos t\none producer destination.",
2205 "items": {
2206 "$ref": "MonitoringDestination"
2207 },
2208 "type": "array"
2209 }
2210 },
2211 "type": "object"
2212 },
2213 "Field": {
2214 "description": "A single field of a message type.",
2215 "id": "Field",
2216 "properties": {
2217 "jsonName": {
2218 "description": "The field JSON name.",
2219 "type": "string"
2220 },
2221 "kind": {
2222 "description": "The field type.",
2223 "enum": [
2224 "TYPE_UNKNOWN",
2225 "TYPE_DOUBLE",
2226 "TYPE_FLOAT",
2227 "TYPE_INT64",
2228 "TYPE_UINT64",
2229 "TYPE_INT32",
2230 "TYPE_FIXED64",
2231 "TYPE_FIXED32",
2232 "TYPE_BOOL",
2233 "TYPE_STRING",
2234 "TYPE_GROUP",
2235 "TYPE_MESSAGE",
2236 "TYPE_BYTES",
2237 "TYPE_UINT32",
2238 "TYPE_ENUM",
2239 "TYPE_SFIXED32",
2240 "TYPE_SFIXED64",
2241 "TYPE_SINT32",
2242 "TYPE_SINT64"
2243 ],
2244 "enumDescriptions": [
2245 "Field type unknown.",
2246 "Field type double.",
2247 "Field type float.",
2248 "Field type int64.",
2249 "Field type uint64.",
2250 "Field type int32.",
2251 "Field type fixed64.",
2252 "Field type fixed32.",
2253 "Field type bool.",
2254 "Field type string.",
2255 "Field type group. Proto2 syntax only, and deprecated.",
2256 "Field type message.",
2257 "Field type bytes.",
2258 "Field type uint32.",
2259 "Field type enum.",
2260 "Field type sfixed32.",
2261 "Field type sfixed64.",
2262 "Field type sint32.",
2263 "Field type sint64."
2264 ],
2265 "type": "string"
2266 },
2267 "options": {
2268 "description": "The protocol buffer options.",
2269 "items": {
2270 "$ref": "Option"
2271 },
2272 "type": "array"
2273 },
2274 "oneofIndex": {
2275 "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.",
2276 "format": "int32", 2424 "format": "int32",
2277 "type": "integer" 2425 "type": "integer"
2278 }, 2426 },
2279 "cardinality": { 2427 "message": {
2280 "description": "The field cardinality.", 2428 "description": "A developer-facing error message, which shou ld be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
2281 "enum": [ 2429 "type": "string"
2282 "CARDINALITY_UNKNOWN", 2430 },
2283 "CARDINALITY_OPTIONAL", 2431 "details": {
2284 "CARDINALITY_REQUIRED", 2432 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
2285 "CARDINALITY_REPEATED" 2433 "items": {
2286 ], 2434 "additionalProperties": {
2287 "enumDescriptions": [ 2435 "description": "Properties of the object. Contains f ield @type with type URL.",
2288 "For fields with unknown cardinality.", 2436 "type": "any"
2289 "For optional fields.", 2437 },
2290 "For required fields. Proto2 syntax only.", 2438 "type": "object"
2291 "For repeated fields." 2439 },
2292 ], 2440 "type": "array"
2293 "type": "string" 2441 }
2294 }, 2442 },
2295 "packed": { 2443 "type": "object"
2296 "description": "Whether to use alternative packed wire repre sentation.", 2444 },
2297 "type": "boolean" 2445 "Binding": {
2298 }, 2446 "description": "Associates `members` with a `role`.",
2299 "defaultValue": { 2447 "id": "Binding",
2300 "description": "The string value of the default value of thi s field. Proto2 syntax only.", 2448 "properties": {
2301 "type": "string" 2449 "members": {
2302 }, 2450 "description": "Specifies the identities requesting access f or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al lUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident ifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a spec ific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\ n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{e mailid}`: An email address that represents a Google group.\n For example, `adm ins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represe nts all the\n users of that domain. For example, `google.com` or `example.com` .\n\n",
2451 "items": {
2452 "type": "string"
2453 },
2454 "type": "array"
2455 },
2456 "role": {
2457 "description": "Role that is assigned to `members`.\nFor exa mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
2458 "type": "string"
2459 }
2460 },
2461 "type": "object"
2462 },
2463 "AuthProvider": {
2464 "description": "Configuration for an anthentication provider, includ ing support for\n[JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-o auth-json-web-token-32).",
2465 "id": "AuthProvider",
2466 "properties": {
2467 "id": {
2468 "description": "The unique identifier of the auth provider. It will be referred to by\n`AuthRequirement.provider_id`.\n\nExample: \"bookstor e_auth\".",
2469 "type": "string"
2470 },
2471 "issuer": {
2472 "description": "Identifies the principal that issued the JWT . See\nhttps://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4. 1.1\nUsually a URL or an email address.\n\nExample: https://securetoken.google.c om\nExample: 1234567-compute@developer.gserviceaccount.com",
2473 "type": "string"
2474 },
2475 "jwksUri": {
2476 "description": "URL of the provider's public key set to vali date signature of the JWT. See\n[OpenID Discovery](https://openid.net/specs/open id-connect-discovery-1_0.html#ProviderMetadata).\nOptional if the key set docume nt:\n - can be retrieved from\n [OpenID Discovery](https://openid.net/specs/op enid-connect-discovery-1_0.html\n of the issuer.\n - can be inferred from the email domain of the issuer (e.g. a Google service account).\n\nExample: https:// www.googleapis.com/oauth2/v1/certs",
2477 "type": "string"
2478 },
2479 "audiences": {
2480 "description": "The list of JWT\n[audiences](https://tools.i etf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).\nthat are allowe d to access. A JWT containing any of these audiences will\nbe accepted. When thi s setting is absent, only JWTs with audience\n\"https://Service_name/API_name\"\ nwill be accepted. For example, if no audiences are in the setting,\nLibraryServ ice API will only accept JWTs with the following audience\n\"https://library-exa mple.googleapis.com/google.example.library.v1.LibraryService\".\n\nExample:\n\n audiences: bookstore_android.apps.googleusercontent.com,\n book store_web.apps.googleusercontent.com",
2481 "type": "string"
2482 }
2483 },
2484 "type": "object"
2485 },
2486 "EnumValue": {
2487 "description": "Enum value definition.",
2488 "id": "EnumValue",
2489 "properties": {
2303 "name": { 2490 "name": {
2304 "description": "The field name.", 2491 "description": "Enum value name.",
2305 "type": "string" 2492 "type": "string"
2306 }, 2493 },
2307 "typeUrl": { 2494 "options": {
2308 "description": "The field type URL, without the scheme, for message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.T imestamp\"`.", 2495 "description": "Protocol buffer options.",
2309 "type": "string" 2496 "items": {
2497 "$ref": "Option"
2498 },
2499 "type": "array"
2310 }, 2500 },
2311 "number": { 2501 "number": {
2312 "description": "The field number.", 2502 "description": "Enum value number.",
2313 "format": "int32", 2503 "format": "int32",
2314 "type": "integer" 2504 "type": "integer"
2315 } 2505 }
2316 }, 2506 },
2317 "type": "object" 2507 "type": "object"
2318 }, 2508 },
2319 "TestIamPermissionsRequest": { 2509 "Service": {
2320 "description": "Request message for `TestIamPermissions` method.", 2510 "description": "`Service` is the root object of Google service confi guration schema. It\ndescribes basic information about a service, such as the na me and the\ntitle, and delegates other aspects to sub-sections. Each sub-section is\neither a proto message or a repeated proto message that configures a\nspeci fic aspect, such as auth. See each proto message definition for details.\n\nExam ple:\n\n type: google.api.Service\n config_version: 3\n name: calendar. googleapis.com\n title: Google Calendar API\n apis:\n - name: google.ca lendar.v3.Calendar\n authentication:\n providers:\n - id: google_ca lendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n issuer: https://securetoken.google.com\n rules:\n - selector: \"*\" \n requirements:\n provider_id: google_calendar_auth",
2321 "id": "TestIamPermissionsRequest", 2511 "id": "Service",
2322 "properties": { 2512 "properties": {
2323 "permissions": { 2513 "metrics": {
2324 "description": "The set of permissions to check for the `res ource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed . For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/ov erview#permissions).", 2514 "description": "Defines the metrics used by this service.",
2515 "items": {
2516 "$ref": "MetricDescriptor"
2517 },
2518 "type": "array"
2519 },
2520 "authentication": {
2521 "$ref": "Authentication",
2522 "description": "Auth configuration."
2523 },
2524 "experimental": {
2525 "$ref": "Experimental",
2526 "description": "Experimental configuration."
2527 },
2528 "control": {
2529 "$ref": "Control",
2530 "description": "Configuration for the service control plane. "
2531 },
2532 "configVersion": {
2533 "description": "The version of the service configuration. Th e config version may\ninfluence interpretation of the configuration, for example , to\ndetermine defaults. This is documented together with applicable\noptions. The current default for the config version itself is `3`.",
2534 "format": "uint32",
2535 "type": "integer"
2536 },
2537 "monitoring": {
2538 "$ref": "Monitoring",
2539 "description": "Monitoring configuration."
2540 },
2541 "producerProjectId": {
2542 "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.",
2543 "type": "string"
2544 },
2545 "systemTypes": {
2546 "description": "A list of all proto message types included i n this API service.\nIt serves similar purpose as [google.api.Service.types], ex cept that\nthese types are not needed by user-defined APIs. Therefore, they will not\nshow up in the generated discovery doc. This field should only be used\nto define system APIs in ESF.",
2547 "items": {
2548 "$ref": "Type"
2549 },
2550 "type": "array"
2551 },
2552 "visibility": {
2553 "$ref": "Visibility",
2554 "description": "API visibility configuration."
2555 },
2556 "name": {
2557 "description": "The DNS address at which this service is ava ilable,\ne.g. `calendar.googleapis.com`.",
2558 "type": "string"
2559 },
2560 "customError": {
2561 "$ref": "CustomError",
2562 "description": "Custom error configuration."
2563 },
2564 "title": {
2565 "description": "The product title associated with this servi ce.",
2566 "type": "string"
2567 },
2568 "endpoints": {
2569 "description": "Configuration for network endpoints. If thi s is empty, then an endpoint\nwith the same name as the service is automatically generated to service all\ndefined APIs.",
2570 "items": {
2571 "$ref": "Endpoint"
2572 },
2573 "type": "array"
2574 },
2575 "apis": {
2576 "description": "A list of API interfaces exported by this se rvice. Only the `name` field\nof the google.protobuf.Api needs to be provided by the configuration\nauthor, as the remaining fields will be derived from the IDL during the\nnormalization process. It is an error to specify an API interface h ere\nwhich cannot be resolved against the associated IDL files.",
2577 "items": {
2578 "$ref": "Api"
2579 },
2580 "type": "array"
2581 },
2582 "logs": {
2583 "description": "Defines the logs used by this service.",
2584 "items": {
2585 "$ref": "LogDescriptor"
2586 },
2587 "type": "array"
2588 },
2589 "types": {
2590 "description": "A list of all proto message types included i n this API service.\nTypes referenced directly or indirectly by the `apis` are\n automatically included. Messages which are not referenced but\nshall be include d, such as types used by the `google.protobuf.Any` type,\nshould be listed here by name. Example:\n\n types:\n - name: google.protobuf.Int32",
2591 "items": {
2592 "$ref": "Type"
2593 },
2594 "type": "array"
2595 },
2596 "sourceInfo": {
2597 "$ref": "SourceInfo",
2598 "description": "Output only. The source information for this configuration if available."
2599 },
2600 "http": {
2601 "$ref": "Http",
2602 "description": "HTTP configuration."
2603 },
2604 "backend": {
2605 "$ref": "Backend",
2606 "description": "API backend configuration."
2607 },
2608 "systemParameters": {
2609 "$ref": "SystemParameters",
2610 "description": "System parameter configuration."
2611 },
2612 "documentation": {
2613 "$ref": "Documentation",
2614 "description": "Additional API documentation."
2615 },
2616 "monitoredResources": {
2617 "description": "Defines the monitored resources used by this service. This is required\nby the Service.monitoring and Service.logging config urations.",
2618 "items": {
2619 "$ref": "MonitoredResourceDescriptor"
2620 },
2621 "type": "array"
2622 },
2623 "logging": {
2624 "$ref": "Logging",
2625 "description": "Logging configuration."
2626 },
2627 "enums": {
2628 "description": "A list of all enum types included in this AP I service. Enums\nreferenced directly or indirectly by the `apis` are automatic ally\nincluded. Enums which are not referenced but shall be included\nshould be listed here by name. Example:\n\n enums:\n - name: google.someapi.v1.Some Enum",
2629 "items": {
2630 "$ref": "Enum"
2631 },
2632 "type": "array"
2633 },
2634 "context": {
2635 "$ref": "Context",
2636 "description": "Context configuration."
2637 },
2638 "id": {
2639 "description": "A unique ID for a specific instance of this message, typically assigned\nby the client for tracking purpose. If empty, the s erver may choose to\ngenerate one instead.",
2640 "type": "string"
2641 },
2642 "usage": {
2643 "$ref": "Usage",
2644 "description": "Configuration controlling usage of this serv ice."
2645 }
2646 },
2647 "type": "object"
2648 },
2649 "ListOperationsResponse": {
2650 "description": "The response message for Operations.ListOperations." ,
2651 "id": "ListOperationsResponse",
2652 "properties": {
2653 "nextPageToken": {
2654 "description": "The standard List next-page token.",
2655 "type": "string"
2656 },
2657 "operations": {
2658 "description": "A list of operations that matches the specif ied filter in the request.",
2659 "items": {
2660 "$ref": "Operation"
2661 },
2662 "type": "array"
2663 }
2664 },
2665 "type": "object"
2666 },
2667 "OperationMetadata": {
2668 "description": "The metadata associated with a long running operatio n resource.",
2669 "id": "OperationMetadata",
2670 "properties": {
2671 "startTime": {
2672 "description": "The start time of the operation.",
2673 "format": "google-datetime",
2674 "type": "string"
2675 },
2676 "resourceNames": {
2677 "description": "The full name of the resources that this ope ration is directly\nassociated with.",
2325 "items": { 2678 "items": {
2326 "type": "string" 2679 "type": "string"
2327 }, 2680 },
2328 "type": "array" 2681 "type": "array"
2329 } 2682 },
2330 }, 2683 "steps": {
2331 "type": "object" 2684 "description": "Detailed status information for each step. T he order is undetermined.",
2332 }, 2685 "items": {
2333 "Enum": { 2686 "$ref": "Step"
2334 "description": "Enum type definition.", 2687 },
2335 "id": "Enum", 2688 "type": "array"
2336 "properties": { 2689 },
2337 "name": { 2690 "progressPercentage": {
2338 "description": "Enum type name.", 2691 "description": "Percentage of completion of this operation, ranging from 0 to 100.",
2339 "type": "string" 2692 "format": "int32",
2340 }, 2693 "type": "integer"
2341 "enumvalue": { 2694 }
2342 "description": "Enum value definitions.", 2695 },
2343 "items": { 2696 "type": "object"
2344 "$ref": "EnumValue" 2697 },
2345 }, 2698 "CustomHttpPattern": {
2346 "type": "array" 2699 "description": "A custom pattern is used for defining custom HTTP ve rb.",
2347 }, 2700 "id": "CustomHttpPattern",
2348 "options": {
2349 "description": "Protocol buffer options.",
2350 "items": {
2351 "$ref": "Option"
2352 },
2353 "type": "array"
2354 },
2355 "sourceContext": {
2356 "$ref": "SourceContext",
2357 "description": "The source context."
2358 },
2359 "syntax": {
2360 "description": "The source syntax.",
2361 "enum": [
2362 "SYNTAX_PROTO2",
2363 "SYNTAX_PROTO3"
2364 ],
2365 "enumDescriptions": [
2366 "Syntax `proto2`.",
2367 "Syntax `proto3`."
2368 ],
2369 "type": "string"
2370 }
2371 },
2372 "type": "object"
2373 },
2374 "Diagnostic": {
2375 "description": "Represents a diagnostic message (error or warning)",
2376 "id": "Diagnostic",
2377 "properties": { 2701 "properties": {
2378 "kind": { 2702 "kind": {
2379 "description": "The kind of diagnostic information provided. ", 2703 "description": "The name of this custom HTTP verb.",
2380 "enum": [ 2704 "type": "string"
2381 "WARNING", 2705 },
2382 "ERROR" 2706 "path": {
2383 ], 2707 "description": "The path matched by this custom verb.",
2384 "enumDescriptions": [ 2708 "type": "string"
2385 "Warnings and errors", 2709 }
2386 "Only errors" 2710 },
2387 ], 2711 "type": "object"
2388 "type": "string" 2712 },
2389 }, 2713 "SystemParameterRule": {
2390 "message": { 2714 "description": "Define a system parameter rule mapping system parame ter definitions to\nmethods.",
2391 "description": "Message describing the error or warning.", 2715 "id": "SystemParameterRule",
2392 "type": "string" 2716 "properties": {
2393 }, 2717 "selector": {
2394 "location": { 2718 "description": "Selects the methods to which this rule appli es. Use '*' to indicate all\nmethods in all APIs.\n\nRefer to selector for synta x details.",
2395 "description": "File name and line number of the error or wa rning.", 2719 "type": "string"
2396 "type": "string" 2720 },
2397 } 2721 "parameters": {
2398 }, 2722 "description": "Define parameters. Multiple names may be def ined for a parameter.\nFor a given method call, only one of them should be used. If multiple\nnames are used the behavior is implementation-dependent.\nIf none of the specified names are present the behavior is\nparameter-dependent.",
2399 "type": "object" 2723 "items": {
2400 }, 2724 "$ref": "SystemParameter"
2401 "EnableServiceRequest": { 2725 },
2402 "description": "Request message for EnableService method.", 2726 "type": "array"
2403 "id": "EnableServiceRequest", 2727 }
2404 "properties": { 2728 },
2405 "consumerId": { 2729 "type": "object"
2406 "description": "The identity of consumer resource which serv ice enablement will be\napplied to.\n\nThe Google Service Management implementat ion accepts the following\nforms:\n- \"project:<project_id>\"\n\nNote: this is m ade compatible with\ngoogle.api.servicecontrol.v1.Operation.consumer_id.", 2730 },
2407 "type": "string" 2731 "HttpRule": {
2408 } 2732 "description": "`HttpRule` defines the mapping of an RPC method to o ne or more HTTP\nREST APIs. The mapping determines what portions of the request \nmessage are populated from the path, query parameters, or body of\nthe HTTP re quest. The mapping is typically specified as an\n`google.api.http` annotation, see \"google/api/annotations.proto\"\nfor details.\n\nThe mapping consists of a field specifying the path template and\nmethod kind. The path template can refe r to fields in the request\nmessage, as in the example below which describes a R EST GET\noperation on a resource collection of messages:\n\n\n service Messag ing {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n opti on (google.api.http).get = \"/v1/messages/{message_id}/{sub.subfield}\";\n }\n }\n message GetMessageRequest {\n message SubMessage {\n s tring subfield = 1;\n }\n string message_id = 1; // mapped to the URL\ n SubMessage sub = 2; // `sub.subfield` is url-mapped\n }\n messag e Message {\n string text = 1; // content of the resource\n }\n\nThe sam e http annotation can alternatively be expressed inside the\n`GRPC API Configura tion` YAML file.\n\n http:\n rules:\n - selector: <proto_package_ name>.Messaging.GetMessage\n get: /v1/messages/{message_id}/{sub.subfie ld}\n\nThis definition enables an automatic, bidrectional mapping of HTTP\nJSON to RPC. Example:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456/foo` | `G etMessage(message_id: \"123456\" sub: SubMessage(subfield: \"foo\"))`\n\nIn gene ral, not only fields but also field paths can be referenced\nfrom a path pattern . Fields mapped to the path pattern cannot be\nrepeated and must have a primitiv e (non-message) type.\n\nAny fields in the request message which are not bound b y the path\npattern automatically become (optional) HTTP query\nparameters. Assu me the following definition of the request message:\n\n\n message GetMessageR equest {\n message SubMessage {\n string subfield = 1;\n }\n string message_id = 1; // mapped to the URL\n int64 revision = 2; // becomes a parameter\n SubMessage sub = 3; // `sub.subfield` becomes a pa rameter\n }\n\n\nThis enables a HTTP JSON to RPC mapping as below:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMe ssage(message_id: \"123456\" revision: 2 sub: SubMessage(subfield: \"foo\"))`\n\ nNote that fields which are mapped to HTTP parameters must have a\nprimitive typ e or a repeated primitive type. Message types are not\nallowed. In the case of a repeated type, the parameter can be\nrepeated in the URL, as in `...?param=A&pa ram=B`.\n\nFor HTTP method kinds which allow a request body, the `body` field\ns pecifies the mapping. Consider a REST update method on the\nmessage resource col lection:\n\n\n service Messaging {\n rpc UpdateMessage(UpdateMessageRequ est) returns (Message) {\n option (google.api.http) = {\n put: \ "/v1/messages/{message_id}\"\n body: \"message\"\n };\n }\n }\n message UpdateMessageRequest {\n string message_id = 1; // mappe d to the URL\n Message message = 2; // mapped to the body\n }\n\n\nThe following HTTP JSON to RPC mapping is enabled, where the\nrepresentation of the JSON in the request body is determined by\nprotos JSON encoding:\n\nHTTP | RPC\ n-----|-----\n`PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateMessage(m essage_id: \"123456\" message { text: \"Hi!\" })`\n\nThe special name `*` can be used in the body mapping to define that\nevery field not bound by the path temp late should be mapped to the\nrequest body. This enables the following alternat ive definition of\nthe update method:\n\n service Messaging {\n rpc Upda teMessage(Message) returns (Message) {\n option (google.api.http) = {\n put: \"/v1/messages/{message_id}\"\n body: \"*\"\n };\n }\n }\n message Message {\n string message_id = 1;\n string text = 2;\n }\n\n\nThe following HTTP JSON to RPC mapping is enabled:\n\nHTT P | RPC\n-----|-----\n`PUT /v1/messages/123456 { \"text\": \"Hi!\" }` | `UpdateM essage(message_id: \"123456\" text: \"Hi!\")`\n\nNote that when using `*` in the body mapping, it is not possible to\nhave HTTP parameters, as all fields not bo und by the path end in\nthe body. This makes this option more rarely used in pra ctice of\ndefining REST APIs. The common usage of `*` is in custom methods\nwhic h don't use the URL at all for transferring data.\n\nIt is possible to define mu ltiple HTTP methods for one RPC by using\nthe `additional_bindings` option. Exam ple:\n\n service Messaging {\n rpc GetMessage(GetMessageRequest) returns (Message) {\n option (google.api.http) = {\n get: \"/v1/message s/{message_id}\"\n additional_bindings {\n get: \"/v1/users/ {user_id}/messages/{message_id}\"\n }\n };\n }\n }\n message GetMessageRequest {\n string message_id = 1;\n string user_id = 2;\n }\n\n\nThis enables the following two alternative HTTP JSON to RPC\nma ppings:\n\nHTTP | RPC\n-----|-----\n`GET /v1/messages/123456` | `GetMessage(mess age_id: \"123456\")`\n`GET /v1/users/me/messages/123456` | `GetMessage(user_id: \"me\" message_id: \"123456\")`\n\n# Rules for HTTP mapping\n\nThe rules for map ping HTTP path, query parameters, and body fields\nto the request message are as follows:\n\n1. The `body` field specifies either `*` or a field path, or is\n omitted. If omitted, it assumes there is no HTTP body.\n2. Leaf fields (recursi ve expansion of nested messages in the\n request) can be classified into three types:\n (a) Matched in the URL template.\n (b) Covered by body (if body is `*`, everything except (a) fields;\n else everything under the body fi eld)\n (c) All other fields.\n3. URL query parameters found in the HTTP reque st are mapped to (c) fields.\n4. Any body sent with an HTTP request can contain only (b) fields.\n\nThe syntax of the path template is as follows:\n\n Templa te = \"/\" Segments [ Verb ] ;\n Segments = Segment { \"/\" Segment } ;\n Segment = \"*\" | \"**\" | LITERAL | Variable ;\n Variable = \"{\" FieldPath [ \"=\" Segments ] \"}\" ;\n FieldPath = IDENT { \".\" IDENT } ;\n Verb = \":\" LITERAL ;\n\nThe syntax `*` matches a single path segment. It follows the semantics of\n[RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String\nExpansion.\n\nThe syntax `**` matches zero or more path segments . It follows the semantics\nof [RFC 6570](https://tools.ietf.org/html/rfc6570) S ection 3.2.3 Reserved\nExpansion. NOTE: it must be the last segment in the path except the Verb.\n\nThe syntax `LITERAL` matches literal text in the URL path.\n \nThe syntax `Variable` matches the entire path as specified by its template;\nt his nested template must not contain further variables. If a variable\nmatches a single path segment, its template may be omitted, e.g. `{var}`\nis equivalent t o `{var=*}`.\n\nNOTE: the field paths in variables and in the `body` must not re fer to\nrepeated fields or map fields.\n\nUse CustomHttpPattern to specify any H TTP method that is not included in the\n`pattern` field, such as HEAD, or \"*\" to leave the HTTP method unspecified for\na given URL path rule. The wild-card r ule is useful for services that provide\ncontent to Web (HTML) clients.",
2409 }, 2733 "id": "HttpRule",
2410 "type": "object" 2734 "properties": {
2411 }, 2735 "additionalBindings": {
2412 "LabelDescriptor": { 2736 "description": "Additional HTTP bindings for the selector. N ested bindings must\nnot contain an `additional_bindings` field themselves (that is,\nthe nesting may only be one level deep).",
2413 "description": "A description of a label.", 2737 "items": {
2414 "id": "LabelDescriptor", 2738 "$ref": "HttpRule"
2415 "properties": { 2739 },
2416 "description": { 2740 "type": "array"
2417 "description": "A human-readable description for the label." , 2741 },
2418 "type": "string" 2742 "responseBody": {
2419 }, 2743 "description": "The name of the response field whose value i s mapped to the HTTP body of\nresponse. Other response fields are ignored. This field is optional. When\nnot set, the response message will be used as HTTP body of response.\nNOTE: the referred field must be not a repeated field and must be present\nat the top-level of response message type.",
2420 "valueType": { 2744 "type": "string"
2421 "description": "The type of data that can be assigned to the label.", 2745 },
2422 "enum": [ 2746 "mediaUpload": {
2423 "STRING", 2747 "$ref": "MediaUpload",
2424 "BOOL", 2748 "description": "Use this only for Scotty Requests. Do not us e this for media support using\nBytestream, add instead\n[][google.bytestream.Re stByteStream] as an API to your\nconfiguration for Bytestream methods."
2425 "INT64" 2749 },
2426 ], 2750 "selector": {
2427 "enumDescriptions": [ 2751 "description": "Selects methods to which this rule applies.\ n\nRefer to selector for syntax details.",
2428 "A variable-length string. This is the default.", 2752 "type": "string"
2429 "Boolean; true or false.", 2753 },
2430 "A 64-bit signed integer." 2754 "custom": {
2431 ], 2755 "$ref": "CustomHttpPattern",
2432 "type": "string" 2756 "description": "Custom pattern is used for defining custom v erbs."
2433 }, 2757 },
2434 "key": { 2758 "get": {
2435 "description": "The label key.", 2759 "description": "Used for listing and getting information abo ut resources.",
2436 "type": "string" 2760 "type": "string"
2437 } 2761 },
2438 }, 2762 "patch": {
2439 "type": "object" 2763 "description": "Used for updating a resource.",
2440 }, 2764 "type": "string"
2441 "GenerateConfigReportResponse": { 2765 },
2442 "description": "Response message for GenerateConfigReport method.", 2766 "put": {
2443 "id": "GenerateConfigReportResponse", 2767 "description": "Used for updating a resource.",
2444 "properties": { 2768 "type": "string"
2445 "diagnostics": { 2769 },
2446 "description": "Errors / Linter warnings associated with the service definition this\nreport\nbelongs to.", 2770 "delete": {
2447 "items": { 2771 "description": "Used for deleting a resource.",
2448 "$ref": "Diagnostic" 2772 "type": "string"
2449 }, 2773 },
2450 "type": "array" 2774 "body": {
2451 }, 2775 "description": "The name of the request field whose value is mapped to the HTTP body, or\n`*` for mapping all fields not captured by the pat h pattern to the HTTP\nbody. NOTE: the referred field must not be a repeated fie ld and must be\npresent at the top-level of request message type.",
2452 "serviceName": { 2776 "type": "string"
2453 "description": "Name of the service this report belongs to." , 2777 },
2454 "type": "string" 2778 "mediaDownload": {
2455 }, 2779 "$ref": "MediaDownload",
2456 "changeReports": { 2780 "description": "Use this only for Scotty Requests. Do not us e this for bytestream methods.\nFor media support, add instead [][google.bytestr eam.RestByteStream] as an\nAPI to your configuration."
2457 "description": "list of ChangeReport, each corresponding to comparison between two\nservice configurations.", 2781 },
2458 "items": { 2782 "post": {
2459 "$ref": "ChangeReport" 2783 "description": "Used for creating a resource.",
2460 }, 2784 "type": "string"
2461 "type": "array" 2785 }
2462 }, 2786 },
2463 "id": { 2787 "type": "object"
2464 "description": "ID of the service configuration this report belongs to.", 2788 },
2465 "type": "string" 2789 "VisibilityRule": {
2466 } 2790 "description": "A visibility rule provides visibility configuration for an individual API\nelement.",
2467 }, 2791 "id": "VisibilityRule",
2468 "type": "object" 2792 "properties": {
2469 }, 2793 "restriction": {
2470 "Type": { 2794 "description": "A comma-separated list of visibility labels that apply to the `selector`.\nAny of the listed labels can be used to grant the visibility.\n\nIf a rule has multiple labels, removing one of the labels but no t all of\nthem can break clients.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: GOOGLE_INTERNAL, TRUSTED_TESTER\n\nRemoving GOOGLE_INTERNAL from this restrictio n will break clients that\nrely on this method and only had access to it through GOOGLE_INTERNAL.",
2471 "description": "A protocol buffer message type.", 2795 "type": "string"
2472 "id": "Type", 2796 },
2473 "properties": { 2797 "selector": {
2474 "options": { 2798 "description": "Selects methods, messages, fields, enums, et c. to which this rule applies.\n\nRefer to selector for syntax details.",
2475 "description": "The protocol buffer options.", 2799 "type": "string"
2476 "items": { 2800 }
2477 "$ref": "Option" 2801 },
2478 }, 2802 "type": "object"
2479 "type": "array" 2803 },
2480 }, 2804 "MonitoringDestination": {
2481 "fields": { 2805 "description": "Configuration of a specific monitoring destination ( the producer project\nor the consumer project).",
2482 "description": "The list of fields.", 2806 "id": "MonitoringDestination",
2483 "items": { 2807 "properties": {
2484 "$ref": "Field" 2808 "monitoredResource": {
2485 }, 2809 "description": "The monitored resource type. The type must b e defined in\nService.monitored_resources section.",
2486 "type": "array" 2810 "type": "string"
2487 }, 2811 },
2488 "name": { 2812 "metrics": {
2489 "description": "The fully qualified message name.", 2813 "description": "Names of the metrics to report to this monit oring destination.\nEach name must be defined in Service.metrics section.",
2490 "type": "string"
2491 },
2492 "oneofs": {
2493 "description": "The list of types appearing in `oneof` defin itions in this type.",
2494 "items": { 2814 "items": {
2495 "type": "string" 2815 "type": "string"
2496 }, 2816 },
2497 "type": "array"
2498 },
2499 "syntax": {
2500 "description": "The source syntax.",
2501 "enum": [
2502 "SYNTAX_PROTO2",
2503 "SYNTAX_PROTO3"
2504 ],
2505 "enumDescriptions": [
2506 "Syntax `proto2`.",
2507 "Syntax `proto3`."
2508 ],
2509 "type": "string"
2510 },
2511 "sourceContext": {
2512 "$ref": "SourceContext",
2513 "description": "The source context."
2514 }
2515 },
2516 "type": "object"
2517 },
2518 "Experimental": {
2519 "description": "Experimental service configuration. These configurat ion options can\nonly be used by whitelisted users.",
2520 "id": "Experimental",
2521 "properties": {
2522 "authorization": {
2523 "$ref": "AuthorizationConfig",
2524 "description": "Authorization configuration."
2525 }
2526 },
2527 "type": "object"
2528 },
2529 "ListServiceConfigsResponse": {
2530 "description": "Response message for ListServiceConfigs method.",
2531 "id": "ListServiceConfigsResponse",
2532 "properties": {
2533 "serviceConfigs": {
2534 "description": "The list of service configuration resources. ",
2535 "items": {
2536 "$ref": "Service"
2537 },
2538 "type": "array"
2539 },
2540 "nextPageToken": {
2541 "description": "The token of the next page of results.",
2542 "type": "string"
2543 }
2544 },
2545 "type": "object"
2546 },
2547 "AuditConfig": {
2548 "description": "Specifies the audit configuration for a service.\nIt consists of which permission types are logged, and what identities, if\nany, ar e exempted from logging.\nAn AuditConifg must have one or more AuditLogConfigs.\ n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecifie d in each AuditConfig are enabled, and the exempted_members in each\nAuditConfig are exempted.\nExample Policy with multiple AuditConfigs:\n{\n \"audit_configs \": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [ \n {\n \"log_type\": \"DATA_READ\",\n \"exempted_member s\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_ type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \ "fooservice@googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail .com\"\n ]\n }\n ]\n }\n ]\n}\nFor fooservice, this pol icy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@g mail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.",
2549 "id": "AuditConfig",
2550 "properties": {
2551 "service": {
2552 "description": "Specifies a service that will be enabled for audit logging.\nFor example, `resourcemanager`, `storage`, `compute`.\n`allServ ices` is a special value that covers all services.",
2553 "type": "string"
2554 },
2555 "auditLogConfigs": {
2556 "description": "The configuration for logging of each type o f permission.\nNext ID: 4",
2557 "items": {
2558 "$ref": "AuditLogConfig"
2559 },
2560 "type": "array"
2561 },
2562 "exemptedMembers": {
2563 "items": {
2564 "type": "string"
2565 },
2566 "type": "array"
2567 }
2568 },
2569 "type": "object"
2570 },
2571 "Backend": {
2572 "description": "`Backend` defines the backend configuration for a se rvice.",
2573 "id": "Backend",
2574 "properties": {
2575 "rules": {
2576 "description": "A list of API backend rules that apply to in dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
2577 "items": {
2578 "$ref": "BackendRule"
2579 },
2580 "type": "array"
2581 }
2582 },
2583 "type": "object"
2584 },
2585 "SubmitConfigSourceRequest": {
2586 "description": "Request message for SubmitConfigSource method.",
2587 "id": "SubmitConfigSourceRequest",
2588 "properties": {
2589 "configSource": {
2590 "$ref": "ConfigSource",
2591 "description": "The source configuration for the service."
2592 },
2593 "validateOnly": {
2594 "description": "Optional. If set, this will result in the ge neration of a\n`google.api.Service` configuration based on the `ConfigSource` pr ovided,\nbut the generated config and the sources will NOT be persisted.",
2595 "type": "boolean"
2596 }
2597 },
2598 "type": "object"
2599 },
2600 "AuthorizationConfig": {
2601 "description": "Configuration of authorization.\n\nThis section dete rmines the authorization provider, if unspecified, then no\nauthorization check will be done.\n\nExample:\n\n experimental:\n authorization:\n pr ovider: firebaserules.googleapis.com",
2602 "id": "AuthorizationConfig",
2603 "properties": {
2604 "provider": {
2605 "description": "The name of the authorization provider, such as\nfirebaserules.googleapis.com.",
2606 "type": "string"
2607 }
2608 },
2609 "type": "object"
2610 },
2611 "DocumentationRule": {
2612 "description": "A documentation rule provides information about indi vidual API elements.",
2613 "id": "DocumentationRule",
2614 "properties": {
2615 "description": {
2616 "description": "Description of the selected API(s).",
2617 "type": "string"
2618 },
2619 "deprecationDescription": {
2620 "description": "Deprecation description of the selected elem ent(s). It can be provided if an\nelement is marked as `deprecated`.",
2621 "type": "string"
2622 },
2623 "selector": {
2624 "description": "The selector is a comma-separated list of pa tterns. Each pattern is a\nqualified name of the element which may end in \"*\", indicating a wildcard.\nWildcards are only allowed at the end and for a whole c omponent of the\nqualified name, i.e. \"foo.*\" is ok, but not \"foo.b*\" or \"f oo.*.bar\". To\nspecify a default for all applicable elements, the whole pattern \"*\"\nis used.",
2625 "type": "string"
2626 }
2627 },
2628 "type": "object"
2629 },
2630 "CloudAuditOptions": {
2631 "description": "Write a Cloud Audit log",
2632 "id": "CloudAuditOptions",
2633 "properties": {},
2634 "type": "object"
2635 },
2636 "ContextRule": {
2637 "description": "A context rule provides information about the contex t for an individual API\nelement.",
2638 "id": "ContextRule",
2639 "properties": {
2640 "selector": {
2641 "description": "Selects the methods to which this rule appli es.\n\nRefer to selector for syntax details.",
2642 "type": "string"
2643 },
2644 "provided": {
2645 "description": "A list of full type names of provided contex ts.",
2646 "items": {
2647 "type": "string"
2648 },
2649 "type": "array"
2650 },
2651 "requested": {
2652 "description": "A list of full type names of requested conte xts.",
2653 "items": {
2654 "type": "string"
2655 },
2656 "type": "array"
2657 }
2658 },
2659 "type": "object"
2660 },
2661 "MetricDescriptor": {
2662 "description": "Defines a metric type and its schema. Once a metric descriptor is created,\ndeleting or altering it stops data collection and makes the metric type's\nexisting data unusable.",
2663 "id": "MetricDescriptor",
2664 "properties": {
2665 "labels": {
2666 "description": "The set of labels that can be used to descri be a specific\ninstance of this metric type. For example, the\n`appengine.google apis.com/http/server/response_latencies` metric\ntype has a label for the HTTP r esponse code, `response_code`, so\nyou can look at latencies for successful resp onses or just\nfor responses that failed.",
2667 "items": {
2668 "$ref": "LabelDescriptor"
2669 },
2670 "type": "array"
2671 },
2672 "name": {
2673 "description": "The resource name of the metric descriptor. Depending on the\nimplementation, the name typically includes: (1) the parent re source name\nthat defines the scope of the metric type or of its data; and (2) t he\nmetric's URL-encoded type, which also appears in the `type` field of this\nd escriptor. For example, following is the resource name of a custom\nmetric withi n the GCP project `my-project-id`:\n\n \"projects/my-project-id/metricDescrip tors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"",
2674 "type": "string"
2675 },
2676 "type": {
2677 "description": "The metric type, including its DNS name pref ix. The type is not\nURL-encoded. All user-defined custom metric types have the DNS name\n`custom.googleapis.com`. Metric types should use a natural hierarchi cal\ngrouping. For example:\n\n \"custom.googleapis.com/invoice/paid/amount\" \n \"appengine.googleapis.com/http/server/response_latencies\"",
2678 "type": "string"
2679 },
2680 "valueType": {
2681 "description": "Whether the measurement is an integer, a flo ating-point number, etc.\nSome combinations of `metric_kind` and `value_type` mi ght not be supported.",
2682 "enum": [
2683 "VALUE_TYPE_UNSPECIFIED",
2684 "BOOL",
2685 "INT64",
2686 "DOUBLE",
2687 "STRING",
2688 "DISTRIBUTION",
2689 "MONEY"
2690 ],
2691 "enumDescriptions": [
2692 "Do not use this default value.",
2693 "The value is a boolean.\nThis value type can be used on ly if the metric kind is `GAUGE`.",
2694 "The value is a signed 64-bit integer.",
2695 "The value is a double precision floating point number." ,
2696 "The value is a text string.\nThis value type can be use d only if the metric kind is `GAUGE`.",
2697 "The value is a `Distribution`.",
2698 "The value is money."
2699 ],
2700 "type": "string"
2701 },
2702 "metricKind": {
2703 "description": "Whether the metric records instantaneous val ues, changes to a value, etc.\nSome combinations of `metric_kind` and `value_typ e` might not be supported.",
2704 "enum": [
2705 "METRIC_KIND_UNSPECIFIED",
2706 "GAUGE",
2707 "DELTA",
2708 "CUMULATIVE"
2709 ],
2710 "enumDescriptions": [
2711 "Do not use this default value.",
2712 "An instantaneous measurement of a value.",
2713 "The change in a value during a time interval.",
2714 "A value accumulated over a time interval. Cumulative\n measurements in a time series should have the same start time\nand increasing en d times, until an event resets the cumulative\nvalue to zero and sets a new star t time for the following\npoints."
2715 ],
2716 "type": "string"
2717 },
2718 "displayName": {
2719 "description": "A concise name for the metric, which can be displayed in user interfaces.\nUse sentence case without an ending period, for e xample \"Request count\".",
2720 "type": "string"
2721 },
2722 "description": {
2723 "description": "A detailed description of the metric, which can be used in documentation.",
2724 "type": "string"
2725 },
2726 "unit": {
2727 "description": "The unit in which the metric value is report ed. It is only applicable\nif the `value_type` is `INT64`, `DOUBLE`, or `DISTRIB UTION`. The\nsupported units are a subset of [The Unified Code for Units of\nMea sure](http://unitsofmeasure.org/ucum.html) standard:\n\n**Basic units (UNIT)**\n \n* `bit` bit\n* `By` byte\n* `s` second\n* `min` minute\n* `h` h our\n* `d` day\n\n**Prefixes (PREFIX)**\n\n* `k` kilo (10**3)\n* `M` mega (10**6)\n* `G` giga (10**9)\n* `T` tera (10**12)\n* `P ` peta (10**15)\n* `E` exa (10**18)\n* `Z` zetta (10**21)\n * `Y` yotta (10**24)\n* `m` milli (10**-3)\n* `u` micro (10**- 6)\n* `n` nano (10**-9)\n* `p` pico (10**-12)\n* `f` femto ( 10**-15)\n* `a` atto (10**-18)\n* `z` zepto (10**-21)\n* `y` yo cto (10**-24)\n* `Ki` kibi (2**10)\n* `Mi` mebi (2**20)\n* `Gi` gibi (2**30)\n* `Ti` tebi (2**40)\n\n**Grammar**\n\nThe grammar includ es the dimensionless unit `1`, such as `1/s`.\n\nThe grammar also includes these connectors:\n\n* `/` division (as an infix operator, e.g. `1/s`).\n* `.` multiplication (as an infix operator, e.g. `GBy.d`)\n\nThe grammar for a unit is as follows:\n\n Expression = Component { \".\" Component } { \"/\" Component } ;\n\n Component = [ PREFIX ] UNIT [ Annotation ]\n | Annotati on\n | \"1\"\n ;\n\n Annotation = \"{\" NAME \"}\" ;\n\nNotes:\n\n* `Annotation` is just a comment if it follows a `UNIT` and is\n equivalent to `1` if it is used alone. For examples,\n `{requests}/s == 1/s` , `By{transmitted}/s == By/s`.\n* `NAME` is a sequence of non-blank printable AS CII characters not\n containing '{' or '}'.",
2728 "type": "string"
2729 }
2730 },
2731 "type": "object"
2732 },
2733 "SourceContext": {
2734 "description": "`SourceContext` represents information about the sou rce of a\nprotobuf element, like the file in which it is defined.",
2735 "id": "SourceContext",
2736 "properties": {
2737 "fileName": {
2738 "description": "The path-qualified name of the .proto file t hat contained the associated\nprotobuf element. For example: `\"google/protobuf /source_context.proto\"`.",
2739 "type": "string"
2740 }
2741 },
2742 "type": "object"
2743 },
2744 "ListServicesResponse": {
2745 "description": "Response message for `ListServices` method.",
2746 "id": "ListServicesResponse",
2747 "properties": {
2748 "services": {
2749 "description": "The returned services will only have the nam e field set.",
2750 "items": {
2751 "$ref": "ManagedService"
2752 },
2753 "type": "array"
2754 },
2755 "nextPageToken": {
2756 "description": "Token that can be passed to `ListServices` t o resume a paginated query.",
2757 "type": "string"
2758 }
2759 },
2760 "type": "object"
2761 },
2762 "Endpoint": {
2763 "description": "`Endpoint` describes a network endpoint that serves a set of APIs.\nA service may expose any number of endpoints, and all endpoints share the\nsame service configuration, such as quota configuration and monitorin g\nconfiguration.\n\nExample service configuration:\n\n name: library-example .googleapis.com\n endpoints:\n # Below entry makes 'google.example.libra ry.v1.Library'\n # API be served from endpoint address library-example.goog leapis.com.\n # It also allows HTTP OPTIONS calls to be passed to the backe nd, for\n # it to decide whether the subsequent cross-origin request is\n # allowed to proceed.\n - name: library-example.googleapis.com\n all ow_cors: true",
2764 "id": "Endpoint",
2765 "properties": {
2766 "apis": {
2767 "description": "The list of APIs served by this endpoint.",
2768 "items": {
2769 "type": "string"
2770 },
2771 "type": "array"
2772 },
2773 "aliases": {
2774 "description": "DEPRECATED: This field is no longer supporte d. Instead of using aliases,\nplease specify multiple google.api.Endpoint for ea ch of the intented\nalias.\n\nAdditional names that this endpoint will be hosted on.",
2775 "items": {
2776 "type": "string"
2777 },
2778 "type": "array"
2779 },
2780 "features": {
2781 "description": "The list of features enabled on this endpoin t.",
2782 "items": {
2783 "type": "string"
2784 },
2785 "type": "array"
2786 },
2787 "allowCors": {
2788 "description": "Allowing\n[CORS](https://en.wikipedia.org/wi ki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the ba ckends served from this endpoint to\nreceive and respond to HTTP OPTIONS request s. The response will be used by\nthe browser to determine whether the subsequent cross-origin request is\nallowed to proceed.",
2789 "type": "boolean"
2790 },
2791 "name": {
2792 "description": "The canonical name of this endpoint.",
2793 "type": "string"
2794 }
2795 },
2796 "type": "object"
2797 },
2798 "OAuthRequirements": {
2799 "description": "OAuth scopes are a way to define data and permission s on data. For example,\nthere are scopes defined for \"Read-only access to Goog le Calendar\" and\n\"Access to Cloud Platform\". Users can consent to a scope fo r an application,\ngiving it permission to access that data on their behalf.\n\n OAuth scope specifications should be fairly coarse grained; a user will need\nto see and understand the text description of what your scope means.\n\nIn most ca ses: use one or at most two OAuth scopes for an entire family of\nproducts. If y our product has multiple APIs, you should probably be sharing\nthe OAuth scope a cross all of those APIs.\n\nWhen you need finer grained OAuth consent screens: t alk with your product\nmanagement about how developers will use them in practice .\n\nPlease note that even though each of the canonical scopes is enough for a\n request to be accepted and passed to the backend, a request can still fail\ndue to the backend requiring additional scopes or permissions.",
2800 "id": "OAuthRequirements",
2801 "properties": {
2802 "canonicalScopes": {
2803 "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 ",
2804 "type": "string"
2805 }
2806 },
2807 "type": "object"
2808 },
2809 "Usage": {
2810 "description": "Configuration controlling usage of a service.",
2811 "id": "Usage",
2812 "properties": {
2813 "producerNotificationChannel": {
2814 "description": "The full resource name of a channel used for sending notifications to the\nservice producer.\n\nGoogle Service Management cu rrently only supports\n[Google Cloud Pub/Sub](https://cloud.google.com/pubsub) a s a notification\nchannel. To use Google Cloud Pub/Sub as the channel, this must be the name\nof a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name fo rmat\ndocumented in https://cloud.google.com/pubsub/docs/overview.",
2815 "type": "string"
2816 },
2817 "rules": {
2818 "description": "A list of usage rules that apply to individu al API methods.\n\n**NOTE:** All service configuration rules follow \"last one w ins\" order.",
2819 "items": {
2820 "$ref": "UsageRule"
2821 },
2822 "type": "array"
2823 },
2824 "requirements": {
2825 "description": "Requirements that must be satisfied before a consumer project can use the\nservice. Each requirement is of the form <service .name>/<requirement-id>;\nfor example 'serviceusage.googleapis.com/billing-enabl ed'.",
2826 "items": {
2827 "type": "string"
2828 },
2829 "type": "array" 2817 "type": "array"
2830 } 2818 }
2831 }, 2819 },
2832 "type": "object" 2820 "type": "object"
2833 }, 2821 },
2834 "TestIamPermissionsResponse": { 2822 "Visibility": {
2835 "description": "Response message for `TestIamPermissions` method.", 2823 "description": "`Visibility` defines restrictions for the visibility of service\nelements. Restrictions are specified using visibility labels\n(e.g ., TRUSTED_TESTER) that are elsewhere linked to users and projects.\n\nUsers and projects can have access to more than one visibility label. The\neffective visi bility for multiple labels is the union of each label's\nelements, plus any unre stricted elements.\n\nIf an element and its parents have no restrictions, visibi lity is\nunconditionally granted.\n\nExample:\n\n visibility:\n rules:\n - selector: google.calendar.Calendar.EnhancedSearch\n restriction: TRUSTED_TESTER\n - selector: google.calendar.Calendar.Delegate\n res triction: GOOGLE_INTERNAL\n\nHere, all methods are publicly visible except for t he restricted methods\nEnhancedSearch and Delegate.",
2836 "id": "TestIamPermissionsResponse", 2824 "id": "Visibility",
2837 "properties": { 2825 "properties": {
2838 "permissions": { 2826 "rules": {
2839 "description": "A subset of `TestPermissionsRequest.permissi ons` that the caller is\nallowed.", 2827 "description": "A list of visibility rules that apply to ind ividual API elements.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.",
2828 "items": {
2829 "$ref": "VisibilityRule"
2830 },
2831 "type": "array"
2832 }
2833 },
2834 "type": "object"
2835 },
2836 "SystemParameters": {
2837 "description": "### System parameter configuration\n\nA system param eter is a special kind of parameter defined by the API\nsystem, not by an indivi dual API. It is typically mapped to an HTTP header\nand/or a URL query parameter . This configuration specifies which methods\nchange the names of the system par ameters.",
2838 "id": "SystemParameters",
2839 "properties": {
2840 "rules": {
2841 "description": "Define system parameters.\n\nThe parameters defined here will override the default parameters\nimplemented by the system. If this field is missing from the service\nconfig, default system parameters will be used. Default system parameters\nand names is implementation-dependent.\n\nEx ample: define api key for all methods\n\n system_parameters\n rules:\n - selector: \"*\"\n parameters:\n - name: api_key\n url_query_parameter: api_key\n\n\nExample: define 2 api key names for a specific method.\n\n system_parameters\n rules:\n - selector: \"/ListShelves\"\n parameters:\n - name: api_key\n http_header: Api-Key1\n - name: api_key\n http_heade r: Api-Key2\n\n**NOTE:** All service configuration rules follow \"last one wins\ " order.",
2842 "items": {
2843 "$ref": "SystemParameterRule"
2844 },
2845 "type": "array"
2846 }
2847 },
2848 "type": "object"
2849 },
2850 "ConfigChange": {
2851 "description": "Output generated from semantically comparing two ver sions of a service\nconfiguration.\n\nIncludes detailed information about a fiel d that have changed with\napplicable advice about potential consequences for the change, such as\nbackwards-incompatibility.",
2852 "id": "ConfigChange",
2853 "properties": {
2854 "newValue": {
2855 "description": "Value of the changed object in the new Servi ce configuration,\nin JSON format. This field will not be populated if ChangeTyp e == REMOVED.",
2856 "type": "string"
2857 },
2858 "changeType": {
2859 "description": "The type for this change, either ADDED, REMO VED, or MODIFIED.",
2860 "enum": [
2861 "CHANGE_TYPE_UNSPECIFIED",
2862 "ADDED",
2863 "REMOVED",
2864 "MODIFIED"
2865 ],
2866 "enumDescriptions": [
2867 "No value was provided.",
2868 "The changed object exists in the 'new' service configur ation, but not\nin the 'old' service configuration.",
2869 "The changed object exists in the 'old' service configur ation, but not\nin the 'new' service configuration.",
2870 "The changed object exists in both service configuration s, but its value\nis different."
2871 ],
2872 "type": "string"
2873 },
2874 "element": {
2875 "description": "Object hierarchy path to the change, with le vels separated by a '.'\ncharacter. For repeated fields, an applicable unique id entifier field is\nused for the index (usually selector, name, or id). For maps, the term\n'key' is used. If the field has no unique identifier, the numeric ind ex\nis used.\nExamples:\n- visibility.rules[selector==\"google.LibraryService.Cr eateBook\"].restriction\n- quota.metric_rules[selector==\"google\"].metric_costs [key==\"reads\"].value\n- logging.producer_destinations[0]",
2876 "type": "string"
2877 },
2878 "oldValue": {
2879 "description": "Value of the changed object in the old Servi ce configuration,\nin JSON format. This field will not be populated if ChangeTyp e == ADDED.",
2880 "type": "string"
2881 },
2882 "advices": {
2883 "description": "Collection of advice provided for this chang e, useful for determining the\npossible impact of this change.",
2884 "items": {
2885 "$ref": "Advice"
2886 },
2887 "type": "array"
2888 }
2889 },
2890 "type": "object"
2891 },
2892 "Rollout": {
2893 "description": "A rollout resource that defines how service configur ation versions are pushed\nto control plane systems. Typically, you create a new version of the\nservice config, and then create a Rollout to push the service c onfig.",
2894 "id": "Rollout",
2895 "properties": {
2896 "createdBy": {
2897 "description": "The user who created the Rollout. Readonly." ,
2898 "type": "string"
2899 },
2900 "trafficPercentStrategy": {
2901 "$ref": "TrafficPercentStrategy",
2902 "description": "Google Service Control selects service confi gurations based on\ntraffic percentage."
2903 },
2904 "rolloutId": {
2905 "description": "Optional unique identifier of this Rollout. Only lower case letters, digits\n and '-' are allowed.\n\nIf not specified by cl ient, the server will generate one. The generated id\nwill have the form of <dat e><revision number>, where \"date\" is the create\ndate in ISO 8601 format. \"r evision number\" is a monotonically increasing\npositive number that is reset ev ery day for each service.\nAn example of the generated rollout_id is '2016-02-16 r1'",
2906 "type": "string"
2907 },
2908 "deleteServiceStrategy": {
2909 "$ref": "DeleteServiceStrategy",
2910 "description": "The strategy associated with a rollout to de lete a `ManagedService`.\nReadonly."
2911 },
2912 "createTime": {
2913 "description": "Creation time of the rollout. Readonly.",
2914 "format": "google-datetime",
2915 "type": "string"
2916 },
2917 "status": {
2918 "description": "The status of this rollout. Readonly. In cas e of a failed rollout,\nthe system will automatically rollback to the current Ro llout\nversion. Readonly.",
2919 "enum": [
2920 "ROLLOUT_STATUS_UNSPECIFIED",
2921 "IN_PROGRESS",
2922 "SUCCESS",
2923 "CANCELLED",
2924 "FAILED",
2925 "PENDING"
2926 ],
2927 "enumDescriptions": [
2928 "No status specified.",
2929 "The Rollout is in progress.",
2930 "The Rollout has completed successfully.",
2931 "The Rollout has been cancelled. This can happen if you have overlapping\nRollout pushes, and the previous ones will be cancelled.",
2932 "The Rollout has failed. It is typically caused by confi guration errors.",
2933 "The Rollout has not started yet and is pending for exec ution."
2934 ],
2935 "type": "string"
2936 },
2937 "serviceName": {
2938 "description": "The name of the service associated with this Rollout.",
2939 "type": "string"
2940 }
2941 },
2942 "type": "object"
2943 },
2944 "GenerateConfigReportRequest": {
2945 "description": "Request message for GenerateConfigReport method.",
2946 "id": "GenerateConfigReportRequest",
2947 "properties": {
2948 "oldConfig": {
2949 "additionalProperties": {
2950 "description": "Properties of the object. Contains field @type with type URL.",
2951 "type": "any"
2952 },
2953 "description": "Service configuration against which the comp arison will be done.\nFor this version of API, the supported types are\ngoogle.a pi.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource ,\nand google.api.Service",
2954 "type": "object"
2955 },
2956 "newConfig": {
2957 "additionalProperties": {
2958 "description": "Properties of the object. Contains field @type with type URL.",
2959 "type": "any"
2960 },
2961 "description": "Service configuration for which we want to g enerate the report.\nFor this version of API, the supported types are\ngoogle.ap i.servicemanagement.v1.ConfigRef,\ngoogle.api.servicemanagement.v1.ConfigSource, \nand google.api.Service",
2962 "type": "object"
2963 }
2964 },
2965 "type": "object"
2966 },
2967 "SetIamPolicyRequest": {
2968 "description": "Request message for `SetIamPolicy` method.",
2969 "id": "SetIamPolicyRequest",
2970 "properties": {
2971 "policy": {
2972 "$ref": "Policy",
2973 "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An emp ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec ts)\nmight reject them."
2974 },
2975 "updateMask": {
2976 "description": "OPTIONAL: A FieldMask specifying which field s of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\ "\nThis field is only used by Cloud IAM.",
2977 "format": "google-fieldmask",
2978 "type": "string"
2979 }
2980 },
2981 "type": "object"
2982 },
2983 "DeleteServiceStrategy": {
2984 "description": "Strategy used to delete a service. This strategy is a placeholder only\nused by the system generated rollout to delete a service.",
2985 "id": "DeleteServiceStrategy",
2986 "properties": {},
2987 "type": "object"
2988 },
2989 "Step": {
2990 "description": "Represents the status of one operation step.",
2991 "id": "Step",
2992 "properties": {
2993 "status": {
2994 "description": "The status code.",
2995 "enum": [
2996 "STATUS_UNSPECIFIED",
2997 "DONE",
2998 "NOT_STARTED",
2999 "IN_PROGRESS",
3000 "FAILED",
3001 "CANCELLED"
3002 ],
3003 "enumDescriptions": [
3004 "Unspecifed code.",
3005 "The operation or step has completed without errors.",
3006 "The operation or step has not started yet.",
3007 "The operation or step is in progress.",
3008 "The operation or step has completed with errors.",
3009 "The operation or step has completed with cancellation."
3010 ],
3011 "type": "string"
3012 },
3013 "description": {
3014 "description": "The short description of the step.",
3015 "type": "string"
3016 }
3017 },
3018 "type": "object"
3019 },
3020 "LoggingDestination": {
3021 "description": "Configuration of a specific logging destination (the producer project\nor the consumer project).",
3022 "id": "LoggingDestination",
3023 "properties": {
3024 "logs": {
3025 "description": "Names of the logs to be sent to this destina tion. Each name must\nbe defined in the Service.logs section. If the log name is \nnot a domain scoped name, it will be automatically prefixed with\nthe service name followed by \"/\".",
2840 "items": { 3026 "items": {
2841 "type": "string" 3027 "type": "string"
2842 }, 3028 },
2843 "type": "array" 3029 "type": "array"
2844 } 3030 },
2845 }, 3031 "monitoredResource": {
2846 "type": "object" 3032 "description": "The monitored resource type. The type must b e defined in the\nService.monitored_resources section.",
2847 }, 3033 "type": "string"
2848 "GetIamPolicyRequest": { 3034 }
2849 "description": "Request message for `GetIamPolicy` method.", 3035 },
2850 "id": "GetIamPolicyRequest", 3036 "type": "object"
2851 "properties": {}, 3037 },
2852 "type": "object" 3038 "Option": {
2853 }, 3039 "description": "A protocol buffer option, which can be attached to a message, field,\nenumeration, etc.",
2854 "Context": { 3040 "id": "Option",
2855 "description": "`Context` defines which contexts an API requests.\n\ nExample:\n\n context:\n rules:\n - selector: \"*\"\n reques ted:\n - google.rpc.context.ProjectContext\n - google.rpc.context. OriginContext\n\nThe above specifies that all methods in the API request\n`googl e.rpc.context.ProjectContext` and\n`google.rpc.context.OriginContext`.\n\nAvaila ble context types are defined in package\n`google.rpc.context`.", 3041 "properties": {
2856 "id": "Context", 3042 "value": {
2857 "properties": { 3043 "additionalProperties": {
2858 "rules": { 3044 "description": "Properties of the object. Contains field @type with type URL.",
2859 "description": "A list of RPC context rules that apply to in dividual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.", 3045 "type": "any"
2860 "items": { 3046 },
2861 "$ref": "ContextRule" 3047 "description": "The option's value packed in an Any message. If the value is a primitive,\nthe corresponding wrapper type defined in google/ protobuf/wrappers.proto\nshould be used. If the value is an enum, it should be s tored as an int32\nvalue using the google.protobuf.Int32Value type.",
2862 }, 3048 "type": "object"
2863 "type": "array" 3049 },
2864 } 3050 "name": {
2865 }, 3051 "description": "The option's name. For protobuf built-in opt ions (options defined in\ndescriptor.proto), this is the short name. For example , `\"map_entry\"`.\nFor custom options, it should be the fully-qualified name. F or example,\n`\"google.api.http\"`.",
2866 "type": "object" 3052 "type": "string"
2867 }, 3053 }
2868 "Rule": { 3054 },
2869 "description": "A rule to be applied in a Policy.", 3055 "type": "object"
2870 "id": "Rule",
2871 "properties": {
2872 "description": {
2873 "description": "Human-readable description of the rule.",
2874 "type": "string"
2875 },
2876 "conditions": {
2877 "description": "Additional restrictions that must be met",
2878 "items": {
2879 "$ref": "Condition"
2880 },
2881 "type": "array"
2882 },
2883 "logConfig": {
2884 "description": "The config returned to callers of tech.iam.I AM.CheckPolicy for any entries\nthat match the LOG action.",
2885 "items": {
2886 "$ref": "LogConfig"
2887 },
2888 "type": "array"
2889 },
2890 "in": {
2891 "description": "If one or more 'in' clauses are specified, t he rule matches if\nthe PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.",
2892 "items": {
2893 "type": "string"
2894 },
2895 "type": "array"
2896 },
2897 "permissions": {
2898 "description": "A permission is a string of form '<service>. <resource type>.<verb>'\n(e.g., 'storage.buckets.list'). A value of '*' matches all permissions,\nand a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.",
2899 "items": {
2900 "type": "string"
2901 },
2902 "type": "array"
2903 },
2904 "action": {
2905 "description": "Required",
2906 "enum": [
2907 "NO_ACTION",
2908 "ALLOW",
2909 "ALLOW_WITH_LOG",
2910 "DENY",
2911 "DENY_WITH_LOG",
2912 "LOG"
2913 ],
2914 "enumDescriptions": [
2915 "Default no action.",
2916 "Matching 'Entries' grant access.",
2917 "Matching 'Entries' grant access and the caller promises to log\nthe request per the returned log_configs.",
2918 "Matching 'Entries' deny access.",
2919 "Matching 'Entries' deny access and the caller promises to log\nthe request per the returned log_configs.",
2920 "Matching 'Entries' tell IAM.Check callers to generate l ogs."
2921 ],
2922 "type": "string"
2923 },
2924 "notIn": {
2925 "description": "If one or more 'not_in' clauses are specifie d, the rule matches\nif the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entri es.\nThe format for in and not_in entries is the same as for members in a\nBindi ng (see google/iam/v1/policy.proto).",
2926 "items": {
2927 "type": "string"
2928 },
2929 "type": "array"
2930 }
2931 },
2932 "type": "object"
2933 } 3056 }
2934 }, 3057 },
2935 "servicePath": "", 3058 "servicePath": "",
2936 "title": "Google Service Management API", 3059 "title": "Google Service Management API",
2937 "version": "v1" 3060 "version": "v1"
2938 } 3061 }
OLDNEW
« no previous file with comments | « discovery/googleapis/servicecontrol__v1.json ('k') | discovery/googleapis/serviceuser__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698