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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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/plus__v1.json ('k') | discovery/googleapis/runtimeconfig__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/pubsub": { 5 "https://www.googleapis.com/auth/pubsub": {
6 "description": "View and manage Pub/Sub topics and subscript ions" 6 "description": "View and manage Pub/Sub topics and subscript ions"
7 }, 7 },
8 "https://www.googleapis.com/auth/cloud-platform": { 8 "https://www.googleapis.com/auth/cloud-platform": {
9 "description": "View and manage your data across Google Clou d Platform services" 9 "description": "View and manage your data across Google Clou d Platform services"
10 } 10 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 "proto" 76 "proto"
77 ], 77 ],
78 "enumDescriptions": [ 78 "enumDescriptions": [
79 "Responses with Content-Type of application/json", 79 "Responses with Content-Type of application/json",
80 "Media download with context-dependent Content-Type", 80 "Media download with context-dependent Content-Type",
81 "Responses with Content-Type of application/x-protobuf" 81 "Responses with Content-Type of application/x-protobuf"
82 ], 82 ],
83 "location": "query", 83 "location": "query",
84 "type": "string" 84 "type": "string"
85 }, 85 },
86 "access_token": {
87 "description": "OAuth access token.",
88 "location": "query",
89 "type": "string"
90 },
86 "key": { 91 "key": {
87 "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.", 92 "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.",
88 "location": "query", 93 "location": "query",
89 "type": "string" 94 "type": "string"
90 }, 95 },
91 "access_token": {
92 "description": "OAuth access token.",
93 "location": "query",
94 "type": "string"
95 },
96 "quotaUser": { 96 "quotaUser": {
97 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.", 97 "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.",
98 "location": "query", 98 "location": "query",
99 "type": "string" 99 "type": "string"
100 }, 100 },
101 "pp": { 101 "pp": {
102 "default": "true", 102 "default": "true",
103 "description": "Pretty-print response.", 103 "description": "Pretty-print response.",
104 "location": "query", 104 "location": "query",
105 "type": "boolean" 105 "type": "boolean"
106 }, 106 },
107 "oauth_token": { 107 "oauth_token": {
108 "description": "OAuth 2.0 token for the current user.", 108 "description": "OAuth 2.0 token for the current user.",
109 "location": "query", 109 "location": "query",
110 "type": "string" 110 "type": "string"
111 }, 111 },
112 "bearer_token": { 112 "bearer_token": {
113 "description": "OAuth bearer token.", 113 "description": "OAuth bearer token.",
114 "location": "query", 114 "location": "query",
115 "type": "string" 115 "type": "string"
116 } 116 }
117 }, 117 },
118 "protocol": "rest", 118 "protocol": "rest",
119 "resources": { 119 "resources": {
120 "projects": { 120 "projects": {
121 "resources": { 121 "resources": {
122 "topics": { 122 "topics": {
123 "methods": { 123 "methods": {
124 "getIamPolicy": {
125 "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a p olicy\nset.",
126 "httpMethod": "GET",
127 "id": "pubsub.projects.topics.getIamPolicy",
128 "parameterOrder": [
129 "resource"
130 ],
131 "parameters": {
132 "resource": {
133 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.",
134 "location": "path",
135 "pattern": "^projects/[^/]+/topics/[^/]+$",
136 "required": true,
137 "type": "string"
138 }
139 },
140 "path": "v1/{+resource}:getIamPolicy",
141 "response": {
142 "$ref": "Policy"
143 },
144 "scopes": [
145 "https://www.googleapis.com/auth/cloud-platform" ,
146 "https://www.googleapis.com/auth/pubsub"
147 ]
148 },
149 "get": {
150 "description": "Gets the configuration of a topic.",
151 "httpMethod": "GET",
152 "id": "pubsub.projects.topics.get",
153 "parameterOrder": [
154 "topic"
155 ],
156 "parameters": {
157 "topic": {
158 "description": "The name of the topic to get .\nFormat is `projects/{project}/topics/{topic}`.",
159 "location": "path",
160 "pattern": "^projects/[^/]+/topics/[^/]+$",
161 "required": true,
162 "type": "string"
163 }
164 },
165 "path": "v1/{+topic}",
166 "response": {
167 "$ref": "Topic"
168 },
169 "scopes": [
170 "https://www.googleapis.com/auth/cloud-platform" ,
171 "https://www.googleapis.com/auth/pubsub"
172 ]
173 },
174 "publish": {
175 "description": "Adds one or more messages to the top ic. Returns `NOT_FOUND` if the topic\ndoes not exist. The message payload must n ot be empty; it must contain\n either a non-empty data field, or at least one at tribute.",
176 "httpMethod": "POST",
177 "id": "pubsub.projects.topics.publish",
178 "parameterOrder": [
179 "topic"
180 ],
181 "parameters": {
182 "topic": {
183 "description": "The messages in the request will be published on this topic.\nFormat is `projects/{project}/topics/{topic}`. ",
184 "location": "path",
185 "pattern": "^projects/[^/]+/topics/[^/]+$",
186 "required": true,
187 "type": "string"
188 }
189 },
190 "path": "v1/{+topic}:publish",
191 "request": {
192 "$ref": "PublishRequest"
193 },
194 "response": {
195 "$ref": "PublishResponse"
196 },
197 "scopes": [
198 "https://www.googleapis.com/auth/cloud-platform" ,
199 "https://www.googleapis.com/auth/pubsub"
200 ]
201 },
202 "testIamPermissions": { 124 "testIamPermissions": {
203 "description": "Returns permissions that a caller ha s on the specified resource.\nIf the resource does not exist, this will return a n empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is d esigned to be used for building permission-aware\nUIs and command-line tools, no t for authorization checking. This operation\nmay \"fail open\" without warning. ", 125 "description": "Returns permissions that a caller ha s on the specified resource.\nIf the resource does not exist, this will return a n empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is d esigned to be used for building permission-aware\nUIs and command-line tools, no t for authorization checking. This operation\nmay \"fail open\" without warning. ",
204 "httpMethod": "POST", 126 "httpMethod": "POST",
205 "id": "pubsub.projects.topics.testIamPermissions", 127 "id": "pubsub.projects.topics.testIamPermissions",
206 "parameterOrder": [ 128 "parameterOrder": [
207 "resource" 129 "resource"
208 ], 130 ],
209 "parameters": { 131 "parameters": {
210 "resource": { 132 "resource": {
211 "description": "REQUIRED: The resource for w hich the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", 133 "description": "REQUIRED: The resource for w hich the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 ] 175 ]
254 }, 176 },
255 "list": { 177 "list": {
256 "description": "Lists matching topics.", 178 "description": "Lists matching topics.",
257 "httpMethod": "GET", 179 "httpMethod": "GET",
258 "id": "pubsub.projects.topics.list", 180 "id": "pubsub.projects.topics.list",
259 "parameterOrder": [ 181 "parameterOrder": [
260 "project" 182 "project"
261 ], 183 ],
262 "parameters": { 184 "parameters": {
185 "pageToken": {
186 "description": "The value returned by the la st `ListTopicsResponse`; indicates that this is\na continuation of a prior `List Topics` call, and that the system should\nreturn the next page of data.",
187 "location": "query",
188 "type": "string"
189 },
263 "pageSize": { 190 "pageSize": {
264 "description": "Maximum number of topics to return.", 191 "description": "Maximum number of topics to return.",
265 "format": "int32", 192 "format": "int32",
266 "location": "query", 193 "location": "query",
267 "type": "integer" 194 "type": "integer"
268 }, 195 },
269 "project": { 196 "project": {
270 "description": "The name of the cloud projec t that topics belong to.\nFormat is `projects/{project}`.", 197 "description": "The name of the cloud projec t that topics belong to.\nFormat is `projects/{project}`.",
271 "location": "path", 198 "location": "path",
272 "pattern": "^projects/[^/]+$", 199 "pattern": "^projects/[^/]+$",
273 "required": true, 200 "required": true,
274 "type": "string" 201 "type": "string"
275 },
276 "pageToken": {
277 "description": "The value returned by the la st `ListTopicsResponse`; indicates that this is\na continuation of a prior `List Topics` call, and that the system should\nreturn the next page of data.",
278 "location": "query",
279 "type": "string"
280 } 202 }
281 }, 203 },
282 "path": "v1/{+project}/topics", 204 "path": "v1/{+project}/topics",
283 "response": { 205 "response": {
284 "$ref": "ListTopicsResponse" 206 "$ref": "ListTopicsResponse"
285 }, 207 },
286 "scopes": [ 208 "scopes": [
287 "https://www.googleapis.com/auth/cloud-platform" , 209 "https://www.googleapis.com/auth/cloud-platform" ,
288 "https://www.googleapis.com/auth/pubsub" 210 "https://www.googleapis.com/auth/pubsub"
289 ] 211 ]
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 "request": { 258 "request": {
337 "$ref": "SetIamPolicyRequest" 259 "$ref": "SetIamPolicyRequest"
338 }, 260 },
339 "response": { 261 "response": {
340 "$ref": "Policy" 262 "$ref": "Policy"
341 }, 263 },
342 "scopes": [ 264 "scopes": [
343 "https://www.googleapis.com/auth/cloud-platform" , 265 "https://www.googleapis.com/auth/cloud-platform" ,
344 "https://www.googleapis.com/auth/pubsub" 266 "https://www.googleapis.com/auth/pubsub"
345 ] 267 ]
268 },
269 "getIamPolicy": {
270 "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a p olicy\nset.",
271 "httpMethod": "GET",
272 "id": "pubsub.projects.topics.getIamPolicy",
273 "parameterOrder": [
274 "resource"
275 ],
276 "parameters": {
277 "resource": {
278 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.",
279 "location": "path",
280 "pattern": "^projects/[^/]+/topics/[^/]+$",
281 "required": true,
282 "type": "string"
283 }
284 },
285 "path": "v1/{+resource}:getIamPolicy",
286 "response": {
287 "$ref": "Policy"
288 },
289 "scopes": [
290 "https://www.googleapis.com/auth/cloud-platform" ,
291 "https://www.googleapis.com/auth/pubsub"
292 ]
293 },
294 "get": {
295 "description": "Gets the configuration of a topic.",
296 "httpMethod": "GET",
297 "id": "pubsub.projects.topics.get",
298 "parameterOrder": [
299 "topic"
300 ],
301 "parameters": {
302 "topic": {
303 "description": "The name of the topic to get .\nFormat is `projects/{project}/topics/{topic}`.",
304 "location": "path",
305 "pattern": "^projects/[^/]+/topics/[^/]+$",
306 "required": true,
307 "type": "string"
308 }
309 },
310 "path": "v1/{+topic}",
311 "response": {
312 "$ref": "Topic"
313 },
314 "scopes": [
315 "https://www.googleapis.com/auth/cloud-platform" ,
316 "https://www.googleapis.com/auth/pubsub"
317 ]
318 },
319 "publish": {
320 "description": "Adds one or more messages to the top ic. Returns `NOT_FOUND` if the topic\ndoes not exist. The message payload must n ot be empty; it must contain\n either a non-empty data field, or at least one at tribute.",
321 "httpMethod": "POST",
322 "id": "pubsub.projects.topics.publish",
323 "parameterOrder": [
324 "topic"
325 ],
326 "parameters": {
327 "topic": {
328 "description": "The messages in the request will be published on this topic.\nFormat is `projects/{project}/topics/{topic}`. ",
329 "location": "path",
330 "pattern": "^projects/[^/]+/topics/[^/]+$",
331 "required": true,
332 "type": "string"
333 }
334 },
335 "path": "v1/{+topic}:publish",
336 "request": {
337 "$ref": "PublishRequest"
338 },
339 "response": {
340 "$ref": "PublishResponse"
341 },
342 "scopes": [
343 "https://www.googleapis.com/auth/cloud-platform" ,
344 "https://www.googleapis.com/auth/pubsub"
345 ]
346 } 346 }
347 }, 347 },
348 "resources": { 348 "resources": {
349 "subscriptions": { 349 "subscriptions": {
350 "methods": { 350 "methods": {
351 "list": { 351 "list": {
352 "description": "Lists the name of the subscr iptions for this topic.", 352 "description": "Lists the name of the subscr iptions for this topic.",
353 "httpMethod": "GET", 353 "httpMethod": "GET",
354 "id": "pubsub.projects.topics.subscriptions. list", 354 "id": "pubsub.projects.topics.subscriptions. list",
355 "parameterOrder": [ 355 "parameterOrder": [
356 "topic" 356 "topic"
357 ], 357 ],
358 "parameters": { 358 "parameters": {
359 "pageToken": {
360 "description": "The value returned b y the last `ListTopicSubscriptionsResponse`; indicates\nthat this is a continuat ion of a prior `ListTopicSubscriptions` call, and\nthat the system should return the next page of data.",
361 "location": "query",
362 "type": "string"
363 },
364 "pageSize": { 359 "pageSize": {
365 "description": "Maximum number of su bscription names to return.", 360 "description": "Maximum number of su bscription names to return.",
366 "format": "int32", 361 "format": "int32",
367 "location": "query", 362 "location": "query",
368 "type": "integer" 363 "type": "integer"
369 }, 364 },
370 "topic": { 365 "topic": {
371 "description": "The name of the topi c that subscriptions are attached to.\nFormat is `projects/{project}/topics/{top ic}`.", 366 "description": "The name of the topi c that subscriptions are attached to.\nFormat is `projects/{project}/topics/{top ic}`.",
372 "location": "path", 367 "location": "path",
373 "pattern": "^projects/[^/]+/topics/[ ^/]+$", 368 "pattern": "^projects/[^/]+/topics/[ ^/]+$",
374 "required": true, 369 "required": true,
375 "type": "string" 370 "type": "string"
371 },
372 "pageToken": {
373 "description": "The value returned b y the last `ListTopicSubscriptionsResponse`; indicates\nthat this is a continuat ion of a prior `ListTopicSubscriptions` call, and\nthat the system should return the next page of data.",
374 "location": "query",
375 "type": "string"
376 } 376 }
377 }, 377 },
378 "path": "v1/{+topic}/subscriptions", 378 "path": "v1/{+topic}/subscriptions",
379 "response": { 379 "response": {
380 "$ref": "ListTopicSubscriptionsResponse" 380 "$ref": "ListTopicSubscriptionsResponse"
381 }, 381 },
382 "scopes": [ 382 "scopes": [
383 "https://www.googleapis.com/auth/cloud-p latform", 383 "https://www.googleapis.com/auth/cloud-p latform",
384 "https://www.googleapis.com/auth/pubsub" 384 "https://www.googleapis.com/auth/pubsub"
385 ] 385 ]
386 } 386 }
387 } 387 }
388 } 388 }
389 } 389 }
390 }, 390 },
391 "snapshots": { 391 "snapshots": {
392 "methods": { 392 "methods": {
393 "setIamPolicy": {
394 "description": "Sets the access control policy on th e specified resource. Replaces any\nexisting policy.",
395 "httpMethod": "POST",
396 "id": "pubsub.projects.snapshots.setIamPolicy",
397 "parameterOrder": [
398 "resource"
399 ],
400 "parameters": {
401 "resource": {
402 "description": "REQUIRED: The resource for w hich the policy is being specified.\nSee the operation documentation for the app ropriate value for this field.",
403 "location": "path",
404 "pattern": "^projects/[^/]+/snapshots/[^/]+$ ",
405 "required": true,
406 "type": "string"
407 }
408 },
409 "path": "v1/{+resource}:setIamPolicy",
410 "request": {
411 "$ref": "SetIamPolicyRequest"
412 },
413 "response": {
414 "$ref": "Policy"
415 },
416 "scopes": [
417 "https://www.googleapis.com/auth/cloud-platform" ,
418 "https://www.googleapis.com/auth/pubsub"
419 ]
420 },
393 "testIamPermissions": { 421 "testIamPermissions": {
394 "description": "Returns permissions that a caller ha s on the specified resource.\nIf the resource does not exist, this will return a n empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is d esigned to be used for building permission-aware\nUIs and command-line tools, no t for authorization checking. This operation\nmay \"fail open\" without warning. ", 422 "description": "Returns permissions that a caller ha s on the specified resource.\nIf the resource does not exist, this will return a n empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is d esigned to be used for building permission-aware\nUIs and command-line tools, no t for authorization checking. This operation\nmay \"fail open\" without warning. ",
395 "httpMethod": "POST", 423 "httpMethod": "POST",
396 "id": "pubsub.projects.snapshots.testIamPermissions" , 424 "id": "pubsub.projects.snapshots.testIamPermissions" ,
397 "parameterOrder": [ 425 "parameterOrder": [
398 "resource" 426 "resource"
399 ], 427 ],
400 "parameters": { 428 "parameters": {
401 "resource": { 429 "resource": {
402 "description": "REQUIRED: The resource for w hich the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.", 430 "description": "REQUIRED: The resource for w hich the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
(...skipping 28 matching lines...) Expand all
431 "location": "path", 459 "location": "path",
432 "pattern": "^projects/[^/]+/snapshots/[^/]+$ ", 460 "pattern": "^projects/[^/]+/snapshots/[^/]+$ ",
433 "required": true, 461 "required": true,
434 "type": "string" 462 "type": "string"
435 } 463 }
436 }, 464 },
437 "path": "v1/{+resource}:getIamPolicy", 465 "path": "v1/{+resource}:getIamPolicy",
438 "response": { 466 "response": {
439 "$ref": "Policy" 467 "$ref": "Policy"
440 }, 468 },
441 "scopes": [
442 "https://www.googleapis.com/auth/cloud-platform" ,
443 "https://www.googleapis.com/auth/pubsub"
444 ]
445 },
446 "setIamPolicy": {
447 "description": "Sets the access control policy on th e specified resource. Replaces any\nexisting policy.",
448 "httpMethod": "POST",
449 "id": "pubsub.projects.snapshots.setIamPolicy",
450 "parameterOrder": [
451 "resource"
452 ],
453 "parameters": {
454 "resource": {
455 "description": "REQUIRED: The resource for w hich the policy is being specified.\nSee the operation documentation for the app ropriate value for this field.",
456 "location": "path",
457 "pattern": "^projects/[^/]+/snapshots/[^/]+$ ",
458 "required": true,
459 "type": "string"
460 }
461 },
462 "path": "v1/{+resource}:setIamPolicy",
463 "request": {
464 "$ref": "SetIamPolicyRequest"
465 },
466 "response": {
467 "$ref": "Policy"
468 },
469 "scopes": [ 469 "scopes": [
470 "https://www.googleapis.com/auth/cloud-platform" , 470 "https://www.googleapis.com/auth/cloud-platform" ,
471 "https://www.googleapis.com/auth/pubsub" 471 "https://www.googleapis.com/auth/pubsub"
472 ] 472 ]
473 } 473 }
474 } 474 }
475 }, 475 },
476 "subscriptions": { 476 "subscriptions": {
477 "methods": { 477 "methods": {
478 "testIamPermissions": { 478 "testIamPermissions": {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 "$ref": "ModifyPushConfigRequest" 524 "$ref": "ModifyPushConfigRequest"
525 }, 525 },
526 "response": { 526 "response": {
527 "$ref": "Empty" 527 "$ref": "Empty"
528 }, 528 },
529 "scopes": [ 529 "scopes": [
530 "https://www.googleapis.com/auth/cloud-platform" , 530 "https://www.googleapis.com/auth/cloud-platform" ,
531 "https://www.googleapis.com/auth/pubsub" 531 "https://www.googleapis.com/auth/pubsub"
532 ] 532 ]
533 }, 533 },
534 "delete": {
535 "description": "Deletes an existing subscription. Al l messages retained in the subscription\nare immediately dropped. Calls to `Pull ` after deletion will return\n`NOT_FOUND`. After a subscription is deleted, a ne w one may be created with\nthe same name, but the new one has no association wit h the old\nsubscription or its topic unless the same topic is specified.",
536 "httpMethod": "DELETE",
537 "id": "pubsub.projects.subscriptions.delete",
538 "parameterOrder": [
539 "subscription"
540 ],
541 "parameters": {
542 "subscription": {
543 "description": "The subscription to delete.\ nFormat is `projects/{project}/subscriptions/{sub}`.",
544 "location": "path",
545 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
546 "required": true,
547 "type": "string"
548 }
549 },
550 "path": "v1/{+subscription}",
551 "response": {
552 "$ref": "Empty"
553 },
554 "scopes": [
555 "https://www.googleapis.com/auth/cloud-platform" ,
556 "https://www.googleapis.com/auth/pubsub"
557 ]
558 },
534 "pull": { 559 "pull": {
535 "description": "Pulls messages from the server. Retu rns an empty list if there are no\nmessages available in the backlog. The server may return `UNAVAILABLE` if\nthere are too many concurrent pull requests pendin g for the given\nsubscription.", 560 "description": "Pulls messages from the server. Retu rns an empty list if there are no\nmessages available in the backlog. The server may return `UNAVAILABLE` if\nthere are too many concurrent pull requests pendin g for the given\nsubscription.",
536 "httpMethod": "POST", 561 "httpMethod": "POST",
537 "id": "pubsub.projects.subscriptions.pull", 562 "id": "pubsub.projects.subscriptions.pull",
538 "parameterOrder": [ 563 "parameterOrder": [
539 "subscription" 564 "subscription"
540 ], 565 ],
541 "parameters": { 566 "parameters": {
542 "subscription": { 567 "subscription": {
543 "description": "The subscription from which messages should be pulled.\nFormat is `projects/{project}/subscriptions/{sub}`." , 568 "description": "The subscription from which messages should be pulled.\nFormat is `projects/{project}/subscriptions/{sub}`." ,
544 "location": "path", 569 "location": "path",
545 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 570 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
546 "required": true, 571 "required": true,
547 "type": "string" 572 "type": "string"
548 } 573 }
549 }, 574 },
550 "path": "v1/{+subscription}:pull", 575 "path": "v1/{+subscription}:pull",
551 "request": { 576 "request": {
552 "$ref": "PullRequest" 577 "$ref": "PullRequest"
553 }, 578 },
554 "response": { 579 "response": {
555 "$ref": "PullResponse" 580 "$ref": "PullResponse"
556 }, 581 },
557 "scopes": [ 582 "scopes": [
558 "https://www.googleapis.com/auth/cloud-platform" , 583 "https://www.googleapis.com/auth/cloud-platform" ,
559 "https://www.googleapis.com/auth/pubsub" 584 "https://www.googleapis.com/auth/pubsub"
560 ] 585 ]
561 }, 586 },
562 "delete": {
563 "description": "Deletes an existing subscription. Al l messages retained in the subscription\nare immediately dropped. Calls to `Pull ` after deletion will return\n`NOT_FOUND`. After a subscription is deleted, a ne w one may be created with\nthe same name, but the new one has no association wit h the old\nsubscription or its topic unless the same topic is specified.",
564 "httpMethod": "DELETE",
565 "id": "pubsub.projects.subscriptions.delete",
566 "parameterOrder": [
567 "subscription"
568 ],
569 "parameters": {
570 "subscription": {
571 "description": "The subscription to delete.\ nFormat is `projects/{project}/subscriptions/{sub}`.",
572 "location": "path",
573 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
574 "required": true,
575 "type": "string"
576 }
577 },
578 "path": "v1/{+subscription}",
579 "response": {
580 "$ref": "Empty"
581 },
582 "scopes": [
583 "https://www.googleapis.com/auth/cloud-platform" ,
584 "https://www.googleapis.com/auth/pubsub"
585 ]
586 },
587 "list": { 587 "list": {
588 "description": "Lists matching subscriptions.", 588 "description": "Lists matching subscriptions.",
589 "httpMethod": "GET", 589 "httpMethod": "GET",
590 "id": "pubsub.projects.subscriptions.list", 590 "id": "pubsub.projects.subscriptions.list",
591 "parameterOrder": [ 591 "parameterOrder": [
592 "project" 592 "project"
593 ], 593 ],
594 "parameters": { 594 "parameters": {
595 "pageToken": {
596 "description": "The value returned by the la st `ListSubscriptionsResponse`; indicates that\nthis is a continuation of a prio r `ListSubscriptions` call, and that the\nsystem should return the next page of data.",
597 "location": "query",
598 "type": "string"
599 },
595 "pageSize": { 600 "pageSize": {
596 "description": "Maximum number of subscripti ons to return.", 601 "description": "Maximum number of subscripti ons to return.",
597 "format": "int32", 602 "format": "int32",
598 "location": "query", 603 "location": "query",
599 "type": "integer" 604 "type": "integer"
600 }, 605 },
601 "project": { 606 "project": {
602 "description": "The name of the cloud projec t that subscriptions belong to.\nFormat is `projects/{project}`.", 607 "description": "The name of the cloud projec t that subscriptions belong to.\nFormat is `projects/{project}`.",
603 "location": "path", 608 "location": "path",
604 "pattern": "^projects/[^/]+$", 609 "pattern": "^projects/[^/]+$",
605 "required": true, 610 "required": true,
606 "type": "string" 611 "type": "string"
607 },
608 "pageToken": {
609 "description": "The value returned by the la st `ListSubscriptionsResponse`; indicates that\nthis is a continuation of a prio r `ListSubscriptions` call, and that the\nsystem should return the next page of data.",
610 "location": "query",
611 "type": "string"
612 } 612 }
613 }, 613 },
614 "path": "v1/{+project}/subscriptions", 614 "path": "v1/{+project}/subscriptions",
615 "response": { 615 "response": {
616 "$ref": "ListSubscriptionsResponse" 616 "$ref": "ListSubscriptionsResponse"
617 }, 617 },
618 "scopes": [ 618 "scopes": [
619 "https://www.googleapis.com/auth/cloud-platform" , 619 "https://www.googleapis.com/auth/cloud-platform" ,
620 "https://www.googleapis.com/auth/pubsub" 620 "https://www.googleapis.com/auth/pubsub"
621 ] 621 ]
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 "$ref": "SetIamPolicyRequest" 669 "$ref": "SetIamPolicyRequest"
670 }, 670 },
671 "response": { 671 "response": {
672 "$ref": "Policy" 672 "$ref": "Policy"
673 }, 673 },
674 "scopes": [ 674 "scopes": [
675 "https://www.googleapis.com/auth/cloud-platform" , 675 "https://www.googleapis.com/auth/cloud-platform" ,
676 "https://www.googleapis.com/auth/pubsub" 676 "https://www.googleapis.com/auth/pubsub"
677 ] 677 ]
678 }, 678 },
679 "getIamPolicy": { 679 "modifyAckDeadline": {
680 "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a p olicy\nset.", 680 "description": "Modifies the ack deadline for a spec ific message. This method is useful\nto indicate that more time is needed to pro cess a message by the\nsubscriber, or to make the message available for redelive ry if the\nprocessing was interrupted. Note that this does not modify the\nsubsc ription-level `ackDeadlineSeconds` used for subsequent messages.",
681 "httpMethod": "GET", 681 "httpMethod": "POST",
682 "id": "pubsub.projects.subscriptions.getIamPolicy", 682 "id": "pubsub.projects.subscriptions.modifyAckDeadli ne",
683 "parameterOrder": [ 683 "parameterOrder": [
684 "resource" 684 "subscription"
685 ], 685 ],
686 "parameters": { 686 "parameters": {
687 "resource": { 687 "subscription": {
688 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.", 688 "description": "The name of the subscription .\nFormat is `projects/{project}/subscriptions/{sub}`.",
689 "location": "path", 689 "location": "path",
690 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 690 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
691 "required": true, 691 "required": true,
692 "type": "string" 692 "type": "string"
693 } 693 }
694 }, 694 },
695 "path": "v1/{+resource}:getIamPolicy", 695 "path": "v1/{+subscription}:modifyAckDeadline",
696 "request": {
697 "$ref": "ModifyAckDeadlineRequest"
698 },
696 "response": { 699 "response": {
697 "$ref": "Policy" 700 "$ref": "Empty"
698 }, 701 },
699 "scopes": [ 702 "scopes": [
700 "https://www.googleapis.com/auth/cloud-platform" , 703 "https://www.googleapis.com/auth/cloud-platform" ,
701 "https://www.googleapis.com/auth/pubsub" 704 "https://www.googleapis.com/auth/pubsub"
702 ] 705 ]
703 }, 706 },
704 "acknowledge": { 707 "acknowledge": {
705 "description": "Acknowledges the messages associated with the `ack_ids` in the\n`AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages\nfrom the subscription.\n\nAcknowledging a message whose a ck deadline has expired may succeed,\nbut such a message may be redelivered late r. Acknowledging a message more\nthan once will not result in an error.", 708 "description": "Acknowledges the messages associated with the `ack_ids` in the\n`AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages\nfrom the subscription.\n\nAcknowledging a message whose a ck deadline has expired may succeed,\nbut such a message may be redelivered late r. Acknowledging a message more\nthan once will not result in an error.",
706 "httpMethod": "POST", 709 "httpMethod": "POST",
707 "id": "pubsub.projects.subscriptions.acknowledge", 710 "id": "pubsub.projects.subscriptions.acknowledge",
(...skipping 14 matching lines...) Expand all
722 "$ref": "AcknowledgeRequest" 725 "$ref": "AcknowledgeRequest"
723 }, 726 },
724 "response": { 727 "response": {
725 "$ref": "Empty" 728 "$ref": "Empty"
726 }, 729 },
727 "scopes": [ 730 "scopes": [
728 "https://www.googleapis.com/auth/cloud-platform" , 731 "https://www.googleapis.com/auth/cloud-platform" ,
729 "https://www.googleapis.com/auth/pubsub" 732 "https://www.googleapis.com/auth/pubsub"
730 ] 733 ]
731 }, 734 },
732 "modifyAckDeadline": { 735 "getIamPolicy": {
733 "description": "Modifies the ack deadline for a spec ific message. This method is useful\nto indicate that more time is needed to pro cess a message by the\nsubscriber, or to make the message available for redelive ry if the\nprocessing was interrupted. Note that this does not modify the\nsubsc ription-level `ackDeadlineSeconds` used for subsequent messages.", 736 "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a p olicy\nset.",
734 "httpMethod": "POST", 737 "httpMethod": "GET",
735 "id": "pubsub.projects.subscriptions.modifyAckDeadli ne", 738 "id": "pubsub.projects.subscriptions.getIamPolicy",
736 "parameterOrder": [ 739 "parameterOrder": [
737 "subscription" 740 "resource"
738 ], 741 ],
739 "parameters": { 742 "parameters": {
740 "subscription": { 743 "resource": {
741 "description": "The name of the subscription .\nFormat is `projects/{project}/subscriptions/{sub}`.", 744 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.",
742 "location": "path", 745 "location": "path",
743 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 746 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
744 "required": true, 747 "required": true,
745 "type": "string" 748 "type": "string"
746 } 749 }
747 }, 750 },
748 "path": "v1/{+subscription}:modifyAckDeadline", 751 "path": "v1/{+resource}:getIamPolicy",
749 "request": {
750 "$ref": "ModifyAckDeadlineRequest"
751 },
752 "response": { 752 "response": {
753 "$ref": "Empty" 753 "$ref": "Policy"
754 }, 754 },
755 "scopes": [ 755 "scopes": [
756 "https://www.googleapis.com/auth/cloud-platform" , 756 "https://www.googleapis.com/auth/cloud-platform" ,
757 "https://www.googleapis.com/auth/pubsub" 757 "https://www.googleapis.com/auth/pubsub"
758 ] 758 ]
759 }, 759 },
760 "get": { 760 "get": {
761 "description": "Gets the configuration details of a subscription.", 761 "description": "Gets the configuration details of a subscription.",
762 "httpMethod": "GET", 762 "httpMethod": "GET",
763 "id": "pubsub.projects.subscriptions.get", 763 "id": "pubsub.projects.subscriptions.get",
(...skipping 16 matching lines...) Expand all
780 "scopes": [ 780 "scopes": [
781 "https://www.googleapis.com/auth/cloud-platform" , 781 "https://www.googleapis.com/auth/cloud-platform" ,
782 "https://www.googleapis.com/auth/pubsub" 782 "https://www.googleapis.com/auth/pubsub"
783 ] 783 ]
784 } 784 }
785 } 785 }
786 } 786 }
787 } 787 }
788 } 788 }
789 }, 789 },
790 "revision": "20170630", 790 "revision": "20170731",
791 "rootUrl": "https://pubsub.googleapis.com/", 791 "rootUrl": "https://pubsub.googleapis.com/",
792 "schemas": { 792 "schemas": {
793 "PullRequest": {
794 "description": "Request for the `Pull` method.",
795 "id": "PullRequest",
796 "properties": {
797 "returnImmediately": {
798 "description": "If this field set to true, the system will r espond immediately even if\nit there are no messages available to return in the `Pull` response.\nOtherwise, the system may wait (for a bounded amount of time) until at\nleast one message is available, rather than returning no messages. The \nclient may cancel the request if it does not wish to wait any longer for\nthe response.",
799 "type": "boolean"
800 },
801 "maxMessages": {
802 "description": "The maximum number of messages returned for this request. The Pub/Sub\nsystem may return fewer than the number specified.",
803 "format": "int32",
804 "type": "integer"
805 }
806 },
807 "type": "object"
808 },
809 "ListSubscriptionsResponse": {
810 "description": "Response for the `ListSubscriptions` method.",
811 "id": "ListSubscriptionsResponse",
812 "properties": {
813 "nextPageToken": {
814 "description": "If not empty, indicates that there may be mo re subscriptions that match\nthe request; this value should be passed in a new\n `ListSubscriptionsRequest` to get more subscriptions.",
815 "type": "string"
816 },
817 "subscriptions": {
818 "description": "The subscriptions that match the request.",
819 "items": {
820 "$ref": "Subscription"
821 },
822 "type": "array"
823 }
824 },
825 "type": "object"
826 },
827 "PublishRequest": {
828 "description": "Request for the Publish method.",
829 "id": "PublishRequest",
830 "properties": {
831 "messages": {
832 "description": "The messages to publish.",
833 "items": {
834 "$ref": "PubsubMessage"
835 },
836 "type": "array"
837 }
838 },
839 "type": "object"
840 },
841 "PublishResponse": {
842 "description": "Response for the `Publish` method.",
843 "id": "PublishResponse",
844 "properties": {
845 "messageIds": {
846 "description": "The server-assigned ID of each published mes sage, in the same order as\nthe messages in the request. IDs are guaranteed to b e unique within\nthe topic.",
847 "items": {
848 "type": "string"
849 },
850 "type": "array"
851 }
852 },
853 "type": "object"
854 },
855 "Subscription": {
856 "description": "A subscription resource.",
857 "id": "Subscription",
858 "properties": {
859 "topic": {
860 "description": "The name of the topic from which this subscr iption is receiving messages.\nFormat is `projects/{project}/topics/{topic}`.\nT he value of this field will be `_deleted-topic_` if the topic has been\ndeleted. ",
861 "type": "string"
862 },
863 "pushConfig": {
864 "$ref": "PushConfig",
865 "description": "If push delivery is used with this subscript ion, this field is\nused to configure it. An empty `pushConfig` signifies that t he subscriber\nwill pull and ack messages using API methods."
866 },
867 "ackDeadlineSeconds": {
868 "description": "This value is the maximum time after a subsc riber receives a message\nbefore the subscriber should acknowledge the message. After message\ndelivery but before the ack deadline expires and before the messa ge is\nacknowledged, it is an outstanding message and will not be delivered\naga in during that time (on a best-effort basis).\n\nFor pull subscriptions, this va lue is used as the initial value for the ack\ndeadline. To override this value f or a given message, call\n`ModifyAckDeadline` with the corresponding `ack_id` if using\npull.\nThe minimum custom deadline you can specify is 10 seconds.\nThe m aximum custom deadline you can specify is 600 seconds (10 minutes).\nIf this par ameter is 0, a default value of 10 seconds is used.\n\nFor push delivery, this v alue is also used to set the request timeout for\nthe call to the push endpoint. \n\nIf the subscriber never acknowledges the message, the Pub/Sub\nsystem will e ventually redeliver the message.",
869 "format": "int32",
870 "type": "integer"
871 },
872 "name": {
873 "description": "The name of the subscription. It must have t he format\n`\"projects/{project}/subscriptions/{subscription}\"`. `{subscription }` must\nstart with a letter, and contain only letters (`[A-Za-z]`), numbers\n(` [0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),\nplus (`+ `) or percent signs (`%`). It must be between 3 and 255 characters\nin length, a nd it must not start with `\"goog\"`.",
874 "type": "string"
875 }
876 },
877 "type": "object"
878 },
879 "TestIamPermissionsRequest": {
880 "description": "Request message for `TestIamPermissions` method.",
881 "id": "TestIamPermissionsRequest",
882 "properties": {
883 "permissions": {
884 "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).",
885 "items": {
886 "type": "string"
887 },
888 "type": "array"
889 }
890 },
891 "type": "object"
892 },
893 "Topic": {
894 "description": "A topic resource.",
895 "id": "Topic",
896 "properties": {
897 "name": {
898 "description": "The name of the topic. It must have the form at\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, \nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),\nunder scores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent\nsigns (`%`). I t must be between 3 and 255 characters in length, and it\nmust not start with `\ "goog\"`.",
899 "type": "string"
900 }
901 },
902 "type": "object"
903 },
904 "Policy": {
905 "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).",
906 "id": "Policy",
907 "properties": {
908 "etag": {
909 "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.",
910 "format": "byte",
911 "type": "string"
912 },
913 "version": {
914 "description": "Version of the `Policy`. The default version is 0.",
915 "format": "int32",
916 "type": "integer"
917 },
918 "bindings": {
919 "description": "Associates a list of `members` to a `role`.\ n`bindings` with no members will result in an error.",
920 "items": {
921 "$ref": "Binding"
922 },
923 "type": "array"
924 }
925 },
926 "type": "object"
927 },
928 "ModifyAckDeadlineRequest": { 793 "ModifyAckDeadlineRequest": {
929 "description": "Request for the ModifyAckDeadline method.", 794 "description": "Request for the ModifyAckDeadline method.",
930 "id": "ModifyAckDeadlineRequest", 795 "id": "ModifyAckDeadlineRequest",
931 "properties": { 796 "properties": {
932 "ackDeadlineSeconds": { 797 "ackDeadlineSeconds": {
933 "description": "The new ack deadline with respect to the tim e this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call \nwas made. Specifying zero may immediately make the message available for\nanot her pull request.\nThe minimum deadline you can specify is 0 seconds.\nThe maxim um deadline you can specify is 600 seconds (10 minutes).", 798 "description": "The new ack deadline with respect to the tim e this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call \nwas made. Specifying zero may immediately make the message available for\nanot her pull request.\nThe minimum deadline you can specify is 0 seconds.\nThe maxim um deadline you can specify is 600 seconds (10 minutes).",
934 "format": "int32", 799 "format": "int32",
935 "type": "integer" 800 "type": "integer"
936 }, 801 },
937 "ackIds": { 802 "ackIds": {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 }, 870 },
1006 "type": "array" 871 "type": "array"
1007 }, 872 },
1008 "role": { 873 "role": {
1009 "description": "Role that is assigned to `members`.\nFor exa mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", 874 "description": "Role that is assigned to `members`.\nFor exa mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
1010 "type": "string" 875 "type": "string"
1011 } 876 }
1012 }, 877 },
1013 "type": "object" 878 "type": "object"
1014 }, 879 },
1015 "ListTopicsResponse": { 880 "AcknowledgeRequest": {
1016 "description": "Response for the `ListTopics` method.", 881 "description": "Request for the Acknowledge method.",
1017 "id": "ListTopicsResponse", 882 "id": "AcknowledgeRequest",
1018 "properties": { 883 "properties": {
1019 "nextPageToken": { 884 "ackIds": {
1020 "description": "If not empty, indicates that there may be mo re topics that match the\nrequest; this value should be passed in a new `ListTop icsRequest`.", 885 "description": "The acknowledgment ID for the messages being acknowledged that was returned\nby the Pub/Sub system in the `Pull` response. M ust not be empty.",
1021 "type": "string"
1022 },
1023 "topics": {
1024 "description": "The resulting topics.",
1025 "items": { 886 "items": {
1026 "$ref": "Topic" 887 "type": "string"
1027 }, 888 },
1028 "type": "array" 889 "type": "array"
1029 } 890 }
1030 }, 891 },
1031 "type": "object" 892 "type": "object"
1032 }, 893 },
1033 "Empty": { 894 "Empty": {
1034 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", 895 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
1035 "id": "Empty", 896 "id": "Empty",
1036 "properties": {}, 897 "properties": {},
1037 "type": "object" 898 "type": "object"
1038 }, 899 },
1039 "AcknowledgeRequest": { 900 "ListTopicsResponse": {
1040 "description": "Request for the Acknowledge method.", 901 "description": "Response for the `ListTopics` method.",
1041 "id": "AcknowledgeRequest", 902 "id": "ListTopicsResponse",
1042 "properties": { 903 "properties": {
1043 "ackIds": { 904 "nextPageToken": {
1044 "description": "The acknowledgment ID for the messages being acknowledged that was returned\nby the Pub/Sub system in the `Pull` response. M ust not be empty.", 905 "description": "If not empty, indicates that there may be mo re topics that match the\nrequest; this value should be passed in a new `ListTop icsRequest`.",
906 "type": "string"
907 },
908 "topics": {
909 "description": "The resulting topics.",
1045 "items": { 910 "items": {
1046 "type": "string" 911 "$ref": "Topic"
1047 }, 912 },
1048 "type": "array" 913 "type": "array"
1049 } 914 }
1050 }, 915 },
1051 "type": "object" 916 "type": "object"
1052 }, 917 },
1053 "ListTopicSubscriptionsResponse": { 918 "ListTopicSubscriptionsResponse": {
1054 "description": "Response for the `ListTopicSubscriptions` method.", 919 "description": "Response for the `ListTopicSubscriptions` method.",
1055 "id": "ListTopicSubscriptionsResponse", 920 "id": "ListTopicSubscriptionsResponse",
1056 "properties": { 921 "properties": {
(...skipping 22 matching lines...) Expand all
1079 }, 944 },
1080 "type": "array" 945 "type": "array"
1081 } 946 }
1082 }, 947 },
1083 "type": "object" 948 "type": "object"
1084 }, 949 },
1085 "ReceivedMessage": { 950 "ReceivedMessage": {
1086 "description": "A message and its corresponding acknowledgment ID.", 951 "description": "A message and its corresponding acknowledgment ID.",
1087 "id": "ReceivedMessage", 952 "id": "ReceivedMessage",
1088 "properties": { 953 "properties": {
954 "ackId": {
955 "description": "This ID can be used to acknowledge the recei ved message.",
956 "type": "string"
957 },
1089 "message": { 958 "message": {
1090 "$ref": "PubsubMessage", 959 "$ref": "PubsubMessage",
1091 "description": "The message." 960 "description": "The message."
1092 },
1093 "ackId": {
1094 "description": "This ID can be used to acknowledge the recei ved message.",
1095 "type": "string"
1096 } 961 }
1097 }, 962 },
1098 "type": "object" 963 "type": "object"
1099 }, 964 },
1100 "PushConfig": { 965 "PushConfig": {
1101 "description": "Configuration for a push delivery endpoint.", 966 "description": "Configuration for a push delivery endpoint.",
1102 "id": "PushConfig", 967 "id": "PushConfig",
1103 "properties": { 968 "properties": {
1104 "attributes": { 969 "attributes": {
1105 "additionalProperties": { 970 "additionalProperties": {
(...skipping 15 matching lines...) Expand all
1121 "properties": { 986 "properties": {
1122 "permissions": { 987 "permissions": {
1123 "description": "A subset of `TestPermissionsRequest.permissi ons` that the caller is\nallowed.", 988 "description": "A subset of `TestPermissionsRequest.permissi ons` that the caller is\nallowed.",
1124 "items": { 989 "items": {
1125 "type": "string" 990 "type": "string"
1126 }, 991 },
1127 "type": "array" 992 "type": "array"
1128 } 993 }
1129 }, 994 },
1130 "type": "object" 995 "type": "object"
996 },
997 "PullRequest": {
998 "description": "Request for the `Pull` method.",
999 "id": "PullRequest",
1000 "properties": {
1001 "maxMessages": {
1002 "description": "The maximum number of messages returned for this request. The Pub/Sub\nsystem may return fewer than the number specified.",
1003 "format": "int32",
1004 "type": "integer"
1005 },
1006 "returnImmediately": {
1007 "description": "If this field set to true, the system will r espond immediately even if\nit there are no messages available to return in the `Pull` response.\nOtherwise, the system may wait (for a bounded amount of time) until at\nleast one message is available, rather than returning no messages. The \nclient may cancel the request if it does not wish to wait any longer for\nthe response.",
1008 "type": "boolean"
1009 }
1010 },
1011 "type": "object"
1012 },
1013 "ListSubscriptionsResponse": {
1014 "description": "Response for the `ListSubscriptions` method.",
1015 "id": "ListSubscriptionsResponse",
1016 "properties": {
1017 "nextPageToken": {
1018 "description": "If not empty, indicates that there may be mo re subscriptions that match\nthe request; this value should be passed in a new\n `ListSubscriptionsRequest` to get more subscriptions.",
1019 "type": "string"
1020 },
1021 "subscriptions": {
1022 "description": "The subscriptions that match the request.",
1023 "items": {
1024 "$ref": "Subscription"
1025 },
1026 "type": "array"
1027 }
1028 },
1029 "type": "object"
1030 },
1031 "PublishRequest": {
1032 "description": "Request for the Publish method.",
1033 "id": "PublishRequest",
1034 "properties": {
1035 "messages": {
1036 "description": "The messages to publish.",
1037 "items": {
1038 "$ref": "PubsubMessage"
1039 },
1040 "type": "array"
1041 }
1042 },
1043 "type": "object"
1044 },
1045 "PublishResponse": {
1046 "description": "Response for the `Publish` method.",
1047 "id": "PublishResponse",
1048 "properties": {
1049 "messageIds": {
1050 "description": "The server-assigned ID of each published mes sage, in the same order as\nthe messages in the request. IDs are guaranteed to b e unique within\nthe topic.",
1051 "items": {
1052 "type": "string"
1053 },
1054 "type": "array"
1055 }
1056 },
1057 "type": "object"
1058 },
1059 "Subscription": {
1060 "description": "A subscription resource.",
1061 "id": "Subscription",
1062 "properties": {
1063 "topic": {
1064 "description": "The name of the topic from which this subscr iption is receiving messages.\nFormat is `projects/{project}/topics/{topic}`.\nT he value of this field will be `_deleted-topic_` if the topic has been\ndeleted. ",
1065 "type": "string"
1066 },
1067 "pushConfig": {
1068 "$ref": "PushConfig",
1069 "description": "If push delivery is used with this subscript ion, this field is\nused to configure it. An empty `pushConfig` signifies that t he subscriber\nwill pull and ack messages using API methods."
1070 },
1071 "ackDeadlineSeconds": {
1072 "description": "This value is the maximum time after a subsc riber receives a message\nbefore the subscriber should acknowledge the message. After message\ndelivery but before the ack deadline expires and before the messa ge is\nacknowledged, it is an outstanding message and will not be delivered\naga in during that time (on a best-effort basis).\n\nFor pull subscriptions, this va lue is used as the initial value for the ack\ndeadline. To override this value f or a given message, call\n`ModifyAckDeadline` with the corresponding `ack_id` if using\npull.\nThe minimum custom deadline you can specify is 10 seconds.\nThe m aximum custom deadline you can specify is 600 seconds (10 minutes).\nIf this par ameter is 0, a default value of 10 seconds is used.\n\nFor push delivery, this v alue is also used to set the request timeout for\nthe call to the push endpoint. \n\nIf the subscriber never acknowledges the message, the Pub/Sub\nsystem will e ventually redeliver the message.",
1073 "format": "int32",
1074 "type": "integer"
1075 },
1076 "name": {
1077 "description": "The name of the subscription. It must have t he format\n`\"projects/{project}/subscriptions/{subscription}\"`. `{subscription }` must\nstart with a letter, and contain only letters (`[A-Za-z]`), numbers\n(` [0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),\nplus (`+ `) or percent signs (`%`). It must be between 3 and 255 characters\nin length, a nd it must not start with `\"goog\"`.",
1078 "type": "string"
1079 }
1080 },
1081 "type": "object"
1082 },
1083 "TestIamPermissionsRequest": {
1084 "description": "Request message for `TestIamPermissions` method.",
1085 "id": "TestIamPermissionsRequest",
1086 "properties": {
1087 "permissions": {
1088 "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).",
1089 "items": {
1090 "type": "string"
1091 },
1092 "type": "array"
1093 }
1094 },
1095 "type": "object"
1096 },
1097 "Policy": {
1098 "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).",
1099 "id": "Policy",
1100 "properties": {
1101 "bindings": {
1102 "description": "Associates a list of `members` to a `role`.\ n`bindings` with no members will result in an error.",
1103 "items": {
1104 "$ref": "Binding"
1105 },
1106 "type": "array"
1107 },
1108 "etag": {
1109 "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.",
1110 "format": "byte",
1111 "type": "string"
1112 },
1113 "version": {
1114 "description": "Version of the `Policy`. The default version is 0.",
1115 "format": "int32",
1116 "type": "integer"
1117 }
1118 },
1119 "type": "object"
1120 },
1121 "Topic": {
1122 "description": "A topic resource.",
1123 "id": "Topic",
1124 "properties": {
1125 "name": {
1126 "description": "The name of the topic. It must have the form at\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, \nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),\nunder scores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent\nsigns (`%`). I t must be between 3 and 255 characters in length, and it\nmust not start with `\ "goog\"`.",
1127 "type": "string"
1128 }
1129 },
1130 "type": "object"
1131 } 1131 }
1132 }, 1132 },
1133 "servicePath": "", 1133 "servicePath": "",
1134 "title": "Google Cloud Pub/Sub API", 1134 "title": "Google Cloud Pub/Sub API",
1135 "version": "v1" 1135 "version": "v1"
1136 } 1136 }
OLDNEW
« no previous file with comments | « discovery/googleapis/plus__v1.json ('k') | discovery/googleapis/runtimeconfig__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698