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

Side by Side Diff: discovery/googleapis_beta/pubsub__v1beta1.json

Issue 559053002: Generate 0.1.0 version of googleapis/googleapis_beta (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 },
8 "https://www.googleapis.com/auth/pubsub": {
9 "description": "View and manage Pub/Sub topics and subscript ions"
10 }
11 }
12 }
13 },
14 "basePath": "/pubsub/v1beta1/",
15 "baseUrl": "https://www.googleapis.com/pubsub/v1beta1/",
16 "batchPath": "batch",
17 "description": "Provides reliable, many-to-many, asynchronous messaging betw een applications.",
18 "discoveryVersion": "v1",
19 "documentationLink": "https://developers.google.com/pubsub/v1beta1",
20 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/0Fp5e_WTNFkUTCc0NWbk-5s1uKQ\"",
21 "icons": {
22 "x16": "https://www.google.com/images/icons/product/search-16.gif",
23 "x32": "https://www.google.com/images/icons/product/search-32.gif"
24 },
25 "id": "pubsub:v1beta1",
26 "kind": "discovery#restDescription",
27 "labels": [
28 "limited_availability"
29 ],
30 "name": "pubsub",
31 "ownerDomain": "google.com",
32 "ownerName": "Google",
33 "parameters": {
34 "alt": {
35 "default": "json",
36 "description": "Data format for the response.",
37 "enum": [
38 "json"
39 ],
40 "enumDescriptions": [
41 "Responses with Content-Type of application/json"
42 ],
43 "location": "query",
44 "type": "string"
45 },
46 "fields": {
47 "description": "Selector specifying which fields to include in a par tial response.",
48 "location": "query",
49 "type": "string"
50 },
51 "key": {
52 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
53 "location": "query",
54 "type": "string"
55 },
56 "oauth_token": {
57 "description": "OAuth 2.0 token for the current user.",
58 "location": "query",
59 "type": "string"
60 },
61 "prettyPrint": {
62 "default": "true",
63 "description": "Returns response with indentations and line breaks." ,
64 "location": "query",
65 "type": "boolean"
66 },
67 "quotaUser": {
68 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters. Overrides userIp if both are provided.",
69 "location": "query",
70 "type": "string"
71 },
72 "userIp": {
73 "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
74 "location": "query",
75 "type": "string"
76 }
77 },
78 "protocol": "rest",
79 "resources": {
80 "subscriptions": {
81 "methods": {
82 "acknowledge": {
83 "description": "Acknowledges a particular received message: the Pub/Sub system can remove the given message from the subscription. Acknowled ging a message whose Ack deadline has expired may succeed, but the message could have been already redelivered. Acknowledging a message more than once will not result in an error. This is only used for messages received via pull.",
84 "httpMethod": "POST",
85 "id": "pubsub.subscriptions.acknowledge",
86 "path": "subscriptions/acknowledge",
87 "request": {
88 "$ref": "AcknowledgeRequest"
89 },
90 "scopes": [
91 "https://www.googleapis.com/auth/cloud-platform",
92 "https://www.googleapis.com/auth/pubsub"
93 ]
94 },
95 "create": {
96 "description": "Creates a subscription on a given topic for a given subscriber. If the subscription already exists, returns ALREADY_EXISTS. If the corresponding topic doesn't exist, returns NOT_FOUND.",
97 "httpMethod": "POST",
98 "id": "pubsub.subscriptions.create",
99 "path": "subscriptions",
100 "request": {
101 "$ref": "Subscription"
102 },
103 "response": {
104 "$ref": "Subscription"
105 },
106 "scopes": [
107 "https://www.googleapis.com/auth/cloud-platform",
108 "https://www.googleapis.com/auth/pubsub"
109 ]
110 },
111 "delete": {
112 "description": "Deletes an existing subscription. All pendin g messages in the subscription are immediately dropped. Calls to Pull after dele tion will return NOT_FOUND.",
113 "httpMethod": "DELETE",
114 "id": "pubsub.subscriptions.delete",
115 "parameterOrder": [
116 "subscription"
117 ],
118 "parameters": {
119 "subscription": {
120 "description": "The subscription to delete.",
121 "location": "path",
122 "required": true,
123 "type": "string"
124 }
125 },
126 "path": "subscriptions/{+subscription}",
127 "scopes": [
128 "https://www.googleapis.com/auth/cloud-platform",
129 "https://www.googleapis.com/auth/pubsub"
130 ]
131 },
132 "get": {
133 "description": "Gets the configuration details of a subscrip tion.",
134 "httpMethod": "GET",
135 "id": "pubsub.subscriptions.get",
136 "parameterOrder": [
137 "subscription"
138 ],
139 "parameters": {
140 "subscription": {
141 "description": "The name of the subscription to get. ",
142 "location": "path",
143 "required": true,
144 "type": "string"
145 }
146 },
147 "path": "subscriptions/{+subscription}",
148 "response": {
149 "$ref": "Subscription"
150 },
151 "scopes": [
152 "https://www.googleapis.com/auth/cloud-platform",
153 "https://www.googleapis.com/auth/pubsub"
154 ]
155 },
156 "list": {
157 "description": "Lists matching subscriptions.",
158 "httpMethod": "GET",
159 "id": "pubsub.subscriptions.list",
160 "parameters": {
161 "maxResults": {
162 "description": "Maximum number of subscriptions to r eturn.",
163 "format": "int32",
164 "location": "query",
165 "type": "integer"
166 },
167 "pageToken": {
168 "description": "The value obtained in the last ListS ubscriptionsResponse for continuation.",
169 "location": "query",
170 "type": "string"
171 },
172 "query": {
173 "description": "A valid label query expression.",
174 "location": "query",
175 "type": "string"
176 }
177 },
178 "path": "subscriptions",
179 "response": {
180 "$ref": "ListSubscriptionsResponse"
181 },
182 "scopes": [
183 "https://www.googleapis.com/auth/cloud-platform",
184 "https://www.googleapis.com/auth/pubsub"
185 ]
186 },
187 "modifyAckDeadline": {
188 "description": "Modifies the Ack deadline for a message rece ived from a pull request.",
189 "httpMethod": "POST",
190 "id": "pubsub.subscriptions.modifyAckDeadline",
191 "path": "subscriptions/modifyAckDeadline",
192 "request": {
193 "$ref": "ModifyAckDeadlineRequest"
194 },
195 "scopes": [
196 "https://www.googleapis.com/auth/cloud-platform",
197 "https://www.googleapis.com/auth/pubsub"
198 ]
199 },
200 "modifyPushConfig": {
201 "description": "Modifies the PushConfig for a specified subs cription. This method can be used to suspend the flow of messages to an end poin t by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified.",
202 "httpMethod": "POST",
203 "id": "pubsub.subscriptions.modifyPushConfig",
204 "path": "subscriptions/modifyPushConfig",
205 "request": {
206 "$ref": "ModifyPushConfigRequest"
207 },
208 "scopes": [
209 "https://www.googleapis.com/auth/cloud-platform",
210 "https://www.googleapis.com/auth/pubsub"
211 ]
212 },
213 "pull": {
214 "description": "Pulls a single message from the server. If r eturn_immediately is true, and no messages are available in the subscription, th is method returns FAILED_PRECONDITION. The system is free to return an UNAVAILAB LE error if no messages are available in a reasonable amount of time (to reduce system load).",
215 "httpMethod": "POST",
216 "id": "pubsub.subscriptions.pull",
217 "path": "subscriptions/pull",
218 "request": {
219 "$ref": "PullRequest"
220 },
221 "response": {
222 "$ref": "PullResponse"
223 },
224 "scopes": [
225 "https://www.googleapis.com/auth/cloud-platform",
226 "https://www.googleapis.com/auth/pubsub"
227 ]
228 }
229 }
230 },
231 "topics": {
232 "methods": {
233 "create": {
234 "description": "Creates the given topic with the given name. ",
235 "httpMethod": "POST",
236 "id": "pubsub.topics.create",
237 "path": "topics",
238 "request": {
239 "$ref": "Topic"
240 },
241 "response": {
242 "$ref": "Topic"
243 },
244 "scopes": [
245 "https://www.googleapis.com/auth/cloud-platform",
246 "https://www.googleapis.com/auth/pubsub"
247 ]
248 },
249 "delete": {
250 "description": "Deletes the topic with the given name. All s ubscriptions to this topic are also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is deleted, a new topic may be created with the same n ame.",
251 "httpMethod": "DELETE",
252 "id": "pubsub.topics.delete",
253 "parameterOrder": [
254 "topic"
255 ],
256 "parameters": {
257 "topic": {
258 "description": "Name of the topic to delete.",
259 "location": "path",
260 "required": true,
261 "type": "string"
262 }
263 },
264 "path": "topics/{+topic}",
265 "scopes": [
266 "https://www.googleapis.com/auth/cloud-platform",
267 "https://www.googleapis.com/auth/pubsub"
268 ]
269 },
270 "get": {
271 "description": "Gets the configuration of a topic. Since the topic only has the name attribute, this method is only useful to check the exis tence of a topic. If other attributes are added in the future, they will be retu rned here.",
272 "httpMethod": "GET",
273 "id": "pubsub.topics.get",
274 "parameterOrder": [
275 "topic"
276 ],
277 "parameters": {
278 "topic": {
279 "description": "The name of the topic to get.",
280 "location": "path",
281 "required": true,
282 "type": "string"
283 }
284 },
285 "path": "topics/{+topic}",
286 "response": {
287 "$ref": "Topic"
288 },
289 "scopes": [
290 "https://www.googleapis.com/auth/cloud-platform",
291 "https://www.googleapis.com/auth/pubsub"
292 ]
293 },
294 "list": {
295 "description": "Lists matching topics.",
296 "httpMethod": "GET",
297 "id": "pubsub.topics.list",
298 "parameters": {
299 "maxResults": {
300 "description": "Maximum number of topics to return." ,
301 "format": "int32",
302 "location": "query",
303 "type": "integer"
304 },
305 "pageToken": {
306 "description": "The value obtained in the last ListT opicsResponse for continuation.",
307 "location": "query",
308 "type": "string"
309 },
310 "query": {
311 "description": "A valid label query expression.",
312 "location": "query",
313 "type": "string"
314 }
315 },
316 "path": "topics",
317 "response": {
318 "$ref": "ListTopicsResponse"
319 },
320 "scopes": [
321 "https://www.googleapis.com/auth/cloud-platform",
322 "https://www.googleapis.com/auth/pubsub"
323 ]
324 },
325 "publish": {
326 "description": "Adds a message to the topic. Returns NOT_FOU ND if the topic does not exist.",
327 "httpMethod": "POST",
328 "id": "pubsub.topics.publish",
329 "path": "topics/publish",
330 "request": {
331 "$ref": "PublishRequest"
332 },
333 "scopes": [
334 "https://www.googleapis.com/auth/cloud-platform",
335 "https://www.googleapis.com/auth/pubsub"
336 ]
337 }
338 }
339 }
340 },
341 "revision": "20140814",
342 "rootUrl": "https://www.googleapis.com/",
343 "schemas": {
344 "AcknowledgeRequest": {
345 "id": "AcknowledgeRequest",
346 "properties": {
347 "ackId": {
348 "description": "The Ack ID for the message being acknowledge d. This was returned by the Pub/Sub system in the Pull response.",
349 "items": {
350 "type": "string"
351 },
352 "type": "array"
353 },
354 "subscription": {
355 "description": "The subscription whose message is being ackn owledged.",
356 "type": "string"
357 }
358 },
359 "type": "object"
360 },
361 "Label": {
362 "description": "A key-value pair applied to a given object.",
363 "id": "Label",
364 "properties": {
365 "key": {
366 "description": "The key of a label is a syntactically valid URL (as per RFC 1738) with the \"scheme\" and initial slashes omitted and with t he additional restrictions noted below. Each key should be globally unique. The \"host\" portion is called the \"namespace\" and is not necessarily resolvable t o a network endpoint. Instead, the namespace indicates what system or entity def ines the semantics of the label. Namespaces do not restrict the set of objects t o which a label may be associated.\n\nKeys are defined by the following grammar: \n\nkey = hostname \"/\" kpath kpath = ksegment *[ \"/\" ksegment ] ksegment = a lphadigit | *[ alphadigit | \"-\" | \"_\" | \".\" ]\n\nwhere \"hostname\" and \" alphadigit\" are defined as in RFC 1738.\n\nExample key: spanner.google.com/univ erse",
367 "type": "string"
368 },
369 "numValue": {
370 "description": "An integer value.",
371 "format": "int64",
372 "type": "string"
373 },
374 "strValue": {
375 "description": "A string value.",
376 "type": "string"
377 }
378 },
379 "type": "object"
380 },
381 "ListSubscriptionsResponse": {
382 "id": "ListSubscriptionsResponse",
383 "properties": {
384 "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.",
386 "type": "string"
387 },
388 "subscription": {
389 "description": "The subscriptions that match the request.",
390 "items": {
391 "$ref": "Subscription"
392 },
393 "type": "array"
394 }
395 },
396 "type": "object"
397 },
398 "ListTopicsResponse": {
399 "id": "ListTopicsResponse",
400 "properties": {
401 "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.",
403 "type": "string"
404 },
405 "topic": {
406 "description": "The resulting topics.",
407 "items": {
408 "$ref": "Topic"
409 },
410 "type": "array"
411 }
412 },
413 "type": "object"
414 },
415 "ModifyAckDeadlineRequest": {
416 "id": "ModifyAckDeadlineRequest",
417 "properties": {
418 "ackDeadlineSeconds": {
419 "description": "The new Ack deadline. Must be >= 1.",
420 "format": "int32",
421 "type": "integer"
422 },
423 "ackId": {
424 "description": "The Ack ID.",
425 "type": "string"
426 },
427 "subscription": {
428 "description": "The name of the subscription from which mess ages are being pulled.",
429 "type": "string"
430 }
431 },
432 "type": "object"
433 },
434 "ModifyPushConfigRequest": {
435 "id": "ModifyPushConfigRequest",
436 "properties": {
437 "pushConfig": {
438 "$ref": "PushConfig",
439 "description": "An empty push_config indicates that the Pub/ Sub system should pause pushing messages from the given subscription."
440 },
441 "subscription": {
442 "description": "The name of the subscription.",
443 "type": "string"
444 }
445 },
446 "type": "object"
447 },
448 "PublishRequest": {
449 "id": "PublishRequest",
450 "properties": {
451 "message": {
452 "$ref": "PubsubMessage",
453 "description": "The message to publish."
454 },
455 "topic": {
456 "description": "The name of the topic for which the message is being added.",
457 "type": "string"
458 }
459 },
460 "type": "object"
461 },
462 "PubsubEvent": {
463 "description": "An event indicating a received message or truncation event.",
464 "id": "PubsubEvent",
465 "properties": {
466 "deleted": {
467 "description": "Indicates that this subscription has been de leted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.)",
468 "type": "boolean"
469 },
470 "message": {
471 "$ref": "PubsubMessage",
472 "description": "A received message."
473 },
474 "subscription": {
475 "description": "The subscription that received the event.",
476 "type": "string"
477 },
478 "truncated": {
479 "description": "Indicates that this subscription has been tr uncated.",
480 "type": "boolean"
481 }
482 },
483 "type": "object"
484 },
485 "PubsubMessage": {
486 "description": "A message data and its labels.",
487 "id": "PubsubMessage",
488 "properties": {
489 "data": {
490 "description": "The message payload.",
491 "format": "byte",
492 "type": "string"
493 },
494 "label": {
495 "description": "Optional list of labels for this message. Ke ys in this collection must be unique.",
496 "items": {
497 "$ref": "Label"
498 },
499 "type": "array"
500 }
501 },
502 "type": "object"
503 },
504 "PullRequest": {
505 "id": "PullRequest",
506 "properties": {
507 "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.",
509 "type": "boolean"
510 },
511 "subscription": {
512 "description": "The subscription from which a message should be pulled.",
513 "type": "string"
514 }
515 },
516 "type": "object"
517 },
518 "PullResponse": {
519 "description": "Either a PubsubMessage or a truncation event. One of these two must be populated.",
520 "id": "PullResponse",
521 "properties": {
522 "ackId": {
523 "description": "This ID must be used to acknowledge the rece ived event or message.",
524 "type": "string"
525 },
526 "pubsubEvent": {
527 "$ref": "PubsubEvent",
528 "description": "A pubsub message or truncation event."
529 }
530 },
531 "type": "object"
532 },
533 "PushConfig": {
534 "description": "Configuration for a push delivery endpoint.",
535 "id": "PushConfig",
536 "properties": {
537 "pushEndpoint": {
538 "description": "A URL locating the endpoint to which message s should be pushed. For example, a Webhook endpoint might use \"https://example. com/push\".",
539 "type": "string"
540 }
541 },
542 "type": "object"
543 },
544 "Subscription": {
545 "description": "A subscription resource.",
546 "id": "Subscription",
547 "properties": {
548 "ackDeadlineSeconds": {
549 "description": "For either push or pull delivery, the value is the maximum time after a subscriber receives a message before the subscriber should acknowledge or Nack the message. If the Ack deadline for a message passes without an Ack or a Nack, the Pub/Sub system will eventually redeliver the mess age. If a subscriber acknowledges after the deadline, the Pub/Sub system may acc ept the Ack, but it is possible that the message has been already delivered agai n. Multiple Acks to the message are allowed and will succeed.\n\nFor push delive ry, this value is used to set the request timeout for the call to the push endpo int.\n\nFor pull delivery, this value is used as the initial value for the Ack d eadline. It may be overridden for a specific pull request (message) with ModifyA ckDeadline. While a message is outstanding (i.e. it has been delivered to a pull subscriber and the subscriber has not yet Acked or Nacked), the Pub/Sub system will not deliver that message to another pull subscriber (on a best-effort basis ).",
550 "format": "int32",
551 "type": "integer"
552 },
553 "name": {
554 "description": "Name of the subscription.",
555 "type": "string"
556 },
557 "pushConfig": {
558 "$ref": "PushConfig",
559 "description": "If push delivery is used with this subscript ion, this field is used to configure it."
560 },
561 "topic": {
562 "description": "The name of the topic from which this subscr iption is receiving messages.",
563 "type": "string"
564 }
565 },
566 "type": "object"
567 },
568 "Topic": {
569 "description": "A topic resource.",
570 "id": "Topic",
571 "properties": {
572 "name": {
573 "description": "Name of the topic.",
574 "type": "string"
575 }
576 },
577 "type": "object"
578 }
579 },
580 "servicePath": "pubsub/v1beta1/",
581 "title": "Cloud Pub/Sub API",
582 "version": "v1beta1"
583 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698