OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/pubsub": { | 8 "https://www.googleapis.com/auth/pubsub": { |
9 "description": "View and manage Pub/Sub topics and subscript
ions" | 9 "description": "View and manage Pub/Sub topics and subscript
ions" |
10 } | 10 } |
11 } | 11 } |
12 } | 12 } |
13 }, | 13 }, |
14 "basePath": "/pubsub/v1beta1/", | 14 "basePath": "/pubsub/v1beta1/", |
15 "baseUrl": "https://www.googleapis.com/pubsub/v1beta1/", | 15 "baseUrl": "https://www.googleapis.com/pubsub/v1beta1/", |
16 "batchPath": "batch", | 16 "batchPath": "batch", |
17 "description": "Provides reliable, many-to-many, asynchronous messaging betw
een applications.", | 17 "description": "Provides reliable, many-to-many, asynchronous messaging betw
een applications.", |
18 "discoveryVersion": "v1", | 18 "discoveryVersion": "v1", |
19 "documentationLink": "https://developers.google.com/pubsub/v1beta1", | 19 "documentationLink": "https://developers.google.com/pubsub/v1beta1", |
20 "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/ZNCHPHCSd3g-pKxhKxXU20RmqpY\"", | 20 "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/xuml-cR3i2tpiaxCozjiT_iUO9o\"", |
21 "icons": { | 21 "icons": { |
22 "x16": "https://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "https://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "https://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "https://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "pubsub:v1beta1", | 25 "id": "pubsub:v1beta1", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "labels": [ | 27 "labels": [ |
28 "limited_availability" | 28 "limited_availability" |
29 ], | 29 ], |
30 "name": "pubsub", | 30 "name": "pubsub", |
(...skipping 187 matching lines...) Loading... |
218 "request": { | 218 "request": { |
219 "$ref": "PullRequest" | 219 "$ref": "PullRequest" |
220 }, | 220 }, |
221 "response": { | 221 "response": { |
222 "$ref": "PullResponse" | 222 "$ref": "PullResponse" |
223 }, | 223 }, |
224 "scopes": [ | 224 "scopes": [ |
225 "https://www.googleapis.com/auth/cloud-platform", | 225 "https://www.googleapis.com/auth/cloud-platform", |
226 "https://www.googleapis.com/auth/pubsub" | 226 "https://www.googleapis.com/auth/pubsub" |
227 ] | 227 ] |
| 228 }, |
| 229 "pullBatch": { |
| 230 "description": "Pulls messages from the server. Returns an e
mpty list if there are no messages available in the backlog. The system is free
to return UNAVAILABLE if there too many pull requests outstanding for a given su
bscription.", |
| 231 "httpMethod": "POST", |
| 232 "id": "pubsub.subscriptions.pullBatch", |
| 233 "path": "subscriptions/pullBatch", |
| 234 "request": { |
| 235 "$ref": "PullBatchRequest" |
| 236 }, |
| 237 "response": { |
| 238 "$ref": "PullBatchResponse" |
| 239 }, |
| 240 "scopes": [ |
| 241 "https://www.googleapis.com/auth/cloud-platform", |
| 242 "https://www.googleapis.com/auth/pubsub" |
| 243 ] |
228 } | 244 } |
229 } | 245 } |
230 }, | 246 }, |
231 "topics": { | 247 "topics": { |
232 "methods": { | 248 "methods": { |
233 "create": { | 249 "create": { |
234 "description": "Creates the given topic with the given name.
", | 250 "description": "Creates the given topic with the given name.
", |
235 "httpMethod": "POST", | 251 "httpMethod": "POST", |
236 "id": "pubsub.topics.create", | 252 "id": "pubsub.topics.create", |
237 "path": "topics", | 253 "path": "topics", |
(...skipping 89 matching lines...) Loading... |
327 "httpMethod": "POST", | 343 "httpMethod": "POST", |
328 "id": "pubsub.topics.publish", | 344 "id": "pubsub.topics.publish", |
329 "path": "topics/publish", | 345 "path": "topics/publish", |
330 "request": { | 346 "request": { |
331 "$ref": "PublishRequest" | 347 "$ref": "PublishRequest" |
332 }, | 348 }, |
333 "scopes": [ | 349 "scopes": [ |
334 "https://www.googleapis.com/auth/cloud-platform", | 350 "https://www.googleapis.com/auth/cloud-platform", |
335 "https://www.googleapis.com/auth/pubsub" | 351 "https://www.googleapis.com/auth/pubsub" |
336 ] | 352 ] |
| 353 }, |
| 354 "publishBatch": { |
| 355 "description": "Adds one or more messages to the topic. Retu
rns NOT_FOUND if the topic does not exist.", |
| 356 "httpMethod": "POST", |
| 357 "id": "pubsub.topics.publishBatch", |
| 358 "path": "topics/publishBatch", |
| 359 "request": { |
| 360 "$ref": "PublishBatchRequest" |
| 361 }, |
| 362 "response": { |
| 363 "$ref": "PublishBatchResponse" |
| 364 }, |
| 365 "scopes": [ |
| 366 "https://www.googleapis.com/auth/cloud-platform", |
| 367 "https://www.googleapis.com/auth/pubsub" |
| 368 ] |
337 } | 369 } |
338 } | 370 } |
339 } | 371 } |
340 }, | 372 }, |
341 "revision": "20141028", | 373 "revision": "20141107", |
342 "rootUrl": "https://www.googleapis.com/", | 374 "rootUrl": "https://www.googleapis.com/", |
343 "schemas": { | 375 "schemas": { |
344 "AcknowledgeRequest": { | 376 "AcknowledgeRequest": { |
| 377 "description": "Request for the Acknowledge method.", |
345 "id": "AcknowledgeRequest", | 378 "id": "AcknowledgeRequest", |
346 "properties": { | 379 "properties": { |
347 "ackId": { | 380 "ackId": { |
348 "description": "The Ack ID for the message being acknowledge
d. This was returned by the Pub/Sub system in the Pull response.", | 381 "description": "The Ack ID for the message being acknowledge
d. This was returned by the Pub/Sub system in the Pull response.", |
349 "items": { | 382 "items": { |
350 "type": "string" | 383 "type": "string" |
351 }, | 384 }, |
352 "type": "array" | 385 "type": "array" |
353 }, | 386 }, |
354 "subscription": { | 387 "subscription": { |
(...skipping 17 matching lines...) Loading... |
372 "type": "string" | 405 "type": "string" |
373 }, | 406 }, |
374 "strValue": { | 407 "strValue": { |
375 "description": "A string value.", | 408 "description": "A string value.", |
376 "type": "string" | 409 "type": "string" |
377 } | 410 } |
378 }, | 411 }, |
379 "type": "object" | 412 "type": "object" |
380 }, | 413 }, |
381 "ListSubscriptionsResponse": { | 414 "ListSubscriptionsResponse": { |
| 415 "description": "Response for the ListSubscriptions method.", |
382 "id": "ListSubscriptionsResponse", | 416 "id": "ListSubscriptionsResponse", |
383 "properties": { | 417 "properties": { |
384 "nextPageToken": { | 418 "nextPageToken": { |
385 "description": "If not empty, indicates that there are more
subscriptions that match the request and this value should be passed to the next
ListSubscriptionsRequest to continue.", | 419 "description": "If not empty, indicates that there are more
subscriptions that match the request and this value should be passed to the next
ListSubscriptionsRequest to continue.", |
386 "type": "string" | 420 "type": "string" |
387 }, | 421 }, |
388 "subscription": { | 422 "subscription": { |
389 "description": "The subscriptions that match the request.", | 423 "description": "The subscriptions that match the request.", |
390 "items": { | 424 "items": { |
391 "$ref": "Subscription" | 425 "$ref": "Subscription" |
392 }, | 426 }, |
393 "type": "array" | 427 "type": "array" |
394 } | 428 } |
395 }, | 429 }, |
396 "type": "object" | 430 "type": "object" |
397 }, | 431 }, |
398 "ListTopicsResponse": { | 432 "ListTopicsResponse": { |
| 433 "description": "Response for the ListTopics method.", |
399 "id": "ListTopicsResponse", | 434 "id": "ListTopicsResponse", |
400 "properties": { | 435 "properties": { |
401 "nextPageToken": { | 436 "nextPageToken": { |
402 "description": "If not empty, indicates that there are more
topics that match the request, and this value should be passed to the next ListT
opicsRequest to continue.", | 437 "description": "If not empty, indicates that there are more
topics that match the request, and this value should be passed to the next ListT
opicsRequest to continue.", |
403 "type": "string" | 438 "type": "string" |
404 }, | 439 }, |
405 "topic": { | 440 "topic": { |
406 "description": "The resulting topics.", | 441 "description": "The resulting topics.", |
407 "items": { | 442 "items": { |
408 "$ref": "Topic" | 443 "$ref": "Topic" |
409 }, | 444 }, |
410 "type": "array" | 445 "type": "array" |
411 } | 446 } |
412 }, | 447 }, |
413 "type": "object" | 448 "type": "object" |
414 }, | 449 }, |
415 "ModifyAckDeadlineRequest": { | 450 "ModifyAckDeadlineRequest": { |
| 451 "description": "Request for the ModifyAckDeadline method.", |
416 "id": "ModifyAckDeadlineRequest", | 452 "id": "ModifyAckDeadlineRequest", |
417 "properties": { | 453 "properties": { |
418 "ackDeadlineSeconds": { | 454 "ackDeadlineSeconds": { |
419 "description": "The new Ack deadline. Must be >= 0.", | 455 "description": "The new Ack deadline. Must be >= 0.", |
420 "format": "int32", | 456 "format": "int32", |
421 "type": "integer" | 457 "type": "integer" |
422 }, | 458 }, |
423 "ackId": { | 459 "ackId": { |
424 "description": "The Ack ID.", | 460 "description": "The Ack ID.", |
425 "type": "string" | 461 "type": "string" |
426 }, | 462 }, |
427 "subscription": { | 463 "subscription": { |
428 "description": "The name of the subscription from which mess
ages are being pulled.", | 464 "description": "The name of the subscription from which mess
ages are being pulled.", |
429 "type": "string" | 465 "type": "string" |
430 } | 466 } |
431 }, | 467 }, |
432 "type": "object" | 468 "type": "object" |
433 }, | 469 }, |
434 "ModifyPushConfigRequest": { | 470 "ModifyPushConfigRequest": { |
| 471 "description": "Request for the ModifyPushConfig method.", |
435 "id": "ModifyPushConfigRequest", | 472 "id": "ModifyPushConfigRequest", |
436 "properties": { | 473 "properties": { |
437 "pushConfig": { | 474 "pushConfig": { |
438 "$ref": "PushConfig", | 475 "$ref": "PushConfig", |
439 "description": "An empty push_config indicates that the Pub/
Sub system should pause pushing messages from the given subscription." | 476 "description": "An empty push_config indicates that the Pub/
Sub system should pause pushing messages from the given subscription." |
440 }, | 477 }, |
441 "subscription": { | 478 "subscription": { |
442 "description": "The name of the subscription.", | 479 "description": "The name of the subscription.", |
443 "type": "string" | 480 "type": "string" |
444 } | 481 } |
445 }, | 482 }, |
446 "type": "object" | 483 "type": "object" |
447 }, | 484 }, |
| 485 "PublishBatchRequest": { |
| 486 "description": "Request for the PublishBatch method.", |
| 487 "id": "PublishBatchRequest", |
| 488 "properties": { |
| 489 "messages": { |
| 490 "description": "The messages to publish.", |
| 491 "items": { |
| 492 "$ref": "PubsubMessage" |
| 493 }, |
| 494 "type": "array" |
| 495 }, |
| 496 "topic": { |
| 497 "description": "The messages in the request will be publishe
d on this topic.", |
| 498 "type": "string" |
| 499 } |
| 500 }, |
| 501 "type": "object" |
| 502 }, |
| 503 "PublishBatchResponse": { |
| 504 "description": "Response for the PublishBatch method.", |
| 505 "id": "PublishBatchResponse", |
| 506 "properties": { |
| 507 "messageIds": { |
| 508 "description": "The server-assigned ID of each published mes
sage, in the same order as the messages in the request. IDs are guaranteed to be
unique within the topic.", |
| 509 "items": { |
| 510 "type": "string" |
| 511 }, |
| 512 "type": "array" |
| 513 } |
| 514 }, |
| 515 "type": "object" |
| 516 }, |
448 "PublishRequest": { | 517 "PublishRequest": { |
| 518 "description": "Request for the Publish method.", |
449 "id": "PublishRequest", | 519 "id": "PublishRequest", |
450 "properties": { | 520 "properties": { |
451 "message": { | 521 "message": { |
452 "$ref": "PubsubMessage", | 522 "$ref": "PubsubMessage", |
453 "description": "The message to publish." | 523 "description": "The message to publish." |
454 }, | 524 }, |
455 "topic": { | 525 "topic": { |
456 "description": "The message in the request will be published
on this topic.", | 526 "description": "The message in the request will be published
on this topic.", |
457 "type": "string" | 527 "type": "string" |
458 } | 528 } |
(...skipping 31 matching lines...) Loading... |
490 "description": "The message payload.", | 560 "description": "The message payload.", |
491 "format": "byte", | 561 "format": "byte", |
492 "type": "string" | 562 "type": "string" |
493 }, | 563 }, |
494 "label": { | 564 "label": { |
495 "description": "Optional list of labels for this message. Ke
ys in this collection must be unique.", | 565 "description": "Optional list of labels for this message. Ke
ys in this collection must be unique.", |
496 "items": { | 566 "items": { |
497 "$ref": "Label" | 567 "$ref": "Label" |
498 }, | 568 }, |
499 "type": "array" | 569 "type": "array" |
| 570 }, |
| 571 "messageId": { |
| 572 "description": "ID of this message assigned by the server at
publication time. Guaranteed to be unique within the topic. This value may be r
ead by a subscriber that receives a PubsubMessage via a Pull call or a push deli
very. It must not be populated by a publisher in a Publish call.", |
| 573 "type": "string" |
| 574 } |
| 575 }, |
| 576 "type": "object" |
| 577 }, |
| 578 "PullBatchRequest": { |
| 579 "description": "Request for the PullBatch method.", |
| 580 "id": "PullBatchRequest", |
| 581 "properties": { |
| 582 "maxEvents": { |
| 583 "description": "The maximum number of PubsubEvents returned
for this request. The Pub/Sub system may return fewer than the number of events
specified.", |
| 584 "format": "int32", |
| 585 "type": "integer" |
| 586 }, |
| 587 "returnImmediately": { |
| 588 "description": "If this is specified as true the system will
respond immediately even if it is not able to return a message in the Pull resp
onse. Otherwise the system is allowed to wait until at least one message is avai
lable rather than returning no messages. The client may cancel the request if it
does not wish to wait any longer for the response.", |
| 589 "type": "boolean" |
| 590 }, |
| 591 "subscription": { |
| 592 "description": "The subscription from which messages should
be pulled.", |
| 593 "type": "string" |
| 594 } |
| 595 }, |
| 596 "type": "object" |
| 597 }, |
| 598 "PullBatchResponse": { |
| 599 "description": "Response for the PullBatch method.", |
| 600 "id": "PullBatchResponse", |
| 601 "properties": { |
| 602 "pullResponses": { |
| 603 "description": "Received Pub/Sub messages or status events.
The Pub/Sub system will return zero messages if there are no more messages avail
able in the backlog. The Pub/Sub system may return fewer than the max_events req
uested even if there are more messages available in the backlog.", |
| 604 "items": { |
| 605 "$ref": "PullResponse" |
| 606 }, |
| 607 "type": "array" |
500 } | 608 } |
501 }, | 609 }, |
502 "type": "object" | 610 "type": "object" |
503 }, | 611 }, |
504 "PullRequest": { | 612 "PullRequest": { |
| 613 "description": "Request for the Pull method.", |
505 "id": "PullRequest", | 614 "id": "PullRequest", |
506 "properties": { | 615 "properties": { |
507 "returnImmediately": { | 616 "returnImmediately": { |
508 "description": "If this is specified as true the system will
respond immediately even if it is not able to return a message in the Pull resp
onse. Otherwise the system is allowed to wait until at least one message is avai
lable rather than returning FAILED_PRECONDITION. The client may cancel the reque
st if it does not wish to wait any longer for the response.", | 617 "description": "If this is specified as true the system will
respond immediately even if it is not able to return a message in the Pull resp
onse. Otherwise the system is allowed to wait until at least one message is avai
lable rather than returning FAILED_PRECONDITION. The client may cancel the reque
st if it does not wish to wait any longer for the response.", |
509 "type": "boolean" | 618 "type": "boolean" |
510 }, | 619 }, |
511 "subscription": { | 620 "subscription": { |
512 "description": "The subscription from which a message should
be pulled.", | 621 "description": "The subscription from which a message should
be pulled.", |
513 "type": "string" | 622 "type": "string" |
514 } | 623 } |
(...skipping 59 matching lines...) Loading... |
574 "type": "string" | 683 "type": "string" |
575 } | 684 } |
576 }, | 685 }, |
577 "type": "object" | 686 "type": "object" |
578 } | 687 } |
579 }, | 688 }, |
580 "servicePath": "pubsub/v1beta1/", | 689 "servicePath": "pubsub/v1beta1/", |
581 "title": "Cloud Pub/Sub API", | 690 "title": "Cloud Pub/Sub API", |
582 "version": "v1beta1" | 691 "version": "v1beta1" |
583 } | 692 } |
OLD | NEW |