OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/pubsub": { |
| 6 "description": "View and manage Pub/Sub topics and subscript
ions" |
| 7 }, |
5 "https://www.googleapis.com/auth/cloud-platform": { | 8 "https://www.googleapis.com/auth/cloud-platform": { |
6 "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" |
7 }, | |
8 "https://www.googleapis.com/auth/pubsub": { | |
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 "canonicalName": "Pubsub", |
18 "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", |
19 "discoveryVersion": "v1", | 19 "discoveryVersion": "v1", |
20 "documentationLink": "https://cloud.google.com/pubsub/docs", | 20 "documentationLink": "https://cloud.google.com/pubsub/docs", |
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 "bearer_token": { | 31 "key": { |
32 "description": "OAuth bearer token.", | 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", | 33 "location": "query", |
34 "type": "string" | 34 "type": "string" |
35 }, | 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 }, |
36 "oauth_token": { | 52 "oauth_token": { |
37 "description": "OAuth 2.0 token for the current user.", | 53 "description": "OAuth 2.0 token for the current user.", |
38 "location": "query", | 54 "location": "query", |
39 "type": "string" | 55 "type": "string" |
40 }, | 56 }, |
| 57 "bearer_token": { |
| 58 "description": "OAuth bearer token.", |
| 59 "location": "query", |
| 60 "type": "string" |
| 61 }, |
41 "upload_protocol": { | 62 "upload_protocol": { |
42 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 63 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
43 "location": "query", | 64 "location": "query", |
44 "type": "string" | 65 "type": "string" |
45 }, | 66 }, |
46 "prettyPrint": { | 67 "prettyPrint": { |
47 "default": "true", | 68 "default": "true", |
48 "description": "Returns response with indentations and line breaks."
, | 69 "description": "Returns response with indentations and line breaks."
, |
49 "location": "query", | 70 "location": "query", |
50 "type": "boolean" | 71 "type": "boolean" |
51 }, | 72 }, |
| 73 "uploadType": { |
| 74 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 75 "location": "query", |
| 76 "type": "string" |
| 77 }, |
52 "fields": { | 78 "fields": { |
53 "description": "Selector specifying which fields to include in a par
tial response.", | 79 "description": "Selector specifying which fields to include in a par
tial response.", |
54 "location": "query", | 80 "location": "query", |
55 "type": "string" | 81 "type": "string" |
56 }, | 82 }, |
57 "uploadType": { | |
58 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
59 "location": "query", | |
60 "type": "string" | |
61 }, | |
62 "callback": { | |
63 "description": "JSONP", | |
64 "location": "query", | |
65 "type": "string" | |
66 }, | |
67 "$.xgafv": { | 83 "$.xgafv": { |
68 "description": "V1 error format.", | 84 "description": "V1 error format.", |
69 "enum": [ | 85 "enum": [ |
70 "1", | 86 "1", |
71 "2" | 87 "2" |
72 ], | 88 ], |
73 "enumDescriptions": [ | 89 "enumDescriptions": [ |
74 "v1 error format", | 90 "v1 error format", |
75 "v2 error format" | 91 "v2 error format" |
76 ], | 92 ], |
77 "location": "query", | 93 "location": "query", |
78 "type": "string" | 94 "type": "string" |
79 }, | 95 }, |
| 96 "callback": { |
| 97 "description": "JSONP", |
| 98 "location": "query", |
| 99 "type": "string" |
| 100 }, |
80 "alt": { | 101 "alt": { |
81 "default": "json", | 102 "default": "json", |
82 "description": "Data format for response.", | 103 "description": "Data format for response.", |
83 "enum": [ | 104 "enum": [ |
84 "json", | 105 "json", |
85 "media", | 106 "media", |
86 "proto" | 107 "proto" |
87 ], | 108 ], |
88 "enumDescriptions": [ | 109 "enumDescriptions": [ |
89 "Responses with Content-Type of application/json", | 110 "Responses with Content-Type of application/json", |
90 "Media download with context-dependent Content-Type", | 111 "Media download with context-dependent Content-Type", |
91 "Responses with Content-Type of application/x-protobuf" | 112 "Responses with Content-Type of application/x-protobuf" |
92 ], | 113 ], |
93 "location": "query", | 114 "location": "query", |
94 "type": "string" | 115 "type": "string" |
95 }, | |
96 "key": { | |
97 "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.", | |
98 "location": "query", | |
99 "type": "string" | |
100 }, | |
101 "access_token": { | |
102 "description": "OAuth access token.", | |
103 "location": "query", | |
104 "type": "string" | |
105 }, | |
106 "quotaUser": { | |
107 "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.", | |
108 "location": "query", | |
109 "type": "string" | |
110 }, | |
111 "pp": { | |
112 "default": "true", | |
113 "description": "Pretty-print response.", | |
114 "location": "query", | |
115 "type": "boolean" | |
116 } | 116 } |
117 }, | 117 }, |
118 "protocol": "rest", | 118 "protocol": "rest", |
119 "resources": { | 119 "resources": { |
120 "projects": { | 120 "projects": { |
121 "resources": { | 121 "resources": { |
122 "subscriptions": { | 122 "topics": { |
123 "methods": { | 123 "methods": { |
124 "acknowledge": { | 124 "list": { |
125 "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": "Lists matching topics.", |
126 "httpMethod": "POST", | 126 "httpMethod": "GET", |
127 "id": "pubsub.projects.subscriptions.acknowledge", | 127 "id": "pubsub.projects.topics.list", |
128 "parameterOrder": [ | 128 "parameterOrder": [ |
129 "subscription" | 129 "project" |
130 ], | 130 ], |
131 "parameters": { | 131 "parameters": { |
132 "subscription": { | 132 "pageSize": { |
133 "description": "The subscription whose messa
ge is being acknowledged.", | 133 "description": "Maximum number of topics to
return.", |
| 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.", |
134 "location": "path", | 140 "location": "path", |
135 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 141 "pattern": "^projects/[^/]+$", |
136 "required": true, | 142 "required": true, |
137 "type": "string" | 143 "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" |
138 } | 149 } |
139 }, | 150 }, |
140 "path": "v1beta2/{+subscription}:acknowledge", | 151 "path": "v1beta2/{+project}/topics", |
141 "request": { | |
142 "$ref": "AcknowledgeRequest" | |
143 }, | |
144 "response": { | 152 "response": { |
145 "$ref": "Empty" | 153 "$ref": "ListTopicsResponse" |
146 }, | 154 }, |
147 "scopes": [ | 155 "scopes": [ |
148 "https://www.googleapis.com/auth/cloud-platform"
, | 156 "https://www.googleapis.com/auth/cloud-platform"
, |
149 "https://www.googleapis.com/auth/pubsub" | 157 "https://www.googleapis.com/auth/pubsub" |
150 ] | 158 ] |
151 }, | 159 }, |
152 "modifyAckDeadline": { | 160 "setIamPolicy": { |
153 "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.", | 161 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", |
154 "httpMethod": "POST", | 162 "httpMethod": "POST", |
155 "id": "pubsub.projects.subscriptions.modifyAckDeadli
ne", | 163 "id": "pubsub.projects.topics.setIamPolicy", |
156 "parameterOrder": [ | 164 "parameterOrder": [ |
157 "subscription" | 165 "resource" |
158 ], | 166 ], |
159 "parameters": { | 167 "parameters": { |
160 "subscription": { | 168 "resource": { |
161 "description": "The name of the subscription
.", | 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.", |
162 "location": "path", | 170 "location": "path", |
163 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 171 "pattern": "^projects/[^/]+/topics/[^/]+$", |
164 "required": true, | 172 "required": true, |
165 "type": "string" | 173 "type": "string" |
166 } | 174 } |
167 }, | 175 }, |
168 "path": "v1beta2/{+subscription}:modifyAckDeadline", | 176 "path": "v1beta2/{+resource}:setIamPolicy", |
169 "request": { | 177 "request": { |
170 "$ref": "ModifyAckDeadlineRequest" | 178 "$ref": "SetIamPolicyRequest" |
171 }, | 179 }, |
172 "response": { | 180 "response": { |
173 "$ref": "Empty" | 181 "$ref": "Policy" |
174 }, | 182 }, |
175 "scopes": [ | 183 "scopes": [ |
176 "https://www.googleapis.com/auth/cloud-platform"
, | 184 "https://www.googleapis.com/auth/cloud-platform"
, |
| 185 "https://www.googleapis.com/auth/pubsub" |
| 186 ] |
| 187 }, |
| 188 "create": { |
| 189 "description": "Creates the given topic with the giv
en name.", |
| 190 "httpMethod": "PUT", |
| 191 "id": "pubsub.projects.topics.create", |
| 192 "parameterOrder": [ |
| 193 "name" |
| 194 ], |
| 195 "parameters": { |
| 196 "name": { |
| 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\"`.", |
| 198 "location": "path", |
| 199 "pattern": "^projects/[^/]+/topics/[^/]+$", |
| 200 "required": true, |
| 201 "type": "string" |
| 202 } |
| 203 }, |
| 204 "path": "v1beta2/{+name}", |
| 205 "request": { |
| 206 "$ref": "Topic" |
| 207 }, |
| 208 "response": { |
| 209 "$ref": "Topic" |
| 210 }, |
| 211 "scopes": [ |
| 212 "https://www.googleapis.com/auth/cloud-platform"
, |
177 "https://www.googleapis.com/auth/pubsub" | 213 "https://www.googleapis.com/auth/pubsub" |
178 ] | 214 ] |
179 }, | 215 }, |
180 "getIamPolicy": { | 216 "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.", | 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.", |
182 "httpMethod": "GET", | 218 "httpMethod": "GET", |
183 "id": "pubsub.projects.subscriptions.getIamPolicy", | 219 "id": "pubsub.projects.topics.getIamPolicy", |
184 "parameterOrder": [ | 220 "parameterOrder": [ |
185 "resource" | 221 "resource" |
186 ], | 222 ], |
187 "parameters": { | 223 "parameters": { |
188 "resource": { | 224 "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}`.", | 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.", |
190 "location": "path", | 226 "location": "path", |
191 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 227 "pattern": "^projects/[^/]+/topics/[^/]+$", |
192 "required": true, | 228 "required": true, |
193 "type": "string" | 229 "type": "string" |
194 } | 230 } |
195 }, | 231 }, |
196 "path": "v1beta2/{+resource}:getIamPolicy", | 232 "path": "v1beta2/{+resource}:getIamPolicy", |
197 "response": { | 233 "response": { |
198 "$ref": "Policy" | 234 "$ref": "Policy" |
199 }, | 235 }, |
200 "scopes": [ | 236 "scopes": [ |
201 "https://www.googleapis.com/auth/cloud-platform"
, | 237 "https://www.googleapis.com/auth/cloud-platform"
, |
202 "https://www.googleapis.com/auth/pubsub" | 238 "https://www.googleapis.com/auth/pubsub" |
203 ] | 239 ] |
204 }, | 240 }, |
205 "get": { | 241 "get": { |
206 "description": "Gets the configuration details of a
subscription.", | 242 "description": "Gets the configuration of a topic.", |
207 "httpMethod": "GET", | 243 "httpMethod": "GET", |
208 "id": "pubsub.projects.subscriptions.get", | 244 "id": "pubsub.projects.topics.get", |
209 "parameterOrder": [ | 245 "parameterOrder": [ |
210 "subscription" | 246 "topic" |
211 ], | 247 ], |
212 "parameters": { | 248 "parameters": { |
213 "subscription": { | 249 "topic": { |
214 "description": "The name of the subscription
to get.", | 250 "description": "The name of the topic to get
.", |
215 "location": "path", | 251 "location": "path", |
216 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 252 "pattern": "^projects/[^/]+/topics/[^/]+$", |
217 "required": true, | 253 "required": true, |
218 "type": "string" | 254 "type": "string" |
219 } | 255 } |
220 }, | 256 }, |
221 "path": "v1beta2/{+subscription}", | 257 "path": "v1beta2/{+topic}", |
222 "response": { | 258 "response": { |
223 "$ref": "Subscription" | 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" |
224 }, | 288 }, |
225 "scopes": [ | 289 "scopes": [ |
226 "https://www.googleapis.com/auth/cloud-platform"
, | 290 "https://www.googleapis.com/auth/cloud-platform"
, |
227 "https://www.googleapis.com/auth/pubsub" | 291 "https://www.googleapis.com/auth/pubsub" |
228 ] | 292 ] |
229 }, | 293 }, |
230 "testIamPermissions": { | 294 "testIamPermissions": { |
231 "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.
", | 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.
", |
232 "httpMethod": "POST", | 296 "httpMethod": "POST", |
233 "id": "pubsub.projects.subscriptions.testIamPermissi
ons", | 297 "id": "pubsub.projects.topics.testIamPermissions", |
234 "parameterOrder": [ | 298 "parameterOrder": [ |
235 "resource" | 299 "resource" |
236 ], | 300 ], |
237 "parameters": { | 301 "parameters": { |
238 "resource": { | 302 "resource": { |
239 "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}`.", | 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.", |
240 "location": "path", | 304 "location": "path", |
241 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 305 "pattern": "^projects/[^/]+/topics/[^/]+$", |
242 "required": true, | 306 "required": true, |
243 "type": "string" | 307 "type": "string" |
244 } | 308 } |
245 }, | 309 }, |
246 "path": "v1beta2/{+resource}:testIamPermissions", | 310 "path": "v1beta2/{+resource}:testIamPermissions", |
247 "request": { | 311 "request": { |
248 "$ref": "TestIamPermissionsRequest" | 312 "$ref": "TestIamPermissionsRequest" |
249 }, | 313 }, |
250 "response": { | 314 "response": { |
251 "$ref": "TestIamPermissionsResponse" | 315 "$ref": "TestIamPermissionsResponse" |
252 }, | 316 }, |
253 "scopes": [ | 317 "scopes": [ |
254 "https://www.googleapis.com/auth/cloud-platform"
, | 318 "https://www.googleapis.com/auth/cloud-platform"
, |
255 "https://www.googleapis.com/auth/pubsub" | |
256 ] | |
257 }, | |
258 "modifyPushConfig": { | |
259 "description": "Modifies the `PushConfig` for a spec
ified subscription.\n\nThis may be used to change a push subscription to a pull
one (signified by\nan empty `PushConfig`) or vice versa, or change the endpoint
URL and other\nattributes of a push subscription. Messages will accumulate for d
elivery\ncontinuously through the call regardless of changes to the `PushConfig`
.", | |
260 "httpMethod": "POST", | |
261 "id": "pubsub.projects.subscriptions.modifyPushConfi
g", | |
262 "parameterOrder": [ | |
263 "subscription" | |
264 ], | |
265 "parameters": { | |
266 "subscription": { | |
267 "description": "The name of the subscription
.", | |
268 "location": "path", | |
269 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | |
270 "required": true, | |
271 "type": "string" | |
272 } | |
273 }, | |
274 "path": "v1beta2/{+subscription}:modifyPushConfig", | |
275 "request": { | |
276 "$ref": "ModifyPushConfigRequest" | |
277 }, | |
278 "response": { | |
279 "$ref": "Empty" | |
280 }, | |
281 "scopes": [ | |
282 "https://www.googleapis.com/auth/cloud-platform"
, | |
283 "https://www.googleapis.com/auth/pubsub" | 319 "https://www.googleapis.com/auth/pubsub" |
284 ] | 320 ] |
285 }, | 321 }, |
286 "delete": { | 322 "delete": { |
287 "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.", | 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_`.", |
288 "httpMethod": "DELETE", | 324 "httpMethod": "DELETE", |
289 "id": "pubsub.projects.subscriptions.delete", | 325 "id": "pubsub.projects.topics.delete", |
290 "parameterOrder": [ | 326 "parameterOrder": [ |
291 "subscription" | 327 "topic" |
292 ], | 328 ], |
293 "parameters": { | 329 "parameters": { |
294 "subscription": { | 330 "topic": { |
295 "description": "The subscription to delete."
, | 331 "description": "Name of the topic to delete.
", |
296 "location": "path", | 332 "location": "path", |
297 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 333 "pattern": "^projects/[^/]+/topics/[^/]+$", |
298 "required": true, | 334 "required": true, |
299 "type": "string" | 335 "type": "string" |
300 } | 336 } |
301 }, | 337 }, |
302 "path": "v1beta2/{+subscription}", | 338 "path": "v1beta2/{+topic}", |
303 "response": { | 339 "response": { |
304 "$ref": "Empty" | 340 "$ref": "Empty" |
305 }, | 341 }, |
306 "scopes": [ | 342 "scopes": [ |
307 "https://www.googleapis.com/auth/cloud-platform"
, | 343 "https://www.googleapis.com/auth/cloud-platform"
, |
308 "https://www.googleapis.com/auth/pubsub" | 344 "https://www.googleapis.com/auth/pubsub" |
309 ] | 345 ] |
310 }, | 346 } |
311 "pull": { | 347 }, |
312 "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.", | 348 "resources": { |
313 "httpMethod": "POST", | 349 "subscriptions": { |
314 "id": "pubsub.projects.subscriptions.pull", | 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.", |
| 395 "httpMethod": "GET", |
| 396 "id": "pubsub.projects.subscriptions.get", |
315 "parameterOrder": [ | 397 "parameterOrder": [ |
316 "subscription" | 398 "subscription" |
317 ], | 399 ], |
318 "parameters": { | 400 "parameters": { |
319 "subscription": { | 401 "subscription": { |
320 "description": "The subscription from which
messages should be pulled.", | 402 "description": "The name of the subscription
to get.", |
321 "location": "path", | 403 "location": "path", |
322 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | 404 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
323 "required": true, | 405 "required": true, |
324 "type": "string" | 406 "type": "string" |
325 } | 407 } |
326 }, | 408 }, |
327 "path": "v1beta2/{+subscription}:pull", | 409 "path": "v1beta2/{+subscription}", |
328 "request": { | |
329 "$ref": "PullRequest" | |
330 }, | |
331 "response": { | |
332 "$ref": "PullResponse" | |
333 }, | |
334 "scopes": [ | |
335 "https://www.googleapis.com/auth/cloud-platform"
, | |
336 "https://www.googleapis.com/auth/pubsub" | |
337 ] | |
338 }, | |
339 "list": { | |
340 "description": "Lists matching subscriptions.", | |
341 "httpMethod": "GET", | |
342 "id": "pubsub.projects.subscriptions.list", | |
343 "parameterOrder": [ | |
344 "project" | |
345 ], | |
346 "parameters": { | |
347 "pageToken": { | |
348 "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.", | |
349 "location": "query", | |
350 "type": "string" | |
351 }, | |
352 "pageSize": { | |
353 "description": "Maximum number of subscripti
ons to return.", | |
354 "format": "int32", | |
355 "location": "query", | |
356 "type": "integer" | |
357 }, | |
358 "project": { | |
359 "description": "The name of the cloud projec
t that subscriptions belong to.", | |
360 "location": "path", | |
361 "pattern": "^projects/[^/]+$", | |
362 "required": true, | |
363 "type": "string" | |
364 } | |
365 }, | |
366 "path": "v1beta2/{+project}/subscriptions", | |
367 "response": { | |
368 "$ref": "ListSubscriptionsResponse" | |
369 }, | |
370 "scopes": [ | |
371 "https://www.googleapis.com/auth/cloud-platform"
, | |
372 "https://www.googleapis.com/auth/pubsub" | |
373 ] | |
374 }, | |
375 "create": { | |
376 "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.", | |
377 "httpMethod": "PUT", | |
378 "id": "pubsub.projects.subscriptions.create", | |
379 "parameterOrder": [ | |
380 "name" | |
381 ], | |
382 "parameters": { | |
383 "name": { | |
384 "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\"`.", | |
385 "location": "path", | |
386 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | |
387 "required": true, | |
388 "type": "string" | |
389 } | |
390 }, | |
391 "path": "v1beta2/{+name}", | |
392 "request": { | |
393 "$ref": "Subscription" | |
394 }, | |
395 "response": { | 410 "response": { |
396 "$ref": "Subscription" | 411 "$ref": "Subscription" |
397 }, | 412 }, |
398 "scopes": [ | 413 "scopes": [ |
399 "https://www.googleapis.com/auth/cloud-platform"
, | 414 "https://www.googleapis.com/auth/cloud-platform"
, |
400 "https://www.googleapis.com/auth/pubsub" | 415 "https://www.googleapis.com/auth/pubsub" |
401 ] | 416 ] |
402 }, | 417 }, |
403 "setIamPolicy": { | |
404 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", | |
405 "httpMethod": "POST", | |
406 "id": "pubsub.projects.subscriptions.setIamPolicy", | |
407 "parameterOrder": [ | |
408 "resource" | |
409 ], | |
410 "parameters": { | |
411 "resource": { | |
412 "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}`.", | |
413 "location": "path", | |
414 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", | |
415 "required": true, | |
416 "type": "string" | |
417 } | |
418 }, | |
419 "path": "v1beta2/{+resource}:setIamPolicy", | |
420 "request": { | |
421 "$ref": "SetIamPolicyRequest" | |
422 }, | |
423 "response": { | |
424 "$ref": "Policy" | |
425 }, | |
426 "scopes": [ | |
427 "https://www.googleapis.com/auth/cloud-platform"
, | |
428 "https://www.googleapis.com/auth/pubsub" | |
429 ] | |
430 } | |
431 } | |
432 }, | |
433 "topics": { | |
434 "methods": { | |
435 "publish": { | |
436 "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.", | |
437 "httpMethod": "POST", | |
438 "id": "pubsub.projects.topics.publish", | |
439 "parameterOrder": [ | |
440 "topic" | |
441 ], | |
442 "parameters": { | |
443 "topic": { | |
444 "description": "The messages in the request
will be published on this topic.", | |
445 "location": "path", | |
446 "pattern": "^projects/[^/]+/topics/[^/]+$", | |
447 "required": true, | |
448 "type": "string" | |
449 } | |
450 }, | |
451 "path": "v1beta2/{+topic}:publish", | |
452 "request": { | |
453 "$ref": "PublishRequest" | |
454 }, | |
455 "response": { | |
456 "$ref": "PublishResponse" | |
457 }, | |
458 "scopes": [ | |
459 "https://www.googleapis.com/auth/cloud-platform"
, | |
460 "https://www.googleapis.com/auth/pubsub" | |
461 ] | |
462 }, | |
463 "testIamPermissions": { | 418 "testIamPermissions": { |
464 "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.
", | 419 "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.
", |
465 "httpMethod": "POST", | 420 "httpMethod": "POST", |
466 "id": "pubsub.projects.topics.testIamPermissions", | 421 "id": "pubsub.projects.subscriptions.testIamPermissi
ons", |
467 "parameterOrder": [ | 422 "parameterOrder": [ |
468 "resource" | 423 "resource" |
469 ], | 424 ], |
470 "parameters": { | 425 "parameters": { |
471 "resource": { | 426 "resource": { |
472 "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}`.", | 427 "description": "REQUIRED: The resource for w
hich the policy detail is being requested.\nSee the operation documentation for
the appropriate value for this field.", |
473 "location": "path", | 428 "location": "path", |
474 "pattern": "^projects/[^/]+/topics/[^/]+$", | 429 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
475 "required": true, | 430 "required": true, |
476 "type": "string" | 431 "type": "string" |
477 } | 432 } |
478 }, | 433 }, |
479 "path": "v1beta2/{+resource}:testIamPermissions", | 434 "path": "v1beta2/{+resource}:testIamPermissions", |
480 "request": { | 435 "request": { |
481 "$ref": "TestIamPermissionsRequest" | 436 "$ref": "TestIamPermissionsRequest" |
482 }, | 437 }, |
483 "response": { | 438 "response": { |
484 "$ref": "TestIamPermissionsResponse" | 439 "$ref": "TestIamPermissionsResponse" |
485 }, | 440 }, |
486 "scopes": [ | 441 "scopes": [ |
487 "https://www.googleapis.com/auth/cloud-platform"
, | 442 "https://www.googleapis.com/auth/cloud-platform"
, |
| 443 "https://www.googleapis.com/auth/pubsub" |
| 444 ] |
| 445 }, |
| 446 "modifyPushConfig": { |
| 447 "description": "Modifies the `PushConfig` for a spec
ified subscription.\n\nThis may be used to change a push subscription to a pull
one (signified by\nan empty `PushConfig`) or vice versa, or change the endpoint
URL and other\nattributes of a push subscription. Messages will accumulate for d
elivery\ncontinuously through the call regardless of changes to the `PushConfig`
.", |
| 448 "httpMethod": "POST", |
| 449 "id": "pubsub.projects.subscriptions.modifyPushConfi
g", |
| 450 "parameterOrder": [ |
| 451 "subscription" |
| 452 ], |
| 453 "parameters": { |
| 454 "subscription": { |
| 455 "description": "The name of the subscription
.", |
| 456 "location": "path", |
| 457 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
| 458 "required": true, |
| 459 "type": "string" |
| 460 } |
| 461 }, |
| 462 "path": "v1beta2/{+subscription}:modifyPushConfig", |
| 463 "request": { |
| 464 "$ref": "ModifyPushConfigRequest" |
| 465 }, |
| 466 "response": { |
| 467 "$ref": "Empty" |
| 468 }, |
| 469 "scopes": [ |
| 470 "https://www.googleapis.com/auth/cloud-platform"
, |
| 471 "https://www.googleapis.com/auth/pubsub" |
| 472 ] |
| 473 }, |
| 474 "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.", |
| 476 "httpMethod": "POST", |
| 477 "id": "pubsub.projects.subscriptions.pull", |
| 478 "parameterOrder": [ |
| 479 "subscription" |
| 480 ], |
| 481 "parameters": { |
| 482 "subscription": { |
| 483 "description": "The subscription from which
messages should be pulled.", |
| 484 "location": "path", |
| 485 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
| 486 "required": true, |
| 487 "type": "string" |
| 488 } |
| 489 }, |
| 490 "path": "v1beta2/{+subscription}:pull", |
| 491 "request": { |
| 492 "$ref": "PullRequest" |
| 493 }, |
| 494 "response": { |
| 495 "$ref": "PullResponse" |
| 496 }, |
| 497 "scopes": [ |
| 498 "https://www.googleapis.com/auth/cloud-platform"
, |
488 "https://www.googleapis.com/auth/pubsub" | 499 "https://www.googleapis.com/auth/pubsub" |
489 ] | 500 ] |
490 }, | 501 }, |
491 "delete": { | 502 "delete": { |
492 "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_`.", | 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.", |
493 "httpMethod": "DELETE", | 504 "httpMethod": "DELETE", |
494 "id": "pubsub.projects.topics.delete", | 505 "id": "pubsub.projects.subscriptions.delete", |
495 "parameterOrder": [ | 506 "parameterOrder": [ |
496 "topic" | 507 "subscription" |
497 ], | 508 ], |
498 "parameters": { | 509 "parameters": { |
499 "topic": { | 510 "subscription": { |
500 "description": "Name of the topic to delete.
", | 511 "description": "The subscription to delete."
, |
501 "location": "path", | 512 "location": "path", |
502 "pattern": "^projects/[^/]+/topics/[^/]+$", | 513 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
503 "required": true, | 514 "required": true, |
504 "type": "string" | 515 "type": "string" |
505 } | 516 } |
506 }, | 517 }, |
507 "path": "v1beta2/{+topic}", | 518 "path": "v1beta2/{+subscription}", |
508 "response": { | 519 "response": { |
509 "$ref": "Empty" | 520 "$ref": "Empty" |
510 }, | 521 }, |
511 "scopes": [ | 522 "scopes": [ |
512 "https://www.googleapis.com/auth/cloud-platform"
, | 523 "https://www.googleapis.com/auth/cloud-platform"
, |
513 "https://www.googleapis.com/auth/pubsub" | 524 "https://www.googleapis.com/auth/pubsub" |
514 ] | 525 ] |
515 }, | 526 }, |
516 "list": { | 527 "list": { |
517 "description": "Lists matching topics.", | 528 "description": "Lists matching subscriptions.", |
518 "httpMethod": "GET", | 529 "httpMethod": "GET", |
519 "id": "pubsub.projects.topics.list", | 530 "id": "pubsub.projects.subscriptions.list", |
520 "parameterOrder": [ | 531 "parameterOrder": [ |
521 "project" | 532 "project" |
522 ], | 533 ], |
523 "parameters": { | 534 "parameters": { |
524 "pageSize": { | 535 "pageSize": { |
525 "description": "Maximum number of topics to
return.", | 536 "description": "Maximum number of subscripti
ons to return.", |
526 "format": "int32", | 537 "format": "int32", |
527 "location": "query", | 538 "location": "query", |
528 "type": "integer" | 539 "type": "integer" |
529 }, | 540 }, |
530 "project": { | 541 "project": { |
531 "description": "The name of the cloud projec
t that topics belong to.", | 542 "description": "The name of the cloud projec
t that subscriptions belong to.", |
532 "location": "path", | 543 "location": "path", |
533 "pattern": "^projects/[^/]+$", | 544 "pattern": "^projects/[^/]+$", |
534 "required": true, | 545 "required": true, |
535 "type": "string" | 546 "type": "string" |
536 }, | 547 }, |
537 "pageToken": { | 548 "pageToken": { |
538 "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.", | 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.", |
539 "location": "query", | 550 "location": "query", |
540 "type": "string" | 551 "type": "string" |
541 } | 552 } |
542 }, | 553 }, |
543 "path": "v1beta2/{+project}/topics", | 554 "path": "v1beta2/{+project}/subscriptions", |
544 "response": { | 555 "response": { |
545 "$ref": "ListTopicsResponse" | 556 "$ref": "ListSubscriptionsResponse" |
546 }, | 557 }, |
547 "scopes": [ | 558 "scopes": [ |
548 "https://www.googleapis.com/auth/cloud-platform"
, | 559 "https://www.googleapis.com/auth/cloud-platform"
, |
549 "https://www.googleapis.com/auth/pubsub" | 560 "https://www.googleapis.com/auth/pubsub" |
550 ] | 561 ] |
551 }, | 562 }, |
552 "setIamPolicy": { | 563 "setIamPolicy": { |
553 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", | 564 "description": "Sets the access control policy on th
e specified resource. Replaces any\nexisting policy.", |
554 "httpMethod": "POST", | 565 "httpMethod": "POST", |
555 "id": "pubsub.projects.topics.setIamPolicy", | 566 "id": "pubsub.projects.subscriptions.setIamPolicy", |
556 "parameterOrder": [ | 567 "parameterOrder": [ |
557 "resource" | 568 "resource" |
558 ], | 569 ], |
559 "parameters": { | 570 "parameters": { |
560 "resource": { | 571 "resource": { |
561 "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}`.", | 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.", |
562 "location": "path", | 573 "location": "path", |
563 "pattern": "^projects/[^/]+/topics/[^/]+$", | 574 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
564 "required": true, | 575 "required": true, |
565 "type": "string" | 576 "type": "string" |
566 } | 577 } |
567 }, | 578 }, |
568 "path": "v1beta2/{+resource}:setIamPolicy", | 579 "path": "v1beta2/{+resource}:setIamPolicy", |
569 "request": { | 580 "request": { |
570 "$ref": "SetIamPolicyRequest" | 581 "$ref": "SetIamPolicyRequest" |
571 }, | 582 }, |
572 "response": { | 583 "response": { |
573 "$ref": "Policy" | 584 "$ref": "Policy" |
574 }, | 585 }, |
575 "scopes": [ | 586 "scopes": [ |
576 "https://www.googleapis.com/auth/cloud-platform"
, | 587 "https://www.googleapis.com/auth/cloud-platform"
, |
577 "https://www.googleapis.com/auth/pubsub" | 588 "https://www.googleapis.com/auth/pubsub" |
578 ] | 589 ] |
579 }, | 590 }, |
580 "create": { | 591 "create": { |
581 "description": "Creates the given topic with the giv
en name.", | 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.", |
582 "httpMethod": "PUT", | 593 "httpMethod": "PUT", |
583 "id": "pubsub.projects.topics.create", | 594 "id": "pubsub.projects.subscriptions.create", |
584 "parameterOrder": [ | 595 "parameterOrder": [ |
585 "name" | 596 "name" |
586 ], | 597 ], |
587 "parameters": { | 598 "parameters": { |
588 "name": { | 599 "name": { |
589 "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\"`.", | 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\"`.", |
590 "location": "path", | 601 "location": "path", |
591 "pattern": "^projects/[^/]+/topics/[^/]+$", | 602 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
592 "required": true, | 603 "required": true, |
593 "type": "string" | 604 "type": "string" |
594 } | 605 } |
595 }, | 606 }, |
596 "path": "v1beta2/{+name}", | 607 "path": "v1beta2/{+name}", |
597 "request": { | 608 "request": { |
598 "$ref": "Topic" | 609 "$ref": "Subscription" |
599 }, | 610 }, |
600 "response": { | 611 "response": { |
601 "$ref": "Topic" | 612 "$ref": "Subscription" |
| 613 }, |
| 614 "scopes": [ |
| 615 "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" |
602 }, | 669 }, |
603 "scopes": [ | 670 "scopes": [ |
604 "https://www.googleapis.com/auth/cloud-platform"
, | 671 "https://www.googleapis.com/auth/cloud-platform"
, |
605 "https://www.googleapis.com/auth/pubsub" | 672 "https://www.googleapis.com/auth/pubsub" |
606 ] | 673 ] |
607 }, | 674 }, |
608 "getIamPolicy": { | 675 "getIamPolicy": { |
609 "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.", | 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.", |
610 "httpMethod": "GET", | 677 "httpMethod": "GET", |
611 "id": "pubsub.projects.topics.getIamPolicy", | 678 "id": "pubsub.projects.subscriptions.getIamPolicy", |
612 "parameterOrder": [ | 679 "parameterOrder": [ |
613 "resource" | 680 "resource" |
614 ], | 681 ], |
615 "parameters": { | 682 "parameters": { |
616 "resource": { | 683 "resource": { |
617 "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}`.", | 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.", |
618 "location": "path", | 685 "location": "path", |
619 "pattern": "^projects/[^/]+/topics/[^/]+$", | 686 "pattern": "^projects/[^/]+/subscriptions/[^
/]+$", |
620 "required": true, | 687 "required": true, |
621 "type": "string" | 688 "type": "string" |
622 } | 689 } |
623 }, | 690 }, |
624 "path": "v1beta2/{+resource}:getIamPolicy", | 691 "path": "v1beta2/{+resource}:getIamPolicy", |
625 "response": { | 692 "response": { |
626 "$ref": "Policy" | 693 "$ref": "Policy" |
627 }, | 694 }, |
628 "scopes": [ | 695 "scopes": [ |
629 "https://www.googleapis.com/auth/cloud-platform"
, | 696 "https://www.googleapis.com/auth/cloud-platform"
, |
630 "https://www.googleapis.com/auth/pubsub" | 697 "https://www.googleapis.com/auth/pubsub" |
631 ] | 698 ] |
632 }, | |
633 "get": { | |
634 "description": "Gets the configuration of a topic.", | |
635 "httpMethod": "GET", | |
636 "id": "pubsub.projects.topics.get", | |
637 "parameterOrder": [ | |
638 "topic" | |
639 ], | |
640 "parameters": { | |
641 "topic": { | |
642 "description": "The name of the topic to get
.", | |
643 "location": "path", | |
644 "pattern": "^projects/[^/]+/topics/[^/]+$", | |
645 "required": true, | |
646 "type": "string" | |
647 } | |
648 }, | |
649 "path": "v1beta2/{+topic}", | |
650 "response": { | |
651 "$ref": "Topic" | |
652 }, | |
653 "scopes": [ | |
654 "https://www.googleapis.com/auth/cloud-platform"
, | |
655 "https://www.googleapis.com/auth/pubsub" | |
656 ] | |
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 } | 699 } |
700 } | 700 } |
701 } | 701 } |
702 } | 702 } |
703 } | 703 } |
704 }, | 704 }, |
705 "revision": "20170214", | 705 "revision": "20170308", |
706 "rootUrl": "https://pubsub.googleapis.com/", | 706 "rootUrl": "https://pubsub.googleapis.com/", |
707 "schemas": { | 707 "schemas": { |
| 708 "PullRequest": { |
| 709 "description": "Request for the `Pull` method.", |
| 710 "id": "PullRequest", |
| 711 "properties": { |
| 712 "maxMessages": { |
| 713 "description": "The maximum number of messages returned for
this request. The Pub/Sub\nsystem may return fewer than the number specified.", |
| 714 "format": "int32", |
| 715 "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 } |
| 721 }, |
| 722 "type": "object" |
| 723 }, |
| 724 "ListSubscriptionsResponse": { |
| 725 "description": "Response for the `ListSubscriptions` method.", |
| 726 "id": "ListSubscriptionsResponse", |
| 727 "properties": { |
| 728 "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.", |
| 730 "type": "string" |
| 731 }, |
| 732 "subscriptions": { |
| 733 "description": "The subscriptions that match the request.", |
| 734 "items": { |
| 735 "$ref": "Subscription" |
| 736 }, |
| 737 "type": "array" |
| 738 } |
| 739 }, |
| 740 "type": "object" |
| 741 }, |
| 742 "PublishRequest": { |
| 743 "description": "Request for the Publish method.", |
| 744 "id": "PublishRequest", |
| 745 "properties": { |
| 746 "messages": { |
| 747 "description": "The messages to publish.", |
| 748 "items": { |
| 749 "$ref": "PubsubMessage" |
| 750 }, |
| 751 "type": "array" |
| 752 } |
| 753 }, |
| 754 "type": "object" |
| 755 }, |
| 756 "PublishResponse": { |
| 757 "description": "Response for the `Publish` method.", |
| 758 "id": "PublishResponse", |
| 759 "properties": { |
| 760 "messageIds": { |
| 761 "description": "The server-assigned ID of each published mes
sage, in the same order as\nthe messages in the request. IDs are guaranteed to b
e unique within\nthe topic.", |
| 762 "items": { |
| 763 "type": "string" |
| 764 }, |
| 765 "type": "array" |
| 766 } |
| 767 }, |
| 768 "type": "object" |
| 769 }, |
708 "Subscription": { | 770 "Subscription": { |
709 "description": "A subscription resource.", | 771 "description": "A subscription resource.", |
710 "id": "Subscription", | 772 "id": "Subscription", |
711 "properties": { | 773 "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 }, |
712 "pushConfig": { | 778 "pushConfig": { |
713 "$ref": "PushConfig", | 779 "$ref": "PushConfig", |
714 "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." | 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." |
715 }, | 781 }, |
716 "ackDeadlineSeconds": { | 782 "ackDeadlineSeconds": { |
717 "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.", | 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.", |
718 "format": "int32", | 784 "format": "int32", |
719 "type": "integer" | 785 "type": "integer" |
720 }, | 786 }, |
721 "name": { | 787 "name": { |
722 "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\"`.", | 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\"`.", |
723 "type": "string" | 789 "type": "string" |
724 }, | |
725 "topic": { | |
726 "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.", | |
727 "type": "string" | |
728 } | 790 } |
729 }, | 791 }, |
730 "type": "object" | 792 "type": "object" |
731 }, | 793 }, |
732 "TestIamPermissionsRequest": { | 794 "TestIamPermissionsRequest": { |
733 "description": "Request message for `TestIamPermissions` method.", | 795 "description": "Request message for `TestIamPermissions` method.", |
734 "id": "TestIamPermissionsRequest", | 796 "id": "TestIamPermissionsRequest", |
735 "properties": { | 797 "properties": { |
736 "permissions": { | 798 "permissions": { |
737 "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).", | 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).", |
738 "items": { | 800 "items": { |
739 "type": "string" | 801 "type": "string" |
740 }, | 802 }, |
741 "type": "array" | 803 "type": "array" |
742 } | 804 } |
743 }, | 805 }, |
744 "type": "object" | 806 "type": "object" |
745 }, | 807 }, |
746 "Topic": { | |
747 "description": "A topic resource.", | |
748 "id": "Topic", | |
749 "properties": { | |
750 "name": { | |
751 "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\"`.", | |
752 "type": "string" | |
753 } | |
754 }, | |
755 "type": "object" | |
756 }, | |
757 "Policy": { | 808 "Policy": { |
758 "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).", | 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).", |
759 "id": "Policy", | 810 "id": "Policy", |
760 "properties": { | 811 "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 }, |
761 "etag": { | 819 "etag": { |
762 "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.", | 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.", |
763 "format": "byte", | 821 "format": "byte", |
764 "type": "string" | 822 "type": "string" |
765 }, | 823 }, |
766 "version": { | 824 "version": { |
767 "description": "Version of the `Policy`. The default version
is 0.", | 825 "description": "Version of the `Policy`. The default version
is 0.", |
768 "format": "int32", | 826 "format": "int32", |
769 "type": "integer" | 827 "type": "integer" |
770 }, | |
771 "bindings": { | |
772 "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.", | |
773 "items": { | |
774 "$ref": "Binding" | |
775 }, | |
776 "type": "array" | |
777 } | 828 } |
778 }, | 829 }, |
779 "type": "object" | 830 "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" |
780 }, | 842 }, |
781 "ModifyAckDeadlineRequest": { | 843 "ModifyAckDeadlineRequest": { |
782 "description": "Request for the ModifyAckDeadline method.", | 844 "description": "Request for the ModifyAckDeadline method.", |
783 "id": "ModifyAckDeadlineRequest", | 845 "id": "ModifyAckDeadlineRequest", |
784 "properties": { | 846 "properties": { |
785 "ackId": { | 847 "ackId": { |
786 "description": "The acknowledgment ID. Either this or ack_id
s must be populated, but not\nboth.", | 848 "description": "The acknowledgment ID. Either this or ack_id
s must be populated, but not\nboth.", |
787 "type": "string" | 849 "type": "string" |
788 }, | 850 }, |
789 "ackDeadlineSeconds": { | 851 "ackDeadlineSeconds": { |
(...skipping 19 matching lines...) Expand all Loading... |
809 "$ref": "Policy", | 871 "$ref": "Policy", |
810 "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." | 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." |
811 } | 873 } |
812 }, | 874 }, |
813 "type": "object" | 875 "type": "object" |
814 }, | 876 }, |
815 "PubsubMessage": { | 877 "PubsubMessage": { |
816 "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.", | 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.", |
817 "id": "PubsubMessage", | 879 "id": "PubsubMessage", |
818 "properties": { | 880 "properties": { |
| 881 "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).", |
| 883 "format": "byte", |
| 884 "type": "string" |
| 885 }, |
819 "attributes": { | 886 "attributes": { |
820 "additionalProperties": { | 887 "additionalProperties": { |
821 "type": "string" | 888 "type": "string" |
822 }, | 889 }, |
823 "description": "Optional attributes for this message.", | 890 "description": "Optional attributes for this message.", |
824 "type": "object" | 891 "type": "object" |
825 }, | 892 }, |
826 "messageId": { | 893 "messageId": { |
827 "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.", | 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.", |
828 "type": "string" | 895 "type": "string" |
829 }, | 896 }, |
830 "publishTime": { | 897 "publishTime": { |
831 "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.", | 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.", |
832 "format": "google-datetime", | 899 "format": "google-datetime", |
833 "type": "string" | 900 "type": "string" |
834 }, | |
835 "data": { | |
836 "description": "The message payload. For JSON requests, the
value of this field must be\n[base64-encoded](https://tools.ietf.org/html/rfc464
8).", | |
837 "format": "byte", | |
838 "type": "string" | |
839 } | 901 } |
840 }, | 902 }, |
841 "type": "object" | 903 "type": "object" |
842 }, | 904 }, |
843 "ModifyPushConfigRequest": { | 905 "ModifyPushConfigRequest": { |
844 "description": "Request for the ModifyPushConfig method.", | 906 "description": "Request for the ModifyPushConfig method.", |
845 "id": "ModifyPushConfigRequest", | 907 "id": "ModifyPushConfigRequest", |
846 "properties": { | 908 "properties": { |
847 "pushConfig": { | 909 "pushConfig": { |
848 "$ref": "PushConfig", | 910 "$ref": "PushConfig", |
(...skipping 13 matching lines...) Expand all Loading... |
862 }, | 924 }, |
863 "type": "array" | 925 "type": "array" |
864 }, | 926 }, |
865 "role": { | 927 "role": { |
866 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", | 928 "description": "Role that is assigned to `members`.\nFor exa
mple, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired", |
867 "type": "string" | 929 "type": "string" |
868 } | 930 } |
869 }, | 931 }, |
870 "type": "object" | 932 "type": "object" |
871 }, | 933 }, |
872 "AcknowledgeRequest": { | 934 "ListTopicsResponse": { |
873 "description": "Request for the Acknowledge method.", | 935 "description": "Response for the `ListTopics` method.", |
874 "id": "AcknowledgeRequest", | 936 "id": "ListTopicsResponse", |
875 "properties": { | 937 "properties": { |
876 "ackIds": { | 938 "topics": { |
877 "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.", | 939 "description": "The resulting topics.", |
878 "items": { | 940 "items": { |
879 "type": "string" | 941 "$ref": "Topic" |
880 }, | 942 }, |
881 "type": "array" | 943 "type": "array" |
| 944 }, |
| 945 "nextPageToken": { |
| 946 "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`.", |
| 947 "type": "string" |
882 } | 948 } |
883 }, | 949 }, |
884 "type": "object" | 950 "type": "object" |
885 }, | 951 }, |
886 "Empty": { | 952 "Empty": { |
887 "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 `{}`.", | 953 "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 `{}`.", |
888 "id": "Empty", | 954 "id": "Empty", |
889 "properties": {}, | 955 "properties": {}, |
890 "type": "object" | 956 "type": "object" |
891 }, | 957 }, |
892 "ListTopicsResponse": { | 958 "AcknowledgeRequest": { |
893 "description": "Response for the `ListTopics` method.", | 959 "description": "Request for the Acknowledge method.", |
894 "id": "ListTopicsResponse", | 960 "id": "AcknowledgeRequest", |
895 "properties": { | 961 "properties": { |
896 "nextPageToken": { | 962 "ackIds": { |
897 "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`.", | 963 "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.", |
898 "type": "string" | |
899 }, | |
900 "topics": { | |
901 "description": "The resulting topics.", | |
902 "items": { | 964 "items": { |
903 "$ref": "Topic" | 965 "type": "string" |
904 }, | 966 }, |
905 "type": "array" | 967 "type": "array" |
906 } | 968 } |
907 }, | 969 }, |
908 "type": "object" | 970 "type": "object" |
909 }, | 971 }, |
910 "ListTopicSubscriptionsResponse": { | 972 "ListTopicSubscriptionsResponse": { |
911 "description": "Response for the `ListTopicSubscriptions` method.", | 973 "description": "Response for the `ListTopicSubscriptions` method.", |
912 "id": "ListTopicSubscriptionsResponse", | 974 "id": "ListTopicSubscriptionsResponse", |
913 "properties": { | 975 "properties": { |
(...skipping 22 matching lines...) Expand all Loading... |
936 }, | 998 }, |
937 "type": "array" | 999 "type": "array" |
938 } | 1000 } |
939 }, | 1001 }, |
940 "type": "object" | 1002 "type": "object" |
941 }, | 1003 }, |
942 "ReceivedMessage": { | 1004 "ReceivedMessage": { |
943 "description": "A message and its corresponding acknowledgment ID.", | 1005 "description": "A message and its corresponding acknowledgment ID.", |
944 "id": "ReceivedMessage", | 1006 "id": "ReceivedMessage", |
945 "properties": { | 1007 "properties": { |
| 1008 "ackId": { |
| 1009 "description": "This ID can be used to acknowledge the recei
ved message.", |
| 1010 "type": "string" |
| 1011 }, |
946 "message": { | 1012 "message": { |
947 "$ref": "PubsubMessage", | 1013 "$ref": "PubsubMessage", |
948 "description": "The message." | 1014 "description": "The message." |
949 }, | |
950 "ackId": { | |
951 "description": "This ID can be used to acknowledge the recei
ved message.", | |
952 "type": "string" | |
953 } | 1015 } |
954 }, | 1016 }, |
955 "type": "object" | 1017 "type": "object" |
956 }, | 1018 }, |
957 "PushConfig": { | 1019 "PushConfig": { |
958 "description": "Configuration for a push delivery endpoint.", | 1020 "description": "Configuration for a push delivery endpoint.", |
959 "id": "PushConfig", | 1021 "id": "PushConfig", |
960 "properties": { | 1022 "properties": { |
961 "pushEndpoint": { | 1023 "pushEndpoint": { |
962 "description": "A URL locating the endpoint to which message
s should be pushed.\nFor example, a Webhook endpoint might use \"https://example
.com/push\".", | 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\".", |
(...skipping 15 matching lines...) Expand all Loading... |
978 "properties": { | 1040 "properties": { |
979 "permissions": { | 1041 "permissions": { |
980 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", | 1042 "description": "A subset of `TestPermissionsRequest.permissi
ons` that the caller is\nallowed.", |
981 "items": { | 1043 "items": { |
982 "type": "string" | 1044 "type": "string" |
983 }, | 1045 }, |
984 "type": "array" | 1046 "type": "array" |
985 } | 1047 } |
986 }, | 1048 }, |
987 "type": "object" | 1049 "type": "object" |
988 }, | |
989 "PullRequest": { | |
990 "description": "Request for the `Pull` method.", | |
991 "id": "PullRequest", | |
992 "properties": { | |
993 "returnImmediately": { | |
994 "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.", | |
995 "type": "boolean" | |
996 }, | |
997 "maxMessages": { | |
998 "description": "The maximum number of messages returned for
this request. The Pub/Sub\nsystem may return fewer than the number specified.", | |
999 "format": "int32", | |
1000 "type": "integer" | |
1001 } | |
1002 }, | |
1003 "type": "object" | |
1004 }, | |
1005 "ListSubscriptionsResponse": { | |
1006 "description": "Response for the `ListSubscriptions` method.", | |
1007 "id": "ListSubscriptionsResponse", | |
1008 "properties": { | |
1009 "nextPageToken": { | |
1010 "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.", | |
1011 "type": "string" | |
1012 }, | |
1013 "subscriptions": { | |
1014 "description": "The subscriptions that match the request.", | |
1015 "items": { | |
1016 "$ref": "Subscription" | |
1017 }, | |
1018 "type": "array" | |
1019 } | |
1020 }, | |
1021 "type": "object" | |
1022 }, | |
1023 "PublishRequest": { | |
1024 "description": "Request for the Publish method.", | |
1025 "id": "PublishRequest", | |
1026 "properties": { | |
1027 "messages": { | |
1028 "description": "The messages to publish.", | |
1029 "items": { | |
1030 "$ref": "PubsubMessage" | |
1031 }, | |
1032 "type": "array" | |
1033 } | |
1034 }, | |
1035 "type": "object" | |
1036 }, | |
1037 "PublishResponse": { | |
1038 "description": "Response for the `Publish` method.", | |
1039 "id": "PublishResponse", | |
1040 "properties": { | |
1041 "messageIds": { | |
1042 "description": "The server-assigned ID of each published mes
sage, in the same order as\nthe messages in the request. IDs are guaranteed to b
e unique within\nthe topic.", | |
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 } |
OLD | NEW |