OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/pubsub": { | 8 "https://www.googleapis.com/auth/pubsub": { |
9 "description": "View and manage Pub/Sub topics and subscript
ions" | 9 "description": "View and manage Pub/Sub topics and subscript
ions" |
10 } | 10 } |
11 } | 11 } |
12 } | 12 } |
13 }, | 13 }, |
14 "basePath": "", | 14 "basePath": "", |
15 "baseUrl": "https://pubsub.googleapis.com/", | 15 "baseUrl": "https://pubsub.googleapis.com/", |
16 "batchPath": "batch", | 16 "batchPath": "batch", |
| 17 "canonicalName": "Pubsub", |
17 "description": "Provides reliable, many-to-many, asynchronous messaging betw
een applications.\n", | 18 "description": "Provides reliable, many-to-many, asynchronous messaging betw
een applications.\n", |
18 "discoveryVersion": "v1", | 19 "discoveryVersion": "v1", |
19 "documentationLink": "https://cloud.google.com/pubsub/docs", | 20 "documentationLink": "https://cloud.google.com/pubsub/docs", |
20 "icons": { | 21 "icons": { |
21 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
22 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
23 }, | 24 }, |
24 "id": "pubsub:v1", | 25 "id": "pubsub:v1", |
25 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
26 "name": "pubsub", | 27 "name": "pubsub", |
27 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
28 "ownerName": "Google", | 29 "ownerName": "Google", |
29 "parameters": { | 30 "parameters": { |
30 "fields": { | |
31 "description": "Selector specifying which fields to include in a par
tial response.", | |
32 "location": "query", | |
33 "type": "string" | |
34 }, | |
35 "uploadType": { | |
36 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
37 "location": "query", | |
38 "type": "string" | |
39 }, | |
40 "$.xgafv": { | 31 "$.xgafv": { |
41 "description": "V1 error format.", | 32 "description": "V1 error format.", |
42 "enum": [ | 33 "enum": [ |
43 "1", | 34 "1", |
44 "2" | 35 "2" |
45 ], | 36 ], |
46 "enumDescriptions": [ | 37 "enumDescriptions": [ |
47 "v1 error format", | 38 "v1 error format", |
48 "v2 error format" | 39 "v2 error format" |
49 ], | 40 ], |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 "upload_protocol": { | 96 "upload_protocol": { |
106 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 97 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
107 "location": "query", | 98 "location": "query", |
108 "type": "string" | 99 "type": "string" |
109 }, | 100 }, |
110 "prettyPrint": { | 101 "prettyPrint": { |
111 "default": "true", | 102 "default": "true", |
112 "description": "Returns response with indentations and line breaks."
, | 103 "description": "Returns response with indentations and line breaks."
, |
113 "location": "query", | 104 "location": "query", |
114 "type": "boolean" | 105 "type": "boolean" |
| 106 }, |
| 107 "fields": { |
| 108 "description": "Selector specifying which fields to include in a par
tial response.", |
| 109 "location": "query", |
| 110 "type": "string" |
| 111 }, |
| 112 "uploadType": { |
| 113 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 114 "location": "query", |
| 115 "type": "string" |
115 } | 116 } |
116 }, | 117 }, |
117 "protocol": "rest", | 118 "protocol": "rest", |
118 "resources": { | 119 "resources": { |
119 "projects": { | 120 "projects": { |
120 "resources": { | 121 "resources": { |
121 "subscriptions": { | 122 "subscriptions": { |
122 "methods": { | 123 "methods": { |
123 "acknowledge": { | 124 "create": { |
124 "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.", | 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, conforming\nto the\n[resource name format](http
s://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populat
ed in the returned Subscription object.\nNote that for REST API requests, you mu
st specify a name in the request.", |
125 "httpMethod": "POST", | 126 "httpMethod": "PUT", |
126 "id": "pubsub.projects.subscriptions.acknowledge", | 127 "id": "pubsub.projects.subscriptions.create", |
127 "parameterOrder": [ | 128 "parameterOrder": [ |
128 "subscription" | 129 "name" |
129 ], | 130 ], |
130 "parameters": { | 131 "parameters": { |
131 "subscription": { | 132 "name": { |
132 "description": "The subscription whose messa
ge is being acknowledged.\nFormat is `projects/{project}/subscriptions/{sub}`.", | 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\"`.", |
133 "location": "path", | 134 "location": "path", |
134 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 135 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
135 "required": true, | 136 "required": true, |
136 "type": "string" | 137 "type": "string" |
137 } | 138 } |
138 }, | 139 }, |
139 "path": "v1/{+subscription}:acknowledge", | 140 "path": "v1/{+name}", |
140 "request": { | 141 "request": { |
141 "$ref": "AcknowledgeRequest" | 142 "$ref": "Subscription" |
142 }, | 143 }, |
143 "response": { | 144 "response": { |
144 "$ref": "Empty" | 145 "$ref": "Subscription" |
145 }, | 146 }, |
146 "scopes": [ | 147 "scopes": [ |
147 "https://www.googleapis.com/auth/cloud-platform"
, | 148 "https://www.googleapis.com/auth/cloud-platform"
, |
| 149 "https://www.googleapis.com/auth/pubsub" |
| 150 ] |
| 151 }, |
| 152 "setIamPolicy": { |
| 153 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", |
| 154 "httpMethod": "POST", |
| 155 "id": "pubsub.projects.subscriptions.setIamPolicy", |
| 156 "parameterOrder": [ |
| 157 "resource" |
| 158 ], |
| 159 "parameters": { |
| 160 "resource": { |
| 161 "description": "REQUIRED: The resource for w
hich the policy is being specified.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", |
| 162 "location": "path", |
| 163 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
| 164 "required": true, |
| 165 "type": "string" |
| 166 } |
| 167 }, |
| 168 "path": "v1/{+resource}:setIamPolicy", |
| 169 "request": { |
| 170 "$ref": "SetIamPolicyRequest" |
| 171 }, |
| 172 "response": { |
| 173 "$ref": "Policy" |
| 174 }, |
| 175 "scopes": [ |
| 176 "https://www.googleapis.com/auth/cloud-platform"
, |
| 177 "https://www.googleapis.com/auth/pubsub" |
| 178 ] |
| 179 }, |
| 180 "getIamPolicy": { |
| 181 "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.", |
| 182 "httpMethod": "GET", |
| 183 "id": "pubsub.projects.subscriptions.getIamPolicy", |
| 184 "parameterOrder": [ |
| 185 "resource" |
| 186 ], |
| 187 "parameters": { |
| 188 "resource": { |
| 189 "description": "REQUIRED: The resource for w
hich the policy is being requested.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", |
| 190 "location": "path", |
| 191 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
| 192 "required": true, |
| 193 "type": "string" |
| 194 } |
| 195 }, |
| 196 "path": "v1/{+resource}:getIamPolicy", |
| 197 "response": { |
| 198 "$ref": "Policy" |
| 199 }, |
| 200 "scopes": [ |
| 201 "https://www.googleapis.com/auth/cloud-platform"
, |
148 "https://www.googleapis.com/auth/pubsub" | 202 "https://www.googleapis.com/auth/pubsub" |
149 ] | 203 ] |
150 }, | 204 }, |
151 "modifyAckDeadline": { | 205 "modifyAckDeadline": { |
152 "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.", | 206 "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.", |
153 "httpMethod": "POST", | 207 "httpMethod": "POST", |
154 "id": "pubsub.projects.subscriptions.modifyAckDeadli
ne", | 208 "id": "pubsub.projects.subscriptions.modifyAckDeadli
ne", |
155 "parameterOrder": [ | 209 "parameterOrder": [ |
156 "subscription" | 210 "subscription" |
157 ], | 211 ], |
(...skipping 11 matching lines...) Expand all Loading... |
169 "$ref": "ModifyAckDeadlineRequest" | 223 "$ref": "ModifyAckDeadlineRequest" |
170 }, | 224 }, |
171 "response": { | 225 "response": { |
172 "$ref": "Empty" | 226 "$ref": "Empty" |
173 }, | 227 }, |
174 "scopes": [ | 228 "scopes": [ |
175 "https://www.googleapis.com/auth/cloud-platform"
, | 229 "https://www.googleapis.com/auth/cloud-platform"
, |
176 "https://www.googleapis.com/auth/pubsub" | 230 "https://www.googleapis.com/auth/pubsub" |
177 ] | 231 ] |
178 }, | 232 }, |
179 "getIamPolicy": { | 233 "acknowledge": { |
180 "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.", | 234 "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.", |
181 "httpMethod": "GET", | 235 "httpMethod": "POST", |
182 "id": "pubsub.projects.subscriptions.getIamPolicy", | 236 "id": "pubsub.projects.subscriptions.acknowledge", |
183 "parameterOrder": [ | 237 "parameterOrder": [ |
184 "resource" | 238 "subscription" |
185 ], | 239 ], |
186 "parameters": { | 240 "parameters": { |
187 "resource": { | 241 "subscription": { |
188 "description": "REQUIRED: The resource for w
hich the policy is being requested.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", | 242 "description": "The subscription whose messa
ge is being acknowledged.\nFormat is `projects/{project}/subscriptions/{sub}`.", |
189 "location": "path", | 243 "location": "path", |
190 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 244 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
191 "required": true, | 245 "required": true, |
192 "type": "string" | 246 "type": "string" |
193 } | 247 } |
194 }, | 248 }, |
195 "path": "v1/{+resource}:getIamPolicy", | 249 "path": "v1/{+subscription}:acknowledge", |
| 250 "request": { |
| 251 "$ref": "AcknowledgeRequest" |
| 252 }, |
196 "response": { | 253 "response": { |
197 "$ref": "Policy" | 254 "$ref": "Empty" |
198 }, | 255 }, |
199 "scopes": [ | 256 "scopes": [ |
200 "https://www.googleapis.com/auth/cloud-platform"
, | 257 "https://www.googleapis.com/auth/cloud-platform"
, |
201 "https://www.googleapis.com/auth/pubsub" | 258 "https://www.googleapis.com/auth/pubsub" |
202 ] | 259 ] |
203 }, | 260 }, |
204 "get": { | 261 "get": { |
205 "description": "Gets the configuration details of a
subscription.", | 262 "description": "Gets the configuration details of a
subscription.", |
206 "httpMethod": "GET", | 263 "httpMethod": "GET", |
207 "id": "pubsub.projects.subscriptions.get", | 264 "id": "pubsub.projects.subscriptions.get", |
(...skipping 12 matching lines...) Expand all Loading... |
220 "path": "v1/{+subscription}", | 277 "path": "v1/{+subscription}", |
221 "response": { | 278 "response": { |
222 "$ref": "Subscription" | 279 "$ref": "Subscription" |
223 }, | 280 }, |
224 "scopes": [ | 281 "scopes": [ |
225 "https://www.googleapis.com/auth/cloud-platform"
, | 282 "https://www.googleapis.com/auth/cloud-platform"
, |
226 "https://www.googleapis.com/auth/pubsub" | 283 "https://www.googleapis.com/auth/pubsub" |
227 ] | 284 ] |
228 }, | 285 }, |
229 "testIamPermissions": { | 286 "testIamPermissions": { |
230 "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.", | 287 "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.
", |
231 "httpMethod": "POST", | 288 "httpMethod": "POST", |
232 "id": "pubsub.projects.subscriptions.testIamPermissi
ons", | 289 "id": "pubsub.projects.subscriptions.testIamPermissi
ons", |
233 "parameterOrder": [ | 290 "parameterOrder": [ |
234 "resource" | 291 "resource" |
235 ], | 292 ], |
236 "parameters": { | 293 "parameters": { |
237 "resource": { | 294 "resource": { |
238 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\n`resource` is usually specified as a
path. For example, a Project\nresource is specified as `projects/{project}`.", | 295 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\n`resource` is usually specified as a
path. For example, a Project\nresource is specified as `projects/{project}`.", |
239 "location": "path", | 296 "location": "path", |
240 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 297 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 "$ref": "ModifyPushConfigRequest" | 332 "$ref": "ModifyPushConfigRequest" |
276 }, | 333 }, |
277 "response": { | 334 "response": { |
278 "$ref": "Empty" | 335 "$ref": "Empty" |
279 }, | 336 }, |
280 "scopes": [ | 337 "scopes": [ |
281 "https://www.googleapis.com/auth/cloud-platform"
, | 338 "https://www.googleapis.com/auth/cloud-platform"
, |
282 "https://www.googleapis.com/auth/pubsub" | 339 "https://www.googleapis.com/auth/pubsub" |
283 ] | 340 ] |
284 }, | 341 }, |
285 "delete": { | |
286 "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.", | |
287 "httpMethod": "DELETE", | |
288 "id": "pubsub.projects.subscriptions.delete", | |
289 "parameterOrder": [ | |
290 "subscription" | |
291 ], | |
292 "parameters": { | |
293 "subscription": { | |
294 "description": "The subscription to delete.\
nFormat is `projects/{project}/subscriptions/{sub}`.", | |
295 "location": "path", | |
296 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | |
297 "required": true, | |
298 "type": "string" | |
299 } | |
300 }, | |
301 "path": "v1/{+subscription}", | |
302 "response": { | |
303 "$ref": "Empty" | |
304 }, | |
305 "scopes": [ | |
306 "https://www.googleapis.com/auth/cloud-platform"
, | |
307 "https://www.googleapis.com/auth/pubsub" | |
308 ] | |
309 }, | |
310 "pull": { | 342 "pull": { |
311 "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.", | 343 "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.", |
312 "httpMethod": "POST", | 344 "httpMethod": "POST", |
313 "id": "pubsub.projects.subscriptions.pull", | 345 "id": "pubsub.projects.subscriptions.pull", |
314 "parameterOrder": [ | 346 "parameterOrder": [ |
315 "subscription" | 347 "subscription" |
316 ], | 348 ], |
317 "parameters": { | 349 "parameters": { |
318 "subscription": { | 350 "subscription": { |
319 "description": "The subscription from which
messages should be pulled.\nFormat is `projects/{project}/subscriptions/{sub}`."
, | 351 "description": "The subscription from which
messages should be pulled.\nFormat is `projects/{project}/subscriptions/{sub}`."
, |
320 "location": "path", | 352 "location": "path", |
321 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 353 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
322 "required": true, | 354 "required": true, |
323 "type": "string" | 355 "type": "string" |
324 } | 356 } |
325 }, | 357 }, |
326 "path": "v1/{+subscription}:pull", | 358 "path": "v1/{+subscription}:pull", |
327 "request": { | 359 "request": { |
328 "$ref": "PullRequest" | 360 "$ref": "PullRequest" |
329 }, | 361 }, |
330 "response": { | 362 "response": { |
331 "$ref": "PullResponse" | 363 "$ref": "PullResponse" |
332 }, | 364 }, |
333 "scopes": [ | 365 "scopes": [ |
334 "https://www.googleapis.com/auth/cloud-platform"
, | 366 "https://www.googleapis.com/auth/cloud-platform"
, |
| 367 "https://www.googleapis.com/auth/pubsub" |
| 368 ] |
| 369 }, |
| 370 "delete": { |
| 371 "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.", |
| 372 "httpMethod": "DELETE", |
| 373 "id": "pubsub.projects.subscriptions.delete", |
| 374 "parameterOrder": [ |
| 375 "subscription" |
| 376 ], |
| 377 "parameters": { |
| 378 "subscription": { |
| 379 "description": "The subscription to delete.\
nFormat is `projects/{project}/subscriptions/{sub}`.", |
| 380 "location": "path", |
| 381 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
| 382 "required": true, |
| 383 "type": "string" |
| 384 } |
| 385 }, |
| 386 "path": "v1/{+subscription}", |
| 387 "response": { |
| 388 "$ref": "Empty" |
| 389 }, |
| 390 "scopes": [ |
| 391 "https://www.googleapis.com/auth/cloud-platform"
, |
335 "https://www.googleapis.com/auth/pubsub" | 392 "https://www.googleapis.com/auth/pubsub" |
336 ] | 393 ] |
337 }, | 394 }, |
338 "list": { | 395 "list": { |
339 "description": "Lists matching subscriptions.", | 396 "description": "Lists matching subscriptions.", |
340 "httpMethod": "GET", | 397 "httpMethod": "GET", |
341 "id": "pubsub.projects.subscriptions.list", | 398 "id": "pubsub.projects.subscriptions.list", |
342 "parameterOrder": [ | 399 "parameterOrder": [ |
343 "project" | 400 "project" |
344 ], | 401 ], |
345 "parameters": { | 402 "parameters": { |
| 403 "project": { |
| 404 "description": "The name of the cloud projec
t that subscriptions belong to.\nFormat is `projects/{project}`.", |
| 405 "location": "path", |
| 406 "pattern": "^projects/[^/]+$", |
| 407 "required": true, |
| 408 "type": "string" |
| 409 }, |
346 "pageToken": { | 410 "pageToken": { |
347 "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.", | 411 "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.", |
348 "location": "query", | 412 "location": "query", |
349 "type": "string" | 413 "type": "string" |
350 }, | 414 }, |
351 "pageSize": { | 415 "pageSize": { |
352 "description": "Maximum number of subscripti
ons to return.", | 416 "description": "Maximum number of subscripti
ons to return.", |
353 "format": "int32", | 417 "format": "int32", |
354 "location": "query", | 418 "location": "query", |
355 "type": "integer" | 419 "type": "integer" |
356 }, | |
357 "project": { | |
358 "description": "The name of the cloud projec
t that subscriptions belong to.\nFormat is `projects/{project}`.", | |
359 "location": "path", | |
360 "pattern": "^projects/[^/]+$", | |
361 "required": true, | |
362 "type": "string" | |
363 } | 420 } |
364 }, | 421 }, |
365 "path": "v1/{+project}/subscriptions", | 422 "path": "v1/{+project}/subscriptions", |
366 "response": { | 423 "response": { |
367 "$ref": "ListSubscriptionsResponse" | 424 "$ref": "ListSubscriptionsResponse" |
368 }, | 425 }, |
369 "scopes": [ | 426 "scopes": [ |
370 "https://www.googleapis.com/auth/cloud-platform"
, | 427 "https://www.googleapis.com/auth/cloud-platform"
, |
371 "https://www.googleapis.com/auth/pubsub" | 428 "https://www.googleapis.com/auth/pubsub" |
372 ] | 429 ] |
373 }, | 430 } |
374 "create": { | 431 } |
375 "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, conforming\nto the\n[resource name format](http
s://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populat
ed in the returned Subscription object.\nNote that for REST API requests, you mu
st specify a name in the request.", | 432 }, |
376 "httpMethod": "PUT", | 433 "snapshots": { |
377 "id": "pubsub.projects.subscriptions.create", | 434 "methods": { |
378 "parameterOrder": [ | 435 "getIamPolicy": { |
379 "name" | 436 "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.", |
380 ], | 437 "httpMethod": "GET", |
381 "parameters": { | 438 "id": "pubsub.projects.snapshots.getIamPolicy", |
382 "name": { | |
383 "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\"`.", | |
384 "location": "path", | |
385 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | |
386 "required": true, | |
387 "type": "string" | |
388 } | |
389 }, | |
390 "path": "v1/{+name}", | |
391 "request": { | |
392 "$ref": "Subscription" | |
393 }, | |
394 "response": { | |
395 "$ref": "Subscription" | |
396 }, | |
397 "scopes": [ | |
398 "https://www.googleapis.com/auth/cloud-platform"
, | |
399 "https://www.googleapis.com/auth/pubsub" | |
400 ] | |
401 }, | |
402 "setIamPolicy": { | |
403 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", | |
404 "httpMethod": "POST", | |
405 "id": "pubsub.projects.subscriptions.setIamPolicy", | |
406 "parameterOrder": [ | 439 "parameterOrder": [ |
407 "resource" | 440 "resource" |
408 ], | 441 ], |
409 "parameters": { | 442 "parameters": { |
410 "resource": { | 443 "resource": { |
411 "description": "REQUIRED: The resource for w
hich the policy is being specified.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", | 444 "description": "REQUIRED: The resource for w
hich the policy is being requested.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", |
412 "location": "path", | 445 "location": "path", |
413 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 446 "pattern": "^projects/[^/]+/snapshots/[^/]+$
", |
414 "required": true, | 447 "required": true, |
415 "type": "string" | 448 "type": "string" |
416 } | 449 } |
417 }, | 450 }, |
418 "path": "v1/{+resource}:setIamPolicy", | 451 "path": "v1/{+resource}:getIamPolicy", |
419 "request": { | |
420 "$ref": "SetIamPolicyRequest" | |
421 }, | |
422 "response": { | 452 "response": { |
423 "$ref": "Policy" | 453 "$ref": "Policy" |
424 }, | 454 }, |
425 "scopes": [ | 455 "scopes": [ |
426 "https://www.googleapis.com/auth/cloud-platform"
, | 456 "https://www.googleapis.com/auth/cloud-platform"
, |
427 "https://www.googleapis.com/auth/pubsub" | 457 "https://www.googleapis.com/auth/pubsub" |
428 ] | 458 ] |
429 } | 459 }, |
430 } | |
431 }, | |
432 "snapshots": { | |
433 "methods": { | |
434 "setIamPolicy": { | 460 "setIamPolicy": { |
435 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", | 461 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", |
436 "httpMethod": "POST", | 462 "httpMethod": "POST", |
437 "id": "pubsub.projects.snapshots.setIamPolicy", | 463 "id": "pubsub.projects.snapshots.setIamPolicy", |
438 "parameterOrder": [ | 464 "parameterOrder": [ |
439 "resource" | 465 "resource" |
440 ], | 466 ], |
441 "parameters": { | 467 "parameters": { |
442 "resource": { | 468 "resource": { |
443 "description": "REQUIRED: The resource for w
hich the policy is being specified.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", | 469 "description": "REQUIRED: The resource for w
hich the policy is being specified.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", |
444 "location": "path", | 470 "location": "path", |
445 "pattern": "^projects/[^/]+/snapshots/[^/]+$
", | 471 "pattern": "^projects/[^/]+/snapshots/[^/]+$
", |
446 "required": true, | 472 "required": true, |
447 "type": "string" | 473 "type": "string" |
448 } | 474 } |
449 }, | 475 }, |
450 "path": "v1/{+resource}:setIamPolicy", | 476 "path": "v1/{+resource}:setIamPolicy", |
451 "request": { | 477 "request": { |
452 "$ref": "SetIamPolicyRequest" | 478 "$ref": "SetIamPolicyRequest" |
453 }, | 479 }, |
454 "response": { | 480 "response": { |
455 "$ref": "Policy" | 481 "$ref": "Policy" |
456 }, | 482 }, |
457 "scopes": [ | 483 "scopes": [ |
458 "https://www.googleapis.com/auth/cloud-platform"
, | 484 "https://www.googleapis.com/auth/cloud-platform"
, |
459 "https://www.googleapis.com/auth/pubsub" | 485 "https://www.googleapis.com/auth/pubsub" |
460 ] | 486 ] |
461 }, | 487 }, |
462 "testIamPermissions": { | 488 "testIamPermissions": { |
463 "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.", | 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.
", |
464 "httpMethod": "POST", | 490 "httpMethod": "POST", |
465 "id": "pubsub.projects.snapshots.testIamPermissions"
, | 491 "id": "pubsub.projects.snapshots.testIamPermissions"
, |
466 "parameterOrder": [ | 492 "parameterOrder": [ |
467 "resource" | 493 "resource" |
468 ], | 494 ], |
469 "parameters": { | 495 "parameters": { |
470 "resource": { | 496 "resource": { |
471 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\n`resource` is usually specified as a
path. For example, a Project\nresource is specified as `projects/{project}`.", | 497 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\n`resource` is usually specified as a
path. For example, a Project\nresource is specified as `projects/{project}`.", |
472 "location": "path", | 498 "location": "path", |
473 "pattern": "^projects/[^/]+/snapshots/[^/]+$
", | 499 "pattern": "^projects/[^/]+/snapshots/[^/]+$
", |
474 "required": true, | 500 "required": true, |
475 "type": "string" | 501 "type": "string" |
476 } | 502 } |
477 }, | 503 }, |
478 "path": "v1/{+resource}:testIamPermissions", | 504 "path": "v1/{+resource}:testIamPermissions", |
479 "request": { | 505 "request": { |
480 "$ref": "TestIamPermissionsRequest" | 506 "$ref": "TestIamPermissionsRequest" |
481 }, | 507 }, |
482 "response": { | 508 "response": { |
483 "$ref": "TestIamPermissionsResponse" | 509 "$ref": "TestIamPermissionsResponse" |
484 }, | 510 }, |
485 "scopes": [ | 511 "scopes": [ |
486 "https://www.googleapis.com/auth/cloud-platform"
, | 512 "https://www.googleapis.com/auth/cloud-platform"
, |
487 "https://www.googleapis.com/auth/pubsub" | 513 "https://www.googleapis.com/auth/pubsub" |
488 ] | 514 ] |
489 }, | |
490 "getIamPolicy": { | |
491 "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.", | |
492 "httpMethod": "GET", | |
493 "id": "pubsub.projects.snapshots.getIamPolicy", | |
494 "parameterOrder": [ | |
495 "resource" | |
496 ], | |
497 "parameters": { | |
498 "resource": { | |
499 "description": "REQUIRED: The resource for w
hich the policy is being requested.\n`resource` is usually specified as a path.
For example, a Project\nresource is specified as `projects/{project}`.", | |
500 "location": "path", | |
501 "pattern": "^projects/[^/]+/snapshots/[^/]+$
", | |
502 "required": true, | |
503 "type": "string" | |
504 } | |
505 }, | |
506 "path": "v1/{+resource}:getIamPolicy", | |
507 "response": { | |
508 "$ref": "Policy" | |
509 }, | |
510 "scopes": [ | |
511 "https://www.googleapis.com/auth/cloud-platform"
, | |
512 "https://www.googleapis.com/auth/pubsub" | |
513 ] | |
514 } | 515 } |
515 } | 516 } |
516 }, | 517 }, |
517 "topics": { | 518 "topics": { |
518 "methods": { | 519 "methods": { |
519 "get": { | |
520 "description": "Gets the configuration of a topic.", | |
521 "httpMethod": "GET", | |
522 "id": "pubsub.projects.topics.get", | |
523 "parameterOrder": [ | |
524 "topic" | |
525 ], | |
526 "parameters": { | |
527 "topic": { | |
528 "description": "The name of the topic to get
.\nFormat is `projects/{project}/topics/{topic}`.", | |
529 "location": "path", | |
530 "pattern": "^projects/[^/]+/topics/[^/]+$", | |
531 "required": true, | |
532 "type": "string" | |
533 } | |
534 }, | |
535 "path": "v1/{+topic}", | |
536 "response": { | |
537 "$ref": "Topic" | |
538 }, | |
539 "scopes": [ | |
540 "https://www.googleapis.com/auth/cloud-platform"
, | |
541 "https://www.googleapis.com/auth/pubsub" | |
542 ] | |
543 }, | |
544 "publish": { | |
545 "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.", | |
546 "httpMethod": "POST", | |
547 "id": "pubsub.projects.topics.publish", | |
548 "parameterOrder": [ | |
549 "topic" | |
550 ], | |
551 "parameters": { | |
552 "topic": { | |
553 "description": "The messages in the request
will be published on this topic.\nFormat is `projects/{project}/topics/{topic}`.
", | |
554 "location": "path", | |
555 "pattern": "^projects/[^/]+/topics/[^/]+$", | |
556 "required": true, | |
557 "type": "string" | |
558 } | |
559 }, | |
560 "path": "v1/{+topic}:publish", | |
561 "request": { | |
562 "$ref": "PublishRequest" | |
563 }, | |
564 "response": { | |
565 "$ref": "PublishResponse" | |
566 }, | |
567 "scopes": [ | |
568 "https://www.googleapis.com/auth/cloud-platform"
, | |
569 "https://www.googleapis.com/auth/pubsub" | |
570 ] | |
571 }, | |
572 "testIamPermissions": { | 520 "testIamPermissions": { |
573 "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.", | 521 "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.
", |
574 "httpMethod": "POST", | 522 "httpMethod": "POST", |
575 "id": "pubsub.projects.topics.testIamPermissions", | 523 "id": "pubsub.projects.topics.testIamPermissions", |
576 "parameterOrder": [ | 524 "parameterOrder": [ |
577 "resource" | 525 "resource" |
578 ], | 526 ], |
579 "parameters": { | 527 "parameters": { |
580 "resource": { | 528 "resource": { |
581 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\n`resource` is usually specified as a
path. For example, a Project\nresource is specified as `projects/{project}`.", | 529 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\n`resource` is usually specified as a
path. For example, a Project\nresource is specified as `projects/{project}`.", |
582 "location": "path", | 530 "location": "path", |
583 "pattern": "^projects/[^/]+/topics/[^/]+$", | 531 "pattern": "^projects/[^/]+/topics/[^/]+$", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 ] | 571 ] |
624 }, | 572 }, |
625 "list": { | 573 "list": { |
626 "description": "Lists matching topics.", | 574 "description": "Lists matching topics.", |
627 "httpMethod": "GET", | 575 "httpMethod": "GET", |
628 "id": "pubsub.projects.topics.list", | 576 "id": "pubsub.projects.topics.list", |
629 "parameterOrder": [ | 577 "parameterOrder": [ |
630 "project" | 578 "project" |
631 ], | 579 ], |
632 "parameters": { | 580 "parameters": { |
633 "pageToken": { | |
634 "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.", | |
635 "location": "query", | |
636 "type": "string" | |
637 }, | |
638 "pageSize": { | 581 "pageSize": { |
639 "description": "Maximum number of topics to
return.", | 582 "description": "Maximum number of topics to
return.", |
640 "format": "int32", | 583 "format": "int32", |
641 "location": "query", | 584 "location": "query", |
642 "type": "integer" | 585 "type": "integer" |
643 }, | 586 }, |
644 "project": { | 587 "project": { |
645 "description": "The name of the cloud projec
t that topics belong to.\nFormat is `projects/{project}`.", | 588 "description": "The name of the cloud projec
t that topics belong to.\nFormat is `projects/{project}`.", |
646 "location": "path", | 589 "location": "path", |
647 "pattern": "^projects/[^/]+$", | 590 "pattern": "^projects/[^/]+$", |
648 "required": true, | 591 "required": true, |
649 "type": "string" | 592 "type": "string" |
| 593 }, |
| 594 "pageToken": { |
| 595 "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.", |
| 596 "location": "query", |
| 597 "type": "string" |
650 } | 598 } |
651 }, | 599 }, |
652 "path": "v1/{+project}/topics", | 600 "path": "v1/{+project}/topics", |
653 "response": { | 601 "response": { |
654 "$ref": "ListTopicsResponse" | 602 "$ref": "ListTopicsResponse" |
655 }, | 603 }, |
656 "scopes": [ | 604 "scopes": [ |
657 "https://www.googleapis.com/auth/cloud-platform"
, | 605 "https://www.googleapis.com/auth/cloud-platform"
, |
658 "https://www.googleapis.com/auth/pubsub" | 606 "https://www.googleapis.com/auth/pubsub" |
659 ] | 607 ] |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 } | 679 } |
732 }, | 680 }, |
733 "path": "v1/{+resource}:getIamPolicy", | 681 "path": "v1/{+resource}:getIamPolicy", |
734 "response": { | 682 "response": { |
735 "$ref": "Policy" | 683 "$ref": "Policy" |
736 }, | 684 }, |
737 "scopes": [ | 685 "scopes": [ |
738 "https://www.googleapis.com/auth/cloud-platform"
, | 686 "https://www.googleapis.com/auth/cloud-platform"
, |
739 "https://www.googleapis.com/auth/pubsub" | 687 "https://www.googleapis.com/auth/pubsub" |
740 ] | 688 ] |
| 689 }, |
| 690 "get": { |
| 691 "description": "Gets the configuration of a topic.", |
| 692 "httpMethod": "GET", |
| 693 "id": "pubsub.projects.topics.get", |
| 694 "parameterOrder": [ |
| 695 "topic" |
| 696 ], |
| 697 "parameters": { |
| 698 "topic": { |
| 699 "description": "The name of the topic to get
.\nFormat is `projects/{project}/topics/{topic}`.", |
| 700 "location": "path", |
| 701 "pattern": "^projects/[^/]+/topics/[^/]+$", |
| 702 "required": true, |
| 703 "type": "string" |
| 704 } |
| 705 }, |
| 706 "path": "v1/{+topic}", |
| 707 "response": { |
| 708 "$ref": "Topic" |
| 709 }, |
| 710 "scopes": [ |
| 711 "https://www.googleapis.com/auth/cloud-platform"
, |
| 712 "https://www.googleapis.com/auth/pubsub" |
| 713 ] |
| 714 }, |
| 715 "publish": { |
| 716 "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.", |
| 717 "httpMethod": "POST", |
| 718 "id": "pubsub.projects.topics.publish", |
| 719 "parameterOrder": [ |
| 720 "topic" |
| 721 ], |
| 722 "parameters": { |
| 723 "topic": { |
| 724 "description": "The messages in the request
will be published on this topic.\nFormat is `projects/{project}/topics/{topic}`.
", |
| 725 "location": "path", |
| 726 "pattern": "^projects/[^/]+/topics/[^/]+$", |
| 727 "required": true, |
| 728 "type": "string" |
| 729 } |
| 730 }, |
| 731 "path": "v1/{+topic}:publish", |
| 732 "request": { |
| 733 "$ref": "PublishRequest" |
| 734 }, |
| 735 "response": { |
| 736 "$ref": "PublishResponse" |
| 737 }, |
| 738 "scopes": [ |
| 739 "https://www.googleapis.com/auth/cloud-platform"
, |
| 740 "https://www.googleapis.com/auth/pubsub" |
| 741 ] |
741 } | 742 } |
742 }, | 743 }, |
743 "resources": { | 744 "resources": { |
744 "subscriptions": { | 745 "subscriptions": { |
745 "methods": { | 746 "methods": { |
746 "list": { | 747 "list": { |
747 "description": "Lists the name of the subscr
iptions for this topic.", | 748 "description": "Lists the name of the subscr
iptions for this topic.", |
748 "httpMethod": "GET", | 749 "httpMethod": "GET", |
749 "id": "pubsub.projects.topics.subscriptions.
list", | 750 "id": "pubsub.projects.topics.subscriptions.
list", |
750 "parameterOrder": [ | 751 "parameterOrder": [ |
751 "topic" | 752 "topic" |
752 ], | 753 ], |
753 "parameters": { | 754 "parameters": { |
| 755 "pageToken": { |
| 756 "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.", |
| 757 "location": "query", |
| 758 "type": "string" |
| 759 }, |
754 "pageSize": { | 760 "pageSize": { |
755 "description": "Maximum number of su
bscription names to return.", | 761 "description": "Maximum number of su
bscription names to return.", |
756 "format": "int32", | 762 "format": "int32", |
757 "location": "query", | 763 "location": "query", |
758 "type": "integer" | 764 "type": "integer" |
759 }, | 765 }, |
760 "topic": { | 766 "topic": { |
761 "description": "The name of the topi
c that subscriptions are attached to.\nFormat is `projects/{project}/topics/{top
ic}`.", | 767 "description": "The name of the topi
c that subscriptions are attached to.\nFormat is `projects/{project}/topics/{top
ic}`.", |
762 "location": "path", | 768 "location": "path", |
763 "pattern": "^projects/[^/]+/topics/[
^/]+$", | 769 "pattern": "^projects/[^/]+/topics/[
^/]+$", |
764 "required": true, | 770 "required": true, |
765 "type": "string" | 771 "type": "string" |
766 }, | |
767 "pageToken": { | |
768 "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.", | |
769 "location": "query", | |
770 "type": "string" | |
771 } | 772 } |
772 }, | 773 }, |
773 "path": "v1/{+topic}/subscriptions", | 774 "path": "v1/{+topic}/subscriptions", |
774 "response": { | 775 "response": { |
775 "$ref": "ListTopicSubscriptionsResponse" | 776 "$ref": "ListTopicSubscriptionsResponse" |
776 }, | 777 }, |
777 "scopes": [ | 778 "scopes": [ |
778 "https://www.googleapis.com/auth/cloud-p
latform", | 779 "https://www.googleapis.com/auth/cloud-p
latform", |
779 "https://www.googleapis.com/auth/pubsub" | 780 "https://www.googleapis.com/auth/pubsub" |
780 ] | 781 ] |
781 } | 782 } |
782 } | 783 } |
783 } | 784 } |
784 } | 785 } |
785 } | 786 } |
786 } | 787 } |
787 } | 788 } |
788 }, | 789 }, |
789 "revision": "20170124", | 790 "revision": "20170214", |
790 "rootUrl": "https://pubsub.googleapis.com/", | 791 "rootUrl": "https://pubsub.googleapis.com/", |
791 "schemas": { | 792 "schemas": { |
| 793 "PushConfig": { |
| 794 "description": "Configuration for a push delivery endpoint.", |
| 795 "id": "PushConfig", |
| 796 "properties": { |
| 797 "pushEndpoint": { |
| 798 "description": "A URL locating the endpoint to which message
s should be pushed.\nFor example, a Webhook endpoint might use \"https://example
.com/push\".", |
| 799 "type": "string" |
| 800 }, |
| 801 "attributes": { |
| 802 "additionalProperties": { |
| 803 "type": "string" |
| 804 }, |
| 805 "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.", |
| 806 "type": "object" |
| 807 } |
| 808 }, |
| 809 "type": "object" |
| 810 }, |
| 811 "TestIamPermissionsResponse": { |
| 812 "description": "Response message for `TestIamPermissions` method.", |
| 813 "id": "TestIamPermissionsResponse", |
| 814 "properties": { |
| 815 "permissions": { |
| 816 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", |
| 817 "items": { |
| 818 "type": "string" |
| 819 }, |
| 820 "type": "array" |
| 821 } |
| 822 }, |
| 823 "type": "object" |
| 824 }, |
792 "PullRequest": { | 825 "PullRequest": { |
793 "description": "Request for the `Pull` method.", | 826 "description": "Request for the `Pull` method.", |
794 "id": "PullRequest", | 827 "id": "PullRequest", |
795 "properties": { | 828 "properties": { |
796 "returnImmediately": { | |
797 "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.", | |
798 "type": "boolean" | |
799 }, | |
800 "maxMessages": { | 829 "maxMessages": { |
801 "description": "The maximum number of messages returned for
this request. The Pub/Sub\nsystem may return fewer than the number specified.", | 830 "description": "The maximum number of messages returned for
this request. The Pub/Sub\nsystem may return fewer than the number specified.", |
802 "format": "int32", | 831 "format": "int32", |
803 "type": "integer" | 832 "type": "integer" |
| 833 }, |
| 834 "returnImmediately": { |
| 835 "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.", |
| 836 "type": "boolean" |
804 } | 837 } |
805 }, | 838 }, |
806 "type": "object" | 839 "type": "object" |
807 }, | 840 }, |
808 "ListSubscriptionsResponse": { | 841 "ListSubscriptionsResponse": { |
809 "description": "Response for the `ListSubscriptions` method.", | 842 "description": "Response for the `ListSubscriptions` method.", |
810 "id": "ListSubscriptionsResponse", | 843 "id": "ListSubscriptionsResponse", |
811 "properties": { | 844 "properties": { |
812 "nextPageToken": { | 845 "nextPageToken": { |
813 "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.", | 846 "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 Loading... |
848 }, | 881 }, |
849 "type": "array" | 882 "type": "array" |
850 } | 883 } |
851 }, | 884 }, |
852 "type": "object" | 885 "type": "object" |
853 }, | 886 }, |
854 "Subscription": { | 887 "Subscription": { |
855 "description": "A subscription resource.", | 888 "description": "A subscription resource.", |
856 "id": "Subscription", | 889 "id": "Subscription", |
857 "properties": { | 890 "properties": { |
858 "topic": { | |
859 "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.
", | |
860 "type": "string" | |
861 }, | |
862 "pushConfig": { | |
863 "$ref": "PushConfig", | |
864 "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." | |
865 }, | |
866 "ackDeadlineSeconds": { | 891 "ackDeadlineSeconds": { |
867 "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.", | 892 "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.", |
868 "format": "int32", | 893 "format": "int32", |
869 "type": "integer" | 894 "type": "integer" |
870 }, | 895 }, |
871 "name": { | 896 "name": { |
872 "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\"`.", | 897 "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\"`.", |
873 "type": "string" | 898 "type": "string" |
| 899 }, |
| 900 "topic": { |
| 901 "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.
", |
| 902 "type": "string" |
| 903 }, |
| 904 "pushConfig": { |
| 905 "$ref": "PushConfig", |
| 906 "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." |
874 } | 907 } |
875 }, | 908 }, |
876 "type": "object" | 909 "type": "object" |
877 }, | 910 }, |
878 "TestIamPermissionsRequest": { | 911 "TestIamPermissionsRequest": { |
879 "description": "Request message for `TestIamPermissions` method.", | 912 "description": "Request message for `TestIamPermissions` method.", |
880 "id": "TestIamPermissionsRequest", | 913 "id": "TestIamPermissionsRequest", |
881 "properties": { | 914 "properties": { |
882 "permissions": { | 915 "permissions": { |
883 "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).", | 916 "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).", |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 "$ref": "PushConfig", | 995 "$ref": "PushConfig", |
963 "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." | 996 "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." |
964 } | 997 } |
965 }, | 998 }, |
966 "type": "object" | 999 "type": "object" |
967 }, | 1000 }, |
968 "PubsubMessage": { | 1001 "PubsubMessage": { |
969 "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.", | 1002 "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.", |
970 "id": "PubsubMessage", | 1003 "id": "PubsubMessage", |
971 "properties": { | 1004 "properties": { |
| 1005 "data": { |
| 1006 "description": "The message payload.", |
| 1007 "format": "byte", |
| 1008 "type": "string" |
| 1009 }, |
972 "attributes": { | 1010 "attributes": { |
973 "additionalProperties": { | 1011 "additionalProperties": { |
974 "type": "string" | 1012 "type": "string" |
975 }, | 1013 }, |
976 "description": "Optional attributes for this message.", | 1014 "description": "Optional attributes for this message.", |
977 "type": "object" | 1015 "type": "object" |
978 }, | 1016 }, |
979 "messageId": { | 1017 "messageId": { |
980 "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.", | 1018 "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.", |
981 "type": "string" | 1019 "type": "string" |
982 }, | 1020 }, |
983 "publishTime": { | 1021 "publishTime": { |
984 "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.", | 1022 "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.", |
985 "format": "google-datetime", | 1023 "format": "google-datetime", |
986 "type": "string" | 1024 "type": "string" |
987 }, | |
988 "data": { | |
989 "description": "The message payload.", | |
990 "format": "byte", | |
991 "type": "string" | |
992 } | 1025 } |
993 }, | 1026 }, |
994 "type": "object" | 1027 "type": "object" |
995 }, | 1028 }, |
996 "Binding": { | 1029 "Binding": { |
997 "description": "Associates `members` with a `role`.", | 1030 "description": "Associates `members` with a `role`.", |
998 "id": "Binding", | 1031 "id": "Binding", |
999 "properties": { | 1032 "properties": { |
1000 "members": { | 1033 "members": { |
1001 "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", | 1034 "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", |
1002 "items": { | 1035 "items": { |
1003 "type": "string" | 1036 "type": "string" |
1004 }, | 1037 }, |
1005 "type": "array" | 1038 "type": "array" |
1006 }, | 1039 }, |
1007 "role": { | 1040 "role": { |
1008 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", | 1041 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
1009 "type": "string" | 1042 "type": "string" |
1010 } | 1043 } |
1011 }, | 1044 }, |
1012 "type": "object" | 1045 "type": "object" |
1013 }, | 1046 }, |
1014 "ListTopicsResponse": { | |
1015 "description": "Response for the `ListTopics` method.", | |
1016 "id": "ListTopicsResponse", | |
1017 "properties": { | |
1018 "topics": { | |
1019 "description": "The resulting topics.", | |
1020 "items": { | |
1021 "$ref": "Topic" | |
1022 }, | |
1023 "type": "array" | |
1024 }, | |
1025 "nextPageToken": { | |
1026 "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`.", | |
1027 "type": "string" | |
1028 } | |
1029 }, | |
1030 "type": "object" | |
1031 }, | |
1032 "AcknowledgeRequest": { | 1047 "AcknowledgeRequest": { |
1033 "description": "Request for the Acknowledge method.", | 1048 "description": "Request for the Acknowledge method.", |
1034 "id": "AcknowledgeRequest", | 1049 "id": "AcknowledgeRequest", |
1035 "properties": { | 1050 "properties": { |
1036 "ackIds": { | 1051 "ackIds": { |
1037 "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.", | 1052 "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.", |
1038 "items": { | 1053 "items": { |
1039 "type": "string" | 1054 "type": "string" |
1040 }, | 1055 }, |
1041 "type": "array" | 1056 "type": "array" |
1042 } | 1057 } |
1043 }, | 1058 }, |
1044 "type": "object" | 1059 "type": "object" |
1045 }, | 1060 }, |
1046 "Empty": { | 1061 "Empty": { |
1047 "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 `{}`.", | 1062 "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 `{}`.", |
1048 "id": "Empty", | 1063 "id": "Empty", |
1049 "properties": {}, | 1064 "properties": {}, |
1050 "type": "object" | 1065 "type": "object" |
1051 }, | 1066 }, |
| 1067 "ListTopicsResponse": { |
| 1068 "description": "Response for the `ListTopics` method.", |
| 1069 "id": "ListTopicsResponse", |
| 1070 "properties": { |
| 1071 "nextPageToken": { |
| 1072 "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`.", |
| 1073 "type": "string" |
| 1074 }, |
| 1075 "topics": { |
| 1076 "description": "The resulting topics.", |
| 1077 "items": { |
| 1078 "$ref": "Topic" |
| 1079 }, |
| 1080 "type": "array" |
| 1081 } |
| 1082 }, |
| 1083 "type": "object" |
| 1084 }, |
1052 "ListTopicSubscriptionsResponse": { | 1085 "ListTopicSubscriptionsResponse": { |
1053 "description": "Response for the `ListTopicSubscriptions` method.", | 1086 "description": "Response for the `ListTopicSubscriptions` method.", |
1054 "id": "ListTopicSubscriptionsResponse", | 1087 "id": "ListTopicSubscriptionsResponse", |
1055 "properties": { | 1088 "properties": { |
1056 "nextPageToken": { | 1089 "nextPageToken": { |
1057 "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
`ListTopicSubscriptionsRequest` to get more subscriptions.", | 1090 "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
`ListTopicSubscriptionsRequest` to get more subscriptions.", |
1058 "type": "string" | 1091 "type": "string" |
1059 }, | 1092 }, |
1060 "subscriptions": { | 1093 "subscriptions": { |
1061 "description": "The names of the subscriptions that match th
e request.", | 1094 "description": "The names of the subscriptions that match th
e request.", |
(...skipping 16 matching lines...) Expand all Loading... |
1078 }, | 1111 }, |
1079 "type": "array" | 1112 "type": "array" |
1080 } | 1113 } |
1081 }, | 1114 }, |
1082 "type": "object" | 1115 "type": "object" |
1083 }, | 1116 }, |
1084 "ReceivedMessage": { | 1117 "ReceivedMessage": { |
1085 "description": "A message and its corresponding acknowledgment ID.", | 1118 "description": "A message and its corresponding acknowledgment ID.", |
1086 "id": "ReceivedMessage", | 1119 "id": "ReceivedMessage", |
1087 "properties": { | 1120 "properties": { |
| 1121 "message": { |
| 1122 "$ref": "PubsubMessage", |
| 1123 "description": "The message." |
| 1124 }, |
1088 "ackId": { | 1125 "ackId": { |
1089 "description": "This ID can be used to acknowledge the recei
ved message.", | 1126 "description": "This ID can be used to acknowledge the recei
ved message.", |
1090 "type": "string" | 1127 "type": "string" |
1091 }, | |
1092 "message": { | |
1093 "$ref": "PubsubMessage", | |
1094 "description": "The message." | |
1095 } | 1128 } |
1096 }, | 1129 }, |
1097 "type": "object" | 1130 "type": "object" |
1098 }, | |
1099 "PushConfig": { | |
1100 "description": "Configuration for a push delivery endpoint.", | |
1101 "id": "PushConfig", | |
1102 "properties": { | |
1103 "pushEndpoint": { | |
1104 "description": "A URL locating the endpoint to which message
s should be pushed.\nFor example, a Webhook endpoint might use \"https://example
.com/push\".", | |
1105 "type": "string" | |
1106 }, | |
1107 "attributes": { | |
1108 "additionalProperties": { | |
1109 "type": "string" | |
1110 }, | |
1111 "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.", | |
1112 "type": "object" | |
1113 } | |
1114 }, | |
1115 "type": "object" | |
1116 }, | |
1117 "TestIamPermissionsResponse": { | |
1118 "description": "Response message for `TestIamPermissions` method.", | |
1119 "id": "TestIamPermissionsResponse", | |
1120 "properties": { | |
1121 "permissions": { | |
1122 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", | |
1123 "items": { | |
1124 "type": "string" | |
1125 }, | |
1126 "type": "array" | |
1127 } | |
1128 }, | |
1129 "type": "object" | |
1130 } | 1131 } |
1131 }, | 1132 }, |
1132 "servicePath": "", | 1133 "servicePath": "", |
1133 "title": "Google Cloud Pub/Sub API", | 1134 "title": "Google Cloud Pub/Sub API", |
1134 "version": "v1" | 1135 "version": "v1" |
1135 } | 1136 } |
OLD | NEW |