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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 10 matching lines...) Expand all
21 "icons": { 21 "icons": {
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", 22 "x16": "http://www.google.com/images/icons/product/search-16.gif",
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" 23 "x32": "http://www.google.com/images/icons/product/search-32.gif"
24 }, 24 },
25 "id": "pubsub:v1beta2", 25 "id": "pubsub:v1beta2",
26 "kind": "discovery#restDescription", 26 "kind": "discovery#restDescription",
27 "name": "pubsub", 27 "name": "pubsub",
28 "ownerDomain": "google.com", 28 "ownerDomain": "google.com",
29 "ownerName": "Google", 29 "ownerName": "Google",
30 "parameters": { 30 "parameters": {
31 "key": {
32 "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.",
33 "location": "query",
34 "type": "string"
35 },
36 "access_token": {
37 "description": "OAuth access token.",
38 "location": "query",
39 "type": "string"
40 },
41 "quotaUser": {
42 "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.",
43 "location": "query",
44 "type": "string"
45 },
46 "pp": {
47 "default": "true",
48 "description": "Pretty-print response.",
49 "location": "query",
50 "type": "boolean"
51 },
52 "oauth_token": {
53 "description": "OAuth 2.0 token for the current user.",
54 "location": "query",
55 "type": "string"
56 },
57 "bearer_token": {
58 "description": "OAuth bearer token.",
59 "location": "query",
60 "type": "string"
61 },
62 "upload_protocol": { 31 "upload_protocol": {
63 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 32 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
64 "location": "query", 33 "location": "query",
65 "type": "string" 34 "type": "string"
66 }, 35 },
67 "prettyPrint": { 36 "prettyPrint": {
68 "default": "true", 37 "default": "true",
69 "description": "Returns response with indentations and line breaks." , 38 "description": "Returns response with indentations and line breaks." ,
70 "location": "query", 39 "location": "query",
71 "type": "boolean" 40 "type": "boolean"
72 }, 41 },
42 "fields": {
43 "description": "Selector specifying which fields to include in a par tial response.",
44 "location": "query",
45 "type": "string"
46 },
73 "uploadType": { 47 "uploadType": {
74 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 48 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
75 "location": "query", 49 "location": "query",
76 "type": "string" 50 "type": "string"
77 }, 51 },
78 "fields": { 52 "callback": {
79 "description": "Selector specifying which fields to include in a par tial response.", 53 "description": "JSONP",
80 "location": "query", 54 "location": "query",
81 "type": "string" 55 "type": "string"
82 }, 56 },
83 "$.xgafv": { 57 "$.xgafv": {
84 "description": "V1 error format.", 58 "description": "V1 error format.",
85 "enum": [ 59 "enum": [
86 "1", 60 "1",
87 "2" 61 "2"
88 ], 62 ],
89 "enumDescriptions": [ 63 "enumDescriptions": [
90 "v1 error format", 64 "v1 error format",
91 "v2 error format" 65 "v2 error format"
92 ], 66 ],
93 "location": "query", 67 "location": "query",
94 "type": "string" 68 "type": "string"
95 }, 69 },
96 "callback": {
97 "description": "JSONP",
98 "location": "query",
99 "type": "string"
100 },
101 "alt": { 70 "alt": {
102 "default": "json", 71 "default": "json",
103 "description": "Data format for response.", 72 "description": "Data format for response.",
104 "enum": [ 73 "enum": [
105 "json", 74 "json",
106 "media", 75 "media",
107 "proto" 76 "proto"
108 ], 77 ],
109 "enumDescriptions": [ 78 "enumDescriptions": [
110 "Responses with Content-Type of application/json", 79 "Responses with Content-Type of application/json",
111 "Media download with context-dependent Content-Type", 80 "Media download with context-dependent Content-Type",
112 "Responses with Content-Type of application/x-protobuf" 81 "Responses with Content-Type of application/x-protobuf"
113 ], 82 ],
114 "location": "query", 83 "location": "query",
115 "type": "string" 84 "type": "string"
85 },
86 "access_token": {
87 "description": "OAuth access token.",
88 "location": "query",
89 "type": "string"
90 },
91 "key": {
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.",
93 "location": "query",
94 "type": "string"
95 },
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.",
98 "location": "query",
99 "type": "string"
100 },
101 "pp": {
102 "default": "true",
103 "description": "Pretty-print response.",
104 "location": "query",
105 "type": "boolean"
106 },
107 "bearer_token": {
108 "description": "OAuth bearer token.",
109 "location": "query",
110 "type": "string"
111 },
112 "oauth_token": {
113 "description": "OAuth 2.0 token for the current user.",
114 "location": "query",
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 "subscriptions": {
123 "methods": { 123 "methods": {
124 "list": { 124 "create": {
125 "description": "Lists matching topics.", 125 "description": "Creates a subscription to a given to pic.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corr esponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provid ed in the request, the server will assign a random\nname for this subscription o n the same project as the topic. Note that\nfor REST API requests, you must spec ify a name.",
126 "httpMethod": "GET", 126 "httpMethod": "PUT",
127 "id": "pubsub.projects.topics.list", 127 "id": "pubsub.projects.subscriptions.create",
128 "parameterOrder": [ 128 "parameterOrder": [
129 "project" 129 "name"
130 ], 130 ],
131 "parameters": { 131 "parameters": {
132 "pageSize": { 132 "name": {
133 "description": "Maximum number of topics to return.", 133 "description": "The name of the subscription . It must have the 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 characte rs\nin length, and it must not start with `\"goog\"`.",
134 "format": "int32",
135 "location": "query",
136 "type": "integer"
137 },
138 "project": {
139 "description": "The name of the cloud projec t that topics belong to.",
140 "location": "path", 134 "location": "path",
141 "pattern": "^projects/[^/]+$", 135 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
142 "required": true, 136 "required": true,
143 "type": "string" 137 "type": "string"
144 },
145 "pageToken": {
146 "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.",
147 "location": "query",
148 "type": "string"
149 } 138 }
150 }, 139 },
151 "path": "v1beta2/{+project}/topics", 140 "path": "v1beta2/{+name}",
141 "request": {
142 "$ref": "Subscription"
143 },
152 "response": { 144 "response": {
153 "$ref": "ListTopicsResponse" 145 "$ref": "Subscription"
154 }, 146 },
155 "scopes": [ 147 "scopes": [
156 "https://www.googleapis.com/auth/cloud-platform" , 148 "https://www.googleapis.com/auth/cloud-platform" ,
157 "https://www.googleapis.com/auth/pubsub" 149 "https://www.googleapis.com/auth/pubsub"
158 ] 150 ]
159 }, 151 },
160 "setIamPolicy": { 152 "setIamPolicy": {
161 "description": "Sets the access control policy on th e specified resource. Replaces any\nexisting policy.", 153 "description": "Sets the access control policy on th e specified resource. Replaces any\nexisting policy.",
162 "httpMethod": "POST", 154 "httpMethod": "POST",
163 "id": "pubsub.projects.topics.setIamPolicy", 155 "id": "pubsub.projects.subscriptions.setIamPolicy",
164 "parameterOrder": [ 156 "parameterOrder": [
165 "resource" 157 "resource"
166 ], 158 ],
167 "parameters": { 159 "parameters": {
168 "resource": { 160 "resource": {
169 "description": "REQUIRED: The resource for w hich the policy is being specified.\nSee the operation documentation for the app ropriate value for this field.", 161 "description": "REQUIRED: The resource for w hich the policy is being specified.\nSee the operation documentation for the app ropriate value for this field.",
170 "location": "path", 162 "location": "path",
171 "pattern": "^projects/[^/]+/topics/[^/]+$", 163 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
172 "required": true, 164 "required": true,
173 "type": "string" 165 "type": "string"
174 } 166 }
175 }, 167 },
176 "path": "v1beta2/{+resource}:setIamPolicy", 168 "path": "v1beta2/{+resource}:setIamPolicy",
177 "request": { 169 "request": {
178 "$ref": "SetIamPolicyRequest" 170 "$ref": "SetIamPolicyRequest"
179 }, 171 },
180 "response": { 172 "response": {
181 "$ref": "Policy" 173 "$ref": "Policy"
182 }, 174 },
183 "scopes": [ 175 "scopes": [
184 "https://www.googleapis.com/auth/cloud-platform" , 176 "https://www.googleapis.com/auth/cloud-platform" ,
185 "https://www.googleapis.com/auth/pubsub" 177 "https://www.googleapis.com/auth/pubsub"
186 ] 178 ]
187 }, 179 },
188 "create": { 180 "acknowledge": {
189 "description": "Creates the given topic with the giv en name.", 181 "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.",
190 "httpMethod": "PUT", 182 "httpMethod": "POST",
191 "id": "pubsub.projects.topics.create", 183 "id": "pubsub.projects.subscriptions.acknowledge",
192 "parameterOrder": [ 184 "parameterOrder": [
193 "name" 185 "subscription"
194 ], 186 ],
195 "parameters": { 187 "parameters": {
196 "name": { 188 "subscription": {
197 "description": "The name of the topic. It mu st have the format\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must star t with a letter,\nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dash es (`-`),\nunderscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent \nsigns (`%`). It must be between 3 and 255 characters in length, and it\nmust n ot start with `\"goog\"`.", 189 "description": "The subscription whose messa ge is being acknowledged.",
198 "location": "path", 190 "location": "path",
199 "pattern": "^projects/[^/]+/topics/[^/]+$", 191 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
200 "required": true, 192 "required": true,
201 "type": "string" 193 "type": "string"
202 } 194 }
203 }, 195 },
204 "path": "v1beta2/{+name}", 196 "path": "v1beta2/{+subscription}:acknowledge",
205 "request": { 197 "request": {
206 "$ref": "Topic" 198 "$ref": "AcknowledgeRequest"
207 }, 199 },
208 "response": { 200 "response": {
209 "$ref": "Topic" 201 "$ref": "Empty"
202 },
203 "scopes": [
204 "https://www.googleapis.com/auth/cloud-platform" ,
205 "https://www.googleapis.com/auth/pubsub"
206 ]
207 },
208 "modifyAckDeadline": {
209 "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.",
210 "httpMethod": "POST",
211 "id": "pubsub.projects.subscriptions.modifyAckDeadli ne",
212 "parameterOrder": [
213 "subscription"
214 ],
215 "parameters": {
216 "subscription": {
217 "description": "The name of the subscription .",
218 "location": "path",
219 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
220 "required": true,
221 "type": "string"
222 }
223 },
224 "path": "v1beta2/{+subscription}:modifyAckDeadline",
225 "request": {
226 "$ref": "ModifyAckDeadlineRequest"
227 },
228 "response": {
229 "$ref": "Empty"
210 }, 230 },
211 "scopes": [ 231 "scopes": [
212 "https://www.googleapis.com/auth/cloud-platform" , 232 "https://www.googleapis.com/auth/cloud-platform" ,
213 "https://www.googleapis.com/auth/pubsub" 233 "https://www.googleapis.com/auth/pubsub"
214 ] 234 ]
215 }, 235 },
216 "getIamPolicy": { 236 "getIamPolicy": {
217 "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.", 237 "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.",
218 "httpMethod": "GET", 238 "httpMethod": "GET",
219 "id": "pubsub.projects.topics.getIamPolicy", 239 "id": "pubsub.projects.subscriptions.getIamPolicy",
220 "parameterOrder": [ 240 "parameterOrder": [
221 "resource" 241 "resource"
222 ], 242 ],
223 "parameters": { 243 "parameters": {
224 "resource": { 244 "resource": {
225 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.", 245 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.",
226 "location": "path", 246 "location": "path",
227 "pattern": "^projects/[^/]+/topics/[^/]+$", 247 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
228 "required": true, 248 "required": true,
229 "type": "string" 249 "type": "string"
230 } 250 }
231 }, 251 },
232 "path": "v1beta2/{+resource}:getIamPolicy", 252 "path": "v1beta2/{+resource}:getIamPolicy",
233 "response": { 253 "response": {
234 "$ref": "Policy" 254 "$ref": "Policy"
235 }, 255 },
236 "scopes": [ 256 "scopes": [
237 "https://www.googleapis.com/auth/cloud-platform" , 257 "https://www.googleapis.com/auth/cloud-platform" ,
238 "https://www.googleapis.com/auth/pubsub" 258 "https://www.googleapis.com/auth/pubsub"
239 ] 259 ]
240 }, 260 },
241 "get": { 261 "get": {
242 "description": "Gets the configuration of a topic.",
243 "httpMethod": "GET",
244 "id": "pubsub.projects.topics.get",
245 "parameterOrder": [
246 "topic"
247 ],
248 "parameters": {
249 "topic": {
250 "description": "The name of the topic to get .",
251 "location": "path",
252 "pattern": "^projects/[^/]+/topics/[^/]+$",
253 "required": true,
254 "type": "string"
255 }
256 },
257 "path": "v1beta2/{+topic}",
258 "response": {
259 "$ref": "Topic"
260 },
261 "scopes": [
262 "https://www.googleapis.com/auth/cloud-platform" ,
263 "https://www.googleapis.com/auth/pubsub"
264 ]
265 },
266 "publish": {
267 "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.",
268 "httpMethod": "POST",
269 "id": "pubsub.projects.topics.publish",
270 "parameterOrder": [
271 "topic"
272 ],
273 "parameters": {
274 "topic": {
275 "description": "The messages in the request will be published on this topic.",
276 "location": "path",
277 "pattern": "^projects/[^/]+/topics/[^/]+$",
278 "required": true,
279 "type": "string"
280 }
281 },
282 "path": "v1beta2/{+topic}:publish",
283 "request": {
284 "$ref": "PublishRequest"
285 },
286 "response": {
287 "$ref": "PublishResponse"
288 },
289 "scopes": [
290 "https://www.googleapis.com/auth/cloud-platform" ,
291 "https://www.googleapis.com/auth/pubsub"
292 ]
293 },
294 "testIamPermissions": {
295 "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. ",
296 "httpMethod": "POST",
297 "id": "pubsub.projects.topics.testIamPermissions",
298 "parameterOrder": [
299 "resource"
300 ],
301 "parameters": {
302 "resource": {
303 "description": "REQUIRED: The resource for w hich the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
304 "location": "path",
305 "pattern": "^projects/[^/]+/topics/[^/]+$",
306 "required": true,
307 "type": "string"
308 }
309 },
310 "path": "v1beta2/{+resource}:testIamPermissions",
311 "request": {
312 "$ref": "TestIamPermissionsRequest"
313 },
314 "response": {
315 "$ref": "TestIamPermissionsResponse"
316 },
317 "scopes": [
318 "https://www.googleapis.com/auth/cloud-platform" ,
319 "https://www.googleapis.com/auth/pubsub"
320 ]
321 },
322 "delete": {
323 "description": "Deletes the topic with the given nam e. Returns `NOT_FOUND` if the topic\ndoes not exist. After a topic is deleted, a new topic may be created with\nthe same name; this is an entirely new topic wit h none of the old\nconfiguration or subscriptions. Existing subscriptions to thi s topic are\nnot deleted, but their `topic` field is set to `_deleted-topic_`.",
324 "httpMethod": "DELETE",
325 "id": "pubsub.projects.topics.delete",
326 "parameterOrder": [
327 "topic"
328 ],
329 "parameters": {
330 "topic": {
331 "description": "Name of the topic to delete. ",
332 "location": "path",
333 "pattern": "^projects/[^/]+/topics/[^/]+$",
334 "required": true,
335 "type": "string"
336 }
337 },
338 "path": "v1beta2/{+topic}",
339 "response": {
340 "$ref": "Empty"
341 },
342 "scopes": [
343 "https://www.googleapis.com/auth/cloud-platform" ,
344 "https://www.googleapis.com/auth/pubsub"
345 ]
346 }
347 },
348 "resources": {
349 "subscriptions": {
350 "methods": {
351 "list": {
352 "description": "Lists the name of the subscr iptions for this topic.",
353 "httpMethod": "GET",
354 "id": "pubsub.projects.topics.subscriptions. list",
355 "parameterOrder": [
356 "topic"
357 ],
358 "parameters": {
359 "pageSize": {
360 "description": "Maximum number of su bscription names to return.",
361 "format": "int32",
362 "location": "query",
363 "type": "integer"
364 },
365 "topic": {
366 "description": "The name of the topi c that subscriptions are attached to.",
367 "location": "path",
368 "pattern": "^projects/[^/]+/topics/[ ^/]+$",
369 "required": true,
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 }
377 },
378 "path": "v1beta2/{+topic}/subscriptions",
379 "response": {
380 "$ref": "ListTopicSubscriptionsResponse"
381 },
382 "scopes": [
383 "https://www.googleapis.com/auth/cloud-p latform",
384 "https://www.googleapis.com/auth/pubsub"
385 ]
386 }
387 }
388 }
389 }
390 },
391 "subscriptions": {
392 "methods": {
393 "get": {
394 "description": "Gets the configuration details of a subscription.", 262 "description": "Gets the configuration details of a subscription.",
395 "httpMethod": "GET", 263 "httpMethod": "GET",
396 "id": "pubsub.projects.subscriptions.get", 264 "id": "pubsub.projects.subscriptions.get",
397 "parameterOrder": [ 265 "parameterOrder": [
398 "subscription" 266 "subscription"
399 ], 267 ],
400 "parameters": { 268 "parameters": {
401 "subscription": { 269 "subscription": {
402 "description": "The name of the subscription to get.", 270 "description": "The name of the subscription to get.",
403 "location": "path", 271 "location": "path",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 "$ref": "ModifyPushConfigRequest" 332 "$ref": "ModifyPushConfigRequest"
465 }, 333 },
466 "response": { 334 "response": {
467 "$ref": "Empty" 335 "$ref": "Empty"
468 }, 336 },
469 "scopes": [ 337 "scopes": [
470 "https://www.googleapis.com/auth/cloud-platform" , 338 "https://www.googleapis.com/auth/cloud-platform" ,
471 "https://www.googleapis.com/auth/pubsub" 339 "https://www.googleapis.com/auth/pubsub"
472 ] 340 ]
473 }, 341 },
342 "delete": {
343 "description": "Deletes an existing subscription. Al l pending messages in the subscription\nare immediately dropped. Calls to `Pull` after deletion will return\n`NOT_FOUND`. After a subscription is deleted, a new one may be created with\nthe same name, but the new one has no association with the old\nsubscription, or its topic unless the same topic is specified.",
344 "httpMethod": "DELETE",
345 "id": "pubsub.projects.subscriptions.delete",
346 "parameterOrder": [
347 "subscription"
348 ],
349 "parameters": {
350 "subscription": {
351 "description": "The subscription to delete." ,
352 "location": "path",
353 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
354 "required": true,
355 "type": "string"
356 }
357 },
358 "path": "v1beta2/{+subscription}",
359 "response": {
360 "$ref": "Empty"
361 },
362 "scopes": [
363 "https://www.googleapis.com/auth/cloud-platform" ,
364 "https://www.googleapis.com/auth/pubsub"
365 ]
366 },
474 "pull": { 367 "pull": {
475 "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.", 368 "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.",
476 "httpMethod": "POST", 369 "httpMethod": "POST",
477 "id": "pubsub.projects.subscriptions.pull", 370 "id": "pubsub.projects.subscriptions.pull",
478 "parameterOrder": [ 371 "parameterOrder": [
479 "subscription" 372 "subscription"
480 ], 373 ],
481 "parameters": { 374 "parameters": {
482 "subscription": { 375 "subscription": {
483 "description": "The subscription from which messages should be pulled.", 376 "description": "The subscription from which messages should be pulled.",
484 "location": "path", 377 "location": "path",
485 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 378 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
486 "required": true, 379 "required": true,
487 "type": "string" 380 "type": "string"
488 } 381 }
489 }, 382 },
490 "path": "v1beta2/{+subscription}:pull", 383 "path": "v1beta2/{+subscription}:pull",
491 "request": { 384 "request": {
492 "$ref": "PullRequest" 385 "$ref": "PullRequest"
493 }, 386 },
494 "response": { 387 "response": {
495 "$ref": "PullResponse" 388 "$ref": "PullResponse"
496 }, 389 },
497 "scopes": [ 390 "scopes": [
498 "https://www.googleapis.com/auth/cloud-platform" , 391 "https://www.googleapis.com/auth/cloud-platform" ,
499 "https://www.googleapis.com/auth/pubsub"
500 ]
501 },
502 "delete": {
503 "description": "Deletes an existing subscription. Al l pending messages in the subscription\nare immediately dropped. Calls to `Pull` after deletion will return\n`NOT_FOUND`. After a subscription is deleted, a new one may be created with\nthe same name, but the new one has no association with the old\nsubscription, or its topic unless the same topic is specified.",
504 "httpMethod": "DELETE",
505 "id": "pubsub.projects.subscriptions.delete",
506 "parameterOrder": [
507 "subscription"
508 ],
509 "parameters": {
510 "subscription": {
511 "description": "The subscription to delete." ,
512 "location": "path",
513 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
514 "required": true,
515 "type": "string"
516 }
517 },
518 "path": "v1beta2/{+subscription}",
519 "response": {
520 "$ref": "Empty"
521 },
522 "scopes": [
523 "https://www.googleapis.com/auth/cloud-platform" ,
524 "https://www.googleapis.com/auth/pubsub" 392 "https://www.googleapis.com/auth/pubsub"
525 ] 393 ]
526 }, 394 },
527 "list": { 395 "list": {
528 "description": "Lists matching subscriptions.", 396 "description": "Lists matching subscriptions.",
529 "httpMethod": "GET", 397 "httpMethod": "GET",
530 "id": "pubsub.projects.subscriptions.list", 398 "id": "pubsub.projects.subscriptions.list",
531 "parameterOrder": [ 399 "parameterOrder": [
532 "project" 400 "project"
533 ], 401 ],
534 "parameters": { 402 "parameters": {
403 "pageToken": {
404 "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.",
405 "location": "query",
406 "type": "string"
407 },
535 "pageSize": { 408 "pageSize": {
536 "description": "Maximum number of subscripti ons to return.", 409 "description": "Maximum number of subscripti ons to return.",
537 "format": "int32", 410 "format": "int32",
538 "location": "query", 411 "location": "query",
539 "type": "integer" 412 "type": "integer"
540 }, 413 },
541 "project": { 414 "project": {
542 "description": "The name of the cloud projec t that subscriptions belong to.", 415 "description": "The name of the cloud projec t that subscriptions belong to.",
543 "location": "path", 416 "location": "path",
544 "pattern": "^projects/[^/]+$", 417 "pattern": "^projects/[^/]+$",
545 "required": true, 418 "required": true,
546 "type": "string" 419 "type": "string"
547 },
548 "pageToken": {
549 "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.",
550 "location": "query",
551 "type": "string"
552 } 420 }
553 }, 421 },
554 "path": "v1beta2/{+project}/subscriptions", 422 "path": "v1beta2/{+project}/subscriptions",
555 "response": { 423 "response": {
556 "$ref": "ListSubscriptionsResponse" 424 "$ref": "ListSubscriptionsResponse"
557 }, 425 },
558 "scopes": [ 426 "scopes": [
559 "https://www.googleapis.com/auth/cloud-platform" , 427 "https://www.googleapis.com/auth/cloud-platform" ,
560 "https://www.googleapis.com/auth/pubsub" 428 "https://www.googleapis.com/auth/pubsub"
561 ] 429 ]
430 }
431 }
432 },
433 "topics": {
434 "methods": {
435 "get": {
436 "description": "Gets the configuration of a topic.",
437 "httpMethod": "GET",
438 "id": "pubsub.projects.topics.get",
439 "parameterOrder": [
440 "topic"
441 ],
442 "parameters": {
443 "topic": {
444 "description": "The name of the topic to get .",
445 "location": "path",
446 "pattern": "^projects/[^/]+/topics/[^/]+$",
447 "required": true,
448 "type": "string"
449 }
450 },
451 "path": "v1beta2/{+topic}",
452 "response": {
453 "$ref": "Topic"
454 },
455 "scopes": [
456 "https://www.googleapis.com/auth/cloud-platform" ,
457 "https://www.googleapis.com/auth/pubsub"
458 ]
459 },
460 "publish": {
461 "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.",
462 "httpMethod": "POST",
463 "id": "pubsub.projects.topics.publish",
464 "parameterOrder": [
465 "topic"
466 ],
467 "parameters": {
468 "topic": {
469 "description": "The messages in the request will be published on this topic.",
470 "location": "path",
471 "pattern": "^projects/[^/]+/topics/[^/]+$",
472 "required": true,
473 "type": "string"
474 }
475 },
476 "path": "v1beta2/{+topic}:publish",
477 "request": {
478 "$ref": "PublishRequest"
479 },
480 "response": {
481 "$ref": "PublishResponse"
482 },
483 "scopes": [
484 "https://www.googleapis.com/auth/cloud-platform" ,
485 "https://www.googleapis.com/auth/pubsub"
486 ]
487 },
488 "testIamPermissions": {
489 "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. ",
490 "httpMethod": "POST",
491 "id": "pubsub.projects.topics.testIamPermissions",
492 "parameterOrder": [
493 "resource"
494 ],
495 "parameters": {
496 "resource": {
497 "description": "REQUIRED: The resource for w hich the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
498 "location": "path",
499 "pattern": "^projects/[^/]+/topics/[^/]+$",
500 "required": true,
501 "type": "string"
502 }
503 },
504 "path": "v1beta2/{+resource}:testIamPermissions",
505 "request": {
506 "$ref": "TestIamPermissionsRequest"
507 },
508 "response": {
509 "$ref": "TestIamPermissionsResponse"
510 },
511 "scopes": [
512 "https://www.googleapis.com/auth/cloud-platform" ,
513 "https://www.googleapis.com/auth/pubsub"
514 ]
515 },
516 "delete": {
517 "description": "Deletes the topic with the given nam e. Returns `NOT_FOUND` if the topic\ndoes not exist. After a topic is deleted, a new topic may be created with\nthe same name; this is an entirely new topic wit h none of the old\nconfiguration or subscriptions. Existing subscriptions to thi s topic are\nnot deleted, but their `topic` field is set to `_deleted-topic_`.",
518 "httpMethod": "DELETE",
519 "id": "pubsub.projects.topics.delete",
520 "parameterOrder": [
521 "topic"
522 ],
523 "parameters": {
524 "topic": {
525 "description": "Name of the topic to delete. ",
526 "location": "path",
527 "pattern": "^projects/[^/]+/topics/[^/]+$",
528 "required": true,
529 "type": "string"
530 }
531 },
532 "path": "v1beta2/{+topic}",
533 "response": {
534 "$ref": "Empty"
535 },
536 "scopes": [
537 "https://www.googleapis.com/auth/cloud-platform" ,
538 "https://www.googleapis.com/auth/pubsub"
539 ]
540 },
541 "list": {
542 "description": "Lists matching topics.",
543 "httpMethod": "GET",
544 "id": "pubsub.projects.topics.list",
545 "parameterOrder": [
546 "project"
547 ],
548 "parameters": {
549 "pageToken": {
550 "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.",
551 "location": "query",
552 "type": "string"
553 },
554 "pageSize": {
555 "description": "Maximum number of topics to return.",
556 "format": "int32",
557 "location": "query",
558 "type": "integer"
559 },
560 "project": {
561 "description": "The name of the cloud projec t that topics belong to.",
562 "location": "path",
563 "pattern": "^projects/[^/]+$",
564 "required": true,
565 "type": "string"
566 }
567 },
568 "path": "v1beta2/{+project}/topics",
569 "response": {
570 "$ref": "ListTopicsResponse"
571 },
572 "scopes": [
573 "https://www.googleapis.com/auth/cloud-platform" ,
574 "https://www.googleapis.com/auth/pubsub"
575 ]
562 }, 576 },
563 "setIamPolicy": { 577 "setIamPolicy": {
564 "description": "Sets the access control policy on th e specified resource. Replaces any\nexisting policy.", 578 "description": "Sets the access control policy on th e specified resource. Replaces any\nexisting policy.",
565 "httpMethod": "POST", 579 "httpMethod": "POST",
566 "id": "pubsub.projects.subscriptions.setIamPolicy", 580 "id": "pubsub.projects.topics.setIamPolicy",
567 "parameterOrder": [ 581 "parameterOrder": [
568 "resource" 582 "resource"
569 ], 583 ],
570 "parameters": { 584 "parameters": {
571 "resource": { 585 "resource": {
572 "description": "REQUIRED: The resource for w hich the policy is being specified.\nSee the operation documentation for the app ropriate value for this field.", 586 "description": "REQUIRED: The resource for w hich the policy is being specified.\nSee the operation documentation for the app ropriate value for this field.",
573 "location": "path", 587 "location": "path",
574 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 588 "pattern": "^projects/[^/]+/topics/[^/]+$",
575 "required": true, 589 "required": true,
576 "type": "string" 590 "type": "string"
577 } 591 }
578 }, 592 },
579 "path": "v1beta2/{+resource}:setIamPolicy", 593 "path": "v1beta2/{+resource}:setIamPolicy",
580 "request": { 594 "request": {
581 "$ref": "SetIamPolicyRequest" 595 "$ref": "SetIamPolicyRequest"
582 }, 596 },
583 "response": { 597 "response": {
584 "$ref": "Policy" 598 "$ref": "Policy"
585 }, 599 },
586 "scopes": [ 600 "scopes": [
587 "https://www.googleapis.com/auth/cloud-platform" , 601 "https://www.googleapis.com/auth/cloud-platform" ,
588 "https://www.googleapis.com/auth/pubsub" 602 "https://www.googleapis.com/auth/pubsub"
589 ] 603 ]
590 }, 604 },
591 "create": { 605 "create": {
592 "description": "Creates a subscription to a given to pic.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corr esponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provid ed in the request, the server will assign a random\nname for this subscription o n the same project as the topic. Note that\nfor REST API requests, you must spec ify a name.", 606 "description": "Creates the given topic with the giv en name.",
593 "httpMethod": "PUT", 607 "httpMethod": "PUT",
594 "id": "pubsub.projects.subscriptions.create", 608 "id": "pubsub.projects.topics.create",
595 "parameterOrder": [ 609 "parameterOrder": [
596 "name" 610 "name"
597 ], 611 ],
598 "parameters": { 612 "parameters": {
599 "name": { 613 "name": {
600 "description": "The name of the subscription . It must have the 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 characte rs\nin length, and it must not start with `\"goog\"`.", 614 "description": "The name of the topic. It mu st have the format\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must star t with a letter,\nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dash es (`-`),\nunderscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent \nsigns (`%`). It must be between 3 and 255 characters in length, and it\nmust n ot start with `\"goog\"`.",
601 "location": "path", 615 "location": "path",
602 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 616 "pattern": "^projects/[^/]+/topics/[^/]+$",
603 "required": true, 617 "required": true,
604 "type": "string" 618 "type": "string"
605 } 619 }
606 }, 620 },
607 "path": "v1beta2/{+name}", 621 "path": "v1beta2/{+name}",
608 "request": { 622 "request": {
609 "$ref": "Subscription" 623 "$ref": "Topic"
610 }, 624 },
611 "response": { 625 "response": {
612 "$ref": "Subscription" 626 "$ref": "Topic"
613 }, 627 },
614 "scopes": [ 628 "scopes": [
615 "https://www.googleapis.com/auth/cloud-platform" , 629 "https://www.googleapis.com/auth/cloud-platform" ,
616 "https://www.googleapis.com/auth/pubsub"
617 ]
618 },
619 "modifyAckDeadline": {
620 "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.",
621 "httpMethod": "POST",
622 "id": "pubsub.projects.subscriptions.modifyAckDeadli ne",
623 "parameterOrder": [
624 "subscription"
625 ],
626 "parameters": {
627 "subscription": {
628 "description": "The name of the subscription .",
629 "location": "path",
630 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
631 "required": true,
632 "type": "string"
633 }
634 },
635 "path": "v1beta2/{+subscription}:modifyAckDeadline",
636 "request": {
637 "$ref": "ModifyAckDeadlineRequest"
638 },
639 "response": {
640 "$ref": "Empty"
641 },
642 "scopes": [
643 "https://www.googleapis.com/auth/cloud-platform" ,
644 "https://www.googleapis.com/auth/pubsub"
645 ]
646 },
647 "acknowledge": {
648 "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.",
649 "httpMethod": "POST",
650 "id": "pubsub.projects.subscriptions.acknowledge",
651 "parameterOrder": [
652 "subscription"
653 ],
654 "parameters": {
655 "subscription": {
656 "description": "The subscription whose messa ge is being acknowledged.",
657 "location": "path",
658 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$",
659 "required": true,
660 "type": "string"
661 }
662 },
663 "path": "v1beta2/{+subscription}:acknowledge",
664 "request": {
665 "$ref": "AcknowledgeRequest"
666 },
667 "response": {
668 "$ref": "Empty"
669 },
670 "scopes": [
671 "https://www.googleapis.com/auth/cloud-platform" ,
672 "https://www.googleapis.com/auth/pubsub" 630 "https://www.googleapis.com/auth/pubsub"
673 ] 631 ]
674 }, 632 },
675 "getIamPolicy": { 633 "getIamPolicy": {
676 "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.", 634 "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.",
677 "httpMethod": "GET", 635 "httpMethod": "GET",
678 "id": "pubsub.projects.subscriptions.getIamPolicy", 636 "id": "pubsub.projects.topics.getIamPolicy",
679 "parameterOrder": [ 637 "parameterOrder": [
680 "resource" 638 "resource"
681 ], 639 ],
682 "parameters": { 640 "parameters": {
683 "resource": { 641 "resource": {
684 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.", 642 "description": "REQUIRED: The resource for w hich the policy is being requested.\nSee the operation documentation for the app ropriate value for this field.",
685 "location": "path", 643 "location": "path",
686 "pattern": "^projects/[^/]+/subscriptions/[^ /]+$", 644 "pattern": "^projects/[^/]+/topics/[^/]+$",
687 "required": true, 645 "required": true,
688 "type": "string" 646 "type": "string"
689 } 647 }
690 }, 648 },
691 "path": "v1beta2/{+resource}:getIamPolicy", 649 "path": "v1beta2/{+resource}:getIamPolicy",
692 "response": { 650 "response": {
693 "$ref": "Policy" 651 "$ref": "Policy"
694 }, 652 },
695 "scopes": [ 653 "scopes": [
696 "https://www.googleapis.com/auth/cloud-platform" , 654 "https://www.googleapis.com/auth/cloud-platform" ,
697 "https://www.googleapis.com/auth/pubsub" 655 "https://www.googleapis.com/auth/pubsub"
698 ] 656 ]
699 } 657 }
658 },
659 "resources": {
660 "subscriptions": {
661 "methods": {
662 "list": {
663 "description": "Lists the name of the subscr iptions for this topic.",
664 "httpMethod": "GET",
665 "id": "pubsub.projects.topics.subscriptions. list",
666 "parameterOrder": [
667 "topic"
668 ],
669 "parameters": {
670 "pageToken": {
671 "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.",
672 "location": "query",
673 "type": "string"
674 },
675 "pageSize": {
676 "description": "Maximum number of su bscription names to return.",
677 "format": "int32",
678 "location": "query",
679 "type": "integer"
680 },
681 "topic": {
682 "description": "The name of the topi c that subscriptions are attached to.",
683 "location": "path",
684 "pattern": "^projects/[^/]+/topics/[ ^/]+$",
685 "required": true,
686 "type": "string"
687 }
688 },
689 "path": "v1beta2/{+topic}/subscriptions",
690 "response": {
691 "$ref": "ListTopicSubscriptionsResponse"
692 },
693 "scopes": [
694 "https://www.googleapis.com/auth/cloud-p latform",
695 "https://www.googleapis.com/auth/pubsub"
696 ]
697 }
698 }
699 }
700 } 700 }
701 } 701 }
702 } 702 }
703 } 703 }
704 }, 704 },
705 "revision": "20170308", 705 "revision": "20170329",
706 "rootUrl": "https://pubsub.googleapis.com/", 706 "rootUrl": "https://pubsub.googleapis.com/",
707 "schemas": { 707 "schemas": {
708 "ReceivedMessage": {
709 "description": "A message and its corresponding acknowledgment ID.",
710 "id": "ReceivedMessage",
711 "properties": {
712 "message": {
713 "$ref": "PubsubMessage",
714 "description": "The message."
715 },
716 "ackId": {
717 "description": "This ID can be used to acknowledge the recei ved message.",
718 "type": "string"
719 }
720 },
721 "type": "object"
722 },
723 "PushConfig": {
724 "description": "Configuration for a push delivery endpoint.",
725 "id": "PushConfig",
726 "properties": {
727 "pushEndpoint": {
728 "description": "A URL locating the endpoint to which message s should be pushed.\nFor example, a Webhook endpoint might use \"https://example .com/push\".",
729 "type": "string"
730 },
731 "attributes": {
732 "additionalProperties": {
733 "type": "string"
734 },
735 "description": "Endpoint configuration attributes.\n\nEvery endpoint has a set of API supported attributes that can be used to\ncontrol diff erent aspects of the message delivery.\n\nThe currently supported attribute is ` x-goog-version`, which you can\nuse to change the format of the push message. Th is attribute\nindicates the version of the data expected by the endpoint. This\n controls the shape of the envelope (i.e. its fields and metadata).\nThe endpoint version is based on the version of the Pub/Sub\nAPI.\n\nIf not present during t he `CreateSubscription` call, it will default to\nthe version of the API used to make such call. If not present during a\n`ModifyPushConfig` call, its value wil l not be changed. `GetSubscription`\ncalls will always return a valid version, e ven if the subscription was\ncreated without this attribute.\n\nThe possible val ues for this attribute are:\n\n* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.\n* `v1` or `v1beta2`: uses the push format defined in the v 1 Pub/Sub API.",
736 "type": "object"
737 }
738 },
739 "type": "object"
740 },
741 "TestIamPermissionsResponse": {
742 "description": "Response message for `TestIamPermissions` method.",
743 "id": "TestIamPermissionsResponse",
744 "properties": {
745 "permissions": {
746 "description": "A subset of `TestPermissionsRequest.permissi ons` that the caller is\nallowed.",
747 "items": {
748 "type": "string"
749 },
750 "type": "array"
751 }
752 },
753 "type": "object"
754 },
708 "PullRequest": { 755 "PullRequest": {
709 "description": "Request for the `Pull` method.", 756 "description": "Request for the `Pull` method.",
710 "id": "PullRequest", 757 "id": "PullRequest",
711 "properties": { 758 "properties": {
759 "returnImmediately": {
760 "description": "If this is specified as true the system will respond immediately even if\nit is not able to return a message in the `Pull` r esponse. Otherwise the\nsystem is allowed to wait until at least one message is available rather\nthan returning no messages. The client may cancel the request if it does\nnot wish to wait any longer for the response.",
761 "type": "boolean"
762 },
712 "maxMessages": { 763 "maxMessages": {
713 "description": "The maximum number of messages returned for this request. The Pub/Sub\nsystem may return fewer than the number specified.", 764 "description": "The maximum number of messages returned for this request. The Pub/Sub\nsystem may return fewer than the number specified.",
714 "format": "int32", 765 "format": "int32",
715 "type": "integer" 766 "type": "integer"
716 },
717 "returnImmediately": {
718 "description": "If this is specified as true the system will respond immediately even if\nit is not able to return a message in the `Pull` r esponse. Otherwise the\nsystem is allowed to wait until at least one message is available rather\nthan returning no messages. The client may cancel the request if it does\nnot wish to wait any longer for the response.",
719 "type": "boolean"
720 } 767 }
721 }, 768 },
722 "type": "object" 769 "type": "object"
723 }, 770 },
724 "ListSubscriptionsResponse": { 771 "ListSubscriptionsResponse": {
725 "description": "Response for the `ListSubscriptions` method.", 772 "description": "Response for the `ListSubscriptions` method.",
726 "id": "ListSubscriptionsResponse", 773 "id": "ListSubscriptionsResponse",
727 "properties": { 774 "properties": {
728 "nextPageToken": { 775 "nextPageToken": {
729 "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.", 776 "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.",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 }, 811 },
765 "type": "array" 812 "type": "array"
766 } 813 }
767 }, 814 },
768 "type": "object" 815 "type": "object"
769 }, 816 },
770 "Subscription": { 817 "Subscription": {
771 "description": "A subscription resource.", 818 "description": "A subscription resource.",
772 "id": "Subscription", 819 "id": "Subscription",
773 "properties": { 820 "properties": {
774 "topic": {
775 "description": "The name of the topic from which this subscr iption is receiving messages.\nThe value of this field will be `_deleted-topic_` if the topic has been\ndeleted.",
776 "type": "string"
777 },
778 "pushConfig": {
779 "$ref": "PushConfig",
780 "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."
781 },
782 "ackDeadlineSeconds": { 821 "ackDeadlineSeconds": {
783 "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 pull.\nThe maximum custom deadline you can specify is 600 seconds (10 min utes).\n\nFor push delivery, this value 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 eventually redeliver the message.\n\nIf this p arameter is 0, a default value of 10 seconds is used.", 822 "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 pull.\nThe maximum custom deadline you can specify is 600 seconds (10 min utes).\n\nFor push delivery, this value 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 eventually redeliver the message.\n\nIf this p arameter is 0, a default value of 10 seconds is used.",
784 "format": "int32", 823 "format": "int32",
785 "type": "integer" 824 "type": "integer"
786 }, 825 },
787 "name": { 826 "name": {
788 "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\"`.", 827 "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\"`.",
789 "type": "string" 828 "type": "string"
829 },
830 "topic": {
831 "description": "The name of the topic from which this subscr iption is receiving messages.\nThe value of this field will be `_deleted-topic_` if the topic has been\ndeleted.",
832 "type": "string"
833 },
834 "pushConfig": {
835 "$ref": "PushConfig",
836 "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."
790 } 837 }
791 }, 838 },
792 "type": "object" 839 "type": "object"
793 }, 840 },
794 "TestIamPermissionsRequest": { 841 "TestIamPermissionsRequest": {
795 "description": "Request message for `TestIamPermissions` method.", 842 "description": "Request message for `TestIamPermissions` method.",
796 "id": "TestIamPermissionsRequest", 843 "id": "TestIamPermissionsRequest",
797 "properties": { 844 "properties": {
798 "permissions": { 845 "permissions": {
799 "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).", 846 "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).",
800 "items": { 847 "items": {
801 "type": "string" 848 "type": "string"
802 }, 849 },
803 "type": "array" 850 "type": "array"
804 } 851 }
805 }, 852 },
806 "type": "object" 853 "type": "object"
807 }, 854 },
855 "Topic": {
856 "description": "A topic resource.",
857 "id": "Topic",
858 "properties": {
859 "name": {
860 "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\"`.",
861 "type": "string"
862 }
863 },
864 "type": "object"
865 },
808 "Policy": { 866 "Policy": {
809 "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).", 867 "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).",
810 "id": "Policy", 868 "id": "Policy",
811 "properties": { 869 "properties": {
812 "bindings": {
813 "description": "Associates a list of `members` to a `role`.\ nMultiple `bindings` must not be specified for the same `role`.\n`bindings` with no members will result in an error.",
814 "items": {
815 "$ref": "Binding"
816 },
817 "type": "array"
818 },
819 "etag": { 870 "etag": {
820 "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.", 871 "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.",
821 "format": "byte", 872 "format": "byte",
822 "type": "string" 873 "type": "string"
823 }, 874 },
824 "version": { 875 "version": {
825 "description": "Version of the `Policy`. The default version is 0.", 876 "description": "Version of the `Policy`. The default version is 0.",
826 "format": "int32", 877 "format": "int32",
827 "type": "integer" 878 "type": "integer"
879 },
880 "bindings": {
881 "description": "Associates a list of `members` to a `role`.\ nMultiple `bindings` must not be specified for the same `role`.\n`bindings` with no members will result in an error.",
882 "items": {
883 "$ref": "Binding"
884 },
885 "type": "array"
828 } 886 }
829 }, 887 },
830 "type": "object" 888 "type": "object"
831 },
832 "Topic": {
833 "description": "A topic resource.",
834 "id": "Topic",
835 "properties": {
836 "name": {
837 "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\"`.",
838 "type": "string"
839 }
840 },
841 "type": "object"
842 }, 889 },
843 "ModifyAckDeadlineRequest": { 890 "ModifyAckDeadlineRequest": {
844 "description": "Request for the ModifyAckDeadline method.", 891 "description": "Request for the ModifyAckDeadline method.",
845 "id": "ModifyAckDeadlineRequest", 892 "id": "ModifyAckDeadlineRequest",
846 "properties": { 893 "properties": {
847 "ackId": { 894 "ackId": {
848 "description": "The acknowledgment ID. Either this or ack_id s must be populated, but not\nboth.", 895 "description": "The acknowledgment ID. Either this or ack_id s must be populated, but not\nboth.",
849 "type": "string" 896 "type": "string"
850 }, 897 },
851 "ackDeadlineSeconds": { 898 "ackDeadlineSeconds": {
(...skipping 19 matching lines...) Expand all
871 "$ref": "Policy", 918 "$ref": "Policy",
872 "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An emp ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec ts)\nmight reject them." 919 "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An emp ty policy is a\nvalid policy but certain Cloud Platform services (such as Projec ts)\nmight reject them."
873 } 920 }
874 }, 921 },
875 "type": "object" 922 "type": "object"
876 }, 923 },
877 "PubsubMessage": { 924 "PubsubMessage": {
878 "description": "A message data and its attributes. The message paylo ad must not be empty;\nit must contain either a non-empty data field, or at leas t one attribute.", 925 "description": "A message data and its attributes. The message paylo ad must not be empty;\nit must contain either a non-empty data field, or at leas t one attribute.",
879 "id": "PubsubMessage", 926 "id": "PubsubMessage",
880 "properties": { 927 "properties": {
928 "publishTime": {
929 "description": "The time at which the message was published, populated by the server when\nit receives the `Publish` call. It must not be po pulated by the\npublisher in a `Publish` call.",
930 "format": "google-datetime",
931 "type": "string"
932 },
881 "data": { 933 "data": {
882 "description": "The message payload. For JSON requests, the value of this field must be\n[base64-encoded](https://tools.ietf.org/html/rfc464 8).", 934 "description": "The message payload. For JSON requests, the value of this field must be\n[base64-encoded](https://tools.ietf.org/html/rfc464 8).",
883 "format": "byte", 935 "format": "byte",
884 "type": "string" 936 "type": "string"
885 }, 937 },
886 "attributes": { 938 "attributes": {
887 "additionalProperties": { 939 "additionalProperties": {
888 "type": "string" 940 "type": "string"
889 }, 941 },
890 "description": "Optional attributes for this message.", 942 "description": "Optional attributes for this message.",
891 "type": "object" 943 "type": "object"
892 }, 944 },
893 "messageId": { 945 "messageId": {
894 "description": "ID of this message, assigned by the server w hen the message is published.\nGuaranteed to be unique within the topic. This va lue may be read by a\nsubscriber that receives a `PubsubMessage` via a `Pull` ca ll or a push\ndelivery. It must not be populated by the publisher in a `Publish` call.", 946 "description": "ID of this message, assigned by the server w hen the message is published.\nGuaranteed to be unique within the topic. This va lue may be read by a\nsubscriber that receives a `PubsubMessage` via a `Pull` ca ll or a push\ndelivery. It must not be populated by the publisher in a `Publish` call.",
895 "type": "string" 947 "type": "string"
896 },
897 "publishTime": {
898 "description": "The time at which the message was published, populated by the server when\nit receives the `Publish` call. It must not be po pulated by the\npublisher in a `Publish` call.",
899 "format": "google-datetime",
900 "type": "string"
901 } 948 }
902 }, 949 },
903 "type": "object" 950 "type": "object"
904 }, 951 },
905 "ModifyPushConfigRequest": { 952 "ModifyPushConfigRequest": {
906 "description": "Request for the ModifyPushConfig method.", 953 "description": "Request for the ModifyPushConfig method.",
907 "id": "ModifyPushConfigRequest", 954 "id": "ModifyPushConfigRequest",
908 "properties": { 955 "properties": {
909 "pushConfig": { 956 "pushConfig": {
910 "$ref": "PushConfig", 957 "$ref": "PushConfig",
911 "description": "The push configuration for future deliveries .\n\nAn empty `pushConfig` indicates that the Pub/Sub system should\nstop pushin g messages from the given subscription and allow\nmessages to be pulled and ackn owledged - effectively pausing\nthe subscription if `Pull` is not called." 958 "description": "The push configuration for future deliveries .\n\nAn empty `pushConfig` indicates that the Pub/Sub system should\nstop pushin g messages from the given subscription and allow\nmessages to be pulled and ackn owledged - effectively pausing\nthe subscription if `Pull` is not called."
912 } 959 }
913 }, 960 },
914 "type": "object" 961 "type": "object"
915 }, 962 },
916 "Binding": { 963 "Binding": {
917 "description": "Associates `members` with a `role`.", 964 "description": "Associates `members` with a `role`.",
918 "id": "Binding", 965 "id": "Binding",
919 "properties": { 966 "properties": {
967 "role": {
968 "description": "Role that is assigned to `members`.\nFor exa mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
969 "type": "string"
970 },
920 "members": { 971 "members": {
921 "description": "Specifies the identities requesting access f or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al lUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident ifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a spec ific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\ n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{e mailid}`: An email address that represents a Google group.\n For example, `adm ins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represe nts all the\n users of that domain. For example, `google.com` or `example.com` .\n\n", 972 "description": "Specifies the identities requesting access f or a Cloud Platform resource.\n`members` can have the following values:\n\n* `al lUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special ident ifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a spec ific Google\n account. For example, `alice@gmail.com` or `joe@example.com`.\n\ n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{e mailid}`: An email address that represents a Google group.\n For example, `adm ins@example.com`.\n\n* `domain:{domain}`: A Google Apps domain name that represe nts all the\n users of that domain. For example, `google.com` or `example.com` .\n\n",
922 "items": { 973 "items": {
923 "type": "string" 974 "type": "string"
924 }, 975 },
925 "type": "array" 976 "type": "array"
926 },
927 "role": {
928 "description": "Role that is assigned to `members`.\nFor exa mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
929 "type": "string"
930 } 977 }
931 }, 978 },
932 "type": "object" 979 "type": "object"
933 }, 980 },
934 "ListTopicsResponse": { 981 "ListTopicsResponse": {
935 "description": "Response for the `ListTopics` method.", 982 "description": "Response for the `ListTopics` method.",
936 "id": "ListTopicsResponse", 983 "id": "ListTopicsResponse",
937 "properties": { 984 "properties": {
938 "topics": { 985 "topics": {
939 "description": "The resulting topics.", 986 "description": "The resulting topics.",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 "properties": { 1040 "properties": {
994 "receivedMessages": { 1041 "receivedMessages": {
995 "description": "Received Pub/Sub messages. The Pub/Sub syste m will return zero messages if\nthere are no more available in the backlog. The Pub/Sub system may return\nfewer than the `maxMessages` requested even if there are more messages\navailable in the backlog.", 1042 "description": "Received Pub/Sub messages. The Pub/Sub syste m will return zero messages if\nthere are no more available in the backlog. The Pub/Sub system may return\nfewer than the `maxMessages` requested even if there are more messages\navailable in the backlog.",
996 "items": { 1043 "items": {
997 "$ref": "ReceivedMessage" 1044 "$ref": "ReceivedMessage"
998 }, 1045 },
999 "type": "array" 1046 "type": "array"
1000 } 1047 }
1001 }, 1048 },
1002 "type": "object" 1049 "type": "object"
1003 },
1004 "ReceivedMessage": {
1005 "description": "A message and its corresponding acknowledgment ID.",
1006 "id": "ReceivedMessage",
1007 "properties": {
1008 "ackId": {
1009 "description": "This ID can be used to acknowledge the recei ved message.",
1010 "type": "string"
1011 },
1012 "message": {
1013 "$ref": "PubsubMessage",
1014 "description": "The message."
1015 }
1016 },
1017 "type": "object"
1018 },
1019 "PushConfig": {
1020 "description": "Configuration for a push delivery endpoint.",
1021 "id": "PushConfig",
1022 "properties": {
1023 "pushEndpoint": {
1024 "description": "A URL locating the endpoint to which message s should be pushed.\nFor example, a Webhook endpoint might use \"https://example .com/push\".",
1025 "type": "string"
1026 },
1027 "attributes": {
1028 "additionalProperties": {
1029 "type": "string"
1030 },
1031 "description": "Endpoint configuration attributes.\n\nEvery endpoint has a set of API supported attributes that can be used to\ncontrol diff erent aspects of the message delivery.\n\nThe currently supported attribute is ` x-goog-version`, which you can\nuse to change the format of the push message. Th is attribute\nindicates the version of the data expected by the endpoint. This\n controls the shape of the envelope (i.e. its fields and metadata).\nThe endpoint version is based on the version of the Pub/Sub\nAPI.\n\nIf not present during t he `CreateSubscription` call, it will default to\nthe version of the API used to make such call. If not present during a\n`ModifyPushConfig` call, its value wil l not be changed. `GetSubscription`\ncalls will always return a valid version, e ven if the subscription was\ncreated without this attribute.\n\nThe possible val ues for this attribute are:\n\n* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.\n* `v1` or `v1beta2`: uses the push format defined in the v 1 Pub/Sub API.",
1032 "type": "object"
1033 }
1034 },
1035 "type": "object"
1036 },
1037 "TestIamPermissionsResponse": {
1038 "description": "Response message for `TestIamPermissions` method.",
1039 "id": "TestIamPermissionsResponse",
1040 "properties": {
1041 "permissions": {
1042 "description": "A subset of `TestPermissionsRequest.permissi ons` that the caller is\nallowed.",
1043 "items": {
1044 "type": "string"
1045 },
1046 "type": "array"
1047 }
1048 },
1049 "type": "object"
1050 } 1050 }
1051 }, 1051 },
1052 "servicePath": "", 1052 "servicePath": "",
1053 "title": "Google Cloud Pub/Sub API", 1053 "title": "Google Cloud Pub/Sub API",
1054 "version": "v1beta2" 1054 "version": "v1beta2"
1055 } 1055 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/proximitybeacon__v1beta1.json ('k') | discovery/googleapis_beta/replicapool__v1beta2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698